diff --git a/test/built-ins/Array/15.4.5-1.js b/test/built-ins/Array/15.4.5-1.js index d8a00abd4a5423efddaa10e6ef388ea7f5cca963..6eb1ae127167b99969c0310704572d96898a703f 100644 --- a/test/built-ins/Array/15.4.5-1.js +++ b/test/built-ins/Array/15.4.5-1.js @@ -6,7 +6,7 @@ es5id: 15.4.5-1 description: Array instances have [[Class]] set to 'Array' ---*/ - var a = []; - var s = Object.prototype.toString.call(a); +var a = []; +var s = Object.prototype.toString.call(a); assert.sameValue(s, '[object Array]', 's'); diff --git a/test/built-ins/Array/15.4.5.1-5-1.js b/test/built-ins/Array/15.4.5.1-5-1.js index 945bf9ae4ed9d30d07c2ed460ddd57453d45ec49..d92747a324f5ca07e23348e386548acc4aa522e3 100644 --- a/test/built-ins/Array/15.4.5.1-5-1.js +++ b/test/built-ins/Array/15.4.5.1-5-1.js @@ -8,7 +8,7 @@ description: > element) ---*/ - var a =[]; - a[4294967295] = "not an array element" ; +var a = []; +a[4294967295] = "not an array element"; assert.sameValue(a[4294967295], "not an array element", 'a[4294967295]'); diff --git a/test/built-ins/Array/15.4.5.1-5-2.js b/test/built-ins/Array/15.4.5.1-5-2.js index 924c48f47933089dfb2c2a53b1e9773cf3189c42..27abd4c55b151d650a4ab4fe62cf3cae2bab8fd6 100644 --- a/test/built-ins/Array/15.4.5.1-5-2.js +++ b/test/built-ins/Array/15.4.5.1-5-2.js @@ -8,7 +8,7 @@ description: > length of the array ---*/ - var a =[0,1,2]; - a[4294967295] = "not an array element" ; +var a = [0, 1, 2]; +a[4294967295] = "not an array element"; assert.sameValue(a.length, 3, 'a.length'); diff --git a/test/built-ins/Array/S15.4.1_A1.1_T2.js b/test/built-ins/Array/S15.4.1_A1.1_T2.js index 95deeeeaee1517616c2287bf2e6fd3887aea5d93..cbee1450ca0841fbcc17c905ef0bee2d86ba6887 100644 --- a/test/built-ins/Array/S15.4.1_A1.1_T2.js +++ b/test/built-ins/Array/S15.4.1_A1.1_T2.js @@ -12,14 +12,14 @@ description: Array.prototype.toString = Object.prototype.toString //CHECK#1 Array.prototype.toString = Object.prototype.toString; -var x = Array(); +var x = Array(); if (x.toString() !== "[object " + "Array" + "]") { $ERROR('#1: Array.prototype.toString = Object.prototype.toString; var x = Array(); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString())); } //CHECK#2 Array.prototype.toString = Object.prototype.toString; -var x = Array(0,1,2); +var x = Array(0, 1, 2); if (x.toString() !== "[object " + "Array" + "]") { $ERROR('#2: Array.prototype.toString = Object.prototype.toString; var x = Array(0,1,2); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString())); } diff --git a/test/built-ins/Array/S15.4.1_A1.2_T1.js b/test/built-ins/Array/S15.4.1_A1.2_T1.js index 424f8eb9b438f84dc4e71db5de94ad33515e740d..abdb5116d100c1d614ec9174efa7a837eb214bd6 100644 --- a/test/built-ins/Array/S15.4.1_A1.2_T1.js +++ b/test/built-ins/Array/S15.4.1_A1.2_T1.js @@ -8,14 +8,14 @@ description: Checking use Object.prototype.toString ---*/ //CHECK#1 -var x = Array(); +var x = Array(); x.getClass = Object.prototype.toString; if (x.getClass() !== "[object " + "Array" + "]") { $ERROR('#1: var x = Array(); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass())); } //CHECK#2 -var x = Array(0,1,2); +var x = Array(0, 1, 2); x.getClass = Object.prototype.toString; if (x.getClass() !== "[object " + "Array" + "]") { $ERROR('#2: var x = Array(0,1,2); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass())); diff --git a/test/built-ins/Array/S15.4.1_A2.1_T1.js b/test/built-ins/Array/S15.4.1_A2.1_T1.js index 89b2934f6340552899a9ac5cf70ebfcdbc951632..0196ec03940634b0f7f732b784b00d52c6624aa6 100644 --- a/test/built-ins/Array/S15.4.1_A2.1_T1.js +++ b/test/built-ins/Array/S15.4.1_A2.1_T1.js @@ -15,8 +15,8 @@ if (Array().length !== 0) { } //CHECK#2 -if (Array(0,1,0,1).length !== 4) { - $ERROR('#2: (Array(0,1,0,1).length === 4. Actual: ' + (Array(0,1,0,1).length)); +if (Array(0, 1, 0, 1).length !== 4) { + $ERROR('#2: (Array(0,1,0,1).length === 4. Actual: ' + (Array(0, 1, 0, 1).length)); } //CHECK#3 diff --git a/test/built-ins/Array/S15.4.1_A2.2_T1.js b/test/built-ins/Array/S15.4.1_A2.2_T1.js index 971ce382cd41d9b622cba5a372f110edb246e09e..92f2c1d917da7eae3eaeebc269b81437685450e7 100644 --- a/test/built-ins/Array/S15.4.1_A2.2_T1.js +++ b/test/built-ins/Array/S15.4.1_A2.2_T1.js @@ -14,16 +14,16 @@ description: Checking correct work this algorithm //CHECK# var x = Array( -0,1,2,3,4,5,6,7,8,9, -10,11,12,13,14,15,16,17,18,19, -20,21,22,23,24,25,26,27,28,29, -30,31,32,33,34,35,36,37,38,39, -40,41,42,43,44,45,46,47,48,49, -50,51,52,53,54,55,56,57,58,59, -60,61,62,63,64,65,66,67,68,69, -70,71,72,73,74,75,76,77,78,79, -80,81,82,83,84,85,86,87,88,89, -90,91,92,93,94,95,96,97,98,99 + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, + 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, + 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 ); for (var i = 0; i < 100; i++) { diff --git a/test/built-ins/Array/S15.4.1_A3.1_T1.js b/test/built-ins/Array/S15.4.1_A3.1_T1.js index 383fefd736d0a76984d734b670e61d5865cf9998..679db6fb473c1abaf10d15e82e17836e70994647 100644 --- a/test/built-ins/Array/S15.4.1_A3.1_T1.js +++ b/test/built-ins/Array/S15.4.1_A3.1_T1.js @@ -12,7 +12,7 @@ description: Checking use typeof, instanceof //CHECK#1 if (typeof Array() !== "object") { $ERROR('#1: typeof Array() === "object". Actual: ' + (typeof Array())); -} +} //CHECK#2 if ((Array() instanceof Array) !== true) { diff --git a/test/built-ins/Array/S15.4.2.1_A1.1_T1.js b/test/built-ins/Array/S15.4.2.1_A1.1_T1.js index 895ae2f4f2f939b129e9d0d59177e4a0309196a2..cd3a2c13de26df98eb9181633aada73cd8c83fa6 100644 --- a/test/built-ins/Array/S15.4.2.1_A1.1_T1.js +++ b/test/built-ins/Array/S15.4.2.1_A1.1_T1.js @@ -14,7 +14,7 @@ description: > //CHECK#1 Array.prototype.myproperty = 1; -var x = new Array(); +var x = new Array(); if (x.myproperty !== 1) { $ERROR('#1: Array.prototype.myproperty = 1; var x = new Array(); x.myproperty === 1. Actual: ' + (x.myproperty)); } diff --git a/test/built-ins/Array/S15.4.2.1_A1.1_T2.js b/test/built-ins/Array/S15.4.2.1_A1.1_T2.js index 74ccc645eb2156e5d523f2f10a50ed7d627fe481..3992943a4a015b786f58bee08c03ae35e594519b 100644 --- a/test/built-ins/Array/S15.4.2.1_A1.1_T2.js +++ b/test/built-ins/Array/S15.4.2.1_A1.1_T2.js @@ -12,14 +12,14 @@ description: Array.prototype.toString = Object.prototype.toString //CHECK#1 Array.prototype.toString = Object.prototype.toString; -var x = new Array(); +var x = new Array(); if (x.toString() !== "[object " + "Array" + "]") { $ERROR('#1: Array.prototype.toString = Object.prototype.toString; var x = new Array(); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString())); } //CHECK#2 Array.prototype.toString = Object.prototype.toString; -var x = new Array(0,1,2); +var x = new Array(0, 1, 2); if (x.toString() !== "[object " + "Array" + "]") { $ERROR('#2: Array.prototype.toString = Object.prototype.toString; var x = new Array(0,1,2); x.toString() === "[object " + "Array" + "]". Actual: ' + (x.toString())); } diff --git a/test/built-ins/Array/S15.4.2.1_A1.2_T1.js b/test/built-ins/Array/S15.4.2.1_A1.2_T1.js index 59b528f6a32bafacb02e469a62b9f2857d405843..de6c5a1d813763120b3ac1c61d7e300240bfbc08 100644 --- a/test/built-ins/Array/S15.4.2.1_A1.2_T1.js +++ b/test/built-ins/Array/S15.4.2.1_A1.2_T1.js @@ -8,14 +8,14 @@ description: Checking use Object.prototype.toString ---*/ //CHECK#1 -var x = new Array(); +var x = new Array(); x.getClass = Object.prototype.toString; if (x.getClass() !== "[object " + "Array" + "]") { $ERROR('#1: var x = new Array(); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass())); } //CHECK#2 -var x = new Array(0,1,2); +var x = new Array(0, 1, 2); x.getClass = Object.prototype.toString; if (x.getClass() !== "[object " + "Array" + "]") { $ERROR('#2: var x = new Array(0,1,2); x.getClass = Object.prototype.toString; x is Array object. Actual: ' + (x.getClass())); diff --git a/test/built-ins/Array/S15.4.2.1_A2.1_T1.js b/test/built-ins/Array/S15.4.2.1_A2.1_T1.js index 97aaaa52b73ce9403db262754efd36035367e118..e189774b0c0313bee835e5ef558eb6afc015cb21 100644 --- a/test/built-ins/Array/S15.4.2.1_A2.1_T1.js +++ b/test/built-ins/Array/S15.4.2.1_A2.1_T1.js @@ -15,8 +15,8 @@ if (new Array().length !== 0) { } //CHECK#2 -if (new Array(0,1,0,1).length !== 4) { - $ERROR('#2: new Array(0,1,0,1).length === 4. Actual: ' + (new Array(0,1,0,1).length)); +if (new Array(0, 1, 0, 1).length !== 4) { + $ERROR('#2: new Array(0,1,0,1).length === 4. Actual: ' + (new Array(0, 1, 0, 1).length)); } //CHECK#3 diff --git a/test/built-ins/Array/S15.4.2.1_A2.2_T1.js b/test/built-ins/Array/S15.4.2.1_A2.2_T1.js index e4c088a91d73e2d7f3dc4e9fa235185f2114768c..05dbf789d06b473bff5a497c7f08d741c85104b4 100644 --- a/test/built-ins/Array/S15.4.2.1_A2.2_T1.js +++ b/test/built-ins/Array/S15.4.2.1_A2.2_T1.js @@ -14,16 +14,16 @@ description: Checking correct work this algorithm //CHECK# var x = new Array( -0,1,2,3,4,5,6,7,8,9, -10,11,12,13,14,15,16,17,18,19, -20,21,22,23,24,25,26,27,28,29, -30,31,32,33,34,35,36,37,38,39, -40,41,42,43,44,45,46,47,48,49, -50,51,52,53,54,55,56,57,58,59, -60,61,62,63,64,65,66,67,68,69, -70,71,72,73,74,75,76,77,78,79, -80,81,82,83,84,85,86,87,88,89, -90,91,92,93,94,95,96,97,98,99 + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, + 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, + 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 ); for (var i = 0; i < 100; i++) { diff --git a/test/built-ins/Array/S15.4.5.1_A1.2_T2.js b/test/built-ins/Array/S15.4.5.1_A1.2_T2.js index eb722c4ab6c1b2d58ed77e5623c0ddc7c7e5818e..493457eb95c0ee9aa5f19c22392f581adf4dde95 100644 --- a/test/built-ins/Array/S15.4.5.1_A1.2_T2.js +++ b/test/built-ins/Array/S15.4.5.1_A1.2_T2.js @@ -13,13 +13,13 @@ description: Checking an inherited property //CHECK#1 Array.prototype[2] = -1; -var x = [0,1,2]; -if (x[2] !== 2) { - $ERROR('#1: Array.prototype[2] = -1; x = [0,1,3]; x[2] === 2. Actual: ' + (x[2])); +var x = [0, 1, 2]; +if (x[2] !== 2) { + $ERROR('#1: Array.prototype[2] = -1; x = [0,1,3]; x[2] === 2. Actual: ' + (x[2])); } //CHECK#2 x.length = 2; -if (x[2] !== -1) { - $ERROR('#2: Array.prototype[2] = -1; x = [0,1,3]; x.length = 2; x[2] === -1. Actual: ' + (x[2])); +if (x[2] !== -1) { + $ERROR('#2: Array.prototype[2] = -1; x = [0,1,3]; x.length = 2; x[2] === -1. Actual: ' + (x[2])); } diff --git a/test/built-ins/Array/S15.4.5.1_A2.1_T1.js b/test/built-ins/Array/S15.4.5.1_A2.1_T1.js index 3006c94e7db25a11724950204053541684b1f5b9..b48f6d6c421f115c1ef7010aa5699f82e44ddcae 100644 --- a/test/built-ins/Array/S15.4.5.1_A2.1_T1.js +++ b/test/built-ins/Array/S15.4.5.1_A2.1_T1.js @@ -12,32 +12,32 @@ description: P in [4294967295, -1, true] //CHECK#1 var x = []; x[4294967295] = 1; -if (x.length !== 0) { - $ERROR('#1.1: x = []; x[4294967295] = 1; x.length === 0. Actual: ' + (x.length)); +if (x.length !== 0) { + $ERROR('#1.1: x = []; x[4294967295] = 1; x.length === 0. Actual: ' + (x.length)); } -if (x[4294967295] !== 1) { - $ERROR('#1.2: x = []; x[4294967295] = 1; x[4294967295] === 1. Actual: ' + (x[4294967295])); +if (x[4294967295] !== 1) { + $ERROR('#1.2: x = []; x[4294967295] = 1; x[4294967295] === 1. Actual: ' + (x[4294967295])); } //CHECK#2 x = []; x[-1] = 1; -if (x.length !== 0) { - $ERROR('#2.1: x = []; x[-1] = 1; x.length === 0. Actual: ' + (x.length)); +if (x.length !== 0) { + $ERROR('#2.1: x = []; x[-1] = 1; x.length === 0. Actual: ' + (x.length)); } -if (x[-1] !== 1) { - $ERROR('#2.2: x = []; x[-1] = 1; x[-1] === 1. Actual: ' + (x[-1])); +if (x[-1] !== 1) { + $ERROR('#2.2: x = []; x[-1] = 1; x[-1] === 1. Actual: ' + (x[-1])); } //CHECK#3 x = []; x[true] = 1; -if (x.length !== 0) { - $ERROR('#3.1: x = []; x[true] = 1; x.length === 0. Actual: ' + (x.length)); +if (x.length !== 0) { + $ERROR('#3.1: x = []; x[true] = 1; x.length === 0. Actual: ' + (x.length)); } -if (x[true] !== 1) { - $ERROR('#3.2: x = []; x[true] = 1; x[true] === 1. Actual: ' + (x[true])); +if (x[true] !== 1) { + $ERROR('#3.2: x = []; x[true] = 1; x[true] === 1. Actual: ' + (x[true])); } diff --git a/test/built-ins/Array/S15.4.5.1_A2.2_T1.js b/test/built-ins/Array/S15.4.5.1_A2.2_T1.js index b3000c1dba36ad3d2d8fae81b9bbd0329fa6095a..45ebd19d6ae2a91b3eb6e5f15ac2d3356c39b508 100644 --- a/test/built-ins/Array/S15.4.5.1_A2.2_T1.js +++ b/test/built-ins/Array/S15.4.5.1_A2.2_T1.js @@ -12,18 +12,18 @@ description: length === 100, P in [0, 98, 99] //CHECK#1 var x = Array(100); x[0] = 1; -if (x.length !== 100) { - $ERROR('#1: x = Array(100); x[0] = 1; x.length === 100. Actual: ' + (x.length)); +if (x.length !== 100) { + $ERROR('#1: x = Array(100); x[0] = 1; x.length === 100. Actual: ' + (x.length)); } //CHECK#2 x[98] = 1; -if (x.length !== 100) { - $ERROR('#2: x = Array(100); x[0] = 1; x[98] = 1; x.length === 100. Actual: ' + (x.length)); +if (x.length !== 100) { + $ERROR('#2: x = Array(100); x[0] = 1; x[98] = 1; x.length === 100. Actual: ' + (x.length)); } //CHECK#3 x[99] = 1; -if (x.length !== 100) { - $ERROR('#3: x = Array(100); x[0] = 1; x[98] = 1; x[99] = 1; x.length === 100. Actual: ' + (x.length)); +if (x.length !== 100) { + $ERROR('#3: x = Array(100); x[0] = 1; x[98] = 1; x[99] = 1; x.length === 100. Actual: ' + (x.length)); } diff --git a/test/built-ins/Array/S15.4.5.1_A2.3_T1.js b/test/built-ins/Array/S15.4.5.1_A2.3_T1.js index 90525f07ffcb62ff24d4c10531c91856e9b74f24..0c4c807db0b7e7df69f2be8718a4f90e6ccc558d 100644 --- a/test/built-ins/Array/S15.4.5.1_A2.3_T1.js +++ b/test/built-ins/Array/S15.4.5.1_A2.3_T1.js @@ -12,12 +12,12 @@ description: length = 100, P in [100, 199] //CHECK#1 var x = Array(100); x[100] = 1; -if (x.length !== 101) { - $ERROR('#1: x = Array(100); x[100] = 1; x.length === 101. Actual: ' + (x.length)); +if (x.length !== 101) { + $ERROR('#1: x = Array(100); x[100] = 1; x.length === 101. Actual: ' + (x.length)); } //CHECK#2 x[199] = 1; -if (x.length !== 200) { - $ERROR('#2: x = Array(100); x[100] = 1; x[199] = 1; x.length === 100. Actual: ' + (x.length)); +if (x.length !== 200) { + $ERROR('#2: x = Array(100); x[100] = 1; x[199] = 1; x.length === 100. Actual: ' + (x.length)); } diff --git a/test/built-ins/Array/S15.4.5.2_A1_T1.js b/test/built-ins/Array/S15.4.5.2_A1_T1.js index 16e7904b8a8930ca75ec1dcf05c4991bda828906..56ef2426ece7944088947f7ceda6e663a9bac321 100644 --- a/test/built-ins/Array/S15.4.5.2_A1_T1.js +++ b/test/built-ins/Array/S15.4.5.2_A1_T1.js @@ -12,30 +12,30 @@ description: Checking boundary points //CHECK#1 var x = []; -if (x.length !== 0) { - $ERROR('#1: x = []; x.length === 0. Actual: ' + (x.length)); +if (x.length !== 0) { + $ERROR('#1: x = []; x.length === 0. Actual: ' + (x.length)); } //CHECK#2 x[0] = 1; -if (x.length !== 1) { +if (x.length !== 1) { $ERROR('#2: x = []; x[1] = 1; x.length === 1. Actual: ' + (x.length)); } //CHECK#3 x[1] = 1; -if (x.length !== 2) { +if (x.length !== 2) { $ERROR('#3: x = []; x[0] = 1; x[1] = 1; x.length === 2. Actual: ' + (x.length)); } //CHECK#4 x[2147483648] = 1; -if (x.length !== 2147483649) { +if (x.length !== 2147483649) { $ERROR('#4: x = []; x[0] = 1; x[1] = 1; x[2147483648] = 1; x.length === 2147483649. Actual: ' + (x.length)); } //CHECK#5 x[4294967294] = 1; -if (x.length !== 4294967295) { +if (x.length !== 4294967295) { $ERROR('#5: x = []; x[0] = 1; x[1] = 1; x[2147483648] = 1; x[42949672954] = 1; x.length === 4294967295. Actual: ' + (x.length)); } diff --git a/test/built-ins/Array/S15.4.5.2_A1_T2.js b/test/built-ins/Array/S15.4.5.2_A1_T2.js index 12dfb1943b3d5d135202e04b7d6afc740ed072ab..6edcf113b4ac201351d459e7b724ce7fe2cf3207 100644 --- a/test/built-ins/Array/S15.4.5.2_A1_T2.js +++ b/test/built-ins/Array/S15.4.5.2_A1_T2.js @@ -13,14 +13,14 @@ description: P = "2^32 - 1" is not index array //CHECK#1 var x = []; x[4294967295] = 1; -if (x.length !== 0) { - $ERROR('#1: x = []; x[4294967295] = 1; x.length === 0. Actual: ' + (x.length)); +if (x.length !== 0) { + $ERROR('#1: x = []; x[4294967295] = 1; x.length === 0. Actual: ' + (x.length)); } //CHECK#2 -var y =[]; +var y = []; y[1] = 1; y[4294967295] = 1; -if (y.length !== 2) { +if (y.length !== 2) { $ERROR('#2: y = []; y[1] = 1; y[4294967295] = 1; y.length === 2. Actual: ' + (y.length)); } diff --git a/test/built-ins/Array/S15.4.5.2_A2_T1.js b/test/built-ins/Array/S15.4.5.2_A2_T1.js index 8f9ac5b8c98c21985db82ce6343972ca4ed7694e..39a8a330a73bf1c7777ea023c27c491e3f1c6a4f 100644 --- a/test/built-ins/Array/S15.4.5.2_A2_T1.js +++ b/test/built-ins/Array/S15.4.5.2_A2_T1.js @@ -11,24 +11,24 @@ description: Checking length property //CHECK#1 var x = []; -if (x.length !== 0) { - $ERROR('#1: x = []; x.length === 0. Actual: ' + (x.length)); +if (x.length !== 0) { + $ERROR('#1: x = []; x.length === 0. Actual: ' + (x.length)); } //CHECK#2 x[0] = 1; -if (x.length !== 1) { +if (x.length !== 1) { $ERROR('#2: x = []; x[1] = 1; x.length === 1. Actual: ' + (x.length)); } //CHECK#3 x[1] = 1; -if (x.length !== 2) { +if (x.length !== 2) { $ERROR('#3: x = []; x[0] = 1; x[1] = 1; x.length === 2. Actual: ' + (x.length)); } //CHECK#4 x[9] = 1; -if (x.length !== 10) { +if (x.length !== 10) { $ERROR('#4: x = []; x[0] = 1; x[1] = 1; x[9] = 1; x.length === 10. Actual: ' + (x.length)); } diff --git a/test/built-ins/Array/S15.4.5.2_A3_T1.js b/test/built-ins/Array/S15.4.5.2_A3_T1.js index 5ab53b122a81918dec7cc4368c8ac229b668b3dc..f29a2a9b18e13c479ce44b54ca7495262c3251f9 100644 --- a/test/built-ins/Array/S15.4.5.2_A3_T1.js +++ b/test/built-ins/Array/S15.4.5.2_A3_T1.js @@ -14,18 +14,18 @@ description: > //CHECK#1 var x = []; x.length = 1; -if (x.length !== 1) { - $ERROR('#1: x = []; x.length = 1; x.length === 1. Actual: ' + (x.length)); +if (x.length !== 1) { + $ERROR('#1: x = []; x.length = 1; x.length === 1. Actual: ' + (x.length)); } //CHECK#2 x[5] = 1; x.length = 10; -if (x.length !== 10) { +if (x.length !== 10) { $ERROR('#2: x = []; x.length = 1; x[5] = 1; x.length = 10; x.length === 10. Actual: ' + (x.length)); } //CHECK#3 -if (x[5] !== 1) { +if (x[5] !== 1) { $ERROR('#3: x = []; x.length = 1; x[5] = 1; x.length = 10; x[5] = 1'); } diff --git a/test/built-ins/Array/S15.4.5.2_A3_T2.js b/test/built-ins/Array/S15.4.5.2_A3_T2.js index ddd35796995b1555f868042ef1c2496c92dc6015..da278f12bcb5e5c7cf2e1309928f45a974aef014 100644 --- a/test/built-ins/Array/S15.4.5.2_A3_T2.js +++ b/test/built-ins/Array/S15.4.5.2_A3_T2.js @@ -17,34 +17,34 @@ x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; -if (x.length !== 4) { - $ERROR('#1: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length === 4. Actual: ' + (x.length)); +if (x.length !== 4) { + $ERROR('#1: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length === 4. Actual: ' + (x.length)); } //CHECK#2 -if (x[5] !== undefined) { +if (x[5] !== undefined) { $ERROR('#2: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x[5] === undefined. Actual: ' + (x[5])); } //CHECK#3 -if (x[3] !== 3) { +if (x[3] !== 3) { $ERROR('#3: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x[3] === 3. Actual: ' + (x[3])); } //CHECK#4 x.length = new Number(6); -if (x[5] !== undefined) { +if (x[5] !== undefined) { $ERROR('#4: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length = new Number(6); x[5] === undefined. Actual: ' + (x[5])); } //CHECK#5 x.length = 0; -if (x[0] !== undefined) { +if (x[0] !== undefined) { $ERROR('#5: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length = new Number(6); x.length = 0; x[0] === undefined. Actual: ' + (x[0])); } //CHECK#6 x.length = 1; -if (x[1] !== undefined) { +if (x[1] !== undefined) { $ERROR('#6: x = []; x[1] = 1; x[3] = 3; x[5] = 5; x.length = 4; x.length = new Number(6); x.length = 0; x.length = 1; x[1] === undefined. Actual: ' + (x[1])); } diff --git a/test/built-ins/Array/S15.4.5.2_A3_T3.js b/test/built-ins/Array/S15.4.5.2_A3_T3.js index 6d7eb65791605eb2d87b7dcb07b1635bc48c135d..5b3f13f36958740e79fee0eea177aaf49483d375 100644 --- a/test/built-ins/Array/S15.4.5.2_A3_T3.js +++ b/test/built-ins/Array/S15.4.5.2_A3_T3.js @@ -12,8 +12,8 @@ description: "[[Put]] (length, 4294967296)" //CHECK#1 var x = []; x.length = 4294967295; -if (x.length !== 4294967295) { - $ERROR('#1: x = []; x.length = 4294967295; x.length === 4294967295'); +if (x.length !== 4294967295) { + $ERROR('#1: x = []; x.length = 4294967295; x.length === 4294967295'); } //CHECK#2 @@ -21,8 +21,8 @@ try { x = []; x.length = 4294967296; $ERROR('#2.1: x = []; x.length = 4294967296 throw RangeError. Actual: x.length === ' + (x.length)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#2.2: x = []; x.length = 4294967296 throw RangeError. Actual: ' + (e)); - } + } } diff --git a/test/built-ins/Array/S15.4_A1.1_T10.js b/test/built-ins/Array/S15.4_A1.1_T10.js index 95ab3851b923ce353b4761a020794bce6696e69e..c2d6d3a75e8d95ec3374a3630bb43897d89697c4 100644 --- a/test/built-ins/Array/S15.4_A1.1_T10.js +++ b/test/built-ins/Array/S15.4_A1.1_T10.js @@ -14,7 +14,7 @@ var x = []; var k = 1; for (var i = 0; i < 32; i++) { k = k * 2; - x[k - 2] = k; + x[k - 2] = k; } k = 1; @@ -22,5 +22,5 @@ for (i = 0; i < 32; i++) { k = k * 2; if (x[k - 2] !== k) { $ERROR('#' + (k - 2) + ': '); - } + } } diff --git a/test/built-ins/Array/S15.4_A1.1_T4.js b/test/built-ins/Array/S15.4_A1.1_T4.js index 74c053efcd849c0983ff87f946ae0f609608def7..fa5dff3e1376ddaaf72ad4d9b8e1e0b31b126aaf 100644 --- a/test/built-ins/Array/S15.4_A1.1_T4.js +++ b/test/built-ins/Array/S15.4_A1.1_T4.js @@ -13,12 +13,12 @@ description: Checking for string primitive var x = []; x["0"] = 0; if (x[0] !== 0) { - $ERROR('#1: x = []; x["0"] = 0; x[0] === 0. Actual: ' + (x[0])); -} + $ERROR('#1: x = []; x["0"] = 0; x[0] === 0. Actual: ' + (x[0])); +} //CHECK#2 var y = []; y["1"] = 1; if (y[1] !== 1) { - $ERROR('#2: y = []; y["1"] = 1; y[1] === 1. Actual: ' + (y[1])); + $ERROR('#2: y = []; y["1"] = 1; y[1] === 1. Actual: ' + (y[1])); } diff --git a/test/built-ins/Array/S15.4_A1.1_T5.js b/test/built-ins/Array/S15.4_A1.1_T5.js index 1a2a3e63bc3f5541a69f7f7ad0036c0351b5020d..7c5f208763043f39c1751cdf773a010134f47f19 100644 --- a/test/built-ins/Array/S15.4_A1.1_T5.js +++ b/test/built-ins/Array/S15.4_A1.1_T5.js @@ -13,22 +13,22 @@ description: Checking for null and undefined var x = []; x[null] = 0; if (x[0] !== undefined) { - $ERROR('#1: x = []; x[null] = 1; x[0] === undefined. Actual: ' + (x[0])); + $ERROR('#1: x = []; x[null] = 1; x[0] === undefined. Actual: ' + (x[0])); } //CHECK#2 if (x["null"] !== 0) { - $ERROR('#2: x = []; x[null] = 1; x["null"] === 0. Actual: ' + (x["null"])); + $ERROR('#2: x = []; x[null] = 1; x["null"] === 0. Actual: ' + (x["null"])); } //CHECK#3 var y = []; y[undefined] = 0; if (y[0] !== undefined) { - $ERROR('#3: y = []; y[undefined] = 0; y[0] === undefined. Actual: ' + (y[0])); + $ERROR('#3: y = []; y[undefined] = 0; y[0] === undefined. Actual: ' + (y[0])); } //CHECK#4 if (y["undefined"] !== 0) { - $ERROR('#4: y = []; y[undefined] = 1; y["undefined"] === 0. Actual: ' + (y["undefined"])); + $ERROR('#4: y = []; y[undefined] = 1; y["undefined"] === 0. Actual: ' + (y["undefined"])); } diff --git a/test/built-ins/Array/S15.4_A1.1_T6.js b/test/built-ins/Array/S15.4_A1.1_T6.js index 8b0478706859b0627ee15db3a28ea205497da4a1..7aaf2b628e26d88f7c67101755aa3c61f76d8ad1 100644 --- a/test/built-ins/Array/S15.4_A1.1_T6.js +++ b/test/built-ins/Array/S15.4_A1.1_T6.js @@ -13,21 +13,21 @@ description: Checking for Boolean object var x = []; x[new Boolean(true)] = 1; if (x[1] !== undefined) { - $ERROR('#1: x = []; x[new Boolean(true)] = 1; x[1] === undefined. Actual: ' + (x[1])); + $ERROR('#1: x = []; x[new Boolean(true)] = 1; x[1] === undefined. Actual: ' + (x[1])); } //CHECK#2 if (x["true"] !== 1) { - $ERROR('#2: x = []; x[true] = 1; x["true"] === 1. Actual: ' + (x["true"])); + $ERROR('#2: x = []; x[true] = 1; x["true"] === 1. Actual: ' + (x["true"])); } //CHECK#3 x[new Boolean(false)] = 0; if (x[0] !== undefined) { - $ERROR('#3: x = []; x[true] = 1; x[new Boolean(false)] = 0; x[0] === undefined. Actual: ' + (x[0])); + $ERROR('#3: x = []; x[true] = 1; x[new Boolean(false)] = 0; x[0] === undefined. Actual: ' + (x[0])); } //CHECK#4 if (x["false"] !== 0) { - $ERROR('#4: x = []; x[false] = 1; x["false"] === 0. Actual: ' + (x["false"])); + $ERROR('#4: x = []; x[false] = 1; x["false"] === 0. Actual: ' + (x["false"])); } diff --git a/test/built-ins/Array/S15.4_A1.1_T7.js b/test/built-ins/Array/S15.4_A1.1_T7.js index a7a3a3caf5782ebc3b537d34bfc29899aeb12482..de1f1cd0ac62ebda8df22db1c04fd5b48d177166 100644 --- a/test/built-ins/Array/S15.4_A1.1_T7.js +++ b/test/built-ins/Array/S15.4_A1.1_T7.js @@ -13,19 +13,19 @@ description: Checking for Number object var x = []; x[new Number(0)] = 0; if (x[0] !== 0) { - $ERROR('#1: x = []; x[new Number(0)] = 0; x[0] === 0. Actual: ' + (x[0])); -} + $ERROR('#1: x = []; x[new Number(0)] = 0; x[0] === 0. Actual: ' + (x[0])); +} //CHECK#2 var y = []; y[new Number(1)] = 1; if (y[1] !== 1) { - $ERROR('#2: y = []; y[new Number(1)] = 1; y[1] === 1. Actual: ' + (y[1])); + $ERROR('#2: y = []; y[new Number(1)] = 1; y[1] === 1. Actual: ' + (y[1])); } //CHECK#3 var z = []; z[new Number(1.1)] = 1; if (z["1.1"] !== 1) { - $ERROR('#3: z = []; z[new Number(1.1)] = 1; z["1.1"] === 1. Actual: ' + (z["1.1"])); + $ERROR('#3: z = []; z[new Number(1.1)] = 1; z["1.1"] === 1. Actual: ' + (z["1.1"])); } diff --git a/test/built-ins/Array/S15.4_A1.1_T8.js b/test/built-ins/Array/S15.4_A1.1_T8.js index 3036b8acc3453e6c321137c1a6bff3b24ddefebd..349c592ee3e45c8b5a42c7465091d6e4af98d674 100644 --- a/test/built-ins/Array/S15.4_A1.1_T8.js +++ b/test/built-ins/Array/S15.4_A1.1_T8.js @@ -13,19 +13,19 @@ description: Checking for Number object var x = []; x[new String("0")] = 0; if (x[0] !== 0) { - $ERROR('#1: x = []; x[new String("0")] = 0; x[0] === 0. Actual: ' + (x[0])); -} + $ERROR('#1: x = []; x[new String("0")] = 0; x[0] === 0. Actual: ' + (x[0])); +} //CHECK#2 var y = []; y[new String("1")] = 1; if (y[1] !== 1) { - $ERROR('#2: y = []; y[new String("1")] = 1; y[1] === 1. Actual: ' + (y[1])); + $ERROR('#2: y = []; y[new String("1")] = 1; y[1] === 1. Actual: ' + (y[1])); } //CHECK#3 var z = []; z[new String("1.1")] = 1; if (z["1.1"] !== 1) { - $ERROR('#3: z = []; z[new String("1.1")] = 1; z["1.1"] === 1. Actual: ' + (z["1.1"])); + $ERROR('#3: z = []; z[new String("1.1")] = 1; z["1.1"] === 1. Actual: ' + (z["1.1"])); } diff --git a/test/built-ins/Array/S15.4_A1.1_T9.js b/test/built-ins/Array/S15.4_A1.1_T9.js index 645a512eebd6314243c4c2118f764807538dbfe8..ec8acc45a3f175927b5f779fe962390211f1d26c 100644 --- a/test/built-ins/Array/S15.4_A1.1_T9.js +++ b/test/built-ins/Array/S15.4_A1.1_T9.js @@ -11,7 +11,11 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) //CHECK#1 var x = []; -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; x[object] = 0; if (x["[object Object]"] !== 0) { $ERROR('#1: x = []; var object = {valueOf: function() {return 1}}; x[object] = 0; x["[object Object]"] === 0. Actual: ' + (x["[object Object]"])); @@ -19,15 +23,29 @@ if (x["[object Object]"] !== 0) { //CHECK#2 x = []; -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; x[object] = 0; if (x[0] !== 0) { $ERROR('#2: x = []; var object = {valueOf: function() {return 1}, toString: function() {return 0}}; x[object] = 0; x[0] === 0. Actual: ' + (x[0])); -} +} //CHECK#3 x = []; -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; x[object] = 0; if (x[1] !== 0) { $ERROR('#3: x = []; var object = {valueOf: function() {return 1}, toString: function() {return {}}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1])); @@ -35,8 +53,15 @@ if (x[1] !== 0) { //CHECK#4 try { - x = []; - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + x = []; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; x[object] = 0; if (x[1] !== 0) { $ERROR('#4.1: x = []; var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; x[object] = 0; x[1] === 1. Actual: ' + (x[1])); @@ -52,7 +77,11 @@ catch (e) { //CHECK#5 x = []; -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; x[object] = 0; if (x[1] !== 0) { $ERROR('#5: x = []; var object = {toString: function() {return 1}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1])); @@ -60,7 +89,14 @@ if (x[1] !== 0) { //CHECK#6 x = []; -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} x[object] = 0; if (x[1] !== 0) { $ERROR('#6: x = []; var object = {valueOf: function() {return {}}, toString: function() {return 1}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1])); @@ -69,25 +105,39 @@ if (x[1] !== 0) { //CHECK#7 try { x = []; - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; - x[object]; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; + x[object]; $ERROR('#7.1: x = []; var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; x[object] throw "error". Actual: ' + (x[object])); -} +} catch (e) { if (e !== "error") { $ERROR('#7.2: x = []; var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; x[object] throw "error". Actual: ' + (e)); - } + } } //CHECK#8 try { x = []; - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; x[object]; $ERROR('#8.1: x = []; var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x[object] throw TypeError. Actual: ' + (x[object])); -} +} catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#8.2: x = []; var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x[object] throw TypeError. Actual: ' + (e)); - } + } } diff --git a/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js b/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js index 4718751cb22071b080f617db24108649a6977303..311bc7780fcf9c0aab1feb0284d8c717acc9b201 100644 --- a/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js +++ b/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js @@ -28,7 +28,9 @@ function MyCollection() { this.args = arguments; } -result = Array.from.call(MyCollection, {length: 42}); +result = Array.from.call(MyCollection, { + length: 42 +}); assert.sameValue(result.args.length, 1); assert.sameValue(result.args[0], 42); diff --git a/test/built-ins/Array/from/calling-from-valid-1-noStrict.js b/test/built-ins/Array/from/calling-from-valid-1-noStrict.js index 201736051e71215732d2563d9ae6e922f43b65d0..eb0d24aa449c49c8d84727829dd60638825c4f3f 100644 --- a/test/built-ins/Array/from/calling-from-valid-1-noStrict.js +++ b/test/built-ins/Array/from/calling-from-valid-1-noStrict.js @@ -34,7 +34,7 @@ var list = { }; var calls = []; -function mapFn (value) { +function mapFn(value) { calls.push({ args: arguments, thisArg: this diff --git a/test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js b/test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js index 8415045f778805b3031a87ffdbb24533857eabfa..68abe0f44a1ef8def538ed7d4337987cc17761d7 100644 --- a/test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js +++ b/test/built-ins/Array/from/calling-from-valid-1-onlyStrict.js @@ -34,7 +34,7 @@ var list = { }; var calls = []; -function mapFn (value) { +function mapFn(value) { calls.push({ args: arguments, thisArg: this diff --git a/test/built-ins/Array/from/calling-from-valid-2.js b/test/built-ins/Array/from/calling-from-valid-2.js index 50be8469c804a9bd1d9dcdc33a52266f9469669f..139c9818c1216fc69d753bf38f460df5274b1c15 100644 --- a/test/built-ins/Array/from/calling-from-valid-2.js +++ b/test/built-ins/Array/from/calling-from-valid-2.js @@ -35,7 +35,7 @@ var list = { var calls = []; var thisArg = {}; -function mapFn (value) { +function mapFn(value) { calls.push({ args: arguments, thisArg: this diff --git a/test/built-ins/Array/from/elements-added-after.js b/test/built-ins/Array/from/elements-added-after.js index 9aafe597ac2c8e1b9bdfd8990004659274e886a8..a8ff21a0c1aa1d01eaa21ad3421e0880938687d1 100644 --- a/test/built-ins/Array/from/elements-added-after.js +++ b/test/built-ins/Array/from/elements-added-after.js @@ -10,23 +10,24 @@ es6id: 22.1.2.1 var arrayIndex = -1; var originalLength = 7; var obj = { - length: originalLength, - 0: 2, - 1: 4, - 2: 8, - 3: 16, - 4: 32, - 5: 64, - 6: 128 + length: originalLength, + 0: 2, + 1: 4, + 2: 8, + 3: 16, + 4: 32, + 5: 64, + 6: 128 }; -var array = [ 2, 4, 8, 16, 32, 64, 128 ]; +var array = [2, 4, 8, 16, 32, 64, 128]; + function mapFn(value, index) { - arrayIndex++; - assert.sameValue(value, obj[arrayIndex], "Value mismatch in mapFn at index " + index + "."); - assert.sameValue(index, arrayIndex, "Index mismatch in mapFn."); - obj[originalLength + arrayIndex] = 2 * arrayIndex + 1; + arrayIndex++; + assert.sameValue(value, obj[arrayIndex], "Value mismatch in mapFn at index " + index + "."); + assert.sameValue(index, arrayIndex, "Index mismatch in mapFn."); + obj[originalLength + arrayIndex] = 2 * arrayIndex + 1; - return obj[arrayIndex]; + return obj[arrayIndex]; } @@ -34,5 +35,5 @@ var a = Array.from(obj, mapFn); assert.sameValue(a.length, array.length, "Length mismatch."); for (var j = 0; j < a.length; j++) { - assert.sameValue(a[j], array[j], "Element mismatch for array at index " + j + "."); + assert.sameValue(a[j], array[j], "Element mismatch for array at index " + j + "."); } diff --git a/test/built-ins/Array/from/elements-deleted-after.js b/test/built-ins/Array/from/elements-deleted-after.js index d2d72e51e6fdacd896af5736940d2ce8e2d28bbd..02f7453293a2ee75cb0c19116b02cbd1836e831b 100644 --- a/test/built-ins/Array/from/elements-deleted-after.js +++ b/test/built-ins/Array/from/elements-deleted-after.js @@ -9,17 +9,18 @@ esid: sec-array.from es6id: 22.1.2.1 ---*/ -var originalArray = [ 0, 1, -2, 4, -8, 16 ]; -var array = [ 0, 1, -2, 4, -8, 16 ]; +var originalArray = [0, 1, -2, 4, -8, 16]; +var array = [0, 1, -2, 4, -8, 16]; var a = []; var arrayIndex = -1; + function mapFn(value, index) { - this.arrayIndex++; - assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + "."); - assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn."); + this.arrayIndex++; + assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + "."); + assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn."); - array.splice(array.length - 1, 1); - return 127; + array.splice(array.length - 1, 1); + return 127; } @@ -28,5 +29,5 @@ a = Array.from(array, mapFn, this); assert.sameValue(a.length, originalArray.length / 2, "Length mismatch. Old array : " + (originalArray.length / 2) + ". array : " + a.length + "."); for (var j = 0; j < originalArray.length / 2; j++) { - assert.sameValue(a[j], 127, "Element mismatch for mapped array at index " + j + "."); + assert.sameValue(a[j], 127, "Element mismatch for mapped array at index " + j + "."); } diff --git a/test/built-ins/Array/from/elements-updated-after.js b/test/built-ins/Array/from/elements-updated-after.js index 6c859e23accaa947bb85e903b366152ae1f0110e..358e94b46e19a618fa219e0c214a6572a50c8609 100644 --- a/test/built-ins/Array/from/elements-updated-after.js +++ b/test/built-ins/Array/from/elements-updated-after.js @@ -7,21 +7,22 @@ esid: sec-array.from es6id: 22.1.2.1 ---*/ -var array = [ 127, 4, 8, 16, 32, 64, 128 ]; +var array = [127, 4, 8, 16, 32, 64, 128]; var arrayIndex = -1; + function mapFn(value, index) { - arrayIndex++; - if (index + 1 < array.length) { - array[index + 1] = 127; - } - assert.sameValue(value, 127, "Value mismatch in mapFn at index " + index + "."); - assert.sameValue(index, arrayIndex, "Index mismatch in mapFn."); + arrayIndex++; + if (index + 1 < array.length) { + array[index + 1] = 127; + } + assert.sameValue(value, 127, "Value mismatch in mapFn at index " + index + "."); + assert.sameValue(index, arrayIndex, "Index mismatch in mapFn."); - return value; + return value; } var a = Array.from(array, mapFn); assert.sameValue(a.length, array.length, "Length mismatch."); for (var j = 0; j < a.length; j++) { - assert.sameValue(a[j], 127, "Element mismatch for mapped array."); + assert.sameValue(a[j], 127, "Element mismatch for mapped array."); } diff --git a/test/built-ins/Array/from/iter-cstm-ctor.js b/test/built-ins/Array/from/iter-cstm-ctor.js index dfd64566fcd807491de30f8944ad2a04e58c8673..d9a137695d134e57d77fa3adc723e1502f92a192 100644 --- a/test/built-ins/Array/from/iter-cstm-ctor.js +++ b/test/built-ins/Array/from/iter-cstm-ctor.js @@ -27,7 +27,9 @@ var items = {}; items[Symbol.iterator] = function() { return { next: function() { - return { done: true }; + return { + done: true + }; } }; }; diff --git a/test/built-ins/Array/from/iter-map-fn-args.js b/test/built-ins/Array/from/iter-map-fn-args.js index f63fec612f221f30ee432d3c32de3d413c495f64..56097d708c46effd286aa2a5d268259b664833c6 100644 --- a/test/built-ins/Array/from/iter-map-fn-args.js +++ b/test/built-ins/Array/from/iter-map-fn-args.js @@ -26,8 +26,14 @@ features: [Symbol.iterator] ---*/ var args = []; -var firstResult = { done: false, value: {} }; -var secondResult = { done: false, value: {} }; +var firstResult = { + done: false, + value: {} +}; +var secondResult = { + done: false, + value: {} +}; var mapFn = function(value, idx) { args.push(arguments); }; @@ -40,7 +46,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-map-fn-return.js b/test/built-ins/Array/from/iter-map-fn-return.js index 58e175048f718652177d5ddb85990605f8606c51..484ce71746e3335c8a7e1de8b8535a6a6259cee7 100644 --- a/test/built-ins/Array/from/iter-map-fn-return.js +++ b/test/built-ins/Array/from/iter-map-fn-return.js @@ -25,8 +25,14 @@ features: [Symbol.iterator] ---*/ var thisVals = []; -var nextResult = { done: false, value: {} }; -var nextNextResult = { done: false, value: {} }; +var nextResult = { + done: false, + value: {} +}; +var nextNextResult = { + done: false, + value: {} +}; var firstReturnVal = {}; var secondReturnVal = {}; var mapFn = function(value, idx) { @@ -45,7 +51,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-map-fn-this-arg.js b/test/built-ins/Array/from/iter-map-fn-this-arg.js index 5e12157bb3506eb45c4e90c6d98c126bad74dc22..d10e9f8626766de2b3dfc1a62abb63dd68602aea 100644 --- a/test/built-ins/Array/from/iter-map-fn-this-arg.js +++ b/test/built-ins/Array/from/iter-map-fn-this-arg.js @@ -23,8 +23,14 @@ features: [Symbol.iterator] ---*/ var thisVals = []; -var nextResult = { done: false, value: {} }; -var nextNextResult = { done: false, value: {} }; +var nextResult = { + done: false, + value: {} +}; +var nextNextResult = { + done: false, + value: {} +}; var mapFn = function() { thisVals.push(this); }; @@ -36,7 +42,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-map-fn-this-non-strict.js b/test/built-ins/Array/from/iter-map-fn-this-non-strict.js index 81022307aa4fc7da70c9b6edec07e0caf0853254..0bb30453eaa2936052020f152a42f17318502ef3 100644 --- a/test/built-ins/Array/from/iter-map-fn-this-non-strict.js +++ b/test/built-ins/Array/from/iter-map-fn-this-non-strict.js @@ -24,20 +24,30 @@ flags: [noStrict] ---*/ var thisVals = []; -var nextResult = { done: false, value: {} }; -var nextNextResult = { done: false, value: {} }; +var nextResult = { + done: false, + value: {} +}; +var nextNextResult = { + done: false, + value: {} +}; var mapFn = function() { thisVals.push(this); }; var items = {}; -var global = function() { return this; }(); +var global = function() { + return this; +}(); items[Symbol.iterator] = function() { return { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-map-fn-this-strict.js b/test/built-ins/Array/from/iter-map-fn-this-strict.js index cfe576a5bbac094066056d8180303ad68b441b70..d9a62dabc2ee56d8f6bbc00b3f7edfa8b169d0f8 100644 --- a/test/built-ins/Array/from/iter-map-fn-this-strict.js +++ b/test/built-ins/Array/from/iter-map-fn-this-strict.js @@ -24,8 +24,14 @@ flags: [onlyStrict] ---*/ var thisVals = []; -var nextResult = { done: false, value: {} }; -var nextNextResult = { done: false, value: {} }; +var nextResult = { + done: false, + value: {} +}; +var nextNextResult = { + done: false, + value: {} +}; var mapFn = function() { thisVals.push(this); }; @@ -36,7 +42,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-set-elem-prop-err.js b/test/built-ins/Array/from/iter-set-elem-prop-err.js index 07f2c59422e94b849234b834c49ddd51764522b8..2f23b4f0cfdabfca0bae398af2fbafdbcb2067e6 100644 --- a/test/built-ins/Array/from/iter-set-elem-prop-err.js +++ b/test/built-ins/Array/from/iter-set-elem-prop-err.js @@ -18,11 +18,15 @@ features: [Symbol.iterator] ---*/ var C = function() { - Object.defineProperty(this, '0', { configurable: false }); + Object.defineProperty(this, '0', { + configurable: false + }); }; var closeCount = 0; var items = {}; -var nextResult = { done: false }; +var nextResult = { + done: false +}; items[Symbol.iterator] = function() { return { @@ -32,7 +36,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; - nextResult = { done: true }; + nextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-set-elem-prop.js b/test/built-ins/Array/from/iter-set-elem-prop.js index 7658bdd13c60eb4fe602b21c1c05062fa6cb7863..6f56116dbfd509d0cc0ecb7e9a17dd9d6032ac13 100644 --- a/test/built-ins/Array/from/iter-set-elem-prop.js +++ b/test/built-ins/Array/from/iter-set-elem-prop.js @@ -16,9 +16,18 @@ features: [Symbol.iterator] ---*/ var items = {}; -var firstIterResult = { done: false, value: {} }; -var secondIterResult = { done: false, value: {} }; -var thirdIterResult = { done: true, value: {} }; +var firstIterResult = { + done: false, + value: {} +}; +var secondIterResult = { + done: false, + value: {} +}; +var thirdIterResult = { + done: true, + value: {} +}; var nextIterResult = firstIterResult; var nextNextIterResult = secondIterResult; var result; diff --git a/test/built-ins/Array/from/iter-set-length-err.js b/test/built-ins/Array/from/iter-set-length-err.js index d15631db9bcc9990d5750e809b958a5153a7eaec..4cd0e0001af185febbe5afcd34e6946862429354 100644 --- a/test/built-ins/Array/from/iter-set-length-err.js +++ b/test/built-ins/Array/from/iter-set-length-err.js @@ -25,7 +25,11 @@ Object.defineProperty(C.prototype, 'length', { }); items[Symbol.iterator] = function() { return { - next: function() { return { done: true }; } + next: function() { + return { + done: true + }; + } }; }; diff --git a/test/built-ins/Array/from/iter-set-length.js b/test/built-ins/Array/from/iter-set-length.js index ab0e221bf6706024de9b06fc56a10cc8714d7d3d..c00ac5698f0a87258ee7ca940bcd23751910fe13 100644 --- a/test/built-ins/Array/from/iter-set-length.js +++ b/test/built-ins/Array/from/iter-set-length.js @@ -29,13 +29,19 @@ items[Symbol.iterator] = function() { }; }; -nextIterResult = lastIterResult = { done: true }; +nextIterResult = lastIterResult = { + done: true +}; result = Array.from(items); assert.sameValue(result.length, 0); -nextIterResult = { done: false }; -lastIterResult = { done: true }; +nextIterResult = { + done: false +}; +lastIterResult = { + done: true +}; result = Array.from(items); assert.sameValue(result.length, 1); diff --git a/test/built-ins/Array/from/mapfn-throws-exception.js b/test/built-ins/Array/from/mapfn-throws-exception.js index a655126726e7102f9d52aa78747df289e5aaf9b2..a87898bf853ae697cab5742e83e9e31561df47c2 100644 --- a/test/built-ins/Array/from/mapfn-throws-exception.js +++ b/test/built-ins/Array/from/mapfn-throws-exception.js @@ -7,9 +7,12 @@ esid: sec-array.from es6id: 22.1.2.1 ---*/ -var array = [ 2, 4, 8, 16, 32, 64, 128 ]; +var array = [2, 4, 8, 16, 32, 64, 128]; + function mapFn(value, index, obj) { - throw new Test262Error(); + throw new Test262Error(); } -assert.throws(Test262Error, function(){Array.from(array, mapFn);}); +assert.throws(Test262Error, function() { + Array.from(array, mapFn); +}); diff --git a/test/built-ins/Array/from/source-array-boundary.js b/test/built-ins/Array/from/source-array-boundary.js index 4c0587a3203b676e29bb1b248af20e32f1ac9f11..9dad81729358733781d37ab4b6115ce1519e6058 100644 --- a/test/built-ins/Array/from/source-array-boundary.js +++ b/test/built-ins/Array/from/source-array-boundary.js @@ -7,14 +7,15 @@ esid: sec-array.from es6id: 22.1.2.1 ---*/ -var array = [ Number.MAX_VALUE, Number.MIN_VALUE, Number.NaN, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY ]; +var array = [Number.MAX_VALUE, Number.MIN_VALUE, Number.NaN, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY]; var arrayIndex = -1; + function mapFn(value, index) { - this.arrayIndex++; - assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + "."); - assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn."); + this.arrayIndex++; + assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + "."); + assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn."); - return value; + return value; } var a = Array.from(array, mapFn, this); diff --git a/test/built-ins/Array/from/source-object-iterator-1.js b/test/built-ins/Array/from/source-object-iterator-1.js index 94834b5cf023256ac7e68b5a8a73df5aae5436c2..6ac364ac5411983543891dd7d36056c9d1283aad 100644 --- a/test/built-ins/Array/from/source-object-iterator-1.js +++ b/test/built-ins/Array/from/source-object-iterator-1.js @@ -8,23 +8,25 @@ es6id: 22.1.2.1 features: [Symbol.iterator] ---*/ -var array = [ 2, 4, 8, 16, 32, 64, 128 ]; +var array = [2, 4, 8, 16, 32, 64, 128]; var obj = { - [Symbol.iterator]() { - return { - index: 0, - next() { - throw new Test262Error(); - }, - isDone : false, - get val() { - this.index++; - if (this.index > 7) { - this.isDone = true; - } - return 1 << this.index; - } - }; - } + [Symbol.iterator]() { + return { + index: 0, + next() { + throw new Test262Error(); + }, + isDone: false, + get val() { + this.index++; + if (this.index > 7) { + this.isDone = true; + } + return 1 << this.index; + } + }; + } }; -assert.throws(Test262Error, function(){Array.from(obj);}); +assert.throws(Test262Error, function() { + Array.from(obj); +}); diff --git a/test/built-ins/Array/from/source-object-iterator-2.js b/test/built-ins/Array/from/source-object-iterator-2.js index 9bcd57053783dd04c0ffcc3fda61dbb836eefc01..619405c34778faec13eb64144f980057bab2d082 100644 --- a/test/built-ins/Array/from/source-object-iterator-2.js +++ b/test/built-ins/Array/from/source-object-iterator-2.js @@ -8,30 +8,30 @@ es6id: 22.1.2.1 features: [Symbol.iterator] ---*/ -var array = [ 2, 4, 8, 16, 32, 64, 128 ]; +var array = [2, 4, 8, 16, 32, 64, 128]; var obj = { - [Symbol.iterator]() { + [Symbol.iterator]() { + return { + index: 0, + next() { return { - index: 0, - next() { - return { - value: this.val, - done: this.isDone - }; - }, - isDone : false, - get val() { - this.index++; - if (this.index > 7) { - this.isDone = true; - } - return 1 << this.index; - } + value: this.val, + done: this.isDone }; - } + }, + isDone: false, + get val() { + this.index++; + if (this.index > 7) { + this.isDone = true; + } + return 1 << this.index; + } + }; + } }; var a = Array.from.call(Object, obj); assert.sameValue(typeof a, typeof {}, "The returned type is expected to be object."); for (var j = 0; j < a.length; j++) { - assert.sameValue(a[j], array[j], "Elements mismatch at " + j + "."); + assert.sameValue(a[j], array[j], "Elements mismatch at " + j + "."); } diff --git a/test/built-ins/Array/from/source-object-length.js b/test/built-ins/Array/from/source-object-length.js index 75c46dfc4ba6dbf8fc89b1125f50cd0a2bd78820..4127f5ec07195a9122ad41d6eb116f990ebffae0 100644 --- a/test/built-ins/Array/from/source-object-length.js +++ b/test/built-ins/Array/from/source-object-length.js @@ -12,14 +12,14 @@ es6id: 22.1.2.1 var array = [2, 4, 0, 16]; var expectedArray = [2, 4, , 16]; var obj = { - length : 4, - 0 : 2, - 1 : 4, - 2 : 0, - 3 : 16 + length: 4, + 0: 2, + 1: 4, + 2: 0, + 3: 16 }; delete obj[2]; var a = Array.from(obj); for (var j = 0; j < expectedArray.length; j++) { - assert.sameValue(a[j], expectedArray[j], "Elements mismatch at " + j + "."); + assert.sameValue(a[j], expectedArray[j], "Elements mismatch at " + j + "."); } diff --git a/test/built-ins/Array/from/source-object-missing.js b/test/built-ins/Array/from/source-object-missing.js index ad5a6055dc7ed755f0b25172b1c908f8e74e7ba9..3c55030dac798d4a3ee2209b9163ce471a8a8822 100644 --- a/test/built-ins/Array/from/source-object-missing.js +++ b/test/built-ins/Array/from/source-object-missing.js @@ -9,14 +9,14 @@ es6id: 22.1.2.1 var array = [2, 4, , 16]; var obj = { - length: 4, - 0: 2, - 1: 4, - 3: 16 + length: 4, + 0: 2, + 1: 4, + 3: 16 }; var a = Array.from.call(Object, obj); assert.sameValue(typeof a, "object", "The returned type is expected to be object."); for (var j = 0; j < a.length; j++) { - assert.sameValue(a[j], array[j], "Elements mismatch at " + j + "."); + assert.sameValue(a[j], array[j], "Elements mismatch at " + j + "."); } diff --git a/test/built-ins/Array/from/source-object-without.js b/test/built-ins/Array/from/source-object-without.js index 96ec31c25a7258729905399f28007ba8142f79f4..fbb1877822392990964020913124ce1f829f552c 100644 --- a/test/built-ins/Array/from/source-object-without.js +++ b/test/built-ins/Array/from/source-object-without.js @@ -8,10 +8,10 @@ es6id: 22.1.2.1 ---*/ var obj = { - 0: 2, - 1: 4, - 2: 8, - 3: 16 + 0: 2, + 1: 4, + 2: 8, + 3: 16 } var a = Array.from(obj); diff --git a/test/built-ins/Array/isArray/15.4.3.2-0-4.js b/test/built-ins/Array/isArray/15.4.3.2-0-4.js index f422cc1442d2ae1f953a2b586e3b02f4544f4c66..79302299fb07b5f53a7334268d1f4e39d1a4a523 100644 --- a/test/built-ins/Array/isArray/15.4.3.2-0-4.js +++ b/test/built-ins/Array/isArray/15.4.3.2-0-4.js @@ -7,12 +7,12 @@ es5id: 15.4.3.2-0-4 description: Array.isArray return false if its argument is not an Array ---*/ -var b_num = Array.isArray(42); +var b_num = Array.isArray(42); var b_undef = Array.isArray(undefined); -var b_bool = Array.isArray(true); -var b_str = Array.isArray("abc"); -var b_obj = Array.isArray({}); -var b_null = Array.isArray(null); +var b_bool = Array.isArray(true); +var b_str = Array.isArray("abc"); +var b_obj = Array.isArray({}); +var b_null = Array.isArray(null); assert.sameValue(b_num, false, 'b_num'); diff --git a/test/built-ins/Array/isArray/15.4.3.2-1-13.js b/test/built-ins/Array/isArray/15.4.3.2-1-13.js index 9a55d9a0c6cdcd489a759711673f339a7f204c43..cbc0721a670bd738ef9678c3907f8be0d229fec3 100644 --- a/test/built-ins/Array/isArray/15.4.3.2-1-13.js +++ b/test/built-ins/Array/isArray/15.4.3.2-1-13.js @@ -10,7 +10,7 @@ description: Array.isArray applied to Arguments object var arg; (function fun() { - arg = arguments; + arg = arguments; }(1, 2, 3)); assert.sameValue(Array.isArray(arg), false, 'Array.isArray(arg)'); diff --git a/test/built-ins/Array/isArray/15.4.3.2-1-7.js b/test/built-ins/Array/isArray/15.4.3.2-1-7.js index 6f807595c9ef2c114692c2aa47c1b389320b7fe4..412226c33066d981becc1764a3969636e99b3bbd 100644 --- a/test/built-ins/Array/isArray/15.4.3.2-1-7.js +++ b/test/built-ins/Array/isArray/15.4.3.2-1-7.js @@ -7,4 +7,4 @@ es5id: 15.4.3.2-1-7 description: Array.isArray applied to Function object ---*/ -assert.sameValue(Array.isArray(function () { }), false, 'Array.isArray(function () { })'); +assert.sameValue(Array.isArray(function() {}), false, 'Array.isArray(function () { })'); diff --git a/test/built-ins/Array/isArray/15.4.3.2-2-1.js b/test/built-ins/Array/isArray/15.4.3.2-2-1.js index 302f9cbe8112b7f79e77bbcf0811555e5386c24a..d0a5ed7fcaea6f2cdcfb8973cdc15146ed0acf2e 100644 --- a/test/built-ins/Array/isArray/15.4.3.2-2-1.js +++ b/test/built-ins/Array/isArray/15.4.3.2-2-1.js @@ -8,7 +8,7 @@ description: Array.isArray applied to an object with an array as the prototype ---*/ var proto = []; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Array/isArray/15.4.3.2-2-2.js b/test/built-ins/Array/isArray/15.4.3.2-2-2.js index 84a6e929ea2f0aa8151167b3ee6142638fe44eae..d0bec2d46886150def4e71ba5087b54a166f1a5b 100644 --- a/test/built-ins/Array/isArray/15.4.3.2-2-2.js +++ b/test/built-ins/Array/isArray/15.4.3.2-2-2.js @@ -9,10 +9,10 @@ description: > prototype ---*/ - var proto = Array.prototype; - var Con = function () { }; - Con.prototype = proto; +var proto = Array.prototype; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); assert.sameValue(Array.isArray(child), false, 'Array.isArray(child)'); diff --git a/test/built-ins/Array/isArray/15.4.3.2-2-3.js b/test/built-ins/Array/isArray/15.4.3.2-2-3.js index 626e837206bf097f4044517aa564fbbe0ec30fb4..02da7c14310dc53b7f764c72cabbf454871220e0 100644 --- a/test/built-ins/Array/isArray/15.4.3.2-2-3.js +++ b/test/built-ins/Array/isArray/15.4.3.2-2-3.js @@ -9,4 +9,8 @@ description: > indexed properties ---*/ -assert.sameValue(Array.isArray({ 0: 12, 1: 9, length: 2 }), false, 'Array.isArray({ 0: 12, 1: 9, length: 2 })'); +assert.sameValue(Array.isArray({ + 0: 12, + 1: 9, + length: 2 +}), false, 'Array.isArray({ 0: 12, 1: 9, length: 2 })'); diff --git a/test/built-ins/Array/length/15.4.5.1-3.d-1.js b/test/built-ins/Array/length/15.4.5.1-3.d-1.js index 651cf5c1177c9481e308d2a464164ec553ae00ce..95258567205586d36711a7ae6a57476ef9bf4a08 100644 --- a/test/built-ins/Array/length/15.4.5.1-3.d-1.js +++ b/test/built-ins/Array/length/15.4.5.1-3.d-1.js @@ -11,5 +11,5 @@ description: > assert.throws(RangeError, function() { - [].length = 4294967296 ; + [].length = 4294967296; }); diff --git a/test/built-ins/Array/length/15.4.5.1-3.d-2.js b/test/built-ins/Array/length/15.4.5.1-3.d-2.js index 7e1dc6a255b063983a9f742b8fc3a0699fb5cd10..2162edb4a2cf4bad81adb4bc07cff851076d5bf0 100644 --- a/test/built-ins/Array/length/15.4.5.1-3.d-2.js +++ b/test/built-ins/Array/length/15.4.5.1-3.d-2.js @@ -11,5 +11,5 @@ description: > assert.throws(RangeError, function() { - [].length = 4294967297 ; + [].length = 4294967297; }); diff --git a/test/built-ins/Array/length/15.4.5.1-3.d-3.js b/test/built-ins/Array/length/15.4.5.1-3.d-3.js index 38e35422471a911d3a7271beced0808b079aed56..7c03867da7d8f88b3b26467bcc22882abd9c2007 100644 --- a/test/built-ins/Array/length/15.4.5.1-3.d-3.js +++ b/test/built-ins/Array/length/15.4.5.1-3.d-3.js @@ -7,7 +7,7 @@ es5id: 15.4.5.1-3.d-3 description: Set array length property to max value 4294967295 (2**32-1,) ---*/ - var a =[]; - a.length = 4294967295 ; +var a = []; +a.length = 4294967295; assert.sameValue(a.length, 4294967295, 'a.length'); diff --git a/test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js b/test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js index 0b659bf9bc6f9fa3408f05c68991066ca7e3908b..d0c216a9677286c6df33b2a53f6f099b7139ea0f 100644 --- a/test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js +++ b/test/built-ins/Array/length/S15.4.2.2_A2.2_T1.js @@ -14,7 +14,7 @@ description: Use try statement. len = -1, 4294967296, 4294967297 try { new Array(-1); $ERROR('#1.1: new Array(-1) throw RangeError. Actual: ' + (new Array(-1))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#1.2: new Array(-1) throw RangeError. Actual: ' + (e)); } @@ -24,7 +24,7 @@ try { try { new Array(4294967296); $ERROR('#2.1: new Array(4294967296) throw RangeError. Actual: ' + (new Array(4294967296))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#2.2: new Array(4294967296) throw RangeError. Actual: ' + (e)); } @@ -34,7 +34,7 @@ try { try { new Array(4294967297); $ERROR('#3.1: new Array(4294967297) throw RangeError. Actual: ' + (new Array(4294967297))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#3.2: new Array(4294967297) throw RangeError. Actual: ' + (e)); } diff --git a/test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js b/test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js index abe3b60e716e53de5dcb2f9aae99ccd871229c96..3c117d19c661024d3963836e4a25eb5014f4a0ff 100644 --- a/test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js +++ b/test/built-ins/Array/length/S15.4.2.2_A2.2_T2.js @@ -14,7 +14,7 @@ description: Use try statement. len = NaN, +/-Infinity try { new Array(NaN); $ERROR('#1.1: new Array(NaN) throw RangeError. Actual: ' + (new Array(NaN))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#1.2: new Array(NaN) throw RangeError. Actual: ' + (e)); } @@ -24,7 +24,7 @@ try { try { new Array(Number.POSITIVE_INFINITY); $ERROR('#2.1: new Array(Number.POSITIVE_INFINITY) throw RangeError. Actual: ' + (new Array(Number.POSITIVE_INFINITY))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#2.2: new Array(Number.POSITIVE_INFINITY) throw RangeError. Actual: ' + (e)); } @@ -34,7 +34,7 @@ try { try { new Array(Number.NEGATIVE_INFINITY); $ERROR('#3.1: new Array(Number.NEGATIVE_INFINITY) throw RangeError. Actual: ' + (new Array(Number.NEGATIVE_INFINITY))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#3.2: new Array(Number.NEGATIVE_INFINITY) throw RangeError. Actual: ' + (e)); } diff --git a/test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js b/test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js index 9822c925c3a338bc8638e719d305938b5efe3d2c..6cd213037255323632db0156b0c4e4682f623c8b 100644 --- a/test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js +++ b/test/built-ins/Array/length/S15.4.2.2_A2.2_T3.js @@ -14,7 +14,7 @@ description: Use try statement. len = 1.5, Number.MAX_VALUE, Number.MIN_VALUE try { new Array(1.5); $ERROR('#1.1: new Array(1.5) throw RangeError. Actual: ' + (new Array(1.5))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#1.2: new Array(1.5) throw RangeError. Actual: ' + (e)); } @@ -24,7 +24,7 @@ try { try { new Array(Number.MAX_VALUE); $ERROR('#2.1: new Array(Number.MAX_VALUE) throw RangeError. Actual: ' + (new Array(Number.MAX_VALUE))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#2.2: new Array(Number.MAX_VALUE) throw RangeError. Actual: ' + (e)); } @@ -34,7 +34,7 @@ try { try { new Array(Number.MIN_VALUE); $ERROR('#3.1: new Array(Number.MIN_VALUE) throw RangeError. Actual: ' + (new Array(Number.MIN_VALUE))); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#3.2: new Array(Number.MIN_VALUE) throw RangeError. Actual: ' + (e)); } diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js b/test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js index 7435827c66f9ee4cf077ae77065d13556998e3e3..c09ba6e72fb594d26f2a6a22199e4e1fdb0aa62c 100644 --- a/test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js +++ b/test/built-ins/Array/length/S15.4.5.1_A1.1_T1.js @@ -13,7 +13,7 @@ try { var x = []; x.length = 4294967296; $ERROR('#1.1: x = []; x.length = 4294967296 throw RangeError. Actual: x.length === ' + (x.length)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#1.2: x = []; x.length = 4294967296 throw RangeError. Actual: ' + (e)); } @@ -24,7 +24,7 @@ try { x = []; x.length = -1; $ERROR('#2.1: x = []; x.length = -1 throw RangeError. Actual: x.length === ' + (x.length)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#2.2: x = []; x.length = -1 throw RangeError. Actual: ' + (e)); } @@ -35,7 +35,7 @@ try { x = []; x.length = 1.5; $ERROR('#3.1: x = []; x.length = 1.5 throw RangeError. Actual: x.length === ' + (x.length)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#3.2: x = []; x.length = 1.5 throw RangeError. Actual: ' + (e)); } diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js b/test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js index 55ce904877620fb5a3caf78675411115b22d3a4d..e8ac8faa904d620ab9a9a87e761eef133e728afd 100644 --- a/test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js +++ b/test/built-ins/Array/length/S15.4.5.1_A1.1_T2.js @@ -13,7 +13,7 @@ try { var x = []; x.length = NaN; $ERROR('#1.1: x = []; x.length = NaN throw RangeError. Actual: x.length === ' + (x.length)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#1.2: x = []; x.length = NaN throw RangeError. Actual: ' + (e)); } @@ -24,7 +24,7 @@ try { x = []; x.length = Number.POSITIVE_INFINITY; $ERROR('#2.1: x = []; x.length = Number.POSITIVE_INFINITY throw RangeError. Actual: x.length === ' + (x.length)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#2.2: x = []; x.length = Number.POSITIVE_INFINITY throw RangeError. Actual: ' + (e)); } @@ -35,7 +35,7 @@ try { x = []; x.length = Number.NEGATIVE_INFINITY; $ERROR('#3.1: x = []; x.length = Number.NEGATIVE_INFINITY throw RangeError. Actual: x.length === ' + (x.length)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#3.2: x = []; x.length = Number.NEGATIVE_INFINITY throw RangeError. Actual: ' + (e)); } @@ -46,7 +46,7 @@ try { x = []; x.length = undefined; $ERROR('#4.1: x = []; x.length = undefined throw RangeError. Actual: x.length === ' + (x.length)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#4.2: x = []; x.length = undefined throw RangeError. Actual: ' + (e)); } diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js b/test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js index d213067fe765382a39a0c24290af08814576df4f..24bccec08fdc4b34385b92ece76112d41a5eb41e 100644 --- a/test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js +++ b/test/built-ins/Array/length/S15.4.5.1_A1.2_T1.js @@ -13,7 +13,7 @@ description: Change length of array ---*/ //CHECK#1 -var x = [0,,2,,4]; +var x = [0, , 2, , 4]; x.length = 4; if (x[4] !== undefined) { $ERROR('#1: x = [0,,2,,4]; x.length = 4; x[4] === undefined. Actual: ' + (x[4])); diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js b/test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js index 0594a6b6a185e7b9a1a812216646b12b19ef274d..f9800a66e31e86622e32dacd19bb0b386a53f382 100644 --- a/test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js +++ b/test/built-ins/Array/length/S15.4.5.1_A1.2_T3.js @@ -14,7 +14,7 @@ description: Checking an inherited property //CHECK#1 Array.prototype[2] = 2; -var x = [0,1]; +var x = [0, 1]; x.length = 3; if (x.hasOwnProperty('2') !== false) { $ERROR('#1: Array.prototype[2] = 2; x = [0,1]; x.length = 3; x.hasOwnProperty(\'2\') === false. Actual: ' + (x.hasOwnProperty('2'))); diff --git a/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js b/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js index c9b7615f954ea615989a110900366daed5cc5733..534484231895eca9385e122dc55270b8203c8c90 100644 --- a/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js +++ b/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js @@ -10,21 +10,39 @@ description: Uint32 use ToNumber and ToPrimitve //CHECK#1 var x = []; -x.length = {valueOf: function() {return 2}}; +x.length = { + valueOf: function() { + return 2 + } +}; if (x.length !== 2) { $ERROR('#1: x = []; x.length = {valueOf: function() {return 2}}; x.length === 2. Actual: ' + (x.length)); } //CHECK#2 x = []; -x.length = {valueOf: function() {return 2}, toString: function() {return 1}}; +x.length = { + valueOf: function() { + return 2 + }, + toString: function() { + return 1 + } +}; if (x.length !== 2) { $ERROR('#0: x = []; x.length = {valueOf: function() {return 2}, toString: function() {return 1}}; x.length === 2. Actual: ' + (x.length)); } //CHECK#3 x = []; -x.length = {valueOf: function() {return 2}, toString: function() {return {}}}; +x.length = { + valueOf: function() { + return 2 + }, + toString: function() { + return {} + } +}; if (x.length !== 2) { $ERROR('#3: x = []; x.length = {valueOf: function() {return 2}, toString: function() {return {}}}; x.length === 2. Actual: ' + (x.length)); } @@ -32,7 +50,14 @@ if (x.length !== 2) { //CHECK#4 try { x = []; - x.length = {valueOf: function() {return 2}, toString: function() {throw "error"}}; + x.length = { + valueOf: function() { + return 2 + }, + toString: function() { + throw "error" + } + }; if (x.length !== 2) { $ERROR('#4.1: x = []; x.length = {valueOf: function() {return 2}, toString: function() {throw "error"}}; x.length === ",". Actual: ' + (x.length)); } @@ -47,14 +72,25 @@ catch (e) { //CHECK#5 x = []; -x.length = {toString: function() {return 1}}; +x.length = { + toString: function() { + return 1 + } +}; if (x.length !== 1) { $ERROR('#5: x = []; x.length = {toString: function() {return 1}}; x.length === 1. Actual: ' + (x.length)); } //CHECK#6 x = []; -x.length = {valueOf: function() {return {}}, toString: function() {return 1}} +x.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (x.length !== 1) { $ERROR('#6: x = []; x.length = {valueOf: function() {return {}}, toString: function() {return 1}}; x.length === 1. Actual: ' + (x.length)); } @@ -62,7 +98,14 @@ if (x.length !== 1) { //CHECK#7 try { x = []; - x.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + x.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; x.length; $ERROR('#7.1: x = []; x.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; x.length throw "error". Actual: ' + (x.length)); } @@ -75,7 +118,14 @@ catch (e) { //CHECK#8 try { x = []; - x.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + x.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; x.length; $ERROR('#8.1: x = []; x.length = {valueOf: function() {return {}}, toString: function() {return {}}} x.length throw TypeError. Actual: ' + (x.length)); } diff --git a/test/built-ins/Array/length/S15.4.5.2_A3_T4.js b/test/built-ins/Array/length/S15.4.5.2_A3_T4.js index 1bcbb6f975f71e45e259b560e9db956b656f6a75..afd9985b10d19c632216ec8a0c2390c7869cf8b5 100644 --- a/test/built-ins/Array/length/S15.4.5.2_A3_T4.js +++ b/test/built-ins/Array/length/S15.4.5.2_A3_T4.js @@ -13,7 +13,7 @@ description: > ---*/ //CHECK#1 -var x = [0,1,2]; +var x = [0, 1, 2]; x[4294967294] = 4294967294; x.length = 2; diff --git a/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js b/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js index 121bcd6df908b24af389ff1d308bb18e886c0fd4..3910be2f085385ce779807253f9420858d9f4385 100644 --- a/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js +++ b/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js @@ -9,33 +9,33 @@ description: > (read-only) exists in Array.prototype (Step 5.b.iii.3.b) ---*/ - Object.defineProperty(Array.prototype, "0", { - value: 100, - writable: false, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + value: 100, + writable: false, + configurable: true +}); - var oldArr = [101]; +var oldArr = [101]; - var newArr = Array.prototype.concat.call(oldArr); +var newArr = Array.prototype.concat.call(oldArr); - var verifyValue = false; - verifyValue = newArr[0] === 101; +var verifyValue = false; +verifyValue = newArr[0] === 101; - var verifyEnumerable = false; - for (var p in newArr) { - if (p === "0" && newArr.hasOwnProperty("0")) { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in newArr) { + if (p === "0" && newArr.hasOwnProperty("0")) { + verifyEnumerable = true; + } +} - var verifyWritable = false; - newArr[0] = 12; - verifyWritable = newArr[0] === 12; +var verifyWritable = false; +newArr[0] = 12; +verifyWritable = newArr[0] === 12; - var verifyConfigurable = false; - delete newArr[0]; - verifyConfigurable = newArr.hasOwnProperty("0"); +var verifyConfigurable = false; +delete newArr[0]; +verifyConfigurable = newArr.hasOwnProperty("0"); assert(verifyValue, 'verifyValue !== true'); assert.sameValue(verifyConfigurable, false, 'verifyConfigurable'); diff --git a/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js b/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js index f51ca7107e27384692856332d22df76b2d69b914..61ecb1a260db1a80b89b1fbce604d35d05daf60c 100644 --- a/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js +++ b/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js @@ -9,35 +9,35 @@ description: > (read-only) exists in Array.prototype (Step 5.c.i) ---*/ - Object.defineProperty(Array.prototype, "0", { - value: 100, - writable: false, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + value: 100, + writable: false, + configurable: true +}); - var newArr = Array.prototype.concat.call(101); +var newArr = Array.prototype.concat.call(101); - var hasProperty = newArr.hasOwnProperty("0"); +var hasProperty = newArr.hasOwnProperty("0"); - var instanceOfVerify = typeof newArr[0]==="object"; +var instanceOfVerify = typeof newArr[0] === "object"; - var verifyValue = false; - verifyValue = newArr[0] == 101; +var verifyValue = false; +verifyValue = newArr[0] == 101; - var verifyEnumerable = false; - for (var p in newArr) { - if (p === "0" && newArr.hasOwnProperty("0")) { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in newArr) { + if (p === "0" && newArr.hasOwnProperty("0")) { + verifyEnumerable = true; + } +} - var verifyWritable = false; - newArr[0] = 12; - verifyWritable = newArr[0] === 12; +var verifyWritable = false; +newArr[0] = 12; +verifyWritable = newArr[0] === 12; - var verifyConfigurable = false; - delete newArr[0]; - verifyConfigurable = newArr.hasOwnProperty("0"); +var verifyConfigurable = false; +delete newArr[0]; +verifyConfigurable = newArr.hasOwnProperty("0"); assert(hasProperty, 'hasProperty !== true'); assert(instanceOfVerify, 'instanceOfVerify !== true'); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js index 00fea1dd7af9d1924338b9c3df4ce9e56414dcf7..3baf72a4a614cf1dab0ce749742b969320b12e70 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js @@ -10,9 +10,11 @@ features: [Symbol.isConcatSpreadable] ---*/ function MyError() {} var obj = { - "length": { toString: function() { + "length": { + toString: function() { throw new MyError(); - }, valueOf: null + }, + valueOf: null }, "1": "A", "3": "B", diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js index 14de922be89be1ca3a3d3a090fc5fdc304dcdbd8..82cf5a76777cfaff60289864622ccb20a379ea25 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js @@ -15,7 +15,17 @@ var obj = { "5": "C" }; obj[Symbol.isConcatSpreadable] = true; -obj.length = {toString: function() { return "SIX"; }, valueOf: null }; +obj.length = { + toString: function() { + return "SIX"; + }, + valueOf: null +}; assert(compareArray([].concat(obj), [])); -obj.length = {toString: null, valueOf: function() { return "SIX"; } }; +obj.length = { + toString: null, + valueOf: function() { + return "SIX"; + } +}; assert(compareArray([].concat(obj), [])); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js index 1c63b62f4c4eb5b706a16b8b74dfa1e6900f2957..8b94d65940ffc7d9ca5c900c99de4b1f83ccceb7 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js @@ -16,7 +16,12 @@ var obj = { "5": "C" }; obj[Symbol.isConcatSpreadable] = true; -var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" }; +var obj2 = { + length: 3, + "0": "0", + "1": "1", + "2": "2" +}; var arr = ["X", "Y", "Z"]; var expected = [ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js index 0322eaf1e28738cc17cb86d5eaea9da29d056f2a..907a30b7b336d37ceb835a2e6ec884852073700a 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js @@ -9,13 +9,21 @@ description: Array.prototype.concat array like to length throws features: [Symbol.isConcatSpreadable] ---*/ var obj = { - "length": {valueOf: null, toString: null}, + "length": { + valueOf: null, + toString: null + }, "1": "A", "3": "B", "5": "C" }; obj[Symbol.isConcatSpreadable] = true; -var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" }; +var obj2 = { + length: 3, + "0": "0", + "1": "1", + "2": "2" +}; var arr = ["X", "Y", "Z"]; assert.throws(TypeError, function() { Array.prototype.concat.call(obj, obj2, arr); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js index 3b747f931f0c7c1455d893516461102df87d636b..bfdf3c8e9d87da1fa33cfee8738346004c606d02 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js @@ -17,7 +17,12 @@ var obj = { "5": "C" }; obj[Symbol.isConcatSpreadable] = true; -var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" }; +var obj2 = { + length: 3, + "0": "0", + "1": "1", + "2": "2" +}; var arr = ["X", "Y", "Z"]; var expected = [ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js index d8bab8d4afba898f6c681e1e2b62d45dcb51509f..44082769bb2002b4a457815c8a2c7b5836fde2a0 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js @@ -10,7 +10,9 @@ description: Array.prototype.concat holey sloppy arguments includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var args = (function(a) { return arguments; })(1,2,3); +var args = (function(a) { + return arguments; +})(1, 2, 3); delete args[1]; args[Symbol.isConcatSpreadable] = true; assert(compareArray([1, void 0, 3, 1, void 0, 3], [].concat(args, args))); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js index dcf593907889c075c10e6f3c3aaf60b80be91826..cb37746a29e3c2a6996ef4f7b213d4d94d3400b3 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js @@ -31,7 +31,9 @@ function concatTypedArray(type, elems, modulo) { var expected = new Array(4000); expected[0] = defValue; - Object.defineProperty(ta, "length", { value: 4000 }); + Object.defineProperty(ta, "length", { + value: 4000 + }); ta[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(ta), expected)); } diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js index 3aef5b7827912a6fbc92d1b3f7e91f5477be44b2..c040d94a1f39517039e3b5403e360d4f2b8b464a 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js @@ -13,7 +13,9 @@ function MyError() {} var obj = {}; obj[Symbol.isConcatSpreadable] = true; Object.defineProperty(obj, "length", { - get: function() { throw new MyError(); } + get: function() { + throw new MyError(); + } }); assert.throws(MyError, function() { diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js index f6ed9cf11a8c1353661de9ddd7c0e6d9654adabb..bd080ee42bef9bf70dee59953e2ee0dcb87801f9 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js @@ -19,8 +19,8 @@ class NonArray { } } -var obj = new NonArray(1,2,3); +var obj = new NonArray(1, 2, 3); var result = Array.prototype.concat.call(obj, 4, 5, 6); assert.sameValue(Array, result.constructor); assert.sameValue(result instanceof NonArray, false); -assert(compareArray(result, [obj,4,5,6])); +assert(compareArray(result, [obj, 4, 5, 6])); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js index 8aefe98dafcf7602db6fd32260317c19551f0f7f..605330051cd6f9791246a85b86c6f8907eb11f3b 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js @@ -10,9 +10,13 @@ description: Array.prototype.concat sloppy arguments throws features: [Symbol.isConcatSpreadable] ---*/ function MyError() {} -var args = (function(a) { return arguments; })(1,2,3); +var args = (function(a) { + return arguments; +})(1, 2, 3); Object.defineProperty(args, 0, { - get: function() { throw new MyError(); } + get: function() { + throw new MyError(); + } }); args[Symbol.isConcatSpreadable] = true; assert.throws(MyError, function() { diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js index effb606b315546233545590fadbd1cfe27a4adc3..a6bca8a0d2ca1632d82b4635b0de61023a650e60 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js @@ -11,9 +11,13 @@ flags: [noStrict] includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var args = (function(a, a, a) { return arguments; })(1,2,3); +var args = (function(a, a, a) { + return arguments; +})(1, 2, 3); args[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3])); -Object.defineProperty(args, "length", { value: 6 }); +Object.defineProperty(args, "length", { + value: 6 +}); assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0])); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js index d805456206c08354278c0d247db96790a81b0b33..54e80acef21845cab95cd4da04b3a777403c0097 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js @@ -10,9 +10,13 @@ description: Array.prototype.concat sloppy arguments includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var args = (function(a, b, c) { return arguments; })(1,2,3); +var args = (function(a, b, c) { + return arguments; +})(1, 2, 3); args[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3])); -Object.defineProperty(args, "length", { value: 6 }); +Object.defineProperty(args, "length", { + value: 6 +}); assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0])); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js index 09fc40e0b05a1773b1e9dad1d62ded7b9b920344..1d5c1ecbbf170d825724a800fa0b618fb1430cc9 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js @@ -31,7 +31,9 @@ function concatTypedArray(type, elems, modulo) { var expected = new Array(4000); expected[0] = defValue; - Object.defineProperty(ta, "length", { value: 4000 }); + Object.defineProperty(ta, "length", { + value: 4000 + }); ta[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(ta), expected)); } diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js index 00ec7689b101f36d86d40f34d40640df98986db9..ed021358fb8ec4ba6fa3861e0734d4ee371365c1 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js @@ -27,7 +27,7 @@ Boolean.prototype[0] = 1; Boolean.prototype[1] = 2; Boolean.prototype[2] = 3; Boolean.prototype.length = 3; -assert(compareArray([1,2,3], [].concat(new Boolean(true)))); +assert(compareArray([1, 2, 3], [].concat(new Boolean(true)))); // Boolean values are never concat-spreadable assert(compareArray([true], [].concat(true))); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js index 5b5b5aca45444a1286520b2f6c2dcc9dd1d80e13..8ed6bf21cf77ce3bc6b188860685848d04cd4993 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js @@ -21,11 +21,11 @@ assert(compareArray([1, 2, 3], [].concat(fn))); Function.prototype[Symbol.isConcatSpreadable] = true; // Functions may be concat-spreadable -assert(compareArray([void 0, void 0, void 0], [].concat(function(a,b,c) {}))); +assert(compareArray([void 0, void 0, void 0], [].concat(function(a, b, c) {}))); Function.prototype[0] = 1; Function.prototype[1] = 2; Function.prototype[2] = 3; -assert(compareArray([1,2,3], [].concat(function(a, b, c) {}))); +assert(compareArray([1, 2, 3], [].concat(function(a, b, c) {}))); delete Function.prototype[Symbol.isConcatSpreadable]; delete Function.prototype[0]; diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js index 626f6d29217d3564f13ac5746124addc904d3c31..8a0b64deee88a02ce6139724efdef96292db384e 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js @@ -12,7 +12,9 @@ features: [Symbol.isConcatSpreadable] function MyError() {} var obj = {}; Object.defineProperty(obj, Symbol.isConcatSpreadable, { - get: function() { throw new MyError(); } + get: function() { + throw new MyError(); + } }); assert.throws(MyError, function() { diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js index 9ea803b4b60a2928a25b67f6ea52940b75ce6dd4..d28acb7d15d336197f8a11651167eb0ea3490c43 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js @@ -27,7 +27,7 @@ Number.prototype[0] = 1; Number.prototype[1] = 2; Number.prototype[2] = 3; Number.prototype.length = 3; -assert(compareArray([1,2,3], [].concat(new Number(123)))); +assert(compareArray([1, 2, 3], [].concat(new Number(123)))); // Number values are never concat-spreadable assert(compareArray([true], [].concat(true))); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js index 4003fe33cd06210de6667de388482c97225d4dbc..6a11c8eca0706c65665ce0553de2c0ac46e0048b 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js @@ -27,7 +27,7 @@ assert(compareArray([].concat(/abc/), [void 0, void 0, void 0])); RegExp.prototype[0] = 1; RegExp.prototype[1] = 2; RegExp.prototype[2] = 3; -assert(compareArray([].concat(/abc/), [1,2,3])); +assert(compareArray([].concat(/abc/), [1, 2, 3])); delete RegExp.prototype[Symbol.isConcatSpreadable]; delete RegExp.prototype[0]; diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js index 4b3f40d18898889debb0de6bddaac58940b98807..1c4aa7f2db2468ccd384a01cc8b74b0dafaf1169 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js @@ -10,7 +10,9 @@ description: Array.prototype.concat Symbol.isConcatSpreadable sparse object includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var obj = { length: 5 }; +var obj = { + length: 5 +}; obj[Symbol.isConcatSpreadable] = true; assert(compareArray([void 0, void 0, void 0, void 0, void 0], [].concat(obj))); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js index 2d8b5868a93a3eaf10c5ae74136710e83bff76e9..49dfc415c90a2f661c111b81662ed767b0a45192 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js @@ -10,9 +10,14 @@ description: Array.prototype.concat strict arguments includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var args = (function(a, b, c) { "use strict"; return arguments; })(1,2,3); +var args = (function(a, b, c) { + "use strict"; + return arguments; +})(1, 2, 3); args[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3])); -Object.defineProperty(args, "length", { value: 6 }); +Object.defineProperty(args, "length", { + value: 6 +}); assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0])); diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js index 7a590596d8c699c7cfdcf59ac62d6f5328d70526..e06836b67874050accd21991ef167a66abdc9601 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js @@ -12,9 +12,9 @@ description: Checking this algorithm, items are Array object ---*/ var x = new Array(); -var y = new Array(0,1); -var z = new Array(2,3,4); -var arr = x.concat(y,z); +var y = new Array(0, 1); +var z = new Array(2, 3, 4); +var arr = x.concat(y, z); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js index 4024275a2dfa23ff64c1582c40d363e6c24a3f4c..100ecaa9d19fcf9e892ab56008c8642e90903060 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js @@ -13,8 +13,8 @@ description: Checking this algorithm, items are objects and primitives var x = [0]; var y = new Object(); -var z = new Array(1,2); -var arr = x.concat(y,z, -1, true, "NaN"); +var z = new Array(1, 2); +var arr = x.concat(y, z, -1, true, "NaN"); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js index bb88eba5e44aeeaa6996718d5d6fe65aa78ee882..82a8d6f002573c523d48b67b316dd3edeacd0361 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js @@ -11,7 +11,7 @@ es5id: 15.4.4.4_A1_T3 description: Checking this algorithm with no items ---*/ -var x = [0,1]; +var x = [0, 1]; var arr = x.concat(); //CHECK#0 diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js index 0282070519869af967e52149ac5dd81e62bf5f39..44ca8f91f0cd28fc28828823d58d18f32d1c5cd7 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js @@ -11,8 +11,8 @@ es5id: 15.4.4.4_A1_T4 description: Checking this algorithm, items are [], [,] ---*/ -var x = [,1]; -var arr = x.concat([], [,]); +var x = [, 1]; +var arr = x.concat([], [, ]); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js index ce825917a9009c961d3d69e4d5067743fb5d9532..a77b0e07caf1cbf6309524af73e92dc2b436940d 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js @@ -13,8 +13,8 @@ description: Checking this for Object object, items are objects and primitives var x = {}; x.concat = Array.prototype.concat; var y = new Object(); -var z = new Array(1,2); -var arr = x.concat(y,z, -1, true, "NaN"); +var z = new Array(1, 2); +var arr = x.concat(y, z, -1, true, "NaN"); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js index e98d9e41d87c1ce3e2288b8d07ef6bff4f563278..ed7c03c9f24e26ae1bfde2a782bf840bf9a8899b 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js @@ -33,7 +33,9 @@ if (arr.hasOwnProperty('1') !== true) { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.concat = Array.prototype.concat; -x = {0:0}; +x = { + 0: 0 +}; var arr = x.concat(); //CHECK#4 diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js index b58435329b9c4e268ed90c4cc1a0995839a718cb..8434102963acd332b10a4db775571dbaddcdc66d 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js @@ -62,4 +62,3 @@ if (b.hasOwnProperty('1') !== false) { if (b.hasOwnProperty('2') !== true) { $ERROR("expected b.hasOwnProperty('2') === true, actually " + b.hasOwnProperty('2')); } - diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js index c86f736cbe114b849af87b12a607ea324a10ec0d..e1eacc545e1b1d926ba261a79c977f79100d134e 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js @@ -62,4 +62,3 @@ if (b.hasOwnProperty('1') !== false) { if (b.hasOwnProperty('2') !== true) { $ERROR("expected b.hasOwnProperty('2') === true, actually " + b.hasOwnProperty('2')); } - diff --git a/test/built-ins/Array/prototype/concat/create-non-array.js b/test/built-ins/Array/prototype/concat/create-non-array.js index 171e2baab4190b6c2a9011fd0f97e22a488ec0f5..b33667a9a8f7d915b0abe5a791b937bdd1d384df 100644 --- a/test/built-ins/Array/prototype/concat/create-non-array.js +++ b/test/built-ins/Array/prototype/concat/create-non-array.js @@ -15,7 +15,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js index 9cb416ae1dd6538be470adc89aacc5c50a446792..a1d4e04a47146995d4a5456cb642f2d5fc3bee9e 100644 --- a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js +++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js @@ -17,48 +17,42 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, null), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(1, 0, null), [0, 1, 2, 3] ), 'null value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, NaN), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(1, 0, NaN), [0, 1, 2, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, false), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(1, 0, false), [0, 1, 2, 3] ), 'false value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, true), - [0, 0, 2, 3] + [0, 1, 2, 3].copyWithin(1, 0, true), [0, 0, 2, 3] ), 'true value coerced to 1' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, '-2'), - [0, 0, 1, 3] + [0, 1, 2, 3].copyWithin(1, 0, '-2'), [0, 0, 1, 3] ), 'string "-2" value coerced to integer -2' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, -2.5), - [0, 0, 1, 3] + [0, 1, 2, 3].copyWithin(1, 0, -2.5), [0, 0, 1, 3] ), 'float -2.5 value coerced to integer -2' ); diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js index 182655bf5f3e902f8a851737a66656b97969ca54..5789f7edea68dff6d732f16735b3b04abccad6ff 100644 --- a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js +++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js @@ -16,32 +16,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(1, undefined), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, undefined), [0, 0, 1, 2] ), 'undefined value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, false), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, false), [0, 0, 1, 2] ), 'false value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, NaN), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, NaN), [0, 0, 1, 2] ), 'NaN value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, null), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, null), [0, 0, 1, 2] ), 'null value coerced to 0' ); @@ -49,8 +45,7 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(0, true), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, true), [1, 2, 3, 3] ), 'true value coerced to 1' ); @@ -58,24 +53,21 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(0, '1'), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, '1'), [1, 2, 3, 3] ), 'string "1" value coerced to 1' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0.5), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, 0.5), [0, 0, 1, 2] ), '0.5 float value coerced to integer 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1.5), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1.5), [1, 2, 3, 3] ), '1.5 float value coerced to integer 1' ); diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js index 2646b19f221a9c2ec7fbd7bdfaac46ba486e2ca6..54465b97ab1bab99c4701c9ece82dac167be55e0 100644 --- a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js +++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js @@ -16,32 +16,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(undefined, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(undefined, 1), [1, 2, 3, 3] ), 'undefined value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(false, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(false, 1), [1, 2, 3, 3] ), 'false value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(NaN, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(NaN, 1), [1, 2, 3, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(null, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(null, 1), [1, 2, 3, 3] ), 'null value coerced to 0' ); @@ -49,8 +45,7 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(true, 0), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(true, 0), [0, 0, 1, 2] ), 'true value coerced to 1' ); @@ -58,24 +53,21 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin('1', 0), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin('1', 0), [0, 0, 1, 2] ), 'string "1" value coerced to 1' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0.5, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0.5, 1), [1, 2, 3, 3] ), '0.5 float value coerced to integer 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1.5, 0), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1.5, 0), [0, 0, 1, 2] ), '1.5 float value coerced to integer 1' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-end.js b/test/built-ins/Array/prototype/copyWithin/negative-end.js index 70aa0e0e23ab4f2ac8caeff9681fc482c672fd1e..81e97abfd8e4f71556853e8f8b8591d0ea11c07c 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-end.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-end.js @@ -20,64 +20,56 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, -1), - [1, 2, 2, 3] + [0, 1, 2, 3].copyWithin(0, 1, -1), [1, 2, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -1) -> [1, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, 0, -1), - [0, 1, 0, 1, 2] + [0, 1, 2, 3, 4].copyWithin(2, 0, -1), [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4].copyWithin(2, 0, -1) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(1, 2, -2), - [0, 2, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(1, 2, -2), [0, 2, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, 2, -2) -> [0, 2, 2, 3, 4]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -2, -1), - [2, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -2, -1), [2, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -1) -> [2, 1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, -2, -1), - [0, 1, 3, 3, 4] + [0, 1, 2, 3, 4].copyWithin(2, -2, -1), [0, 1, 3, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2, 1) -> [0, 1, 3, 3, 4]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-3, -2, -1), - [0, 2, 2, 3] + [0, 1, 2, 3].copyWithin(-3, -2, -1), [0, 2, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -1) -> [0, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-2, -3, -1), - [0, 1, 2, 2, 3] + [0, 1, 2, 3, 4].copyWithin(-2, -3, -1), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3, -1) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-5, -2, -1), - [3, 1, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(-5, -2, -1), [3, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2, -1) -> [3, 1, 2, 3, 4]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js index 072d03e704242ddfc6d53a0954d9d07f9e386703..34b8374611230c496df9208ea6fcb21549a88362 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js @@ -20,80 +20,70 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, 1, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -2, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -2, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -9, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -9, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-3, -2, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-3, -2, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-7, -8, -9), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-7, -8, -9), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-7, -8, -9) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js index 1f31fc9eb9f2c2629d648ac0bbdc7a7c18f30bfa..e3002b70f09d0aaefd6d9b1c996458c2c60da9ab 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js @@ -17,32 +17,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, -10), - [0, 1, 0, 1, 2] + [0, 1, 2, 3, 4].copyWithin(2, -10), [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(2, -Infinity), - [1, 2, 1, 2, 3] + [1, 2, 3, 4, 5].copyWithin(2, -Infinity), [1, 2, 1, 2, 3] ), '[1, 2, 3, 4, 5].copyWithin(2, -Infinity) -> [1, 2, 1, 2, 3]' ); @@ -50,16 +46,14 @@ assert( assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(10, -10), - [0, 1, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(10, -10), [0, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(10, -10) -> [0, 1, 2, 3, 4]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(10, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(10, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(10, -Infinity) -> [1, 2, 3, 4, 5]' ); @@ -67,16 +61,14 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(-9, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-9, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-9, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-9, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-9, -Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js index 72b95dcace2176f9d622b3bc27763254d3edc2fe..f17ab8a8a68406b560aa0ef7eeca378e15b0b43c 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js @@ -17,32 +17,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(-10, 0), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-10, 0), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-Infinity, 0), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-Infinity, 0), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-Infinity, 0) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-10, 2), - [2, 3, 4, 3, 4] + [0, 1, 2, 3, 4].copyWithin(-10, 2), [2, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-10, 2) -> [2, 3, 4, 3, 4]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-Infinity, 2), - [3, 4, 5, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-Infinity, 2), [3, 4, 5, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-Infinity, 2) -> [3, 4, 5, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-start.js b/test/built-ins/Array/prototype/copyWithin/negative-start.js index 4cec365ad5d0aea63f04738f0c2a3eaa2cb78244..3989b288db4fa52fe299d856a375117504ea7f50 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-start.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-start.js @@ -17,48 +17,42 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -1), - [3, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -1), [3, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -1) -> [3, 1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, -2), - [0, 1, 3, 4, 4] + [0, 1, 2, 3, 4].copyWithin(2, -2), [0, 1, 3, 4, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 3, 4, 4]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(1, -2), - [0, 3, 4, 3, 4] + [0, 1, 2, 3, 4].copyWithin(1, -2), [0, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, -2) -> [0, 3, 4, 3, 4]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-1, -2), - [0, 1, 2, 2] + [0, 1, 2, 3].copyWithin(-1, -2), [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, -2) -> [ 0, 1, 2, 2 ]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-2, -3), - [0, 1, 2, 2, 3] + [0, 1, 2, 3, 4].copyWithin(-2, -3), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-5, -2), - [3, 4, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(-5, -2), [3, 4, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2) -> [3, 4, 2, 3, 4]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-target.js b/test/built-ins/Array/prototype/copyWithin/negative-target.js index 29fd2497550af1bda08e7e02d8f5ebf3600ef1d7..99844a4b8e38686781625aaa2f19149e90c7ba31 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-target.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-target.js @@ -17,24 +17,21 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(-1, 0), - [0, 1, 2, 0] + [0, 1, 2, 3].copyWithin(-1, 0), [0, 1, 2, 0] ), '[0, 1, 2, 3].copyWithin(-1, 0) -> [0, 1, 2, 0]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-2, 2), - [0, 1, 2, 2, 3] + [0, 1, 2, 3, 4].copyWithin(-2, 2), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, 2) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-1, 2), - [0, 1, 2, 2] + [0, 1, 2, 3].copyWithin(-1, 2), [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, 2) -> [0, 1, 2, 2]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js index 6af95e724411a51a8832bd490fba47c88893a38e..d20bc64c24da9f4a706e7b8ee0297bc24658887b 100644 --- a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js +++ b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js @@ -36,32 +36,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, 6), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1, 6), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, 6) -> [1, 2, 3, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, Infinity), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1, Infinity), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, Infinity) -> [1, 2, 3, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6), - [0, 3, 4, 5, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6), [0, 3, 4, 5, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6) -> [0, 3, 4, 5, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity), - [0, 3, 4, 5, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity), [0, 3, 4, 5, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity) -> [0, 3, 4, 5, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js index e38edecd72b4dee9ec42105fc78c22c34b383328..64f3c58540abc3068cf7edfe08d7c114c068fe59 100644 --- a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js +++ b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js @@ -30,64 +30,56 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(6, 0), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(6, 0), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(6, 0) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(7, 0), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(7, 0), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(6, 0) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(6, 2), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(6, 2), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(6, 2) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(7, 2), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(7, 2), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(7, 2) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(0, 6), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(0, 6), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(0, 6) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(0, 7), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(0, 7), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(0, 7) => [0, 1, 2, 3, 4, 5]' ); @@ -95,24 +87,21 @@ assert( assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(0, Infinity), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(0, Infinity), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(0, Infinity) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(2, 6), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(2, 6), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(2, 6) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 7), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 7), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 7) => [0, 1, 2, 3, 4, 5]' ); @@ -120,32 +109,28 @@ assert( assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(3, Infinity), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(3, Infinity), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(3, Infinity) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(6, 6), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(6, 6), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(6, 6) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(10, 10), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(10, 10), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(10, 10) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity) => [0, 1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js b/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js index 9704fcc62264239962df955a850e4195169fda8f..02a6bc4e7871be9c3ae2bc2e2c9ee09c331d39c7 100644 --- a/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js +++ b/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js @@ -34,28 +34,24 @@ includes: [compareArray.js] assert( compareArray( - ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0), - ['a', 'b', 'c', 'd', 'e', 'f'] + ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0), ['a', 'b', 'c', 'd', 'e', 'f'] ) ); assert( compareArray( - ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2), - ['c', 'd', 'e', 'f', 'e', 'f'] + ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2), ['c', 'd', 'e', 'f', 'e', 'f'] ) ); assert( compareArray( - ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0), - ['a', 'b', 'c', 'a', 'b', 'c'] + ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0), ['a', 'b', 'c', 'a', 'b', 'c'] ) ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 4), - [0, 4, 5, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 4), [0, 4, 5, 3, 4, 5] ) ); diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js b/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js index 89a665ad5d0e7f58de7832dc5e5dc9122f8c690c..4dbc5479cd511d9be4fb515366c840dbbc748933 100644 --- a/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js +++ b/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js @@ -36,24 +36,21 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 0, 0), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, 0, 0), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 0, 0) -> [0, 1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 0, 2), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, 0, 2), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 0, 2) -> [0, 1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, 2), - [1, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, 1, 2), [1, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, 2) -> [1, 1, 2, 3]' ); @@ -71,16 +68,14 @@ assert( */ assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, 2), - [0, 0, 1, 3] + [0, 1, 2, 3].copyWithin(1, 0, 2), [0, 0, 1, 3] ), '[0, 1, 2, 3].copyWithin(1, 0, 2) -> [0, 0, 1, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5), - [0, 3, 4, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5), [0, 3, 4, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5) -> [0, 3, 4, 3, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js index 6d69262ff57477e802de62341a755bf0eccc1889..a81b4ac32e166aa2c086a661e84b7c58d2dbd6ff 100644 --- a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js +++ b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js @@ -23,4 +23,3 @@ var o1 = { assert.throws(Test262Error, function() { [].copyWithin(0, 0, o1); }); - diff --git a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js index 37768729c6920118dc277ed40ff957495e759a43..66940444178a4f2f6c919a609df6d846c0f744f6 100644 --- a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js +++ b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js @@ -22,4 +22,3 @@ var o1 = { assert.throws(Test262Error, function() { [].copyWithin(0, o1); }); - diff --git a/test/built-ins/Array/prototype/copyWithin/undefined-end.js b/test/built-ins/Array/prototype/copyWithin/undefined-end.js index 93c75620ee422138331b9fccf854d2a9dc4857d3..6ef024c7565cd0fa6a04fb8a4774ac509f4b3c0e 100644 --- a/test/built-ins/Array/prototype/copyWithin/undefined-end.js +++ b/test/built-ins/Array/prototype/copyWithin/undefined-end.js @@ -17,16 +17,14 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, undefined), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1, undefined), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, undefined) -> [1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1) -> [1, 2, 3, 3]' ); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js index 32c5b4f6a8641eb7bbbc7e10e43abe1c47a9ca9f..0d88f961ed18c1714e8e90e98eef0d775b2228c9 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js @@ -8,6 +8,7 @@ description: Array.prototype.every applied to Boolean object ---*/ var accessed = false; + function callbackfn(val, idx, obj) { accessed = true; return obj instanceof Boolean; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js index 91827adfcd31df170bbcb03af91174dc1bdf6bc4..7bd133c7407047a6e0e3857517efd0fa2c2befb6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js @@ -8,6 +8,7 @@ description: Array.prototype.every applied to number primitive ---*/ var accessed = false; + function callbackfn(val, idx, obj) { accessed = true; return obj instanceof Number; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js index 09439db09c6c1cc761a9ff9418627941d2350b4d..255a5afc246b7286e552f4bb3dce0d946fea1f5b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js @@ -8,6 +8,7 @@ description: Array.prototype.every applied to Number object ---*/ var accessed = false; + function callbackfn(val, idx, obj) { accessed = true; return obj instanceof Number; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js index f33885b890523ec8dd26c415822d2aba3d339fdd..bf6992cf132b1a69fca06bce4656ed85684e6228 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js @@ -11,7 +11,7 @@ function callbackfn(val, idx, obj) { return !(obj instanceof Function); } -var obj = function (a, b) { +var obj = function(a, b) { return a + b; }; obj[0] = 11; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js index 88dc9700a502ddec15df544fc990a517e5d20d22..c895c286c2cbaae2cf02e1af7acac5c010b9515d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js @@ -17,16 +17,16 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var proto = { }; +var proto = {}; Object.defineProperty(proto, "length", { - get: function () { - return 2; + get: function() { + return 2; }, configurable: true }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js index 135cc936d0dcdba39ef799ed7ffe28a926d40274..9f2497b6aa3e0dd9c0eda57433eb3ac557496dc6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js @@ -21,7 +21,7 @@ var obj = { 1: 8 }; Object.defineProperty(obj, "length", { - set: function () { }, + set: function() {}, configurable: true }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js index 2f71539f4226edf2aebbca78c8daf85fdf95bf97..4cc13deab834e6946cd7f376bd074595bf34965c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js @@ -17,16 +17,19 @@ function callbackfn(val, idx, obj) { } Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true + get: function() { + return 2; + }, + configurable: true }); -var obj = { 0: 9, 1: 8 }; +var obj = { + 0: 9, + 1: 8 +}; Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true + set: function() {}, + configurable: true }); assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js index 07dc5015eb66c49bf82b5f094eae12d8fe52e12a..0c03deb22dce93eaf91f8145f45738e1e90eed0b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js @@ -12,17 +12,17 @@ description: > var accessed = false; function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; + accessed = true; + return val > 10; } var proto = {}; Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true + set: function() {}, + configurable: true }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js index f885895242e7cff370b8d5e71f1f2a66870d6109..eb91b3e56c8509e7c9f880d60cb76ed0b256bf36 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js @@ -16,7 +16,10 @@ function callbackfn(val, idx, obj) { return val > 10; } -var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js index bf6fcd0c87c6a7a777b269903bd0db45acc1bd6c..7d4e3200c29c7059479a1d9b8bf76623cb461d6c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js @@ -17,10 +17,10 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var func = function (a, b) { +var func = function(a, b) { arguments[2] = 9; return Array.prototype.every.call(arguments, callbackfn1) && - !Array.prototype.every.call(arguments, callbackfn2); + !Array.prototype.every.call(arguments, callbackfn2); }; assert(func(12, 11), 'func(12, 11) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js index 89977f2223c6fc89d49e40fe30a16013a1bb7eba..c7c9512351b037c7a404f7aa6329a102be578327 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js @@ -17,7 +17,7 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var fun = function (a, b) { +var fun = function(a, b) { return a + b; }; fun[0] = 12; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js index 57c559260ce21bd65c0e2fdf8e8c80e0960fc101..203eaee8a3d063984450d1d42cf9d6917c7ebabe 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js @@ -17,9 +17,11 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var proto = { length: 3 }; +var proto = { + length: 3 +}; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js index c071a88752ed41538467e152a936a67c874e233f..cebdab0872e8017df8136e3eda5332b7fbb4bae5 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js @@ -10,6 +10,7 @@ description: > ---*/ var arrProtoLen = 0; + function callbackfn1(val, idx, obj) { return val > 10; } diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js index 6cd638bdb8cf5a5c4e6b2b256152318bdf51f41c..1f4ffc7a8282e00a34696f73a79057191f2122ed 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js @@ -17,16 +17,16 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var proto = { }; +var proto = {}; Object.defineProperty(proto, "length", { - get: function () { - return 3; + get: function() { + return 3; }, configurable: true }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js index b464e415123a37c5200ad62d1000945c4770039a..264d43dd2b49259359cd4b633b5a69f35195cc42 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js @@ -17,9 +17,11 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var proto = { length: 2 }; +var proto = { + length: 2 +}; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js index bcc252a2be47a167ff11b7e8485381c856e020c0..9e29cd71518c136742baa097600c26998cfa59ce 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js @@ -17,11 +17,11 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { }; +var obj = {}; Object.defineProperty(obj, "length", { - get: function () { - return 2; + get: function() { + return 2; }, configurable: true }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js index 298e148b079739f672cbfc894f78716c0e73a9ee..d3a3e96abc247a5e2a6c65bcf174e6bd4a5f38bc 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js @@ -17,16 +17,18 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var proto = { length: 3 }; +var proto = { + length: 3 +}; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "length", { - get: function () { - return 2; + get: function() { + return 2; }, configurable: true }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js index 48387126bfb42052bd5209249e9f19244f4ab857..4dd430d1b1f637dc497b28e36743aff9781a1c96 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js @@ -20,20 +20,20 @@ function callbackfn2(val, idx, obj) { var proto = {}; Object.defineProperty(proto, "length", { - get: function () { - return 3; + get: function() { + return 3; }, configurable: true }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "length", { - get: function () { - return 2; + get: function() { + return 2; }, configurable: true }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js index b745f20c1f8f7795fb15f1a8e1e582a62eb7dcbb..a72ca6863d4e2153af9e9122d0cbb0848f24467c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js @@ -14,7 +14,10 @@ function callbackfn(val, idx, obj) { return val > 10; } -var obj = { 0: 9, length: undefined }; +var obj = { + 0: 9, + length: undefined +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js index c8029d4a0f6767d25e8cba6961eab229a3c5b98d..b381ef7d233363ceeeeb440d9fbc561c0c7e61ff 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js @@ -16,7 +16,10 @@ function callbackfn(val, idx, obj) { return val > 10; } -var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js index 9b27d025a848fc534a253beab11a64441b8e6213..ab5fa5744c6d40aab5e755a36ff2b037bef55d7d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "2" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js index 0c2a3f97e1ae9e5e8addc623bfd8649ca20ed7ad..bdf1ee93ebb4ac08236faf0c21f869c24387f90d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" }; +var obj = { + 0: 11, + 1: 12, + 2: 9, + length: "-4294967294" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js index 0043f34eecead0024a22513b868a07435a9e2c54..23c73425105f8244c0fc45ff1d53da7a0ff8491d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2.5" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js index 1d99f1e2e3be27d3f0533e1ca5305e01d61a0d7a..c20b8194a24e3d601fc28e95da42352ed5782e6c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js @@ -10,13 +10,22 @@ description: Array.prototype.every - 'length' is a string containing +/-Infinity var accessed = false; function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; + accessed = true; + return val > 10; } -var objOne = { 0: 9, length: "Infinity" }; -var objTwo = { 0: 9, length: "+Infinity" }; -var objThree = { 0: 9, length: "-Infinity" }; +var objOne = { + 0: 9, + length: "Infinity" +}; +var objTwo = { + 0: 9, + length: "+Infinity" +}; +var objThree = { + 0: 9, + length: "-Infinity" +}; assert.sameValue(Array.prototype.every.call(objOne, callbackfn), false, 'Array.prototype.every.call(objOne, callbackfn)'); assert.sameValue(Array.prototype.every.call(objTwo, callbackfn), false, 'Array.prototype.every.call(objTwo, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js index dcdda5faee155a6af58b2bee07c25ffd8f7830c4..63ceb586e8a7df053629ad32142e46254c1206fd 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2E0" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js index 4e7f6f97cb969d972563ecea6e9369efcf698ab7..ea0e8386cd694007495e70f8912ed644fb860fed 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "0x0002" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js index eb35d70b13f3e1dbd0249ecac1e0094f675e4ea0..0125b2b77b8f950ac20acdad09897dceb73ee851 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "0002.00" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js index 96846f1062aa43f440351693eebbb323843229f1..c06bc6c27ff193c5be92f2c452661d994ff9fa00 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js @@ -16,7 +16,11 @@ function callbackfn(val, idx, obj) { return val > 10; } -var obj = { 0: 9, 1: 8, length: "two" }; +var obj = { + 0: 9, + 1: 8, + length: "two" +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js index 15d3f5af93d789866715ab5370ad3ef5f81a8e08..a2bc1211f7387204542caaa9a9497ac1a925e8cf 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js @@ -10,25 +10,25 @@ description: > ---*/ function callbackfn1(val, idx, obj) { - return val > 10; + return val > 10; } function callbackfn2(val, idx, obj) { - return val > 11; + return val > 11; } var toStringAccessed = false; var obj = { - 0: 12, - 1: 11, - 2: 9, + 0: 12, + 1: 11, + 2: 9, - length: { - toString: function () { - toStringAccessed = true; - return '2'; - } + length: { + toString: function() { + toStringAccessed = true; + return '2'; } + } }; // objects inherit the default valueOf() method from Object diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js index bb2431acb9c69d224cd01fff712e0f304d86d44f..fb8444d54de8d48c421e456ca8d6063c6b7af91d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js @@ -17,7 +17,11 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 11, 1: 9, length: true }; +var obj = { + 0: 11, + 1: 9, + length: true +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js index 4f12b7bd7d115b19a656d39b3f6f70822ce66b32..a642c0ad1ce4a8e07c6a4e8a335991f7ec88ff63 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js @@ -24,10 +24,10 @@ var obj = { 1: 11, 2: 9, length: { - valueOf: function () { - valueOfAccessed = true; - return 2; - } + valueOf: function() { + valueOfAccessed = true; + return 2; + } } }; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js index cc83597903dd734200b86d75a54b3ad05969c808..7f57fb9f280d19d129d2f87548489934f63a6ff2 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js @@ -11,30 +11,30 @@ description: > ---*/ function callbackfn1(val, idx, obj) { - return val > 10; + return val > 10; } function callbackfn2(val, idx, obj) { - return val > 11; + return val > 11; } var toStringAccessed = false; var valueOfAccessed = false; var obj = { - 0: 12, - 1: 11, - 2: 9, - length: { - valueOf: function () { - valueOfAccessed = true; - return {}; - }, - toString: function () { - toStringAccessed = true; - return '2'; - } + 0: 12, + 1: 11, + 2: 9, + length: { + valueOf: function() { + valueOfAccessed = true; + return {}; + }, + toString: function() { + toStringAccessed = true; + return '2'; } + } }; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js index 44c8deb75826df5405c9f4d821b4110411bfd20b..a0f549b953daf0fb26db89e7709b399fc7f3c607 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js @@ -10,32 +10,32 @@ description: > primitive values ---*/ - var callbackfnAccessed = false; - var toStringAccessed = false; - var valueOfAccessed = false; +var callbackfnAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - function callbackfn(val, idx, obj) { - callbackfnAccessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + callbackfnAccessed = true; + return val > 10; +} - var obj = { - 0: 11, - 1: 12, +var obj = { + 0: 11, + 1: 12, - length: { - valueOf: function () { - valueOfAccessed = true; - return {}; - }, - toString: function () { - toStringAccessed = true; - return {}; - } - } - }; + length: { + valueOf: function() { + valueOfAccessed = true; + return {}; + }, + toString: function() { + toStringAccessed = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.every.call(obj, callbackfn); + Array.prototype.every.call(obj, callbackfn); }); assert(toStringAccessed, 'toStringAccessed !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js index e282dd269e53f3cbf2befd26c480fc5c196cb85c..19f4be0b2df90aa804fe75109da25b85c779051b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js @@ -9,40 +9,40 @@ description: > is an object with an own toString and inherited valueOf methods ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } - - function callbackfn2(val, idx, obj) { - return val > 11; - } - - var valueOfAccessed = false; - var toStringAccessed = false; - - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - - child.toString = function () { - toStringAccessed = true; - return '1'; - }; - - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: child - }; +function callbackfn1(val, idx, obj) { + return val > 10; +} + +function callbackfn2(val, idx, obj) { + return val > 11; +} + +var valueOfAccessed = false; +var toStringAccessed = false; + +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +child.toString = function() { + toStringAccessed = true; + return '1'; +}; + +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: child +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js index 61c2e627b4d2b04829530d0560eee6a07a68a0ca..88db175593f0086be645c06dd34dc530fcb4e0f0 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js @@ -9,15 +9,20 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2.685 +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js index 3d052320a451e561b9d43751c4344d076c473639..d6a174f8751253b74ced13b81511a6a210d9e56a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js @@ -7,20 +7,20 @@ es5id: 15.4.4.16-3-25 description: Array.prototype.every - value of 'length' is a negative non-integer ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: -4294967294.5 - }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: -4294967294.5 +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js index 9abe0e9365a278e8e2166be60be132ddaf8db6a9..eaf990b5b721243531da2f42f86085d97c87f10b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js @@ -9,19 +9,19 @@ description: > + 1) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { - 0: 11, - 1: 9, - length: 4294967297 - }; +var obj = { + 0: 11, + 1: 9, + length: 4294967297 +}; assert.sameValue(Array.prototype.every.call(obj, callbackfn1), false, 'Array.prototype.every.call(obj, callbackfn1)'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js index c792c27c6684476516283619c9d14edbf227944b..4636ccf3ecef6308286d83e23b3647f62a1c609f 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js @@ -7,14 +7,17 @@ es5id: 15.4.4.16-3-3 description: Array.prototype.every - value of 'length' is a number (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: 0 }; +var obj = { + 0: 9, + length: 0 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js index c17e335a4e920547228d134c0a8d7c6411bcbb2b..68a0bf50a7ad4c0a01638e847b882f63b3a74daa 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js @@ -7,14 +7,17 @@ es5id: 15.4.4.16-3-4 description: Array.prototype.every - value of 'length' is a number (value is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: +0 }; +var obj = { + 0: 9, + length: +0 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js index eb9f48ba3c76b07c56bb6aeeb66dde1070d474d7..d041e7add383cb25280fe600de3e4a3076993cb0 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js @@ -7,14 +7,17 @@ es5id: 15.4.4.16-3-5 description: Array.prototype.every - value of 'length' is a number (value is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: -0 }; +var obj = { + 0: 9, + length: -0 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js index 1d1b15ef184114e8008d9490e616bddfc4e9b5c6..0ea6839cb50f58d4a384c39c0ddea0441cfab6bd 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js @@ -9,15 +9,20 @@ description: > positive) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 12, 1: 11, 2: 9, length: 2 }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js index 977bb65f9f9b3fe176d256dc86280d875b9df680..880c26aab841227a0c76b5b94fb3fe6a486f8e84 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js @@ -9,15 +9,20 @@ description: > negative) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 12, 1: 11, 2: 9, length: -4294967294 }; //length used to exec while loop is 0 +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: -4294967294 +}; //length used to exec while loop is 0 assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js index 6496da4f0a1a284a7c58f1aede93b8dd3fa3a5b1..47a09300da5d1d516dc4a520a37bdfa9b85defb3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js @@ -9,14 +9,17 @@ description: > Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: Infinity }; +var obj = { + 0: 9, + length: Infinity +}; assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js index 9499801b8ea210e606cc06696f1ef77c9399affe..7166e98b84497fde9e05b7666dc4f751085b50cd 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js @@ -9,14 +9,17 @@ description: > -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js index 8cefedbe04cad8a194e47c74ca7dd06ad6621349..c0d6ba0cb424ce46564e35d0c6f2bd0160d92bfc 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-1 description: Array.prototype.every throws TypeError if callbackfn is undefined ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.every(); + arr.every(); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js index abbff39d21bc0093080abb9b14ac00e7d348d8db..2f458442b873d55c79eb2e89eec6c8aad567fae3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.every.call(obj, undefined); + Array.prototype.every.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js index 4e4b09b69c9234e35b9ceac657d45f9c20597716..2cd9bba54c1f85251576418d37e3127011e7b276 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.every.call(obj, undefined); + Array.prototype.every.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js index ded81c8a4378149e2d1f22732260f2b0c307765b..a137acbc31f1093ff51aa3535139c51fff0fcf84 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js @@ -7,8 +7,8 @@ es5id: 15.4.4.16-4-12 description: Array.prototype.every - 'callbackfn' is a function ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} assert.sameValue([11, 9].every(callbackfn), false, '[11, 9].every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js index 2f4fa8f8ca5168c1e8ffc7af4eb5e408b1ba48d0..207a615ffea1129f03caa1d083c4435f0ec6849e 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js @@ -9,27 +9,29 @@ description: > passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.every.call(obj); + Array.prototype.every.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js index 103f22d6a04867a55b77bdb853b992aadd10012e..2613f1cf33a77e048350e1ec16e106ad7b1d86ba 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-3 description: Array.prototype.every throws TypeError if callbackfn is null ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.every(null); + arr.every(null); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js index 1b76313323be4dff10fe8aee4e78a858bb01d377..6a1c037720d8b9d24b51c29d4dcefbf2770f228e 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js @@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-4 description: Array.prototype.every throws TypeError if callbackfn is boolean ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.every(true); + arr.every(true); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js index deb04c6f25d117708152cc1a4bfaaf3b30d7de96..a2d5c7aefafa0a228b863376fa61c426b48a82b1 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js @@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-5 description: Array.prototype.every throws TypeError if callbackfn is number ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.every(5); + arr.every(5); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js index 6597e45998172de92c96b6bdcfb83bb2f8c04e24..eb07314b17d0eff64a464d89fee310cadeb266af 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js @@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-6 description: Array.prototype.every throws TypeError if callbackfn is string ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.every("abc"); + arr.every("abc"); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js index f512f2151b6605f4586d75ddfeb9b826abe0e5ce..51e13d6d182bc172d54a4e6d4ae8147ac875fc9a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js @@ -9,7 +9,7 @@ description: > without a Call internal method ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.every( {} ); + arr.every({}); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js index a3e75ff59eefb2c791aac4ff250d1c419d1f80a3..cb6ef73b10f4fd3f9591e29619a69f12bf2e35f6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.every.call(obj, null); + Array.prototype.every.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js index fc1acaa02d2d05fc7b53c46f51d01a643e52dfc4..efe205eb4a56c2fdb2eddfcdbc5d5324a393dd00 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.every.call(obj, null); + Array.prototype.every.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js index 989a6ee203b83e7e7ae3272cc8685f399b3fa15b..2d906315f2f2e587f5bf2dab0f62dad98f5f22ac 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js @@ -8,14 +8,14 @@ description: Array.prototype.every - thisArg not passed to strict callbackfn flags: [noStrict] ---*/ - var innerThisCorrect = false; +var innerThisCorrect = false; - function callbackfn(val, idx, obj) { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } +function callbackfn(val, idx, obj) { + "use strict"; + innerThisCorrect = this === undefined; + return true; +} - [1].every(callbackfn); +[1].every(callbackfn); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js index 360f9850fb0a85526d2923bbf83ed98baf648896..a3bdbc170cc79a100ce54bf500bd423462576d70 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js @@ -10,11 +10,11 @@ flags: [noStrict] var global = this; - function callbackfn(val, idx, obj) - { - return this === global; - } +function callbackfn(val, idx, obj) +{ + return this === global; +} - var arr = [1]; +var arr = [1]; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js index 5d7c8a6e9aa491a481c6ae8631d6ca2a8fc76bd2..087f9c2a386aaa3f2e4ec395cc2d4a3e7c21e086 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-10 description: Array.prototype.every - Array Object can be used as thisArg ---*/ - var accessed = false; - var objArray = []; +var accessed = false; +var objArray = []; - function callbackfn(val, idx, obj) { - accessed = true; - return this === objArray; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objArray; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js index 41792ec1d0fbe5dd6cc2e105ae0d66d25616ed67..dce15d0f4644e2579a8437894e842548ed3c75e6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-11 description: Array.prototype.every - String Object can be used as thisArg ---*/ - var accessed = false; - var objString = new String(); +var accessed = false; +var objString = new String(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objString; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objString; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js index cbb7ddf8b097369ab85ff9ab0da52b2ce7b43b0a..97b5771b3fb8b778e8bbcf1accdbaf6f247373e3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-12 description: Array.prototype.every - Boolean Object can be used as thisArg ---*/ - var accessed = false; - var objBoolean = new Boolean(); +var accessed = false; +var objBoolean = new Boolean(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objBoolean; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objBoolean; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js index 34e73df321a9eb930e2b34a554dd318900ddf2aa..da8f799386f72f9de98a8947140df38a4b252af5 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-13 description: Array.prototype.every - Number Object can be used as thisArg ---*/ - var accessed = false; - var objNumber = new Number(); +var accessed = false; +var objNumber = new Number(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objNumber; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objNumber; +} assert([11].every(callbackfn, objNumber), '[11].every(callbackfn, objNumber) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js index 697ef848e9e222c214b55bf2a5c68c0714f0e734..a5cc48fbf7115175a6acc6b62c7324abc1b340d3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js @@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-14 description: Array.prototype.every - the Math object can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this === Math; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === Math; +} assert([11].every(callbackfn, Math), '[11].every(callbackfn, Math) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js index 66a64d987fcfda28028efb030432bc896642cc6c..7133cd487a17be5dfc6dc8dd08c82bbcb0494df3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-15 description: Array.prototype.every - Date Object can be used as thisArg ---*/ - var accessed = false; - var objDate = new Date(); +var accessed = false; +var objDate = new Date(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objDate; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objDate; +} assert([11].every(callbackfn, objDate), '[11].every(callbackfn, objDate) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js index 091caa14c31c28b0f5814af9b3559fd4a7b8f34f..1edd76714c8b8e0922d0d9a237dca17b5871082f 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-16 description: Array.prototype.every - RegExp Object can be used as thisArg ---*/ - var accessed = false; - var objRegExp = new RegExp(); +var accessed = false; +var objRegExp = new RegExp(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objRegExp; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objRegExp; +} assert([11].every(callbackfn, objRegExp), '[11].every(callbackfn, objRegExp) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js index 9e9bd18e83e02e1a4bc57a8eafa3baccfe0f8124..2a5162a9cda2826a0389bd49e2eaf3cb0274583c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js @@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-17 description: Array.prototype.every - the JSON object can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this === JSON; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === JSON; +} assert([11].every(callbackfn, JSON), '[11].every(callbackfn, JSON) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js index a944bff817d04a697165985830233af105805745..bae882c7c634d4821d8213412147bfbe82de6ba3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-18 description: Array.prototype.every - Error Object can be used as thisArg ---*/ - var accessed = false; - var objError = new RangeError(); +var accessed = false; +var objError = new RangeError(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objError; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objError; +} assert([11].every(callbackfn, objError), '[11].every(callbackfn, objError) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js index 7a3e06e099aa335f6364bb787924f5989785a9a4..3b39e1826f88e1a66f99b4e8ed1cdffe0836fab6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js @@ -7,17 +7,17 @@ es5id: 15.4.4.16-5-19 description: Array.prototype.every - the Arguments object can be used as thisArg ---*/ - var accessed = false; - var arg; +var accessed = false; +var arg; - function callbackfn(val, idx, obj) { - accessed = true; - return this === arg; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === arg; +} - (function fun() { - arg = arguments; - }(1, 2, 3)); +(function fun() { + arg = arguments; +}(1, 2, 3)); assert([11].every(callbackfn, arg), '[11].every(callbackfn, arg) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js index f15102c64193b91c96d8197a0dfe4f6becf7f4ec..96c0d39a49b33e1dc7c81685df136aa33fdabb86 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js @@ -7,14 +7,15 @@ es5id: 15.4.4.16-5-2 description: Array.prototype.every - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var o = new Object(); +o.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var arr = [1]; assert.sameValue(arr.every(callbackfn, o), true, 'arr.every(callbackfn, o)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js index 7da5e819304969be78cf29a7d644646f4fa60c55..50d36ddce6903908689db9a8a9b460884435ae56 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js @@ -8,12 +8,12 @@ description: Array.prototype.every - the global object can be used as thisArg ---*/ var global = this; - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this === global; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === global; +} assert([11].every(callbackfn, global), '[11].every(callbackfn, global) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js index d580818a683ae9a5869dd3a2c1ff5f6e93d04b78..90dcfb2dfd1ffaf228d7ba9b9ad6a8709d2b6d0c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js @@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-22 description: Array.prototype.every - boolean primitive can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this.valueOf() === false; +} assert([11].every(callbackfn, false), '[11].every(callbackfn, false) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js index 7953a70064d94b5f6102b61b1f2bcf07049ff2fc..ba19fd209fed5a855778cb9c3250aaf8fb9c991c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js @@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-23 description: Array.prototype.every - number primitive can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this.valueOf() === 101; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this.valueOf() === 101; +} assert([11].every(callbackfn, 101), '[11].every(callbackfn, 101) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js index c9da3d9910f5c2fc818546b17d4c9893e82b29bd..4439dca25a111f219d7347d7e5cd68c6b2b061a9 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js @@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-24 description: Array.prototype.every - string primitive can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this.valueOf() === "abc"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this.valueOf() === "abc"; +} assert([11].every(callbackfn, "abc"), '[11].every(callbackfn, "abc") !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js index 69f614ff848c4b00dd3934446275005d401ff734..1a1bb9b7da930ad31e1b228feadabad3ab563284 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js @@ -7,14 +7,15 @@ es5id: 15.4.4.16-5-3 description: Array.prototype.every - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var a = new Array(); +a.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var arr = [1]; assert.sameValue(arr.every(callbackfn, a), true, 'arr.every(callbackfn, a)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js index 45ee186d178d7223f57fca4ff420b1549c036c78..b3e03058ab8c8c78e2830c7e78b64c64a87f75d8 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js @@ -9,15 +9,16 @@ description: > template(prototype) ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.prototype.res = true; - var f = new foo(); - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)'); +function foo() {} +foo.prototype.res = true; +var f = new foo(); +var arr = [1]; + +assert.sameValue(arr.every(callbackfn, f), true, 'arr.every(callbackfn,f)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js index c0447933fd2d1878b15f7dc3eb47d06e91ed83ea..47ce23ac6480c978769840409d91852e336b23f5 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js @@ -7,15 +7,16 @@ es5id: 15.4.4.16-5-5 description: Array.prototype.every - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)'); +function foo() {} +var f = new foo(); +f.res = true; +var arr = [1]; + +assert.sameValue(arr.every(callbackfn, f), true, 'arr.every(callbackfn,f)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js index f871e3a43fcc65517579228ba02cd2152761588e..a71c98ee2ff3a41d81a8895084161d06e8bece8d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js @@ -7,14 +7,15 @@ es5id: 15.4.4.16-5-6 description: Array.prototype.every - thisArg is function ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.every(callbackfn,foo), true, 'arr.every(callbackfn,foo)'); +function foo() {} +foo.res = true; +var arr = [1]; + +assert.sameValue(arr.every(callbackfn, foo), true, 'arr.every(callbackfn,foo)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js index 3fa6fc9e7be2f01e5fc793e5c593655595d4647f..ff38fcdc42e5f5666cc09d31e7d8825c1c9fd5a4 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js @@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-7 description: Array.prototype.every - built-in functions can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this === eval; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === eval; +} assert([11].every(callbackfn, eval), '[11].every(callbackfn, eval) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js index 400c0ca8450c6e9fe3a35480383091b376db71e1..2757891428b9e9ea54f07325256052069676340a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-9 description: Array.prototype.every - Function Object can be used as thisArg ---*/ - var accessed = false; - var objFunction = function () { }; +var accessed = false; +var objFunction = function() {}; - function callbackfn(val, idx, obj) { - accessed = true; - return this === objFunction; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objFunction; +} assert([11].every(callbackfn, objFunction), '[11].every(callbackfn, objFunction) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js index e8d6745ddeb8bb16deb262a585016b32ed8f9554..22bcfaff63c6ce38f1ad5c142f54d6edda8081a5 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js @@ -9,18 +9,18 @@ description: > the call ---*/ - var calledForThree = false; +var calledForThree = false; - function callbackfn(val, Idx, obj) - { - arr[2] = 3; - if(val == 3) - calledForThree = true; - return true; - } +function callbackfn(val, Idx, obj) +{ + arr[2] = 3; + if (val == 3) + calledForThree = true; + return true; +} - var arr = [1,2,,4,5]; +var arr = [1, 2, , 4, 5]; - var res = arr.every(callbackfn); +var res = arr.every(callbackfn); assert(calledForThree, 'calledForThree !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js index fcb91af1765fe038be2807ee0516eed534c266fc..47d3ed4e52d7f032341d8581b98c46786b141e71 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js @@ -9,16 +9,16 @@ description: > after the call ---*/ - function callbackfn(val, Idx, obj) - { - arr[4] = 6; - if(val < 6) - return true; - else - return false; - } +function callbackfn(val, Idx, obj) +{ + arr[4] = 6; + if (val < 6) + return true; + else + return false; +} - var arr = [1,2,3,4,5]; +var arr = [1, 2, 3, 4, 5]; assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js index 214575295963a21d1181830739b66db66d4a8c90..08531fe6197aea5efeb1bb33390ae8071dd17407 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js @@ -9,16 +9,16 @@ description: > after the call ---*/ - function callbackfn(val, Idx, obj) - { - delete arr[2]; - if(val == 3) - return false; - else - return true; - } +function callbackfn(val, Idx, obj) +{ + delete arr[2]; + if (val == 3) + return false; + else + return true; +} - var arr = [1,2,3,4,5]; +var arr = [1, 2, 3, 4, 5]; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js index 0cfdd4ebce30e8b780fc826018003f249a0438b8..9cbb2eda08df4ff97b003f1bfed56fa7685f94c3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js @@ -9,16 +9,16 @@ description: > Array.length is decreased ---*/ - function callbackfn(val, Idx, obj) - { - arr.length = 3; - if(val < 4) - return true; - else - return false; - } +function callbackfn(val, Idx, obj) +{ + arr.length = 3; + if (val < 4) + return true; + else + return false; +} - var arr = [1,2,3,4,6]; +var arr = [1, 2, 3, 4, 6]; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js index c7cfcd23eef68a3b904d56bdfb1df1ec8385b503..c4c062bdffaa93b68ba08a4c820a090f51ac4b44 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js @@ -9,18 +9,18 @@ description: > sparse array ---*/ - function callbackfn(val, Idx, obj) - { - arr[1000] = 3; - if(val < 3) - return true; - else - return false; - } +function callbackfn(val, Idx, obj) +{ + arr[1000] = 3; + if (val < 3) + return true; + else + return false; +} - var arr = new Array(10); - arr[1] = 1; - arr[2] = 2; +var arr = new Array(10); +arr[1] = 1; +arr[2] = 2; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js index 1cf937c7cd2d721fa532f98fa4046e8d787857da..45bcdd29a160e3a568314be20b0560a95e3ee4c9 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js @@ -9,19 +9,19 @@ description: > call when same index is also present in prototype ---*/ - function callbackfn(val, Idx, obj) - { - delete arr[2]; - if(val == 3) - return false; - else - return true; - } +function callbackfn(val, Idx, obj) +{ + delete arr[2]; + if (val == 3) + return false; + else + return true; +} - Array.prototype[2] = 3; - var arr = [1,2,3,4,5]; +Array.prototype[2] = 3; +var arr = [1, 2, 3, 4, 5]; - var res = arr.every(callbackfn); - delete Array.prototype[2]; +var res = arr.every(callbackfn); +delete Array.prototype[2]; assert.sameValue(res, false, 'res'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js index 7eaab50788c758b997eca593c197e8169beb78c1..d25bd744d2be197292dc34af0f5eed6abef2b461 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js @@ -10,16 +10,16 @@ description: > Array.prototype.every is called for all elements ---*/ - var o = new Object(); - o.arr = [1, 2, 3, 4, 5]; +var o = new Object(); +o.arr = [1, 2, 3, 4, 5]; - function callbackfn(val, Idx, obj) { - delete o.arr; - if (val === Idx + 1) - return true; - else - return false; - } +function callbackfn(val, Idx, obj) { + delete o.arr; + if (val === Idx + 1) + return true; + else + return false; +} assert(o.arr.every(callbackfn), 'o.arr.every(callbackfn) !== true'); assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js index 079db7b2d06404a21933cd3062434e874132ca6c..ff2f0f8bed0b021d21c89f6c5aa1fd6609b3fb3d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js @@ -7,14 +7,18 @@ es5id: 15.4.4.16-7-8 description: Array.prototype.every - no observable effects occur if len is 0 ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 12, length: 0 }; +var obj = { + 0: 11, + 1: 12, + length: 0 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js index ded5d48e2588a89e91cc4c4a6584fa838fc44dc0..c1bbdfc1b1cbdb1e002c8bb9215a7c4cae3dce09 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js @@ -9,22 +9,26 @@ description: > number of iterations ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val > 10; - } +function callbackfn(val, idx, obj) { + called++; + return val > 10; +} - var obj = { 1: 12, 2: 9, length: 2 }; +var obj = { + 1: 12, + 2: 9, + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - obj.length = 3; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + obj.length = 3; + return 11; + }, + configurable: true +}); assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js index e0f07ee54ef5302bc05d8d25486dc87a0e985d99..abcf91365cb4a659822fd1fc7953ff53c0e3fd8f 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js @@ -9,15 +9,16 @@ description: > been assigned values ---*/ - var callCnt = 0.; - function callbackfn(val, Idx, obj) - { - callCnt++; - return true; - } +var callCnt = 0.; - var arr = new Array(10); - arr[1] = undefined; - arr.every(callbackfn); +function callbackfn(val, Idx, obj) +{ + callCnt++; + return true; +} + +var arr = new Array(10); +arr[1] = undefined; +arr.every(callbackfn); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js index e27ff642f6aaa81850bf2995aa443456357fb2da..913796b1f92d535ce8df880479770a43f623604f 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js @@ -9,22 +9,26 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 1; - } - var arr = { 2: 2, length: 20 }; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 1; +} +var arr = { + 2: 2, + length: 20 +}; - Object.prototype[1] = 1; +Object.defineProperty(arr, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); + +Object.prototype[1] = 1; assert(Array.prototype.every.call(arr, callbackfn), 'Array.prototype.every.call(arr, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js index 54c86d50edfdb97c04f4e86dfb5fcbc23fb38529..c9ff957cbad8baf851d0a82ded76946de1b35138 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js @@ -9,22 +9,23 @@ description: > prototype index property not to be visited on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 1; - } - var arr = [0, , 2]; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 1; +} +var arr = [0, , 2]; - Array.prototype[1] = 1; +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); + +Array.prototype[1] = 1; assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js index fda1fe2a7e8f94807d7a7fd827bc9da87ebebe1c..63282ca5542833390242e01c7fe2b7c9ba2afb42 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js @@ -10,23 +10,28 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } - var arr = { 0: 0, 1: 111, 2: 2, length: 10 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} +var arr = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js index 4032502e513a935da527ac8f12535052d3add1e7..26f3f17d176a5d3d0f9bc7cd7cb945ea6df30a1a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js @@ -9,23 +9,23 @@ description: > property causes prototype index property to be visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } - var arr = [0, 111, 2]; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} +var arr = [0, 111, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; +Array.prototype[1] = 1; assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js index 5115a27a3507a96e4171bec1f2ebedb094674c57..a017ff964342a67d5dc4b263e6fc9c1b4fb65c47 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js @@ -9,20 +9,21 @@ description: > property not to be visited ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 3; - } - var arr = [0, 1, 2, "last"]; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 3; +} +var arr = [0, 1, 2, "last"]; + +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js index 03fa5344fe2f37e44c56a2357e74e355139a96e4..eeb2786e3b9824fc67dce867c19062a805abdd94 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js @@ -9,28 +9,28 @@ description: > property causes prototype index property to be visited ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "prototype") { - return false; - } else { - return true; - } - } - var arr = [0, 1, 2]; +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "prototype") { + return false; + } else { + return true; + } +} +var arr = [0, 1, 2]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js index 602b4b80c2a9391988828841e00625ba8ac9ac82..2bd39ef0ab64b64b13baf9203cb3ac944c9f2eb0 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js @@ -10,29 +10,29 @@ description: > flags: [noStrict] ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "unconfigurable") { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "unconfigurable") { + return false; + } else { + return true; + } +} - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js index fca306466a1a4e0f61f2c3884d90b7ff93b3e09b..56c5b404f38f36023dfefc16d1c4f35ca48894c9 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js @@ -7,22 +7,22 @@ es5id: 15.4.4.16-7-b-2 description: Array.prototype.every - added properties in step 2 are visible here ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "length") { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "length") { + return false; + } else { + return true; + } +} - var arr = { }; +var arr = {}; - Object.defineProperty(arr, "length", { - get: function () { - arr[2] = "length"; - return 3; - }, - configurable: true - }); +Object.defineProperty(arr, "length", { + get: function() { + arr[2] = "length"; + return 3; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js index 9c7afe89aef981f2932afc94444cccfe62995a56..ca526b8ca2395c69ffd7d77bca76bff6b9625642 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js @@ -9,20 +9,24 @@ description: > here ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 2; - } - var arr = { 2: 6.99, 8: 19}; +var accessed = false; - Object.defineProperty(arr, "length", { - get: function () { - delete arr[2]; - return 10; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 2; +} +var arr = { + 2: 6.99, + 8: 19 +}; + +Object.defineProperty(arr, "length", { + get: function() { + delete arr[2]; + return 10; + }, + configurable: true +}); assert(Array.prototype.every.call(arr, callbackfn), 'Array.prototype.every.call(arr, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js index dbcbe21dd100b943e9dd931d816b0bf2876afae5..691affd2ccb6fd5b4528148d6d1f778fe27265ba 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js @@ -9,27 +9,29 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js index 5fd08b67e9114c78b308bd359aa15198319cdbdb..75cff0bfedabf53fffde704e8e673d2d1614aed5 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js @@ -9,27 +9,27 @@ description: > current position are visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js index 4a71a83894642c0dee6aa0730a4c198d85914d0a..27663980cce4a24e1c5b7b5b30a887f8203b4d50 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js @@ -9,26 +9,28 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return false; - } else { - return true; - } - } - var arr = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return false; + } else { + return true; + } +} +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js index 692c399de53bcecfabd6b75ab2508f958eac6b2a..92daa04a1924f79ea204fa4e12577ca65df00462 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js @@ -9,26 +9,26 @@ description: > current position are visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return false; - } else { - return true; - } - } - var arr = [0, , 2]; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return false; + } else { + return true; + } +} +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js index 4bb911375b52909298a1eebdd9d157c9bc43429d..76f5f1cc01ad5f1b271c9123143fbd80a7f4e956 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js @@ -9,27 +9,30 @@ description: > property not to be visited on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 1; - } - var obj = { length: 2 }; +var accessed = false; - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 1; +} +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js index 2c340f8d6347aaa55ca03fba2d0090f32e78a731..9159db9860cf04c6009d80946816fe4c33f50a2e 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js @@ -9,27 +9,28 @@ description: > property not to be visited on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 1; - } - var arr = [1, 2]; +var accessed = false; - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 1; +} +var arr = [1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js index 579deb13d282e3bc24e39d8baf9e36217e40c3ca..fd1e28b5f0786d75c586647e446e5bd86595e22c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js @@ -9,15 +9,19 @@ description: > property on an Array-like object ---*/ - var kValue = { }; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val !== kValue; - } else { - return true; - } - } +var kValue = {}; - var obj = { 5: kValue, length: 100 }; +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val !== kValue; + } else { + return true; + } +} + +var obj = { + 5: kValue, + length: 100 +}; assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js index 1357bbb23ab616aadc3d64eb5a12c7b442dc3893..653e5e24452b1b908b62788ab8ea26d7344cd34b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js @@ -9,21 +9,21 @@ description: > property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2) { - return val !== 12; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 2) { + return val !== 12; + } else { + return true; + } +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "2", { - get: function () { - return 12; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + return 12; + }, + configurable: true +}); assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js index 9527daf83e986bc9d1cf7aebac433d8495211934..4168c98f9448d1f819eb38174b2ed5924add7727 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js @@ -10,27 +10,30 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 5; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 5; + } else { + return true; + } +} - var proto = { 0: 5, 1: 6 }; +var proto = { + 0: 5, + 1: 6 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Object.defineProperty(child, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(child, "0", { + get: function() { + return 11; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js index 54751e56620344d59c264797542077078afce503..c1f29b18b83d8ac60cd9b677bebb42dacab070c7 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js @@ -9,23 +9,23 @@ description: > property that overrides an inherited data property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 10; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 10; + } else { + return true; + } +} - var arr = []; +var arr = []; - Array.prototype[0] = 10; +Array.prototype[0] = 10; - Object.defineProperty(arr, "0", { - get: function () { - return 111; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return 111; + }, + configurable: true +}); assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js index aff2f0b0e6a9b9dd3c0d63200d3f326e7b3d42c4..5ffb1d54444d28be7272f8c93d22b6ee1602b8d6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js @@ -10,35 +10,35 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === 6; - } else { - return true; - } - } - - var proto = {}; - - Object.defineProperty(proto, "1", { - get: function () { - return 6; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 10; - - Object.defineProperty(child, "1", { - get: function () { - return 12; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === 6; + } else { + return true; + } +} + +var proto = {}; + +Object.defineProperty(proto, "1", { + get: function() { + return 6; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 10; + +Object.defineProperty(child, "1", { + get: function() { + return 12; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js index 544ef938b3530d4a58e9e94864ca8cf82ab44dd6..1cf1f75a2b6bb68afb38446fab87b70d9adbcbd0 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js @@ -9,28 +9,28 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 5; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 5; + } else { + return true; + } +} - var arr = []; +var arr = []; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 5; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 5; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return 11; + }, + configurable: true +}); assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js index bc8906dfcb4cf3a1a29500b81f963274075d3793..aab698397bb25f5670c73b87d5115becb8c8eb36 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js @@ -9,27 +9,27 @@ description: > accessor property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val !== 11; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val !== 11; + } else { + return true; + } +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "1", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(proto, "1", { + get: function() { + return 11; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 20; +var child = new Con(); +child.length = 20; assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js index 20a2741807fba7c5213c78b972efb9cb0af9ad59..c249d76b1eb2984de2167b9bf22acbb9c08c8ab6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js @@ -9,19 +9,19 @@ description: > accessor property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val !== 11; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val !== 11; + } else { + return true; + } +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true +}); assert.sameValue([, , , ].every(callbackfn), false, '[, , , ].every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js index 948c741bd89350f30749268b56802aa6aabec787..9b52fef8fa5bfc67c08b0db7f4652c311193bec3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js @@ -9,18 +9,20 @@ description: > property without a get function on an Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return typeof val === "undefined"; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js index 7911ea384bc8de1a329ab4634e7300bd6cc4d6ea..300d32b8284c68923e79a1386eac93c2c3e4d447 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js @@ -9,19 +9,19 @@ description: > property without a get function on an Array ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return typeof val === "undefined"; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js index 26ae16c5a35d53f05a87da406b708ce35650d8e9..cc150375a8e0da2f97fb0c3c3267fd42d49ef6bf 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js @@ -10,20 +10,22 @@ description: > accessor property on an Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return typeof val === "undefined"; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - Object.prototype[1] = 10; +Object.prototype[1] = 10; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js index 5a201fde8bbe6ad4470ac16da0ddd35e195259b3..5afcd1e0b7c66cf7f271f5abc7210ca3bf1aa68a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js @@ -9,12 +9,12 @@ description: > property on an Array ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val === 11; - } +function callbackfn(val, idx, obj) { + called++; + return val === 11; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert.sameValue(called, 1, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js index 38e384bb23a514b6f0bfdc3d46a6b846fc665cc1..8a5fa313915c550ba93401a102264ebc47c70423 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js @@ -10,21 +10,21 @@ description: > accessor property on an Array ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return typeof val === "undefined"; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); - Array.prototype[0] = 100; +Array.prototype[0] = 100; assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js index c905856ef0d7097e56fa66efcb63a27ccb41aa07..b6d06142ecbbfb4f77c70b445e9195d7167434db 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js @@ -9,24 +9,24 @@ description: > accessor property without a get function on an Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return typeof val === "undefined"; +} - var proto = {}; - Object.defineProperty(proto, "1", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "1", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; +var child = new Con(); +child.length = 2; assert(Array.prototype.every.call(child, callbackfn), 'Array.prototype.every.call(child, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js index aaa682d440aa58ff765b7c010690d7ada929c93a..9477b201fd26700c562d94cafa59b66c676894fc 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js @@ -9,17 +9,17 @@ description: > accessor property without a get function on an Array ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return typeof val === "undefined"; +} - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); assert([, ].every(callbackfn), '[, ].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js index 2900f50338711aea635b349ecb6634948e0f6c11..c39d506641e2622fd6b3ab8fe1eccb56615b48da 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js @@ -10,16 +10,16 @@ description: > less than number of parameters) ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val === 11; - } +function callbackfn(val, idx, obj) { + called++; + return val === 11; +} - var func = function (a, b) { - return Array.prototype.every.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.every.call(arguments, callbackfn); +}; assert(func(11), 'func(11) !== true'); assert.sameValue(called, 1, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js index 6e636fbb95ee310c248f3d7905e947bfece9f71e..3e1c7da804daacef68e69eef22a8c3b3931ecccf 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js @@ -10,22 +10,22 @@ description: > number of parameters) ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - if (idx === 0) { - return val === 11; - } else if (idx === 1) { - return val === 9; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + called++; + if (idx === 0) { + return val === 11; + } else if (idx === 1) { + return val === 9; + } else { + return false; + } +} - var func = function (a, b) { - return Array.prototype.every.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.every.call(arguments, callbackfn); +}; assert(func(11, 9), 'func(11, 9) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js index c1c2719defae70608f517a9b53eb16d64dd76633..2002d812a12abc557e87826ca334d513fb080222 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js @@ -10,22 +10,22 @@ description: > greater than number of parameters) ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - if (idx < 2) { - return val > 10; - } else if (idx === 2) { - return val < 10; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + called++; + if (idx < 2) { + return val > 10; + } else if (idx === 2) { + return val < 10; + } else { + return false; + } +} - var func = function (a, b) { - return Array.prototype.every.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.every.call(arguments, callbackfn); +}; assert(func(11, 12, 9), 'func(11, 12, 9) !== true'); assert.sameValue(called, 3, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js index d39ed23c0e44508f5eb09743160d0e63199d89f8..425efe58997e82c244138e93943d0a50332e70b3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js @@ -9,30 +9,30 @@ description: > iterations is observed on an Array ---*/ - var preIterVisible = false; - var arr = []; +var preIterVisible = false; +var arr = []; - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 11; - } - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 11; + } + }, + configurable: true +}); assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js index dbc91eb1503a06323d621f6735eb976f4b573ffe..90c121c97228d6bdff87230019a9def27d2bda1f 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js @@ -9,30 +9,32 @@ description: > iterations is observed on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var preIterVisible = false; - var obj = { length: 2 }; +var preIterVisible = false; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 13; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 13; + } + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js index c4fe3a8144e7ce106faac968aac190a5e789b943..d0eac70c03271dc268ac51038a8f930a764d8595 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js @@ -9,21 +9,24 @@ description: > property that overrides an inherited data property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === 100; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === 100; + } else { + return true; + } +} - var proto = { 0: 11, 5: 100 }; +var proto = { + 0: 11, + 5: 100 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = "abc"; - child.length = 10; +var child = new Con(); +child[5] = "abc"; +child.length = 10; assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js index 3bd5fd64916f718b984c9525b23cccb54ee23999..04f0d513810f6e58dae4f3f445d67364d89e3283 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js @@ -9,22 +9,28 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var obj = { 0: 11, 5: 10, 10: 8, length: 20 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} + +var obj = { + 0: 11, + 5: 10, + 10: 8, + length: 20 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.every.call(obj, callbackfn); + Array.prototype.every.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js index 3214e3376e34f9ea80fa8bcab9f1d49d8007be97..b28796ac8093aad93577db4ee3885006509b370a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js @@ -9,25 +9,26 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var arr = []; - arr[5] = 10; - arr[10] = 100; +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} - Object.defineProperty(arr, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = []; +arr[5] = 10; +arr[10] = 100; + +Object.defineProperty(arr, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.every(callbackfn); + arr.every(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js index 9c598c783ed3fc3ea16fcd1a9a84c0060b0a0fdc..d9e81c6df38be50bad9707b0a7c569d24423502b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js @@ -9,14 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val === 12; - } +var called = 0; - Array.prototype[0] = 11; - Array.prototype[1] = 11; +function callbackfn(val, idx, obj) { + called++; + return val === 12; +} + +Array.prototype[0] = 11; +Array.prototype[1] = 11; assert([12, 12].every(callbackfn), '[12, 12].every(callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js index 988ac8f6e94182f64d2a87806c1c009426cdbcf0..25c26707864dcd8be4dc780588025fc65ee6c546 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js @@ -10,32 +10,32 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 5; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 5; + } else { + return true; + } +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "0", { - get: function () { - return 5; - }, - configurable: true - }); +Object.defineProperty(proto, "0", { + get: function() { + return 5; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - Object.defineProperty(child, "0", { - value: 11, - configurable: true - }); - child[1] = 12; +var child = new Con(); +child.length = 2; +Object.defineProperty(child, "0", { + value: 11, + configurable: true +}); +child[1] = 12; assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js index da98350be502fd59871ee7635ef865601c099e46..9575fe8adb9b5cd7d118d3bcc6c96dcb732301ff 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js @@ -9,19 +9,19 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val === 11; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val === 11; +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 9; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 9; + }, + configurable: true +}); assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js index f0d11eb5bfcc580b9019b3422c14379509e1b0db..10d9ab7dbb9acf5719f2b78c93ccd545801f516b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js @@ -9,22 +9,24 @@ description: > property on an Array-like object ---*/ - var kValue = 'abc'; +var kValue = 'abc'; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val !== kValue; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val !== kValue; + } else { + return true; + } +} - var proto = { 5: kValue }; +var proto = { + 5: kValue +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js index f36b5423689de81c846b4c55d07367288d42d6ba..507af757aa3d5c66b3b36bbb573ec5913491d470 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js @@ -9,14 +9,14 @@ description: > property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val !== 13; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val !== 13; + } else { + return true; + } +} - Array.prototype[1] = 13; +Array.prototype[1] = 13; assert.sameValue([, , , ].every(callbackfn), false, '[, , , ].every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js index 5b37f8ab441acd722cc89f91f30d3a8ca0374a72..49392cb8a78e42c35966fd29a868ecee0cf81f8e 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js @@ -9,22 +9,25 @@ description: > property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val !== 11; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val !== 11; + } else { + return true; + } +} - var obj = { 10: 10, length: 20 }; +var obj = { + 10: 10, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js index 559925a6968fe1281d9f7b44f163895f0153844d..fff7c361cde53ca749cff09394c130525685d119 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js @@ -7,13 +7,13 @@ es5id: 15.4.4.16-7-c-ii-1 description: Array.prototype.every - callbackfn called with correct parameters ---*/ - function callbackfn(val, Idx, obj) - { - if(obj[Idx] === val) - return true; - } +function callbackfn(val, Idx, obj) +{ + if (obj[Idx] === val) + return true; +} - var arr = [0,1,2,3,4,5,6,7,8,9]; +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js index 3a67002bfc0ea7ff3eb2afb7cceb7bd9b0291648..118130921ca448baf7369241e3bd702464294b39 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js @@ -9,12 +9,12 @@ description: > parameter ---*/ - var called = 0; +var called = 0; - function callbackfn(val) { - called++; - return val > 10; - } +function callbackfn(val) { + called++; + return val > 10; +} assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js index 41797d60cd2b13297c0b918b3bf3414d5c5ee265..1ed6ecb0dc2f9caff7ecba6225f222c405bee077 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js @@ -9,12 +9,12 @@ description: > parameter ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx) { - called++; - return val > 10 && arguments[2][idx] === val; - } +function callbackfn(val, idx) { + called++; + return val > 10 && arguments[2][idx] === val; +} assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js index 0724d0b3fac7d0692aabd68ea70706cadd11ca31..62eefe55bbf22118a516a62201e2242216ae3c50 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js @@ -9,12 +9,12 @@ description: > parameter ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val > 10 && obj[idx] === val; - } +function callbackfn(val, idx, obj) { + called++; + return val > 10 && obj[idx] === val; +} assert([11, 12, 13].every(callbackfn), '[11, 12, 13].every(callbackfn) !== true'); assert.sameValue(called, 3, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js index 340b49aff16031e5de6f8a7a770948b243e80aa6..8f30c0a8c4ea1798b0057fe72202d47b767b2218 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js @@ -9,12 +9,12 @@ description: > get parameter value ---*/ - var called = 0; +var called = 0; - function callbackfn() { - called++; - return arguments[2][arguments[1]] === arguments[0]; - } +function callbackfn() { + called++; + return arguments[2][arguments[1]] === arguments[0]; +} assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js index f9a5dc890a82836c4a2f664164f2292cc7bd1045..379efe7654bae13158b708ab4b5d37f4b851da25 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js @@ -9,14 +9,17 @@ description: > when T is not an object (T is a boolean primitive) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this.valueOf() !== false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this.valueOf() !== false; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert.sameValue(Array.prototype.every.call(obj, callbackfn, false), false, 'Array.prototype.every.call(obj, callbackfn, false)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js index 3732ea4417db57dbda2ad2065906239ccca61e8a..f9d83678ecde2ff7c0422b8771ed1a29bf6b6430 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js @@ -9,14 +9,17 @@ description: > when T is not an object (T is a number primitive) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, o) { - accessed = true; - return 5 === this.valueOf(); - } +function callbackfn(val, idx, o) { + accessed = true; + return 5 === this.valueOf(); +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn, 5), 'Array.prototype.every.call(obj, callbackfn, 5) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js index 3392433cbe3f6eabcde27a452fd14432f91770b7..17c1668bc2633bf127a0c9f37173c9dd9507fcc1 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js @@ -9,14 +9,17 @@ description: > when T is not an object (T is a string primitive) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return 'hello' === this.valueOf(); - } +function callbackfn(val, idx, obj) { + accessed = true; + return 'hello' === this.valueOf(); +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn, "hello"), 'Array.prototype.every.call(obj, callbackfn, "hello") !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js index f861f38e613f69ae25097a7d4bc1918b2de04e0c..cc7626465e6d1bb4e124256020eadedaeb9ec15a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js @@ -7,14 +7,19 @@ es5id: 15.4.4.16-7-c-ii-19 description: Array.prototype.every - non-indexed properties are not called ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val !== 8; - } +function callbackfn(val, idx, obj) { + called++; + return val !== 8; +} - var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 }; +var obj = { + 0: 11, + 10: 12, + non_index_property: 8, + length: 20 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js index 0194ce3871fbf01da06528e71e08527dd1dabf6a..daacdfda481d20d6d4fd447e0dfd848f66c039c5 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js @@ -7,14 +7,14 @@ es5id: 15.4.4.16-7-c-ii-2 description: Array.prototype.every - callbackfn takes 3 arguments ---*/ - function callbackfn(val, Idx, obj) - { - if(arguments.length === 3) //verify if callbackfn was called with 3 parameters - return true; - } +function callbackfn(val, Idx, obj) +{ + if (arguments.length === 3) //verify if callbackfn was called with 3 parameters + return true; +} - var arr = [0,1,true,null,new Object(),"five"]; - arr[999999] = -6.6; +var arr = [0, 1, true, null, new Object(), "five"]; +arr[999999] = -6.6; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js index 9cb001e0c8957e4e828117d68385d5d4dcb68f42..23fe1f4c118125972b016338e32fb89310e4ea71 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js @@ -9,15 +9,20 @@ description: > (thisArg is correct) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return 10 === this.threshold; - } +function callbackfn(val, idx, obj) { + accessed = true; + return 10 === this.threshold; +} - var thisArg = { threshold: 10 }; +var thisArg = { + threshold: 10 +}; - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js index 2d193c698ef8a7c2a9c0df59c73707641e1895b6..4153657136f9214d9375ebb963568738776452e8 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js @@ -9,21 +9,25 @@ description: > (kValue is correct) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 0) { - return val === 11; - } +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 0) { + return val === 11; + } - if (idx === 1) { - return val === 12; - } + if (idx === 1) { + return val === 12; + } - } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js index 524d6196525dcd1348fc85663249de04365f941c..bd56fc0a95ddca29ae2d6b059bbd5824ae9abe98 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js @@ -9,21 +9,25 @@ description: > (the index k is correct) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - if (val === 11) { - return idx === 0; - } +function callbackfn(val, idx, obj) { + accessed = true; + if (val === 11) { + return idx === 0; + } - if (val === 12) { - return idx === 1; - } + if (val === 12) { + return idx === 1; + } - } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js index e5567884be115e726dbabdcff9bcabab97de25df..59a1e556622700fa3bfa3f70b9fd1ba31c814c65 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js @@ -9,13 +9,17 @@ description: > (this object O is correct) ---*/ - var called = 0; - var obj = { 0: 11, 1: 12, length: 2 }; +var called = 0; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - called++; - return obj === o; - } +function callbackfn(val, idx, o) { + called++; + return obj === o; +} assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js index 39da9d01feeab5b17aae9a36d37052752d79d042..f35df89130fd4f83878db16725eb1cedc533383d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js @@ -9,17 +9,18 @@ description: > returns false ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - if(idx > 5) - return false; - else - return true; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; +function callbackfn(val, idx, obj) +{ + callCnt++; + if (idx > 5) + return false; + else + return true; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js index 9a4216a673ffa56c0f24fc60882e2297bec8fd4a..07a4d691a65391779c0b5a84a074526688ce0bfa 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js @@ -9,18 +9,19 @@ description: > order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - return false; - } else { - lastIdx++; - return true; - } - } +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; + +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + return false; + } else { + lastIdx++; + return true; + } +} assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert.sameValue(arr.length, called, 'arr.length'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js index edd62427fbd14ee2c094ca28e5a770edd82e1aa9..f604f96720f5a1c42b2ff9a17796866273e3e352 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js @@ -9,24 +9,24 @@ description: > iteration and not prior to starting the loop on an Array ---*/ - var called = 0; - var kIndex = []; +var called = 0; +var kIndex = []; - //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. - function callbackfn(val, idx, obj) { - called++; - //Each position should be visited one time, which means k is accessed one time during iterations. - if (typeof kIndex[idx] === "undefined") { - //when current position is visited, its previous index should has been visited. - if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { - return false; - } - kIndex[idx] = 1; - return true; - } else { - return false; - } - } +//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. +function callbackfn(val, idx, obj) { + called++; + //Each position should be visited one time, which means k is accessed one time during iterations. + if (typeof kIndex[idx] === "undefined") { + //when current position is visited, its previous index should has been visited. + if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { + return false; + } + kIndex[idx] = 1; + return true; + } else { + return false; + } +} assert([11, 12, 13, 14].every(callbackfn, undefined), '[11, 12, 13, 14].every(callbackfn, undefined) !== true'); assert.sameValue(called, 4, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js index d1c33e9674f37329d313db41127f89af7129744b..df9f83143c4aea4f50bdd8647f041376dbcdb521 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js @@ -7,17 +7,20 @@ es5id: 15.4.4.16-7-c-ii-6 description: Array.prototype.every - arguments to callbackfn are self consistent ---*/ - var accessed = false; - var thisArg = {}; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var thisArg = {}; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn() { - accessed = true; - return this === thisArg && - arguments[0] === 11 && - arguments[1] === 0 && - arguments[2] === obj; - } +function callbackfn() { + accessed = true; + return this === thisArg && + arguments[0] === 11 && + arguments[1] === 0 && + arguments[2] === obj; +} assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js index d3f0f8eff845c04ae68c977f25c5a3a3990358d5..c1a6345d83796fc589c1cf7892559f9f975f24db 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js @@ -9,20 +9,25 @@ description: > callbackfn terminate iteration ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - if (called === 1) { - throw new Test262Error("Exception occurred in callbackfn"); - } - return true; - } +function callbackfn(val, idx, obj) { + called++; + if (called === 1) { + throw new Test262Error("Exception occurred in callbackfn"); + } + return true; +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Test262Error, function() { - Array.prototype.every.call(obj, callbackfn); + Array.prototype.every.call(obj, callbackfn); }); assert.sameValue(called, 1, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js index 26fb2b97a98a230738d71158f0f58e8432488108..6f015b207b15ebbd519dc4907ae7a6da1b329b2d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js @@ -9,14 +9,18 @@ description: > iterations is observed ---*/ - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - if (idx === 0) { - obj[idx + 1] = 8; - } - return val > 10; - } +function callbackfn(val, idx, o) { + if (idx === 0) { + obj[idx + 1] = 8; + } + return val > 10; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js index dfc3894db7ba9e53a46fb042859992bc3bff945c..b033642755958843a133ae978bf1e18937df5a98 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js @@ -9,12 +9,12 @@ description: > parameter ---*/ - var called = 0; +var called = 0; - function callbackfn() { - called++; - return true; - } +function callbackfn() { + called++; + return true; +} assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js index f29e4f155bfdf9f0e8efebbfad694486a9fc9fe8..bafc7b84117f031b9e10672be0f120b65ab6199a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js @@ -7,13 +7,16 @@ es5id: 15.4.4.16-7-c-iii-1 description: Array.prototype.every - return value of callbackfn is undefined ---*/ - var accessed = false; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn(val, idx, o) { - accessed = true; - return undefined; - } +function callbackfn(val, idx, o) { + accessed = true; + return undefined; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js index 6f806273d8b7255cbbc248f219bf287bad9707d9..f495dd02c25064e39cd3cf048b3c1ef604fa66d7 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js @@ -9,12 +9,12 @@ description: > (value is Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return Infinity; - } +function callbackfn(val, idx, obj) { + accessed = true; + return Infinity; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js index 923f6e28b051c2477d7475d1e9d84541114f31a1..b761964aef3a930bf7c634c859bd0bff639d2b3a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js @@ -9,12 +9,12 @@ description: > (value is -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return -Infinity; - } +function callbackfn(val, idx, obj) { + accessed = true; + return -Infinity; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js index a8ee187e32f9e45b50a1b256b329620c6dde99eb..0ac2e55360dd68c341ad4bbc472943860ac5b24c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js @@ -9,12 +9,12 @@ description: > (value is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return NaN; - } +function callbackfn(val, idx, obj) { + accessed = true; + return NaN; +} assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js index 4185bfa74545342e2f1073b693764beec71622be..931cb99cae79333356b920f7b50ea4562639f397 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js @@ -9,12 +9,12 @@ description: > string ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return ""; - } +function callbackfn(val, idx, obj) { + accessed = true; + return ""; +} assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js index 5e7cbea1c6773146309e74f92b2b1369171dfe41..ce75448e9173e075f290c2c5bccbf3297267f9da 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js @@ -9,12 +9,12 @@ description: > string ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return "non-empty string"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return "non-empty string"; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js index 2b577983b9a6a1e9c7efe96631e8e4d03405d66c..0ab89ec096117fe160ee7caba15416310d9a38d1 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return function () { }; - } +function callbackfn(val, idx, obj) { + accessed = true; + return function() {}; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js index eec81ccd62dd392d088b7c07a0ea9bbd020c683e..f7f6f68734d049993270ab3771c28a16f71b9d93 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return []; - } +function callbackfn(val, idx, obj) { + accessed = true; + return []; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js index bdf6d731419ae64bce5aca6fb82e4c862ec9d8a2..273fb64fd0c7631208f4ff3b19c03006b9fcc3c4 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return new String(); - } +function callbackfn(val, idx, obj) { + accessed = true; + return new String(); +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js index 37d3ecc27e24399d832a59eefd0c74c2b1979f8a..7cde6eabfe0679189213708ae480976ac2c1e5e9 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return new Boolean(); - } +function callbackfn(val, idx, obj) { + accessed = true; + return new Boolean(); +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js index f9ef17f28836b902198a3922adba9e4d03761a31..7306e5e4530e9b1438e1199b0f4cea5419d6fac6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return new Number(); - } +function callbackfn(val, idx, obj) { + accessed = true; + return new Number(); +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js index 7084a37765577e6c66cd5123015fee72cf7754b2..62e4d058932b114db6ea1d0ff239d166917b8ceb 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js @@ -7,13 +7,16 @@ es5id: 15.4.4.16-7-c-iii-2 description: Array.prototype.every - return value of callbackfn is null ---*/ - var accessed = false; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn(val, idx, obj) { - accessed = true; - return null; - } +function callbackfn(val, idx, obj) { + accessed = true; + return null; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js index 7a68faf9f6756493ee1d46ceb2527d204dd53465..2026f6357ac7bfe69ce050b8d7b88053b14d9fc7 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return Math; - } +function callbackfn(val, idx, obj) { + accessed = true; + return Math; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js index ef6432c3d6fa93bf1f5426b8b211fd8656e77138..3b16afa42c1c2c73d3a3e804148bb01d4bce1a95 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js @@ -7,12 +7,12 @@ es5id: 15.4.4.16-7-c-iii-21 description: Array.prototype.every - return value of callbackfn is a Date object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return new Date(); - } +function callbackfn(val, idx, obj) { + accessed = true; + return new Date(); +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js index b7b1437a8ed7cf9e128e429c9aaaf2ab2e14e880..3616be1410079ad9e492c8e65fc9f2cdf4616015 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return new RegExp(); - } +function callbackfn(val, idx, obj) { + accessed = true; + return new RegExp(); +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js index 80b30b5f64708d6648c464cc2b20dac4bf527d53..87151094b278c61b1d70143742674777ed45970a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return JSON; - } +function callbackfn(val, idx, obj) { + accessed = true; + return JSON; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js index 3075fcdb68f49c40330628082cfa00575d153097..7141b6a713ff653f96d56d535d2c047475c09fe4 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js @@ -9,12 +9,12 @@ description: > object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return new EvalError(); - } +function callbackfn(val, idx, obj) { + accessed = true; + return new EvalError(); +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js index fcfc6b35cec9181af906456ba8d2e49a1a4b266c..8efc3f1743656231500963d5c201a93f61b48db4 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js @@ -9,12 +9,12 @@ description: > Arguments object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return arguments; - } +function callbackfn(val, idx, obj) { + accessed = true; + return arguments; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js index 5f962f32f2dd1fcda2d015b495d675de53ae98fd..2b650660b5020549bf6ca19a3d8eb3eb9c0cb24b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js @@ -10,12 +10,12 @@ description: > ---*/ var global = this; - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return global; - } +function callbackfn(val, idx, obj) { + accessed = true; + return global; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js index 7c1df38b40afef9ccb898ac7d84c6fdb52563fbc..0475c7ff594382d3ba1466864cc5c4a833b208fe 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js @@ -7,37 +7,39 @@ es5id: 15.4.4.16-7-c-iii-28 description: Array.prototype.every - false prevents further side effects ---*/ - var result = false; - var obj = { length: 20 }; +var result = false; +var obj = { + length: 20 +}; - function callbackfn(val, idx, obj) { - if (idx > 1) { - result = true; - } - return val > 10; - } +function callbackfn(val, idx, obj) { + if (idx > 1) { + result = true; + } + return val > 10; +} - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - return 8; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 8; + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - result = true; - return 8; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + result = true; + return 8; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); assert.sameValue(result, false, 'result'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js index 796bd2ea584f698f4871b9b8544d49058911e67d..7571d0ec3d5b9aafd190c83286dd370cf1c1bea3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js @@ -9,12 +9,12 @@ description: > callbackfn is treated as true value ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return new Boolean(false); - } +function callbackfn(val, idx, obj) { + accessed = true; + return new Boolean(false); +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js index c8583c061abf9374536799746b7bbe0bbe36bb87..bcd7891c7318c521e158475ee316673efaccfe5d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js @@ -9,13 +9,16 @@ description: > (value is false) ---*/ - var accessed = false; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn(val, idx, obj) { - accessed = true; - return false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return false; +} assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js index 31b4185b934d8295af0d6290818966dab574c23f..34469360ca6d30469946eb86bc046caaecd4bf49 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js @@ -9,13 +9,16 @@ description: > (value is true) ---*/ - var accessed = false; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js index 93790b433d98e08b42c313b54501a64405b93001..b1ce805acce5ce659ad1eb63781f9aa481121832 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js @@ -9,12 +9,12 @@ description: > (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return 0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return 0; +} assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js index fc0eaa0691857f901def1dd68f297e219b9f3827..5ca00586521f0541d064822579a057da49b34826 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js @@ -9,12 +9,12 @@ description: > (value is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return +0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return +0; +} assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js index 4ec5e4a5ee8e953408277c79f45b0181d63b1bba..3b152c86bd7bb3f4be4efdcd98811cc5046dcf38 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js @@ -9,12 +9,12 @@ description: > (value is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return -0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return -0; +} assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js index 59a89680e64ddb69868f770aa3f47ccece296325..0c2b63f0016f1a4d754d7904076d3eb57f3be048 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js @@ -9,12 +9,12 @@ description: > (value is positive number) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return 5; - } +function callbackfn(val, idx, obj) { + accessed = true; + return 5; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js index 18ff44cc49706a74aa7667d3bdb76d8fce27b7db..1830a7d9af1ffc67a896865bb1d23ec15a81f31f 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js @@ -9,12 +9,12 @@ description: > (value is negative number) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return -5; - } +function callbackfn(val, idx, obj) { + accessed = true; + return -5; +} assert([11].every(callbackfn), '[11].every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js index d074dbf346e762413924c6d4b41652b6583e3c8e..e5fb2db836eb62858526534d4b30c11b82a51ea9 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.16-8-1 description: Array.prototype.every returns true if 'length' is 0 (empty array) ---*/ - function cb() {} - var i = [].every(cb); +function cb() {} +var i = [].every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js index e69633f9116609d1d44e05669bebc695bf69c29a..a865a6c4b8d863377fa1fb8ae273e520c997dfab 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js @@ -7,19 +7,20 @@ es5id: 15.4.4.16-8-10 description: Array.prototype.every - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 2; +foo.prototype = new Array(1, 2, 3); - function cb(val) - { - if(val>2) - return false; - else - return true; - } - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = 2; + +function cb(val) +{ + if (val > 2) + return false; + else + return true; +} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js index 9403b2acde6ecd9a07da94128a43794b656e23f4..b407fe4e7a8f5097dbd531ed33631bf18c4c4ba3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js @@ -9,14 +9,15 @@ description: > return true ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return true; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; +function callbackfn(val, idx, obj) +{ + callCnt++; + return true; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js index 844e0bf625239570c2263c1db25a1207a66ce713..7100aecd52d0f3c9219be13271b27bbec3e6e72b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js @@ -9,12 +9,12 @@ description: > called on ---*/ - function callbackfn(val, idx, obj) - { - return true; - } - var arr = [1,2,3,4,5]; - arr.every(callbackfn); +function callbackfn(val, idx, obj) +{ + return true; +} +var arr = [1, 2, 3, 4, 5]; +arr.every(callbackfn); assert.sameValue(arr[0], 1, 'arr[0]'); assert.sameValue(arr[1], 2, 'arr[1]'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js index 3a41b2c3638e6949707ce77deaa38af6d763cea0..66b56af96b46af97d14326efce527457b51025b4 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js @@ -7,16 +7,17 @@ es5id: 15.4.4.16-8-13 description: Array.prototype.every doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return true; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; - arr["i"] = 10; - arr[true] = 11; +function callbackfn(val, idx, obj) +{ + callCnt++; + return true; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +arr["i"] = 10; +arr[true] = 11; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js index 9d9d694b14444a155d753ae8307aeaad058bf756..90ef805f657521eddccc41bde900e5c17af28029 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js @@ -9,13 +9,14 @@ description: > Array, length overridden to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js index 6cf241998a235176d05fc5af1a3fb7ef0bc586a8..746ea3c4d918b87ec09565f6123ac5f6e1c1871b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js @@ -9,13 +9,14 @@ description: > Array, length overridden to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js index f296ed79c6c4a50ed9b66a35f92b888a842fa8e9..802f85d327977e9e5b92dc139762f3d1d5e30a9e 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js @@ -9,13 +9,14 @@ description: > Array, length overridden to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js index 49d510f6b788c05fec258709d1147ca163b6d5e6..cd8513fb499dca4d16d3beb928cf83a287ab7bd5 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js @@ -9,13 +9,14 @@ description: > Array, length overridden to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js index de58615e3861a88b58525a4ceddc24b3e4294713..17d0d883415e19011d9372274c2f68d6c3b90b23 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js @@ -9,15 +9,20 @@ description: > Array, length overridden with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} - var i = f.every(cb); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js index 170831065fba03f78ec89f8e98a41fc89db63f65..f23dc8cff16b2ce9f9d5423bbca14bfefbb76b50 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js @@ -9,20 +9,25 @@ description: > Array, length overridden with obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - function cb(){} - var i = f.every(cb); +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js index 8d1854e45474b58ec49917aa6e6d0d015d2ed038..75f2878c3d5b96337aa39aa128bbd0263c7b3aa7 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js @@ -9,28 +9,29 @@ description: > Array, length overridden with [] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - - f.length = []; - - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - - function cb(){} - var i = f.every(cb); +foo.prototype = new Array(1, 2, 3); + +function foo() {} +var f = new foo(); + +f.length = []; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js b/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js index d445b9304481c35e51d1626a0961cd13c6d03181..ce34f42d8bf3d6ea10817f6e8a3c859fbd3e7186 100644 --- a/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js +++ b/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js @@ -24,4 +24,4 @@ assert(compareArray([0, 0, 0].fill(8, 1, 2), [0, 8, 0])); assert(compareArray([0, 0, 0, 0, 0].fill(8, -3, 4), [0, 0, 8, 8, 0])); assert(compareArray([0, 0, 0, 0, 0].fill(8, -2, -1), [0, 0, 0, 8, 0])); assert(compareArray([0, 0, 0, 0, 0].fill(8, -1, -3), [0, 0, 0, 0, 0])); -assert(compareArray([ , , , , 0].fill(8, 1, 3), [, 8, 8, , 0])); +assert(compareArray([, , , , 0].fill(8, 1, 3), [, 8, 8, , 0])); diff --git a/test/built-ins/Array/prototype/fill/fill-values.js b/test/built-ins/Array/prototype/fill/fill-values.js index ab2cf19d0f9d5d3583ec4d00a364639184838a9d..43f119f27e9d130f0a81eb155bdc4aed911a878e 100644 --- a/test/built-ins/Array/prototype/fill/fill-values.js +++ b/test/built-ins/Array/prototype/fill/fill-values.js @@ -28,8 +28,7 @@ includes: [compareArray.js] assert(compareArray([].fill(8), [])); assert(compareArray( - [0, 0].fill(), - [undefined, undefined] + [0, 0].fill(), [undefined, undefined] )); assert( diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js index c9d811439053fda1d5eb9af2935faacbc12f2317..c9b5616764057e9d5bf811fd581e8da8d3e0f463 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js @@ -9,5 +9,5 @@ description: Array.prototype.filter applied to undefined throws a TypeError assert.throws(TypeError, function() { - Array.prototype.filter.call(undefined); // TypeError is thrown if value is undefined + Array.prototype.filter.call(undefined); // TypeError is thrown if value is undefined }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js index f56c19437f08b1c5e0efa9f04dbd4ff697812a7a..9fa42cba0a8990c6c03efd65a2f79b3434dc7985 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js @@ -7,12 +7,12 @@ es5id: 15.4.4.20-1-10 description: Array.prototype.filter applied to the Math object ---*/ - function callbackfn(val, idx, obj) { - return '[object Math]' === Object.prototype.toString.call(obj); - } +function callbackfn(val, idx, obj) { + return '[object Math]' === Object.prototype.toString.call(obj); +} - Math.length = 1; - Math[0] = 1; - var newArr = Array.prototype.filter.call(Math, callbackfn); +Math.length = 1; +Math[0] = 1; +var newArr = Array.prototype.filter.call(Math, callbackfn); assert.sameValue(newArr[0], 1, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js index d9e730234c2d914637f6c3970e6b4d62cb27254f..19703f1905f6ee913f25881d604f15e341f055a2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-11 description: Array.prototype.filter applied to Date object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Date; - } +function callbackfn(val, idx, obj) { + return obj instanceof Date; +} - var obj = new Date(); - obj.length = 1; - obj[0] = 1; +var obj = new Date(); +obj.length = 1; +obj[0] = 1; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], 1, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js index 9a7404b58e29b3131b530030a95d435dccd0373e..09a5dbb370579cea36c5e00e51ff00626bc16ed3 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-12 description: Array.prototype.filter applied to RegExp object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof RegExp; - } +function callbackfn(val, idx, obj) { + return obj instanceof RegExp; +} - var obj = new RegExp(); - obj.length = 2; - obj[1] = true; +var obj = new RegExp(); +obj.length = 2; +obj[1] = true; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], true, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js index b5e4405121b2fecf667a9b129f748bc4bf85514b..fbeaacc89ee7fb7e6c24f63d4e126525e4d7b6ef 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js @@ -7,12 +7,12 @@ es5id: 15.4.4.20-1-13 description: Array.prototype.filter applied to the JSON object ---*/ - function callbackfn(val, idx, obj) { - return '[object JSON]' === Object.prototype.toString.call(JSON); - } +function callbackfn(val, idx, obj) { + return '[object JSON]' === Object.prototype.toString.call(JSON); +} - JSON.length = 1; - JSON[0] = 1; - var newArr = Array.prototype.filter.call(JSON, callbackfn); +JSON.length = 1; +JSON[0] = 1; +var newArr = Array.prototype.filter.call(JSON, callbackfn); assert.sameValue(newArr[0], 1, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js index 7e77b5403c970a36274db5dd4763a88a8bd61f00..0b9f3060a5b98d5f9c495899879e8a8fef2886cf 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-14 description: Array.prototype.filter applied to Error object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Error; - } +function callbackfn(val, idx, obj) { + return obj instanceof Error; +} - var obj = new Error(); - obj.length = 1; - obj[0] = 1; +var obj = new Error(); +obj.length = 1; +obj[0] = 1; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], 1, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js index 314f8cf65db3ee09ef8f57e9eb42580034120291..0be84b256322ad3709cddd3b54470a0db9f753ed 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js @@ -7,15 +7,15 @@ es5id: 15.4.4.20-1-15 description: Array.prototype.filter applied to the Arguments object ---*/ - function callbackfn(val, idx, obj) { - return '[object Arguments]' === Object.prototype.toString.call(obj); - } +function callbackfn(val, idx, obj) { + return '[object Arguments]' === Object.prototype.toString.call(obj); +} - var obj = (function () { - return arguments; - }("a", "b")); +var obj = (function() { + return arguments; +}("a", "b")); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], "a", 'newArr[0]'); assert.sameValue(newArr[1], "b", 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js index 3c4abb006b8793a27c88c4dd2eb6665ae9f3804d..70e775afee20dbfcec69c13181e572b18bb1cf3b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js @@ -9,5 +9,5 @@ description: Array.prototype.filter applied to null throws a TypeError assert.throws(TypeError, function() { - Array.prototype.filter.call(null); + Array.prototype.filter.call(null); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js index c8ed73db1680343e0ba9e0da78bd8e9f91ebe45d..95aaebd9e264db410d4e3cbdef1f97f81f04cbb2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js @@ -7,13 +7,13 @@ es5id: 15.4.4.20-1-3 description: Array.prototype.filter applied to boolean primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Boolean; - } +function callbackfn(val, idx, obj) { + return obj instanceof Boolean; +} - Boolean.prototype[0] = true; - Boolean.prototype.length = 1; +Boolean.prototype[0] = true; +Boolean.prototype.length = 1; - var newArr = Array.prototype.filter.call(false, callbackfn); +var newArr = Array.prototype.filter.call(false, callbackfn); assert.sameValue(newArr[0], true, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js index 17517c53288766c7809226ca15efe9cda5073e98..e7b7d2fdc291da5e6942c793dd78483f64ae3feb 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js @@ -7,16 +7,16 @@ es5id: 15.4.4.20-1-4 description: Array.prototype.filter applied to Boolean Object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Boolean; - } +function callbackfn(val, idx, obj) { + return obj instanceof Boolean; +} - var obj = new Boolean(true); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +var obj = new Boolean(true); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert.sameValue(newArr[1], 12, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js index 114e360ab1fd53540ac3a1c6251cf7f068582098..4e8c4ffd54028a58e5fe1b5c245888a1c83ab2db 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js @@ -7,13 +7,13 @@ es5id: 15.4.4.20-1-5 description: Array.prototype.filter applied to number primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Number; - } +function callbackfn(val, idx, obj) { + return obj instanceof Number; +} - Number.prototype[0] = 1; - Number.prototype.length = 1; +Number.prototype[0] = 1; +Number.prototype.length = 1; - var newArr = Array.prototype.filter.call(2.5, callbackfn); +var newArr = Array.prototype.filter.call(2.5, callbackfn); assert.sameValue(newArr[0], 1, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js index d73da1d91c2cb77fa98f8bc588273ca8bd63c852..6f4bb4eb26f98cee6b51ad42f1f1cbba06625c26 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js @@ -7,16 +7,16 @@ es5id: 15.4.4.20-1-6 description: Array.prototype.filter applied to Number object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Number; - } +function callbackfn(val, idx, obj) { + return obj instanceof Number; +} - var obj = new Number(-128); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +var obj = new Number(-128); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert.sameValue(newArr[1], 12, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js index 8e85e3a8dd22392971bab865d2d064f52fbd37a8..c7a70ad25affcaacc491ae0a8e1a820d95959a36 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js @@ -7,10 +7,10 @@ es5id: 15.4.4.20-1-7 description: Array.prototype.filter applied to string primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof String; - } +function callbackfn(val, idx, obj) { + return obj instanceof String; +} - var newArr = Array.prototype.filter.call("abc", callbackfn); +var newArr = Array.prototype.filter.call("abc", callbackfn); assert.sameValue(newArr[0], "a", 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js index 84df1f7aa5d00d87e86ac280b5e5331b96dc6190..35438987c0d28f46e3214521ba1805c5737eec3c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js @@ -7,11 +7,11 @@ es5id: 15.4.4.20-1-8 description: Array.prototype.filter applied to String object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof String; - } +function callbackfn(val, idx, obj) { + return obj instanceof String; +} - var obj = new String("abc"); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = new String("abc"); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], "a", 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js index b64de3811896e52b21af81321ba4736f243e227f..01e194a56c5bd73bea2688f493f8049a4c3e150a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js @@ -7,17 +7,17 @@ es5id: 15.4.4.20-1-9 description: Array.prototype.filter applied to Function object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Function; - } +function callbackfn(val, idx, obj) { + return obj instanceof Function; +} - var obj = function (a, b) { - return a + b; - }; - obj[0] = 11; - obj[1] = 9; +var obj = function(a, b) { + return a + b; +}; +obj[0] = 11; +obj[1] = 9; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert.sameValue(newArr[1], 9, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js index d554b685024afb08c45ad324f4da4fbbf652962b..8034699546b010bacb987a87f9c1b99af2c3a6f4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js @@ -9,12 +9,12 @@ description: > called on ---*/ - function callbackfn(val, idx, obj) - { - return true; - } - var srcArr = [1,2,3,4,5]; - srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + return true; +} +var srcArr = [1, 2, 3, 4, 5]; +srcArr.filter(callbackfn); assert.sameValue(srcArr[0], 1, 'srcArr[0]'); assert.sameValue(srcArr[1], 2, 'srcArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js index 4ef4c19abb723da60704715e4b65bbf2946fb8ef..5bd456a8e82999b880a8bbf35e5a3d8cf66aa711 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js @@ -9,15 +9,15 @@ description: > number of true returned by callbackfn ---*/ - function callbackfn(val, idx, obj) - { - if(val % 2) - return true; - else - return false; - } - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + if (val % 2) + return true; + else + return false; +} +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.filter(callbackfn); assert.sameValue(resArr.length, 3, 'resArr.length'); assert.sameValue(resArr[0], 1, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js index 6d278d9623b75c3f1b0ad4c4a10a151eaa88bee1..a20ae4f1867efeadc57b58fdf52e1af83ed07518 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js @@ -7,13 +7,16 @@ es5id: 15.4.4.20-10-3 description: Array.prototype.filter - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 1; +foo.prototype = new Array(1, 2, 3); - function cb(){return true;} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = 1; + +function cb() { + return true; +} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js index fa6b6603f27e1e91a2ae1c26f7ba619be99134d0..10e8fa02923949b996304dc53b8cbc61d0686f43 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js @@ -7,15 +7,16 @@ es5id: 15.4.4.20-10-4 description: Array.prototype.filter doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - } - var srcArr = [1,2,3,4,5]; - srcArr["i"] = 10; - srcArr[true] = 11; +var callCnt = 0; - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; +} +var srcArr = [1, 2, 3, 4, 5]; +srcArr["i"] = 10; +srcArr[true] = 11; + +var resArr = srcArr.filter(callbackfn); assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js index ef11a817271e93659fd5d857c4f7adf5e11512a7..68c19c6a667d41afdaf5d9ac9cc7fec89df60151 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js @@ -9,17 +9,17 @@ description: > own data property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: 2 - }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js index 7ef49929818703ef7bd4188edcb77992f3caca91..683217637b02ab9839424f46d97992744cf055e7 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js @@ -9,27 +9,27 @@ description: > inherited accessor property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js index b707e51599ac2b6e8ae2075cdbf4b586e3aeaff4..8a55f62fb777dc1a789139e8672c4cf74c9ac0af 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js @@ -9,22 +9,23 @@ description: > own accessor property without a get function ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js index 40c49cf05fbcb5af8bafcefed4d878c4ae4d4280..b5983c28057374be7ec192459fd55659c851ca0f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js @@ -9,26 +9,30 @@ description: > a get function that overrides an inherited accessor property ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var obj = { 0: 12, 1: 11 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 12, + 1: 11 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js index b35a71c92bc88d7977e0253630ba5d97502225d2..25652960d206806efd5e3da7c74306bea471b40c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js @@ -9,26 +9,27 @@ description: > 'length' is inherited accessor property without a get function ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } - - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child[0] = 11; - child[1] = 12; - - var newArr = Array.prototype.filter.call(child, callbackfn); +var accessed = false; + +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child[0] = 11; +child[1] = 12; + +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js index 64b7059d8b12f444bef18bbb0b13fd248459d3f3..545d914e60db3d5e16ed8a7f8bf80f36c338753f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js @@ -9,15 +9,19 @@ description: > 'length property doesn't exist ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 11, 1: 12 }; +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12 +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js index e2ff3af6443ccba4f4a8ce3fbc6fb49f7cc14860..34c579c77dbf95a3ec1422fa194a55dc70e6fd24 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js @@ -9,13 +9,13 @@ description: > implements its own property get method ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var func = function (a, b) { - var newArr = Array.prototype.filter.call(arguments, callbackfn); - return newArr.length === 2; - }; +var func = function(a, b) { + var newArr = Array.prototype.filter.call(arguments, callbackfn); + return newArr.length === 2; +}; assert(func(12, 11), 'func(12, 11) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js index 6850f6d2193b947eed860c9d559b11d08e398275..c13206d983ecd2ea01463fa10192025093af05a6 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js @@ -9,12 +9,12 @@ description: > its own property get method ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 3; - } +function callbackfn(val, idx, obj) { + return obj.length === 3; +} - var str = new String("012"); +var str = new String("012"); - var newArr = Array.prototype.filter.call(str, callbackfn); +var newArr = Array.prototype.filter.call(str, callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js index 5f12746ae70a3f262352f3f7e39d4412468b872a..9bd2ef1c68b55fcabe417aab44b8df21d4bcf730 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js @@ -9,17 +9,17 @@ description: > implements its own property get method ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var fun = function (a, b) { - return a + b; - }; - fun[0] = 12; - fun[1] = 11; - fun[2] = 9; +var fun = function(a, b) { + return a + b; +}; +fun[0] = 12; +fun[1] = 11; +fun[2] = 9; - var newArr = Array.prototype.filter.call(fun, callbackfn); +var newArr = Array.prototype.filter.call(fun, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js index f8f1b84d410fb4e170ed1094f63276b3ffca2dcf..8e071501ca0beaff1a463b34e4f3669554c7dc21 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js @@ -7,10 +7,10 @@ es5id: 15.4.4.20-2-2 description: Array.prototype.filter - 'length' is own data property on an Array ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var newArr = [12, 11].filter(callbackfn); +var newArr = [12, 11].filter(callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js index 5e74fafc6069bd329eed1b3eecb90bf3ec7d7e55..4d9c4e414971b2ff8904d3c273a592a55859a523 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js @@ -9,21 +9,23 @@ description: > an own data property that overrides an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js index 563ef3bfc524a3192cac78ca672b79ac700ed07e..73ecc9ed1920b059256444d68927027792fa447a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js @@ -9,14 +9,14 @@ description: > overrides an inherited data property on an Array ---*/ - var arrProtoLen; +var arrProtoLen; - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; - var newArr = [12, 11].filter(callbackfn); +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; +var newArr = [12, 11].filter(callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js index ca4c2d21ece03b9f6847854cb101918d54ba4307..e165dbc06d1ad6ac08c1651a75edcc04be985e73 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js @@ -9,31 +9,31 @@ description: > data property that overrides an inherited accessor property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } - - var proto = {}; - - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - child[0] = 12; - child[1] = 11; - child[2] = 9; - - var newArr = Array.prototype.filter.call(child, callbackfn); +function callbackfn(val, idx, obj) { + return obj.length === 2; +} + +var proto = {}; + +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js index 6c754b15bb6d20748871359f929161c7df0896d4..9a8144cfcff60b9296c6be451ca80c00e0fd6fd4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js @@ -9,20 +9,22 @@ description: > an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js index 103cdc8889e7656de295ea3faf1a90f3f84c57ec..ba40ddd23a82eb3ddb00dba128c9a0f455eae7b9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js @@ -9,23 +9,23 @@ description: > an own accessor property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); - obj[0] = 12; - obj[1] = 11; - obj[2] = 9; +obj[0] = 12; +obj[1] = 11; +obj[2] = 9; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js index 25b022b3a8bc42578eeda85640d08a7b7baee6d6..e57b21228775f62d08067dfa36fe20bf71fa516d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js @@ -9,28 +9,30 @@ description: > own accessor property that overrides an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js index 4c37454ba823d96e2b3298175d8e4268ca5aed6d..684b01b09a4152dfa7910ad5e397f0a7966f2267 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js @@ -10,35 +10,35 @@ description: > property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js index 17cdc5f737edf406efbd32b5a5e2ae7667be33b3..be48ea578fa546c08751e7a6a60e918aac58d588 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js @@ -7,14 +7,19 @@ es5id: 15.4.4.20-3-1 description: Array.prototype.filter - value of 'length' is undefined ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 0, 1: 1, length: undefined }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var obj = { + 0: 0, + 1: 1, + length: undefined +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js index 63b2c4a189cc78762f7040dba88d0a0ee2e51e9c..8ef7f0477bddd72ed65448d3514634f15ab12ceb 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js @@ -9,15 +9,19 @@ description: > NaN) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 9, length: NaN }; +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 9, + length: NaN +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js index e495a64dbaa0fd8615bce99a65c3a8f9038bf21d..3bedc20edb471727577be4b49116d8ab56a53c73 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js @@ -9,13 +9,17 @@ description: > positive number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "2" }; +var obj = { + 1: 11, + 2: 9, + length: "2" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js index c66292a88b61fe25d4a34b5bd5c947931e1bbd54..bab103450a9ff70f35bcb2e72e9cbc6482df9f64 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js @@ -9,13 +9,17 @@ description: > negative number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "-4294967294" }; +var obj = { + 1: 11, + 2: 9, + length: "-4294967294" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js index 859ef4667e0a812b3ded1538807172fc29e955f4..01d01c2561276d5264a747b3c2ade3613dbfaf74 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js @@ -9,13 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "2.5" }; +var obj = { + 1: 11, + 2: 9, + length: "2.5" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js index 03193102fe2477d2b6c0af8bb855b24ed55a566d..03bcf8a29d9d3e707394069be0bec72d11d82143 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js @@ -7,16 +7,19 @@ es5id: 15.4.4.20-3-14 description: Array.prototype.filter - 'length' is a string containing -Infinity ---*/ - var accessed2 = false; +var accessed2 = false; - function callbackfn2(val, idx, obj) { - accessed2 = true; - return true; - } +function callbackfn2(val, idx, obj) { + accessed2 = true; + return true; +} - var obj2 = { 0: 9, length: "-Infinity" }; +var obj2 = { + 0: 9, + length: "-Infinity" +}; - var newArr2 = Array.prototype.filter.call(obj2, callbackfn2); +var newArr2 = Array.prototype.filter.call(obj2, callbackfn2); assert.sameValue(accessed2, false, 'accessed2'); assert.sameValue(newArr2.length, 0, 'newArr2.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js index e5be122e800287c2a7b433daf8a7f97de38ed042..7cc2cb5f858ae6984ad2704e654e629abd83ace2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js @@ -9,13 +9,17 @@ description: > exponential number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "2E0" }; +var obj = { + 1: 11, + 2: 9, + length: "2E0" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js index 286093b8b9563dd9cc6166a5de38055f6c985055..1e447f105a021678a8fe9dfb28f11dc3aed231b4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js @@ -9,13 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "0x0002" }; +var obj = { + 1: 11, + 2: 9, + length: "0x0002" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js index 84b64d40211961f4df9bb62025d1a7ffa37e88d2..a3c2bf7fad6e245faeea1d8b0b74d437c53fb850 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js @@ -9,13 +9,17 @@ description: > with leading zeros ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 1: 11, + 2: 9, + length: "0002.00" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js index de3c43f5738cc3c471fe451b7a29c480c6cf0095..b42c4c5af0818d23fbc5c2abe56aab9a1c8d602b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js @@ -9,15 +9,19 @@ description: > convert to a number ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 9, length: "asdf!_" }; +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 9, + length: "asdf!_" +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js index f1ac554ecaa9c0bcf86c04c45ba5fc20208ca027..11ba06792815c307ce53c23f0d901122ab4a5922 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js @@ -9,21 +9,21 @@ description: > an own toString method. ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { - 1: 11, - 2: 9, - length: { - toString: function () { - return '2'; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + toString: function() { + return '2'; + } + } +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js index 3e348991d7e3423382f4d1d3f05ff50ff59acdb6..4c87b6e3d1a15d95793e2f1c0b1e0166086657e3 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js @@ -9,12 +9,16 @@ description: > is 1 (length overridden to true(type conversion)) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: true }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: true +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js index c8e77de720bc6642784e4543dbe02e3ba94b7561..7b7b93e5b91a384488362a7e25030a667f6a35c7 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js @@ -9,21 +9,21 @@ description: > an own valueOf method. ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { - 1: 11, - 2: 9, - length: { - valueOf: function () { - return 2; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + valueOf: function() { + return 2; + } + } +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js index 01fc372d5eabf99ca051f1be47a72d8ef208a9cb..c65ba9ca50d3a4f8a039328c109983c9b6ba0e03 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js @@ -10,29 +10,29 @@ description: > returns a string ---*/ - var firstStepOccured = false; - var secondStepOccured = false; +var firstStepOccured = false; +var secondStepOccured = false; - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { - 1: 11, - 2: 9, - length: { - valueOf: function () { - firstStepOccured = true; - return {}; - }, - toString: function () { - secondStepOccured = true; - return '2'; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + valueOf: function() { + firstStepOccured = true; + return {}; + }, + toString: function() { + secondStepOccured = true; + return '2'; + } + } +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js index a6463ad6a151e97c0d4b79aadaec1250b3d826e1..0e4bf36715d2f0a488aeedcb217b9ad66b222ac4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js @@ -10,32 +10,32 @@ description: > primitive values ---*/ - var accessed = false; - var firstStepOccured = false; - var secondStepOccured = false; +var accessed = false; +var firstStepOccured = false; +var secondStepOccured = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var obj = { - 1: 11, - 2: 12, +var obj = { + 1: 11, + 2: 12, - length: { - valueOf: function () { - firstStepOccured = true; - return {}; - }, - toString: function () { - secondStepOccured = true; - return {}; - } - } - }; + length: { + valueOf: function() { + firstStepOccured = true; + return {}; + }, + toString: function() { + secondStepOccured = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.filter.call(obj, callbackfn); + Array.prototype.filter.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); assert(firstStepOccured, 'firstStepOccured !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js index f2e7b2e458e6c776c03f6ffffe7d69069e7f2b08..c02b3f301c54bbe3aa5978334387d46c9c2fe69d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js @@ -9,37 +9,37 @@ description: > is an object with an own toString and inherited valueOf methods ---*/ - var valueOfAccessed = false; - var toStringAccessed = false; +var valueOfAccessed = false; +var toStringAccessed = false; - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - child.toString = function () { - toStringAccessed = true; - return '1'; - }; +child.toString = function() { + toStringAccessed = true; + return '1'; +}; - var obj = { - 1: 11, - 2: 9, - length: child - }; +var obj = { + 1: 11, + 2: 9, + length: child +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js index 31b87b47d5f05c722547c902b6bc87d6aba27efb..a2cc49a04f86acf1b58eef7e4de3c5c6b00774d6 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js @@ -9,17 +9,17 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { - 1: 11, - 2: 9, - length: 2.685 - }; +var obj = { + 1: 11, + 2: 9, + length: 2.685 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js index 3f8b1ffd8cd5dff3991da144408cefa9bd91d418..f32cac6948f4e1a8c3fd18436b9f2a20936b6bcd 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js @@ -9,17 +9,17 @@ description: > non-integer ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { - 1: 11, - 2: 9, - length: -4294967294.5 - }; +var obj = { + 1: 11, + 2: 9, + length: -4294967294.5 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js index 9b1250407d67e0e923c258e7b753338ff353a5e0..53fd3ab2ccc3503c685cbf475b9c6982cd2a868c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js @@ -7,14 +7,18 @@ es5id: 15.4.4.20-3-3 description: Array.prototype.filter - value of 'length' is a number (value is 0) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 11, length: 0 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var obj = { + 0: 11, + length: 0 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js index a2a73f274b2fe878a3665821b9014c867ac3f7a0..d0afc2288cdbd371cb0ccc65795798061a728be2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js @@ -9,14 +9,18 @@ description: > +0) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 11, length: +0 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var obj = { + 0: 11, + length: +0 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js index 2fa9d19cf3c28c1d59e8e9d5e29594a3f6207a96..675a41cb281d8f7a30446d5a92755f06a15a68c5 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js @@ -9,14 +9,18 @@ description: > -0) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 11, length: -0 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var obj = { + 0: 11, + length: -0 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js index dd9b8839ba08be56b1d8ffc8f2594bac8d21b460..44e5a2aa1ce989fa6716335924b0638258437ec5 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js @@ -9,13 +9,17 @@ description: > positive) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: 2 }; +var obj = { + 1: 11, + 2: 9, + length: 2 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js index 28d5405920764abb5fd13b6a5e96003090af31a8..b9003218fc86598dceb6cd6bf928f4fc81a1364c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js @@ -9,12 +9,16 @@ description: > negative) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: -4294967294 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 1: 11, + 2: 9, + length: -4294967294 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js index a31259a2ef0eb8146c29aa9ddc58ecb25846325b..149c2011add0958ccebdb176e8c418428c30244e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js @@ -9,15 +9,19 @@ description: > -Infinity) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 9, length: -Infinity }; +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 9, + length: -Infinity +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js index 5db65663d82da680223b599ca0f3265c028a6f41..ac03e0fc9219cc03788afd2513fc354d7700b099 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-1 description: Array.prototype.filter throws TypeError if callbackfn is undefined ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.filter(); + arr.filter(); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js index 39f1abd7ba3fad93aea3230e11b206313b3cc6c6..bf2dabe141651172bad23ba111984c3dde4152e5 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.filter.call(obj, undefined); + Array.prototype.filter.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js index 0eabd02ec56d435cffca73fa8fa30554f9cdf33c..6cefc8ce1e080a9efe12af5a57ca4507a17c236e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.filter.call(obj, undefined); + Array.prototype.filter.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js index de1ad7023bf75f5aca7f0beae76941a2488a7056..dce334c24412a74095e93a1f1be591b9017fc4f1 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-4-12 description: Array.prototype.filter - 'callbackfn' is a function ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === 9; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === 9; + } + return false; +} - var newArr = [11, 9].filter(callbackfn); +var newArr = [11, 9].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 9, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js index af35f5776a2ee8c5db3589cda7d66a2efe594472..70d48daa72a336e73c14c3d10d4172b7a21ba5e4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js @@ -9,25 +9,27 @@ description: > passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.filter.call(obj); + Array.prototype.filter.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js index 07add5f00eaaedf0f5d9a026427344b31c4260a2..511003bbf69c3b78c8fcbc6f526904a23ed475a0 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js @@ -9,7 +9,7 @@ description: > unreferenced ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(ReferenceError, function() { - arr.filter(foo); + arr.filter(foo); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js index a56dd4e8da22e53a3b6f041c9182d4905d657408..0e557696d4ebced6c52fd543738578660e7c82ed 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-3 description: Array.prototype.filter throws TypeError if callbackfn is null ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.filter(null); + arr.filter(null); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js index 6e93708357bb5733db8fb58c5f457b39bc37ad78..d49c8355ced748972abff025d319b4b0070c7221 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js @@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-4 description: Array.prototype.filter throws TypeError if callbackfn is boolean ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.filter(true); + arr.filter(true); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js index 6fedc6587479952bf40d7bfa08a348739d7afd8a..d5a3b5289d00b2113af83e878a1d85b371f8ed72 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js @@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-5 description: Array.prototype.filter throws TypeError if callbackfn is number ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.filter(5); + arr.filter(5); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js index cef7251b101c3106a913a51343fde92f56fd34ec..5f9d1386bb85bdcd1ba18b97d0d35b5cf61e0a2c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js @@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-6 description: Array.prototype.filter throws TypeError if callbackfn is string ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.filter("abc"); + arr.filter("abc"); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js index aa1240371fb8d20314ea408655c30179e5f8b528..f9e4254274c61b8675606168a3ed4710aa9355ef 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js @@ -9,7 +9,7 @@ description: > without [[Call]] internal method ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.filter(new Object()); + arr.filter(new Object()); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js index fbd5396d8e03a86c62404319bedf2fa813f0db4f..cde11fbf235d32114b22377cd4a81368e3c94606 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.filter.call(obj, null); + Array.prototype.filter.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js index c2e7295776b950579493b645d9d4ee8c259421e0..45ba29f89fbacfca02e021fe0c2d63e1231a78cb 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.filter.call(obj, null); + Array.prototype.filter.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js index ce1ad3c7eba0e0d5e6b28beeb504619e431b5ab2..ebbd6c1a483567b582a7cc5d85ed749ffe421822 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js @@ -8,14 +8,14 @@ description: Array.prototype.filter - thisArg not passed to strict callbackfn flags: [noStrict] ---*/ - var innerThisCorrect = false; +var innerThisCorrect = false; - function callbackfn(val, idx, obj) { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } +function callbackfn(val, idx, obj) { + "use strict"; + innerThisCorrect = this === undefined; + return true; +} - [1].filter(callbackfn); +[1].filter(callbackfn); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js index 96063ef486aab08e3eb23fe40ff086c476f1b9f2..fe1b290574966cb3ee3030f3dc7a59027c014f49 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js @@ -9,14 +9,14 @@ flags: [noStrict] ---*/ (function() { - this._15_4_4_20_5_1 = false; - var _15_4_4_20_5_1 = true; + this._15_4_4_20_5_1 = false; + var _15_4_4_20_5_1 = true; - function callbackfn(val, idx, obj) { - return this._15_4_4_20_5_1; - } - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn); + function callbackfn(val, idx, obj) { + return this._15_4_4_20_5_1; + } + var srcArr = [1]; + var resArr = srcArr.filter(callbackfn); -assert.sameValue(resArr.length, 0, 'resArr.length'); + assert.sameValue(resArr.length, 0, 'resArr.length'); })(); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js index dff16966b8e84cf14e7a26da4d77f371fccb6314..a5afd46822f78451c3949ea93ecd33344bac162b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js @@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-10 description: Array.prototype.filter - Array Object can be used as thisArg ---*/ - var accessed = false; - var objArray = new Array(10); +var accessed = false; +var objArray = new Array(10); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objArray; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objArray; +} - var newArr = [11].filter(callbackfn, objArray); +var newArr = [11].filter(callbackfn, objArray); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js index 93cc528d0e465bc888e73bcea339e89576581c23..0ca6f9f66c7dbaf525a78fed67f99cc42bbf336f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js @@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-11 description: Array.prototype.filter - String Object can be used as thisArg ---*/ - var accessed = false; - var objString = new String(); +var accessed = false; +var objString = new String(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objString; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objString; +} - var newArr = [11].filter(callbackfn, objString); +var newArr = [11].filter(callbackfn, objString); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js index d4dc45bda5303ad5297be9c7ded3e4063948da14..2d7cef46de49c6052f4ff9ffc120d765b4f3a784 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js @@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-12 description: Array.prototype.filter - Boolean Object can be used as thisArg ---*/ - var accessed = false; - var objBoolean = new Boolean(); +var accessed = false; +var objBoolean = new Boolean(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objBoolean; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objBoolean; +} - var newArr = [11].filter(callbackfn, objBoolean); +var newArr = [11].filter(callbackfn, objBoolean); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js index 621f2def0d30e304c251cfd2056795bba1878938..d5cb60c89c5170dad0e6dfef08fdace27399316e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js @@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-13 description: Array.prototype.filter - Number Object can be used as thisArg ---*/ - var accessed = false; - var objNumber = new Number(); +var accessed = false; +var objNumber = new Number(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objNumber; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objNumber; +} - var newArr = [11].filter(callbackfn, objNumber); +var newArr = [11].filter(callbackfn, objNumber); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js index 195f95d295af9d01a6dd43729dbee28f1b6c7fdc..e455d8d4c25bb852f53e7d618e37217a550c228d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-14 description: Array.prototype.filter - the Math object can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this === Math; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === Math; +} - var newArr = [11].filter(callbackfn, Math); +var newArr = [11].filter(callbackfn, Math); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js index 61cb77e5099b7e9f5e654b39060d5b7de4140ddd..596addb58df5d93c857372096cd0b7710601648f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js @@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-15 description: Array.prototype.filter - Date Object can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - var objDate = new Date(); +var objDate = new Date(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objDate; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objDate; +} - var newArr = [11].filter(callbackfn, objDate); +var newArr = [11].filter(callbackfn, objDate); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js index d7b6b9e2369a60a006e4e7217f6e1ac9607a0481..beafca6fd1a1895b98b0dda5c2c4016dcff428bc 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js @@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-16 description: Array.prototype.filter - RegExp Object can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - var objRegExp = new RegExp(); +var objRegExp = new RegExp(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objRegExp; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objRegExp; +} - var newArr = [11].filter(callbackfn, objRegExp); +var newArr = [11].filter(callbackfn, objRegExp); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js index b326d202c792e5fa827121b29ee086ce5b18d2fb..569a7d691cff86c556e72c565b38b6a72886b3ed 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-17 description: Array.prototype.filter - the JSON object can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this === JSON; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === JSON; +} - var newArr = [11].filter(callbackfn, JSON); +var newArr = [11].filter(callbackfn, JSON); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js index 98b45563142db6d7200f873706932fe91a5a8c84..03516a9356b71a99746c2e8f96f6fd703da18edf 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js @@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-18 description: Array.prototype.filter - Error Object can be used as thisArg ---*/ - var accessed = false; - var objError = new RangeError(); +var accessed = false; +var objError = new RangeError(); - function callbackfn(val, idx, obj) { - accessed = true; - return this === objError; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objError; +} - var newArr = [11].filter(callbackfn, objError); +var newArr = [11].filter(callbackfn, objError); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js index 0c69ec0372ca2905f8b6a7d21bc867d72fc0d3f7..16869222c02bf0f907633dc17e29e48b718a26fc 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js @@ -9,19 +9,19 @@ description: > thisArg ---*/ - var accessed = false; - var arg; +var accessed = false; +var arg; - function callbackfn(val, idx, obj) { - accessed = true; - return this === arg; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === arg; +} - (function fun() { - arg = arguments; - }(1, 2, 3)); +(function fun() { + arg = arguments; +}(1, 2, 3)); - var newArr = [11].filter(callbackfn, arg); +var newArr = [11].filter(callbackfn, arg); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js index 0ef3ca82e87799801813dc411fff8805a741c313..01a3a94d6c985855094b61a0dc74efc417519f33 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js @@ -7,15 +7,16 @@ es5id: 15.4.4.20-5-2 description: Array.prototype.filter - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var o = new Object(); +o.res = true; - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,o); +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, o); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js index bbb9911ac04921f41a912f0affdb56eb13b9fa90..1e1230bc4640fe6636c171776a909aa80769b53c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js @@ -9,14 +9,14 @@ description: Array.prototype.filter - the global object can be used as thisArg var global = this; - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this === global; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === global; +} - var newArr = [11].filter(callbackfn, global); +var newArr = [11].filter(callbackfn, global); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js index 61e3644cfb02fdc9f0886846d93b2fa5ab26c8bb..b228ea16caee89f811cf2f135f0fb24fd1438f9a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-22 description: Array.prototype.filter - boolean primitive can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this.valueOf() === false; +} - var newArr = [11].filter(callbackfn, false); +var newArr = [11].filter(callbackfn, false); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js index d07c4c603a4e09c243dce05ccd0f0a7fbdbc5e51..b7435cbf235b6d869c1f5af31f8ab6348f45ac5a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-23 description: Array.prototype.filter - number primitive can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this.valueOf() === 101; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this.valueOf() === 101; +} - var newArr = [11].filter(callbackfn, 101); +var newArr = [11].filter(callbackfn, 101); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js index ac195d2b105c5903dc1c7851c0fe26e8cbf695bf..ec99f9b2b587657f97bc27a40317cdda7cbeb575 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-24 description: Array.prototype.filter - string primitive can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this.valueOf() === "abc"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this.valueOf() === "abc"; +} - var newArr = [11].filter(callbackfn, "abc"); +var newArr = [11].filter(callbackfn, "abc"); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js index 06ea3908d74d0ba1278a2110e02db4eda3b9c260..691c695e73ad94108f3e3cf1ee4e73ce019e6d61 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js @@ -9,6 +9,6 @@ description: > is the returned array ---*/ - var newArr = [11].filter(function () { }); +var newArr = [11].filter(function() {}); assert(Array.isArray(newArr), 'Array.isArray(newArr) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js index 0f41a07e42bb037c69fe9a2e1c12f316643ed5b1..676b5f39b2a0462b228892a2721827ac2410133a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js @@ -7,6 +7,6 @@ es5id: 15.4.4.20-5-28 description: Array.prototype.filter - the returned array is instanceof Array ---*/ - var newArr = [11].filter(function () { }); +var newArr = [11].filter(function() {}); assert(newArr instanceof Array, 'newArr instanceof Array !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js index 49b049b6fb6595967ac5a7151da98fdeea769faf..88656b8138864cb58baefe2ece7d2aa3f5dda769 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js @@ -7,6 +7,6 @@ es5id: 15.4.4.20-5-29 description: Array.prototype.filter - returns an array whose length is 0 ---*/ - var newArr = [11].filter(function () { }); +var newArr = [11].filter(function() {}); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js index a9eb5bdd9c6a129cd4f4d43ee21bdd2ce1d77be4..4ab8cdc1cfe1fb21576f740598796bbfca0372cd 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js @@ -7,15 +7,16 @@ es5id: 15.4.4.20-5-3 description: Array.prototype.filter - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var a = new Array(); +a.res = true; - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,a); +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, a); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js index 19311b2aec95479de3c2d74ca7bf4c0aa750e19a..8a3fb876fa2bf66eb1e5a2674a988aa3d812b889 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js @@ -8,16 +8,16 @@ description: Array.prototype.filter - thisArg not passed flags: [noStrict] ---*/ - function innerObj() { - this._15_4_4_20_5_30 = true; - var _15_4_4_20_5_30 = false; +function innerObj() { + this._15_4_4_20_5_30 = true; + var _15_4_4_20_5_30 = false; - function callbackfn(val, idx, obj) { - return this._15_4_4_20_5_30; - } - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn); - this.retVal = resArr.length === 0; - } + function callbackfn(val, idx, obj) { + return this._15_4_4_20_5_30; + } + var srcArr = [1]; + var resArr = srcArr.filter(callbackfn); + this.retVal = resArr.length === 0; +} assert(new innerObj().retVal, 'new innerObj().retVal !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js index e4c6b1b24dd628ee5a6b826155e4834c3e6cde24..08789d8e38e5733721809938f0c909d30aa6c6db 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js @@ -9,17 +9,18 @@ description: > template(prototype) ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.prototype.res = true; - var f = new foo(); +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,f); +function foo() {} +foo.prototype.res = true; +var f = new foo(); + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, f); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js index a46d828820d35fd8615b3be363a0c5f4ce35860d..a024bdc323efde7c0ca5caf113603ba3baf47751 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js @@ -7,17 +7,18 @@ es5id: 15.4.4.20-5-5 description: Array.prototype.filter - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,f); +function foo() {} +var f = new foo(); +f.res = true; + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, f); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js index a76f146d6bc48c08fd7164e31c815f2d9307f95e..25fa96c9790e45d0d980e964cc0393b1e30d29f6 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js @@ -7,16 +7,17 @@ es5id: 15.4.4.20-5-6 description: Array.prototype.filter - thisArg is function ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,foo); +function foo() {} +foo.res = true; + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, foo); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js index 7563712c2a6f7973f239a523623c567f7468dacc..7429c85bce7f27fc3c5bd94b34554531b87b9e52 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js @@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-7 description: Array.prototype.filter - built-in functions can be used as thisArg ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this === eval; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === eval; +} - var newArr = [11].filter(callbackfn, eval); +var newArr = [11].filter(callbackfn, eval); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js index 154d0bbdb4ed11b79510bf43d14dc74baf1c3292..9ab52aa3ea34718d065901e3d75c75ca5b3894ec 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js @@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-9 description: Array.prototype.filter - Function Object can be used as thisArg ---*/ - var accessed = false; - var objFunction = function () { }; +var accessed = false; +var objFunction = function() {}; - function callbackfn(val, idx, obj) { - accessed = true; - return this === objFunction; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this === objFunction; +} - var newArr = [11].filter(callbackfn, objFunction); +var newArr = [11].filter(callbackfn, objFunction); assert.sameValue(newArr[0], 11, 'newArr[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js index aa434d235f4b9412663a06bbdade1a6f5d62fb7c..719c1490e5adfc7183bd1ab160ee92a98b9c9e60 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js @@ -9,8 +9,8 @@ description: > (empty array) ---*/ - function cb(){} - var a = [].filter(cb); +function cb() {} +var a = [].filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); assert.sameValue(a.length, 0, 'a.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js index a2deb91e5c89f70b56a3406b0d47ba487c9be0de..65a07c7a8379e4b51dce207aeb55d588e1570de6 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js @@ -9,13 +9,14 @@ description: > (subclassed Array, length overridden to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js index 5da697fe2b507495e8d7b54a4ae686e7c9cf3ca9..4e1742878e52ef3aa1b038314a1bf8caaee44704 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js @@ -9,13 +9,14 @@ description: > (subclassed Array, length overridden to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js index 88d755df8aff82a74c901b18806196cb17c94d98..72579c85e6aabbead7b0b78f300f5edefab80286 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js @@ -9,13 +9,14 @@ description: > (subclassed Array, length overridden to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js index 71f4dc4896b4887c610ba69e5cda87f17045e109..6209e7107718170159e151502cfc67b49efe402a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js @@ -9,13 +9,14 @@ description: > (subclassed Array, length overridden to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js index dad709203c3216044983bb576b97ae4933801f7b..0d40729d1537ed1d5a5cc94fa24d9cd8274aac4e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js @@ -9,15 +9,20 @@ description: > (subclassed Array, length overridden with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} - var a = f.filter(cb); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js index a778ad88871ac05350ec620dd2736a7e9f705a12..b212e25112231d0df84a8fe16ee405a06f644e44 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js @@ -10,21 +10,26 @@ description: > (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} - var a = f.filter(cb); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js index 1fd2bb7921d1a4ee4bef40c652dcc8b195f63161..851aa7a75cf298ccd484176b482482498a32115a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js @@ -9,28 +9,29 @@ description: > (subclassed Array, length overridden with [] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - - f.length = []; - - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - - function cb(){} - var a = f.filter(cb); +foo.prototype = new Array(1, 2, 3); + +function foo() {} +var f = new foo(); + +f.length = []; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js index 97a92c2de5f4804b33ddcef137be4621eb7224a5..265b9632b874fe6dd062e96a32ac7b63fa6fd142 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js @@ -9,13 +9,13 @@ description: > array after it is called ---*/ - function callbackfn(val, idx, obj) { - srcArr[2] = 3; - srcArr[5] = 6; - return true; - } +function callbackfn(val, idx, obj) { + srcArr[2] = 3; + srcArr[5] = 6; + return true; +} - var srcArr = [1, 2, , 4, 5]; - var resArr = srcArr.filter(callbackfn); +var srcArr = [1, 2, , 4, 5]; +var resArr = srcArr.filter(callbackfn); assert.sameValue(resArr.length, 5, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js index 866e363fcf718b197e0ded0d90d94808286fc60d..34e27ba5699a58f70766449974135608a4a49d84 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js @@ -9,18 +9,18 @@ description: > after it is called ---*/ - function callbackfn(val, idx, obj) - { - srcArr[2] = -1; - srcArr[4] = -1; - if(val > 0) - return true; - else - return false; - } +function callbackfn(val, idx, obj) +{ + srcArr[2] = -1; + srcArr[4] = -1; + if (val > 0) + return true; + else + return false; +} - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.filter(callbackfn); +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.filter(callbackfn); assert.sameValue(resArr.length, 3, 'resArr.length'); assert.sameValue(resArr[0], 1, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js index 23cf770ca338d97149f095198f1724792dc1dbe5..5f14532d216e4bd3ddfcd9684d189e763b23033e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js @@ -9,18 +9,18 @@ description: > after the call ---*/ - function callbackfn(val, idx, obj) - { - delete srcArr[2]; - delete srcArr[4]; - if(val > 0) - return true; - else - return false; - } +function callbackfn(val, idx, obj) +{ + delete srcArr[2]; + delete srcArr[4]; + if (val > 0) + return true; + else + return false; +} - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.filter(callbackfn); +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.filter(callbackfn); // two elements deleted assert.sameValue(resArr.length, 3, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js index 9e817d779bd880db11326c3a2456f984b74341ad..d3018ec04c8fbd77931639efd3c0d9dcf2c290b3 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js @@ -9,13 +9,13 @@ description: > Array.length is decreased ---*/ - function callbackfn(val, idx, obj) - { - srcArr.length = 2; - return true; - } +function callbackfn(val, idx, obj) +{ + srcArr.length = 2; + return true; +} - var srcArr = [1,2,3,4,6]; - var resArr = srcArr.filter(callbackfn); +var srcArr = [1, 2, 3, 4, 6]; +var resArr = srcArr.filter(callbackfn); assert.sameValue(resArr.length, 2, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js index 3165b934c20c621e80e1e261e29a589ca40b56da..396126ea1d00ff5e23e41da9540a8279da8950dc 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js @@ -9,15 +9,15 @@ description: > sparse array ---*/ - function callbackfn(val, idx, obj) - { - srcArr[1000] = 3; - return true; - } +function callbackfn(val, idx, obj) +{ + srcArr[1000] = 3; + return true; +} - var srcArr = new Array(10); - srcArr[1] = 1; - srcArr[2] = 2; - var resArr = srcArr.filter(callbackfn); +var srcArr = new Array(10); +srcArr[1] = 1; +srcArr[2] = 2; +var resArr = srcArr.filter(callbackfn); assert.sameValue(resArr.length, 2, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js index 6bbe73b49471eabc32dfd0445259bad9e2ef6aa6..0ef2af055523ae69243b2300f46ad74eda9d7c05 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js @@ -9,20 +9,20 @@ description: > call when same index is also present in prototype ---*/ - function callbackfn(val, idx, obj) - { - delete srcArr[2]; - delete srcArr[4]; - if(val > 0) - return true; - else - return false; - } +function callbackfn(val, idx, obj) +{ + delete srcArr[2]; + delete srcArr[4]; + if (val > 0) + return true; + else + return false; +} - Array.prototype[4] = 5; - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.filter(callbackfn); - delete Array.prototype[4]; +Array.prototype[4] = 5; +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.filter(callbackfn); +delete Array.prototype[4]; // only one element deleted assert.sameValue(resArr.length, 4, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js index 6733d095d66ca722d0d79bc260083fe88179fcfd..accd42a6033767463001642c534bd58613258412 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js @@ -9,18 +9,18 @@ description: > deleted during the call ---*/ - var o = new Object(); - o.srcArr = [1, 2, 3, 4, 5]; +var o = new Object(); +o.srcArr = [1, 2, 3, 4, 5]; - function callbackfn(val, idx, obj) { - delete o.srcArr; - if (val > 0) - return true; - else - return false; - } +function callbackfn(val, idx, obj) { + delete o.srcArr; + if (val > 0) + return true; + else + return false; +} - var resArr = o.srcArr.filter(callbackfn); +var resArr = o.srcArr.filter(callbackfn); assert.sameValue(resArr.length, 5, 'resArr.length'); assert.sameValue(typeof o.srcArr, "undefined", 'typeof o.srcArr'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js index 6b119020eccdc8b85860c520e0b9cb279277ca0c..c7fa048ef7a1cebd7db9bd9693fd2e21dfdc21dc 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js @@ -7,16 +7,20 @@ es5id: 15.4.4.20-9-8 description: Array.prototype.filter - no observable effects occur if len is 0 ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 12, length: 0 }; +var obj = { + 0: 11, + 1: 12, + length: 0 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(obj.length, 0, 'obj.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js index bab2effd5cdadee72480e187464951531e4811dd..e0bd841bf0aab00b41c8f0d96c3277e1b7d4c51e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js @@ -9,24 +9,28 @@ description: > number of iterations ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return true; - } +function callbackfn(val, idx, obj) { + called++; + return true; +} - var obj = { 1: 12, 2: 9, length: 2 }; +var obj = { + 1: 12, + 2: 9, + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - obj.length = 3; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + obj.length = 3; + return 11; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js index db984c4ccb0b650988e3bf0f996fe8ac2c1f8cd6..89915693087fb785d7651c6f44ac7b05589340d4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js @@ -9,16 +9,17 @@ description: > been assigned values ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return false; - } +var callCnt = 0; - var srcArr = new Array(10); - srcArr[1] = undefined; //explicitly assigning a value - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; + return false; +} + +var srcArr = new Array(10); +srcArr[1] = undefined; //explicitly assigning a value +var resArr = srcArr.filter(callbackfn); assert.sameValue(resArr.length, 0, 'resArr.length'); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js index c2c66ae19e2ca875dab1742493193ee73b2ea354..d4724b9249f295a6c72cd7f22c601e0d293dec64 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js @@ -9,21 +9,24 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var obj = { 2: 2, length: 20 }; +function callbackfn(val, idx, obj) { + return true; +} +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - var newArr = Array.prototype.filter.call(obj, callbackfn); +Object.prototype[1] = 1; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.notSameValue(newArr[1], 1, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js index 643554ab8f52dd0372f5e4a62d3278f6cccae639..39ea8f0a10bba9e2ce4114e937bdfa684f558461 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js @@ -9,21 +9,21 @@ description: > prototype index property not to be visited on an Array ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var arr = [0, , 2]; +function callbackfn(val, idx, obj) { + return true; +} +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - var newArr = arr.filter(callbackfn); +Array.prototype[1] = 1; +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.notSameValue(newArr[1], 1, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js index 18e21b40ea4a6166444b823774ff512f07f196e6..7b914a1ee4d55077f7402721815012c25c22a3f8 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js @@ -10,21 +10,26 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var obj = { 0: 0, 1: 111, 2: 2, length: 10 }; +function callbackfn(val, idx, obj) { + return true; +} +var obj = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - var newArr = Array.prototype.filter.call(obj, callbackfn); +Object.prototype[1] = 1; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[1], 1, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js index c023e37351db6ac5598a7614d890c733f62d7056..204e94c6658bcf9654067b2f8890edcb505a2f0c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js @@ -9,21 +9,21 @@ description: > property causes prototype index property to be visited on an Array ---*/ - function callbackfn(val, idx, obj) { - return val < 3 ? true : false; - } - var arr = [0, 111, 2]; +function callbackfn(val, idx, obj) { + return val < 3 ? true : false; +} +var arr = [0, 111, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - var newArr = arr.filter(callbackfn); +Array.prototype[1] = 1; +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[1], 1, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js index 6147fab6731119bf5a01796cc8f4831e04e1a6dc..00b6a41afaaf1f737435378d3c0ab3eac49129ef 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js @@ -9,20 +9,20 @@ description: > property not to be visited ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var arr = [0, 1, 2, "last"]; +function callbackfn(val, idx, obj) { + return true; +} +var arr = [0, 1, 2, "last"]; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); - var newArr = arr.filter(callbackfn); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js index 4e253c64e1fd0df14e81cb2601141277df8a39e9..1f87dab30fa5f9ed2b170c8833ab4289f2b9001a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js @@ -9,27 +9,27 @@ description: > property causes prototype index property to be visited ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var arr = [0, 1, 2]; +function callbackfn(val, idx, obj) { + return true; +} +var arr = [0, 1, 2]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - var newArr = arr.filter(callbackfn); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[2], "prototype", 'newArr[2]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js index c81608958c35ae261f3c2a4256658fdabf056929..b92fde3af46a8653ef2f3456bb48230fc0a1943f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js @@ -10,28 +10,28 @@ description: > flags: [noStrict] ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - var newArr = arr.filter(callbackfn); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[2], "unconfigurable", 'newArr[2]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js index 63ffe45b5fda970276da076000c0b75bfcebc496..a9b8cdae4d506cd9c208772dc03d0fdf44ff9cac 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js @@ -9,21 +9,21 @@ description: > here ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - obj[2] = "length"; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + obj[2] = "length"; + return 3; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], "length", 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js index 9201770ac4c30104a186e1f160696c6a2a589c2e..fd2a2612e9baa488fff43bd908cadfcd20c0bb55 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js @@ -9,20 +9,23 @@ description: > here ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var obj = { 2: 6.99, 8: 19 }; +function callbackfn(val, idx, obj) { + return true; +} +var obj = { + 2: 6.99, + 8: 19 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 10; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.notSameValue(newArr[0], 6.99, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js index 81a5e3d1186dfa4ec4a3a4eb2e46aa2df015f570..61ad18595198a59965b5efdd041538a874af943b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js @@ -9,26 +9,28 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(newArr[1], 6.99, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js index 150eda57cc847bbc607a432f884937d3c9c3fc41..d2d1fd70ca525f06ee8f8fa96d59097474df2845 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js @@ -9,26 +9,26 @@ description: > current position are visited on an Array ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var newArr = arr.filter(callbackfn); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[1], 6.99, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js index 0932eb3345e9e68834560130d37c9054b4a1dfc1..d0bc0fb1e4b7fe3ec0002b45740a5126591706c2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js @@ -9,25 +9,27 @@ description: > after current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var obj = { length: 2 }; +function callbackfn(val, idx, obj) { + return true; +} +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(Array[1], 6.99, 'Array[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js index 677e3106fcd37c1906f358b0fd6d0ef1e35a8c5c..1fea7874622babde7eecbe749f49048b193a6fac 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js @@ -9,25 +9,25 @@ description: > after current position are visited on an Array ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var arr = [0, , 2]; +function callbackfn(val, idx, obj) { + return true; +} +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var newArr = arr.filter(callbackfn); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[1], 6.99, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js index 00d064e237b654cdda460e6bf66f1ffe8d04c133..0593df24fe33e5523c9b77c2c70899d03380cef5 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js @@ -9,30 +9,32 @@ description: > property not to be visited on an Array-like object ---*/ - var accessed = false; - var obj = { length: 2 }; +var accessed = false; +var obj = { + length: 2 +}; - function callbackfn(val, idx, o) { - accessed = true; - return true; - } +function callbackfn(val, idx, o) { + accessed = true; + return true; +} - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 0, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js index 8f1588765fc093f6fca0df65d48d2c357e65db62..1221c8864b706516870a63424fa433924a8bfb83 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js @@ -9,27 +9,27 @@ description: > property not to be visited on an Array ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var arr = [1, 2]; +function callbackfn(val, idx, obj) { + return true; +} +var arr = [1, 2]; - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - var newArr = arr.filter(callbackfn); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 0, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js index cdfc98323c7df0beab56612a6f30063e26bdf493..de7e415f3028cfebedbcbdcf99623e67c6e8fc5d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js @@ -9,14 +9,18 @@ description: > property on an Array-like object ---*/ - var kValue = {}; - function callbackfn(val, idx, obj) { - return (idx === 5) && (val === kValue); - } +var kValue = {}; - var obj = { 5: kValue, length: 100 }; +function callbackfn(val, idx, obj) { + return (idx === 5) && (val === kValue); +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 5: kValue, + length: 100 +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], kValue, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js index b44cba1e3f66928e9de9dd0210e0efd96abb792f..394268152cd7e18d178301aa56a057facda212b1 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js @@ -9,19 +9,19 @@ description: > property on an Array ---*/ - function callbackfn(val, idx, obj) { - return idx === 2 && val === 12; - } +function callbackfn(val, idx, obj) { + return idx === 2 && val === 12; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "2", { - get: function () { - return 12; - }, - configurable: true - }); - var newArr = arr.filter(callbackfn); +Object.defineProperty(arr, "2", { + get: function() { + return 12; + }, + configurable: true +}); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 12, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js index dc089ead83aff105fd4d4735d165553badeff7d6..a713e1953ea4299595218c8c47d5a7cbde686e61 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js @@ -10,25 +10,28 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - return idx === 0 && val === 11; - } +function callbackfn(val, idx, obj) { + return idx === 0 && val === 11; +} - var proto = { 0: 5, 1: 6 }; +var proto = { + 0: 5, + 1: 6 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Object.defineProperty(child, "0", { - get: function () { - return 11; - }, - configurable: true - }); - var newArr = Array.prototype.filter.call(child, callbackfn); +Object.defineProperty(child, "0", { + get: function() { + return 11; + }, + configurable: true +}); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js index bcd3b4287ecca7ce9a757bc739380f7751ee6be7..7dc94d210bfcb5772340b77a6790eb338124fe3a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js @@ -9,21 +9,21 @@ description: > property that overrides an inherited data property on an Array ---*/ - function callbackfn(val, idx, obj) { - return val === 111 && idx === 0; - } +function callbackfn(val, idx, obj) { + return val === 111 && idx === 0; +} - var arr = []; +var arr = []; - Array.prototype[0] = 10; +Array.prototype[0] = 10; - Object.defineProperty(arr, "0", { - get: function () { - return 111; - }, - configurable: true - }); - var newArr = arr.filter(callbackfn); +Object.defineProperty(arr, "0", { + get: function() { + return 111; + }, + configurable: true +}); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 111, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js index 32d9fa6f4c963e76d5e9d7b9138faf8bc2c3d952..4a692475a25ae5e5582de5ef030ed08ab064750a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js @@ -10,32 +10,32 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - return idx === 1 && val === 12; - } - - var proto = {}; - - Object.defineProperty(proto, "1", { - get: function () { - return 6; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 10; - - Object.defineProperty(child, "1", { - get: function () { - return 12; - }, - configurable: true - }); - var newArr = Array.prototype.filter.call(child, callbackfn); +function callbackfn(val, idx, obj) { + return idx === 1 && val === 12; +} + +var proto = {}; + +Object.defineProperty(proto, "1", { + get: function() { + return 6; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 10; + +Object.defineProperty(child, "1", { + get: function() { + return 12; + }, + configurable: true +}); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 12, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js index 1ccf426ac643dfe447b5cf85fbbbd554bfea227d..e6f2a95c64dc09743d14697d8dd1a7efdb16a706 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js @@ -9,26 +9,26 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - function callbackfn(val, idx, obj) { - return idx === 0 && val === 11; - } +function callbackfn(val, idx, obj) { + return idx === 0 && val === 11; +} - var arr = []; +var arr = []; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 5; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 5; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - return 11; - }, - configurable: true - }); - var newArr = arr.filter(callbackfn); +Object.defineProperty(arr, "0", { + get: function() { + return 11; + }, + configurable: true +}); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js index d97746c2da99153f91fa32e1fdbee174c81ceb05..4a7122ea1932f1ca1a875a4e63e6ade862487889 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js @@ -9,25 +9,25 @@ description: > accessor property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return val === 11 && idx === 1; - } +function callbackfn(val, idx, obj) { + return val === 11 && idx === 1; +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "1", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(proto, "1", { + get: function() { + return 11; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 20; - var newArr = Array.prototype.filter.call(child, callbackfn); +var child = new Con(); +child.length = 20; +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js index 82834ff12ffbd0a4b8b678fa4fbd86054f164a08..9a04bb48759c0909bddd1404b79f77652d779c79 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js @@ -9,17 +9,17 @@ description: > accessor property on an Array ---*/ - function callbackfn(val, idx, obj) { - return idx === 0 && val === 11; - } +function callbackfn(val, idx, obj) { + return idx === 0 && val === 11; +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); - var newArr = [, , , ].filter(callbackfn); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true +}); +var newArr = [, , , ].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js index 3b01f8f4c575668fa24df387317526acb3f06bad..17bd3f8a7dad0b0d69dd8e84e509f82abb8f6fd2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js @@ -9,17 +9,19 @@ description: > property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return undefined === val && idx === 1; - } +function callbackfn(val, idx, obj) { + return undefined === val && idx === 1; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js index 3cfc401b909eadf9880dc6759efc9d6a59fcbb01..b139b96a6fbd37feb8a89bd699814a276e7514b3 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js @@ -9,18 +9,18 @@ description: > property without a get function on an Array ---*/ - function callbackfn(val, idx, obj) { - return undefined === val && idx === 0; - } +function callbackfn(val, idx, obj) { + return undefined === val && idx === 0; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); - var newArr = arr.filter(callbackfn); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js index 4ff5f9589cb9549aea9165fceae148340cc571f5..af8b5d615f5493783cc27e95f7f5d6741de554d1 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js @@ -10,18 +10,20 @@ description: > accessor property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return undefined === val && idx === 1; - } +function callbackfn(val, idx, obj) { + return undefined === val && idx === 1; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - Object.prototype[1] = 10; - var newArr = Array.prototype.filter.call(obj, callbackfn); +Object.prototype[1] = 10; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js index b2ea87479f4969ef03c2b61f7379a61c69f8b3f8..a129174e77207f4b342829b36e48da447b857346 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js @@ -9,13 +9,13 @@ description: > property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js index 83958a877df3fe5005043a0392e680a8eabf5ce3..fa5905c96fa592b5c5ab67636650f7e183dbe373 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js @@ -10,19 +10,19 @@ description: > accessor property on an Array ---*/ - function callbackfn(val, idx, obj) { - return undefined === val && idx === 0; - } +function callbackfn(val, idx, obj) { + return undefined === val && idx === 0; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); - Array.prototype[0] = 100; - var newArr = arr.filter(callbackfn); +Array.prototype[0] = 100; +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js index e4c19177bff2290a64943247b6e0f5f1ac915543..87bc30149a3edc919f3216dea9684f10ce3c5474 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js @@ -9,22 +9,22 @@ description: > accessor property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return val === undefined && idx === 1; - } +function callbackfn(val, idx, obj) { + return val === undefined && idx === 1; +} - var proto = {}; - Object.defineProperty(proto, "1", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "1", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - var newArr = Array.prototype.filter.call(child, callbackfn); +var child = new Con(); +child.length = 2; +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js index 5093adca4e76642fe68da4b8e369b4459db71ef2..ce088257b28829cb0f0c0378d2328b05e52b9cd5 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js @@ -9,15 +9,15 @@ description: > accessor property without a get function on an Array ---*/ - function callbackfn(val, idx, obj) { - return undefined === val && idx === 0; - } +function callbackfn(val, idx, obj) { + return undefined === val && idx === 0; +} - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); - var newArr = [, ].filter(callbackfn); +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); +var newArr = [, ].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js index f050065ed49bb7a3280cd00f12a27e963c774ac7..f2288892ed07703fd6879edd1ac855453300afa8 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js @@ -10,15 +10,15 @@ description: > less than number of parameters) ---*/ - function callbackfn(val, idx, obj) { - return val === 11 && idx === 0; - } +function callbackfn(val, idx, obj) { + return val === 11 && idx === 0; +} - var func = function (a, b) { - return Array.prototype.filter.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.filter.call(arguments, callbackfn); +}; - var newArr = func(11); +var newArr = func(11); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js index 4c5719f154f882dcf969d8ea8a99a18fa6b09dbd..13eabc564a075b11386a07a7b2da50ee6cb2e9fb 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js @@ -10,20 +10,20 @@ description: > number of parameters) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } else if (idx === 1) { - return val === 9; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } else if (idx === 1) { + return val === 9; + } else { + return false; + } +} - var func = function (a, b) { - return Array.prototype.filter.call(arguments, callbackfn); - }; - var newArr = func(11, 9); +var func = function(a, b) { + return Array.prototype.filter.call(arguments, callbackfn); +}; +var newArr = func(11, 9); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js index 96927339aaabdfcffa8c78793be6d4d4b2cd9972..117cbb39b71fe0de3b0d6d22b9313a65e038bd0f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js @@ -10,22 +10,22 @@ description: > greater than number of parameters) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } else if (idx === 1) { - return val === 12; - } else if (idx === 2) { - return val === 9; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } else if (idx === 1) { + return val === 12; + } else if (idx === 2) { + return val === 9; + } else { + return false; + } +} - var func = function (a, b) { - return Array.prototype.filter.call(arguments, callbackfn); - }; - var newArr = func(11, 12, 9); +var func = function(a, b) { + return Array.prototype.filter.call(arguments, callbackfn); +}; +var newArr = func(11, 12, 9); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js index 266d3eb37e4de55c5e3958806cfabd56c75f1ae6..28a3290dc420894e26611c1b8ca0f409ecbe6572 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js @@ -9,32 +9,32 @@ description: > iterations is observed on an Array ---*/ - var preIterVisible = false; - var arr = []; +var preIterVisible = false; +var arr = []; - function callbackfn(val, idx, obj) { - return idx === 1 && val === 9; - } +function callbackfn(val, idx, obj) { + return idx === 1 && val === 9; +} - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 11; - } - }, - configurable: true - }); - var newArr = arr.filter(callbackfn); +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 11; + } + }, + configurable: true +}); +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 9, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js index 502971701589986e65d11e35798336aca7cdde39..f3cce11d79a4e6e6345ee5c4d089c83ed8b19beb 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js @@ -9,32 +9,34 @@ description: > iterations is observed on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return val === 9 && idx === 1; - } +function callbackfn(val, idx, obj) { + return val === 9 && idx === 1; +} - var preIterVisible = false; - var obj = { length: 2 }; +var preIterVisible = false; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 13; - } - }, - configurable: true - }); - var newArr = Array.prototype.filter.call(obj, callbackfn); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 13; + } + }, + configurable: true +}); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 9, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js index ce761b38f8b3890873fcfee09abc1a49412e73a9..1f6b1b8c15e225e172e3c5dddc0af40ae71d48b4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js @@ -10,20 +10,23 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - return (idx === 5) && (val === "abc"); - } +function callbackfn(val, idx, obj) { + return (idx === 5) && (val === "abc"); +} - var proto = { 0: 11, 5: 100 }; +var proto = { + 0: 11, + 5: 100 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = "abc"; - child.length = 10; +var child = new Con(); +child[5] = "abc"; +child.length = 10; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], "abc", 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js index 150a4e013f457510d1e229361caa4f85dd77883d..01ffb99e019734100c3c8bdf6a328e4e6ae248de 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js @@ -9,22 +9,28 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var obj = { 0: 11, 5: 10, 10: 8, length: 20 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} + +var obj = { + 0: 11, + 5: 10, + 10: 8, + length: 20 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.filter.call(obj, callbackfn); + Array.prototype.filter.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js index 0eb4d2ecdcc3bf4d15ac43dedfdfb1a9d692f2f0..dc86f08484b219ce288d6372b8ee653e52c68e0a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js @@ -9,25 +9,26 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var arr = []; - arr[5] = 10; - arr[10] = 100; +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} - Object.defineProperty(arr, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = []; +arr[5] = 10; +arr[10] = 100; + +Object.defineProperty(arr, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.filter(callbackfn); + arr.filter(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js index 39f5a2af26d5d1f8eb2070b0e1ffde2eabcf7ad6..62273cdb99cd813d6c5c94ca3a796e987b5f7f7a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js @@ -9,12 +9,12 @@ description: > property that overrides an inherited data property on an Array ---*/ - function callbackfn(val, idx, obj) { - return (idx === 0) && (val === 12); - } +function callbackfn(val, idx, obj) { + return (idx === 0) && (val === 12); +} - Array.prototype[0] = 11; - var newArr = [12].filter(callbackfn); +Array.prototype[0] = 11; +var newArr = [12].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 12, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js index 43000dca2ef75a3d66225d314526db435cbb344b..7f694e9931c41a8a9fa853f1b19b9511704ea46e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js @@ -10,31 +10,31 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - return idx === 0 && val === 11; - } - - var proto = {}; - - Object.defineProperty(proto, "0", { - get: function () { - return 5; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 2; - Object.defineProperty(child, "0", { - value: 11, - configurable: true - }); - child[1] = 12; - - var newArr = Array.prototype.filter.call(child, callbackfn); +function callbackfn(val, idx, obj) { + return idx === 0 && val === 11; +} + +var proto = {}; + +Object.defineProperty(proto, "0", { + get: function() { + return 5; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 2; +Object.defineProperty(child, "0", { + value: 11, + configurable: true +}); +child[1] = 12; + +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js index 18af4d7accf5ae4e75101a7f17d71997c8000ad6..17ead0e5789250210db4253ffc56316947acd681 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js @@ -9,17 +9,17 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - function callbackfn(val, idx, obj) { - return val === 11; - } +function callbackfn(val, idx, obj) { + return val === 11; +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 9; - }, - configurable: true - }); - var newArr = [11].filter(callbackfn); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 9; + }, + configurable: true +}); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js index ec3284966ad3a1e3328455109d4e860168bebe4b..2f92dcd61239855f7d0a33ece7ca1ab89b5130c3 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js @@ -9,21 +9,23 @@ description: > property on an Array-like object ---*/ - var kValue = 'abc'; +var kValue = 'abc'; - function callbackfn(val, idx, obj) { - return (idx === 5) && (val === kValue); - } +function callbackfn(val, idx, obj) { + return (idx === 5) && (val === kValue); +} - var proto = { 5: kValue }; +var proto = { + 5: kValue +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], kValue, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js index 3de54b2b264bd6e0e64393683028ab664a1e9c61..a263ceb340a0372b77c4eb9bb74bb320b62f1baf 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js @@ -9,12 +9,12 @@ description: > property on an Array ---*/ - function callbackfn(val, idx, obj) { - return (idx === 1) && (val === 13); - } +function callbackfn(val, idx, obj) { + return (idx === 1) && (val === 13); +} - Array.prototype[1] = 13; - var newArr = [, , , ].filter(callbackfn); +Array.prototype[1] = 13; +var newArr = [, , , ].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 13, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js index 3e729948689d05cf4b51cf562572d434099fa7bc..57aae11773cdc471db6b77b5a0bccdefd03f784a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js @@ -9,20 +9,23 @@ description: > property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return (idx === 0) && (val === 11); - } +function callbackfn(val, idx, obj) { + return (idx === 0) && (val === 11); +} - var obj = { 10: 10, length: 20 }; +var obj = { + 10: 10, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js index f635e683cd1d3b8f08da79217982ba149ecb615b..e29bab3358e8b7f1a8acc5f1f411caf8b979b39e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js @@ -7,18 +7,19 @@ es5id: 15.4.4.20-9-c-ii-1 description: Array.prototype.filter - callbackfn called with correct parameters ---*/ - var bPar = true; - var bCalled = false; - function callbackfn(val, idx, obj) - { - bCalled = true; - if(obj[idx] !== val) - bPar = false; - } +var bPar = true; +var bCalled = false; - var srcArr = [0,1,true,null,new Object(),"five"]; - srcArr[999999] = -6.6; - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (obj[idx] !== val) + bPar = false; +} + +var srcArr = [0, 1, true, null, new Object(), "five"]; +srcArr[999999] = -6.6; +var resArr = srcArr.filter(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js index b7a6a8e0e5fcd3f88fb0f744ea5ec99811c968b2..67884f9e548f1be96697e6f1361e9d06386bda07 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js @@ -9,10 +9,10 @@ description: > parameter ---*/ - function callbackfn(val) { - return val > 10; - } - var newArr = [12].filter(callbackfn); +function callbackfn(val) { + return val > 10; +} +var newArr = [12].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 12, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js index 4f5cd0714c321135835d72fbed911b3a4134ce02..ca8ee655429054f47c252010fe91105c8cab2787 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js @@ -9,10 +9,10 @@ description: > parameter ---*/ - function callbackfn(val, idx) { - return val > 10 && arguments[2][idx] === val; - } - var newArr = [11].filter(callbackfn); +function callbackfn(val, idx) { + return val > 10 && arguments[2][idx] === val; +} +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js index 400d6ae8a1806fcbe80ca99e922aaf712f3ba146..8ef2009e4e1f513ebd286663e3981087ceb8255b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js @@ -9,10 +9,10 @@ description: > parameter ---*/ - function callbackfn(val, idx, obj) { - return val > 10 && obj[idx] === val; - } - var newArr = [11].filter(callbackfn); +function callbackfn(val, idx, obj) { + return val > 10 && obj[idx] === val; +} +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js index a51466ee68e1c5068b2f45e0b5a7bc49672b98af..59087549b96f9fb314c1486581307105437828a4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js @@ -9,10 +9,10 @@ description: > get parameter value ---*/ - function callbackfn() { - return arguments[2][arguments[1]] === arguments[0]; - } - var newArr = [11].filter(callbackfn); +function callbackfn() { + return arguments[2][arguments[1]] === arguments[0]; +} +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js index 6b1ed02785ce16133f9d95183c4c9497878366cb..44dab44499b62431037a366850ab2cff8606da54 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js @@ -9,12 +9,15 @@ description: > object when T is not an object (T is a boolean) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === false; +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn, false); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn, false); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js index 17022d9b26bd0da6d567b9de635bcf680d69019d..99a2bb143d4bacda064608af847e96f30586f0d9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js @@ -9,12 +9,15 @@ description: > when T is not an object (T is a number) ---*/ - function callbackfn(val, idx, o) { - return 5 === this.valueOf(); - } +function callbackfn(val, idx, o) { + return 5 === this.valueOf(); +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn, 5); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn, 5); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js index bc7ae00991016750902642e75d22c402099e13ec..73ccf1d5fd0318e430e42920af766979079bb576 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js @@ -9,12 +9,15 @@ description: > object when T is not an object (T is a string) ---*/ - function callbackfn(val, idx, obj) { - return 'hello' === this.valueOf(); - } +function callbackfn(val, idx, obj) { + return 'hello' === this.valueOf(); +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn, "hello"); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn, "hello"); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js index 235694b2344dd036a27e27be04999d30876203de..b2ba6df2bc6dcfb258298b454dc053c31766d363 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js @@ -7,15 +7,20 @@ es5id: 15.4.4.20-9-c-ii-19 description: Array.prototype.filter - non-indexed properties are not called ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val === 8; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val === 8; +} - var obj = { 0: 11, non_index_property: 8, 2: 5, length: 20 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + non_index_property: 8, + 2: 5, + length: 20 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js index 52910ae39a76f9dc3943340c182e724648ab793c..208ff7aacc000f6e2c2769b9c3163524e4c62c00 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js @@ -7,17 +7,18 @@ es5id: 15.4.4.20-9-c-ii-2 description: Array.prototype.filter - callbackfn takes 3 arguments ---*/ - var parCnt = 3; - var bCalled = false - function callbackfn(val, idx, obj) - { - bCalled = true; - if(arguments.length !== 3) - parCnt = arguments.length; //verify if callbackfn was called with 3 parameters - } +var parCnt = 3; +var bCalled = false - var srcArr = [0,1,2,3,4,5,6,7,8,9]; - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (arguments.length !== 3) + parCnt = arguments.length; //verify if callbackfn was called with 3 parameters +} + +var srcArr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +var resArr = srcArr.filter(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); assert.sameValue(parCnt, 3, 'parCnt'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js index fc145e2344990710dfa84d2ea2fbcb053bfdf740..645621f7e172d8e3b815b5ee72dc1013f929b6ac 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js @@ -9,14 +9,19 @@ description: > (thisArg is correct) ---*/ - var thisArg = { threshold: 10 }; +var thisArg = { + threshold: 10 +}; - function callbackfn(val, idx, obj) { - return this === thisArg; - } +function callbackfn(val, idx, obj) { + return this === thisArg; +} - var obj = { 0: 11, length: 1 }; - var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); +var obj = { + 0: 11, + length: 1 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js index 1dd9e0853e0f6c9132baa12557cf930068f2631b..8c2b37645feeb7f31b3740cda6b63fc4e1f6a796 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js @@ -9,20 +9,24 @@ description: > (kValue is correct) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } - if (idx === 1) { - return val === 12; - } + if (idx === 1) { + return val === 12; + } - return false; - } + return false; +} - var obj = { 0: 11, 1: 12, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js index 1976d0ab975ca523d0e8ffeed725dc83b5902fa7..d8f90cbda12b6b1fbda0d916c9b7600cb1aa2e8f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js @@ -9,20 +9,24 @@ description: > (the index k is correct) ---*/ - function callbackfn(val, idx, obj) { - if (val === 11) { - return idx === 0; - } +function callbackfn(val, idx, obj) { + if (val === 11) { + return idx === 0; + } - if (val === 12) { - return idx === 1; - } + if (val === 12) { + return idx === 1; + } - return false; - } + return false; +} - var obj = { 0: 11, 1: 12, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js index cdb465ca3bb4579d2ccd76a21849dc4c0a7437f1..54813293c2cc099575af17ae108f37913c87174d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js @@ -9,13 +9,16 @@ description: > (this object O is correct) ---*/ - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - function callbackfn(val, idx, o) { - return obj === o; - } +function callbackfn(val, idx, o) { + return obj === o; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js index c9a7de747a647b6b2d555e74290b02c9c7f8ff9f..5b8e78643b00f48f45760f0f713bc03c485b3cc5 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js @@ -9,18 +9,19 @@ description: > order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - return false; - } else { - lastIdx++; - return true; - } - } - var newArr = arr.filter(callbackfn); +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; + +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + return false; + } else { + lastIdx++; + return true; + } +} +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, called, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js index dbf9d0d54710c6d2cfad02325fa8ff0e8b7d19d9..f0f5e5df9ca2d69f5bef86393197e61f1dae5273 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js @@ -9,25 +9,25 @@ description: > iteration and not prior to starting the loop on an Array ---*/ - var kIndex = []; - var called = 0; +var kIndex = []; +var called = 0; - //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. - function callbackfn(val, idx, obj) { - called++; - //Each position should be visited one time, which means k is accessed one time during iterations. - if (kIndex[idx] === undefined) { - //when current position is visited, its previous index should has been visited. - if (idx !== 0 && kIndex[idx - 1] === undefined) { - return true; - } - kIndex[idx] = 1; - return false; - } else { - return true; - } - } - var newArr = [11, 12, 13, 14].filter(callbackfn, undefined); +//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. +function callbackfn(val, idx, obj) { + called++; + //Each position should be visited one time, which means k is accessed one time during iterations. + if (kIndex[idx] === undefined) { + //when current position is visited, its previous index should has been visited. + if (idx !== 0 && kIndex[idx - 1] === undefined) { + return true; + } + kIndex[idx] = 1; + return false; + } else { + return true; + } +} +var newArr = [11, 12, 13, 14].filter(callbackfn, undefined); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(called, 4, 'called'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js index 6390d908cdcd5d7f25743eac98769480c050d8ff..ea27bcafed1c05f1c91f0ad597750f442913474f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js @@ -9,17 +9,20 @@ description: > consistent ---*/ - var obj = { 0: 11, length: 1 }; - var thisArg = {}; +var obj = { + 0: 11, + length: 1 +}; +var thisArg = {}; - function callbackfn() { - return this === thisArg && - arguments[0] === 11 && - arguments[1] === 0 && - arguments[2] === obj; - } +function callbackfn() { + return this === thisArg && + arguments[0] === 11 && + arguments[1] === 0 && + arguments[2] === obj; +} - var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); +var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js index 97dfb262b659b4a6a83fc5886fd517575e40f25b..68d53c92cdd21b03732274f3d9d2fa2379157054 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js @@ -9,18 +9,23 @@ description: > callbackfn terminate iteration ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - if (called === 1) { - throw new Error("Exception occurred in callbackfn"); - } - return true; - } +function callbackfn(val, idx, obj) { + called++; + if (called === 1) { + throw new Error("Exception occurred in callbackfn"); + } + return true; +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.filter.call(obj, callbackfn); + Array.prototype.filter.call(obj, callbackfn); }); assert.sameValue(called, 1, 'called'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js index 6551c71dfecee69289f7870f8fb11ebbc2528503..6f93d5fee54049ceb9a976b481fe34919b255339 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js @@ -9,16 +9,20 @@ description: > iterations is observed ---*/ - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - if (idx === 0) { - obj[idx + 1] = 8; - } - return val > 10; - } +function callbackfn(val, idx, o) { + if (idx === 0) { + obj[idx + 1] = 8; + } + return val > 10; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js index 0d6beb14789d4ce6ad9150d8e8001c6b3ee76f7f..382633547c66b99c14a11ada3e83921f4bdbfd49 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js @@ -9,10 +9,10 @@ description: > parameter ---*/ - function callbackfn() { - return true; - } - var newArr = [11].filter(callbackfn); +function callbackfn() { + return true; +} +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js index cf811e4dd9a467093beae651f6168c39e05ad656..32568ef97d19c1acf9861b292e98843ddff236b9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js @@ -9,12 +9,16 @@ description: > 'kValue' ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], obj[0], 'newArr[0]'); assert.sameValue(newArr[1], obj[1], 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js index 8acc541e36c66b556034ad221cf1f68a32b7d476..3a9a1dfc01d7769ae601ad852c31511934eac058 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js @@ -9,14 +9,18 @@ description: > overwritten ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); - var tempVal = newArr[1]; - newArr[1] += 1; +var tempVal = newArr[1]; +newArr[1] += 1; assert.notSameValue(newArr[1], tempVal, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js index c3d2d718d33933c63d72cef6812b9dcef2dd9abe..1b641737e9cba5972c2bfa4341f5e5f621c232b9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js @@ -9,21 +9,24 @@ description: > enumerated ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); - var prop; - var enumerable = false; - for (prop in newArr) { - if (newArr.hasOwnProperty(prop)) { - if (prop === "0") { - enumerable = true; - } - } - } +var prop; +var enumerable = false; +for (prop in newArr) { + if (newArr.hasOwnProperty(prop)) { + if (prop === "0") { + enumerable = true; + } + } +} assert(enumerable, 'enumerable !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js index 43d859cc4fce9ed255922414e96dd6a1b914ddf8..18f72dd4c7cdf26c7f1aca5fc3ee113f12340dca 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js @@ -9,15 +9,19 @@ description: > changed or deleted ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); - var tempVal = newArr[1]; - delete newArr[1]; +var tempVal = newArr[1]; +delete newArr[1]; assert.notSameValue(tempVal, undefined, 'tempVal'); assert.sameValue(newArr[1], undefined, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js index 010699ccf47eb06800bb85f62be028f029e1e34b..b5a88eb4b9afb95031b70209a84b4081362880d5 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js @@ -9,19 +9,20 @@ description: > numeric order ---*/ - var arr = [0, 1, 2, 3, 4]; - var lastToIdx = 0; - var called = 0; - function callbackfn(val, idx, obj) { - called++; - if (lastToIdx !== idx) { - return false; - } else { - lastToIdx++; - return true; - } - } - var newArr = arr.filter(callbackfn); +var arr = [0, 1, 2, 3, 4]; +var lastToIdx = 0; +var called = 0; + +function callbackfn(val, idx, obj) { + called++; + if (lastToIdx !== idx) { + return false; + } else { + lastToIdx++; + return true; + } +} +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 5, 'newArr.length'); assert.sameValue(called, 5, 'called'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js index aaad13206c8d220b176861ccee881eb033f92c0d..8e9d64fc65db7305798f066a67786d75aea1de5a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js @@ -10,25 +10,25 @@ description: > starting the loop ---*/ - var toIndex = []; - var called = 0; +var toIndex = []; +var called = 0; - //By below way, we could verify that 'to' would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. - function callbackfn(val, idx, obj) { - called++; - //Each position should be visited one time, which means 'to' is accessed one time during iterations. - if (toIndex[idx] === undefined) { - //when current position is visited, its previous index should has been visited. - if (idx !== 0 && toIndex[idx - 1] === undefined) { - return false; - } - toIndex[idx] = 1; - return true; - } else { - return false; - } - } - var newArr = [11, 12, 13, 14].filter(callbackfn, undefined); +//By below way, we could verify that 'to' would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. +function callbackfn(val, idx, obj) { + called++; + //Each position should be visited one time, which means 'to' is accessed one time during iterations. + if (toIndex[idx] === undefined) { + //when current position is visited, its previous index should has been visited. + if (idx !== 0 && toIndex[idx - 1] === undefined) { + return false; + } + toIndex[idx] = 1; + return true; + } else { + return false; + } +} +var newArr = [11, 12, 13, 14].filter(callbackfn, undefined); assert.sameValue(newArr.length, 4, 'newArr.length'); assert.sameValue(called, 4, 'called'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js index b6c6e6a61f3b9d452a02a06b13898c0d46dfe65f..b4090e61db625175571ff39b9f3ea527b2f5bb9c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js @@ -9,14 +9,14 @@ description: > returned array element ---*/ - function callbackfn(val, idx, obj){ - if(val % 2) - return true; - else - return false; - } - var srcArr = [0,1,2,3,4]; - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) { + if (val % 2) + return true; + else + return false; +} +var srcArr = [0, 1, 2, 3, 4]; +var resArr = srcArr.filter(callbackfn); assert(resArr.length > 0, 'resArr.length > 0'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js index 38b9c166b56eb092f8c90155721e5d3a32ecea7e..e0095481f7a937e11eb559711aba9f0b87300d05 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js @@ -9,11 +9,11 @@ description: > (value is negative number) ---*/ - function callbackfn(val, idx, obj) { - return -5; - } +function callbackfn(val, idx, obj) { + return -5; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js index afdb35685994bafadd38662ff3ad0d3c192d884d..f1458a7ec5d33968f7461b97e024683713f339b0 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js @@ -9,11 +9,11 @@ description: > (value is Infinity) ---*/ - function callbackfn(val, idx, obj) { - return Infinity; - } +function callbackfn(val, idx, obj) { + return Infinity; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js index 719ee9bc9eae58e73e00e9b2e0cbe5c7688de2e3..3187b31ed76794e2e6bb982a382742a85c809730 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js @@ -9,11 +9,11 @@ description: > (value is -Infinity) ---*/ - function callbackfn(val, idx, obj) { - return -Infinity; - } +function callbackfn(val, idx, obj) { + return -Infinity; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js index e78a98f136b1bf64f3a11c6d45ee19d252a1390f..3af7abd329f7f6584ca572f39a756ee5c47a50c2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js @@ -9,14 +9,14 @@ description: > (value is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return NaN; - } +function callbackfn(val, idx, obj) { + accessed = true; + return NaN; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js index a9df829af6770a47c5b516179cbcb9d105f207fd..976eb524d941e682edb1be045a2e04ac49bf7a4d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js @@ -9,14 +9,14 @@ description: > string ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return ""; - } +function callbackfn(val, idx, obj) { + accessed = true; + return ""; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js index c6cac3c3c83a5cdfd59f1a720405f548f15a8adc..46d3a541da773a2206a6ffcfe2e50479a51bdcc8 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js @@ -9,11 +9,11 @@ description: > string ---*/ - function callbackfn(val, idx, obj) { - return "non-empty string"; - } +function callbackfn(val, idx, obj) { + return "non-empty string"; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js index 15d6f4194418b2cc30de9c7c44305fd72176ce56..9d61f23cf0f699088454e11de74ec3aad7e95662 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return function () { }; - } +function callbackfn(val, idx, obj) { + return function() {}; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js index 4fa7e5e1e25a58cbd71b8325058cf5a93494a69c..e897b21bcc7fa59049790c2a9ce6b68bf049a84e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new Array(10); - } +function callbackfn(val, idx, obj) { + return new Array(10); +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js index 46dad6dd0649dca0fc5f0d3c4a3df4c3704ed3af..71f79ca9e93e4d12cdecf2d565f9a65af7566ac1 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new String(); - } +function callbackfn(val, idx, obj) { + return new String(); +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js index bd35cfb692e40b53474d1285cfa55ef3ba65ba06..0570144e92759139e67f67fcf16a00189fb55e1f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new Boolean(); - } +function callbackfn(val, idx, obj) { + return new Boolean(); +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js index b0681bb102774f0153227ebd7aa55a25ec753c62..892a96c6b00c2eaae0affea52fe1327bcb795065 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js @@ -7,16 +7,19 @@ es5id: 15.4.4.20-9-c-iii-2 description: Array.prototype.filter - return value of callbackfn is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, o) { - accessed = true; - return undefined; - } +function callbackfn(val, idx, o) { + accessed = true; + return undefined; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js index 8f3f5e55f4a7044d2288c78cc3f2c3bccc38cc2a..c5409a87e73034aac829d9bc1034888321dad2f1 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new Number(); - } +function callbackfn(val, idx, obj) { + return new Number(); +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js index 5d91b294fc2920814174ef31253bd24a787d4000..80c3876c64cfcbabeedc6e25c167505fd25e43df 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return Math; - } +function callbackfn(val, idx, obj) { + return Math; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js index 7825fe47ffc54d941c7d41e56305b3a3be2010dc..b9e29f24bb2738e43c4c0f90876154f14b915dc0 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new Date(); - } +function callbackfn(val, idx, obj) { + return new Date(); +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js index 7fca3c93deb58cac466883e61ac48344e96b0472..69b2c2c72bced4e974bae82e7efe9d65c74d3fac 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new RegExp(); - } +function callbackfn(val, idx, obj) { + return new RegExp(); +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js index 8f0a030c38485437e17d05b840f2f1f5c519e5ca..afd5e22348897ebb5a863069ca3bed945ab2522b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return JSON; - } +function callbackfn(val, idx, obj) { + return JSON; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js index 57be04e13c9e90ddb819978144163856503b50bb..279fb2a4b38ab9246a7b50feda8cff598a324789 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js @@ -9,11 +9,11 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new EvalError(); - } +function callbackfn(val, idx, obj) { + return new EvalError(); +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js index 332a4c3a36eff758ccf9ec7be188a610663c70a1..25ec2c9fe85790c7ed70a76c97899851f5eb422f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js @@ -9,11 +9,11 @@ description: > Arguments object ---*/ - function callbackfn(val, idx, obj) { - return arguments; - } +function callbackfn(val, idx, obj) { + return arguments; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js index a8d86ae226f000fb71959399e081f4f08844b555..7d02e8a477ff508235d9322b978bbad74bb6b23c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js @@ -10,11 +10,12 @@ description: > ---*/ var global = this; - function callbackfn(val, idx, obj) { - return global; - } - var newArr = [11].filter(callbackfn); +function callbackfn(val, idx, obj) { + return global; +} + +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js index a16c1a2dd7e3f19e0053931b0f5277adc8cfc83a..4184c13cfdd90adc78410669612356385d041ffb 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js @@ -9,16 +9,20 @@ description: > Array ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val > 10; - } +function callbackfn(val, idx, obj) { + called++; + return val > 10; +} - var obj = { 0: 11, 1: 8, length: 20 }; +var obj = { + 0: 11, + 1: 8, + length: 20 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.notSameValue(newArr[0], 8, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js index 8c3fa9315ff1607c2d6ac35fe562966767dec400..f5d032d1c8538a58aa3a380d2c640442e52254b9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js @@ -7,16 +7,19 @@ es5id: 15.4.4.20-9-c-iii-3 description: Array.prototype.filter - return value of callbackfn is null ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return null; - } +function callbackfn(val, idx, obj) { + accessed = true; + return null; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js index 603c075672c674beec66b3b61449ac813b4dabbd..e21b710d61049f53424d31c7f2554bf99431242b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js @@ -9,11 +9,11 @@ description: > callbackfn is treated as true value ---*/ - function callbackfn(val, idx, obj) { - return new Boolean(false); - } +function callbackfn(val, idx, obj) { + return new Boolean(false); +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js index 957e1b506099223b8fd309bb6c9b7382e76cd92b..400819dc740ce47a7f608bdcc044b1b94432198c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js @@ -9,16 +9,19 @@ description: > (value is false) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return false; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js index 3b3959c4f6285d8ffa084596070462547c2f910d..d33c906f24ac51dbe42dc18abe8ef83f60f0439c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js @@ -9,13 +9,16 @@ description: > (value is true) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js index 59e225bab03587f4047802d3393d9b8d7932cd49..8cfdbcbfddb7a660ad614e8709d867df70deba6f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js @@ -9,14 +9,14 @@ description: > (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return 0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return 0; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js index 8b1efafcda11409f2193c1dacae7a37f33550ccd..766eb4034f9d494cdbe9dc75031a3893af5d5967 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js @@ -9,14 +9,14 @@ description: > (value is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return +0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return +0; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js index 3711ff9ef697eec2dec29aa2a1d3d7344af53cdd..ae10c8998be3da807430a71cf8cd171c9487f03c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js @@ -9,14 +9,14 @@ description: > (value is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return -0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return -0; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js index 33bd28e868d56da35d2c05d179d25241a423c9c2..c9f2d5772634e7788dd46a1b73ad49671e2ae7c8 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js @@ -9,11 +9,11 @@ description: > (value is positive number) ---*/ - function callbackfn(val, idx, obj) { - return 5; - } +function callbackfn(val, idx, obj) { + return 5; +} - var newArr = [11].filter(callbackfn); +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/create-ctor-non-object.js b/test/built-ins/Array/prototype/filter/create-ctor-non-object.js index 988fed039e0d84f48f73a684c2386e6b750b1930..e4f50c1cf0d10e9989261c82eb4fa8acef93f456 100644 --- a/test/built-ins/Array/prototype/filter/create-ctor-non-object.js +++ b/test/built-ins/Array/prototype/filter/create-ctor-non-object.js @@ -20,7 +20,9 @@ info: | var a = []; var callCount = 0; -var cb = function() { callCount += 0; }; +var cb = function() { + callCount += 0; +}; a.constructor = null; assert.throws(TypeError, function() { diff --git a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js index a766e6896199237978844498079d47c027a32287..8dec316a7850da910e8657c632c360e8f0135074 100644 --- a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js +++ b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js @@ -17,7 +17,9 @@ info: | var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; Object.defineProperty(a, 'constructor', { get: function() { diff --git a/test/built-ins/Array/prototype/filter/create-non-array.js b/test/built-ins/Array/prototype/filter/create-non-array.js index 32ef7736f773fe34e89498327774ba2dc423f663..34c2a56a07b2dc0f99cf953db9e086ede973523d 100644 --- a/test/built-ins/Array/prototype/filter/create-non-array.js +++ b/test/built-ins/Array/prototype/filter/create-non-array.js @@ -16,7 +16,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js index aecf766f9ba45416c9e1f5a685701e54c10cbaec..3bdee5cd648682efd2ac309377fcc10651f9b259 100644 --- a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js +++ b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js @@ -26,7 +26,9 @@ features: [Proxy] var o = Proxy.revocable([], {}); var ctorCount = 0; var cbCount = 0; -var cb = function() { cbCount += 1; }; +var cb = function() { + cbCount += 1; +}; Object.defineProperty(o.proxy, 'constructor', { get: function() { diff --git a/test/built-ins/Array/prototype/filter/create-species-abrupt.js b/test/built-ins/Array/prototype/filter/create-species-abrupt.js index 42a4f2eda8a2de63c66ceb2a83bc4a0b6a56869b..4c461dd30f936c76455248db0aa4272c7b02313b 100644 --- a/test/built-ins/Array/prototype/filter/create-species-abrupt.js +++ b/test/built-ins/Array/prototype/filter/create-species-abrupt.js @@ -26,7 +26,9 @@ var Ctor = function() { throw new Test262Error(); }; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; var a = []; a.constructor = {}; a.constructor[Symbol.species] = Ctor; diff --git a/test/built-ins/Array/prototype/filter/create-species-non-ctor.js b/test/built-ins/Array/prototype/filter/create-species-non-ctor.js index cf5fba2ce8b89045b41ab77e88c40c01178911c4..890bf4d5216610aaf3efe8fcc9b3836a6e8f4879 100644 --- a/test/built-ins/Array/prototype/filter/create-species-non-ctor.js +++ b/test/built-ins/Array/prototype/filter/create-species-non-ctor.js @@ -25,7 +25,9 @@ features: [Symbol.species] var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; a.constructor = {}; a.constructor[Symbol.species] = parseInt; diff --git a/test/built-ins/Array/prototype/filter/create-species-poisoned.js b/test/built-ins/Array/prototype/filter/create-species-poisoned.js index 9edd338af7098b2c01a89f604be6182089c6deab..947e8f87014374728c111e51c81db10c177382f4 100644 --- a/test/built-ins/Array/prototype/filter/create-species-poisoned.js +++ b/test/built-ins/Array/prototype/filter/create-species-poisoned.js @@ -21,7 +21,9 @@ features: [Symbol.species] var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; a.constructor = {}; Object.defineProperty(a.constructor, Symbol.species, { diff --git a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js index 073201a279c5a2caecc48ef193ed65a30a08dab0..16afbdf352837660221e59a6ed4a14b0ff28e29a 100644 --- a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js +++ b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js @@ -38,17 +38,27 @@ result = arr.find(function(val) { assert.sameValue(called, 3, 'predicate was called three times'); assert.sameValue(result, 'Bike'); -result = arr.find(function(val) { return 'string'; }); +result = arr.find(function(val) { + return 'string'; +}); assert.sameValue(result, 'Shoes', 'coerced string'); -result = arr.find(function(val) { return {}; }); +result = arr.find(function(val) { + return {}; +}); assert.sameValue(result, 'Shoes', 'coerced object'); -result = arr.find(function(val) { return Symbol(''); }); +result = arr.find(function(val) { + return Symbol(''); +}); assert.sameValue(result, 'Shoes', 'coerced Symbol'); -result = arr.find(function(val) { return 1; }); +result = arr.find(function(val) { + return 1; +}); assert.sameValue(result, 'Shoes', 'coerced number'); -result = arr.find(function(val) { return -1; }); +result = arr.find(function(val) { + return -1; +}); assert.sameValue(result, 'Shoes', 'coerced negative number'); diff --git a/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js index 65d471bac195df751cf6562cd6ba321a064505b1..0eb576508b5a4f59f2ed0bb04953a8d5db257d44 100644 --- a/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js +++ b/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js @@ -28,17 +28,27 @@ var result = arr.find(function(val) { assert.sameValue(called, 3, 'predicate was called three times'); assert.sameValue(result, undefined); -result = arr.find(function(val) { return ''; }); +result = arr.find(function(val) { + return ''; +}); assert.sameValue(result, undefined, 'coerced string'); -result = arr.find(function(val) { return undefined; }); +result = arr.find(function(val) { + return undefined; +}); assert.sameValue(result, undefined, 'coerced undefined'); -result = arr.find(function(val) { return null; }); +result = arr.find(function(val) { + return null; +}); assert.sameValue(result, undefined, 'coerced null'); -result = arr.find(function(val) { return 0; }); +result = arr.find(function(val) { + return 0; +}); assert.sameValue(result, undefined, 'coerced 0'); -result = arr.find(function(val) { return NaN; }); +result = arr.find(function(val) { + return NaN; +}); assert.sameValue(result, undefined, 'coerced NaN'); diff --git a/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js b/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js index f57d47aebc9a5640b91b4b7d7c4997f5153485ba..bddf1e3e4cda3910009827f1cc8356afc1c83a4f 100644 --- a/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js +++ b/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js @@ -38,17 +38,27 @@ result = arr.findIndex(function(val) { assert.sameValue(called, 3, 'predicate was called three times'); assert.sameValue(result, 2); -result = arr.findIndex(function(val) { return 'string'; }); +result = arr.findIndex(function(val) { + return 'string'; +}); assert.sameValue(result, 0, 'coerced string'); -result = arr.findIndex(function(val) { return {}; }); +result = arr.findIndex(function(val) { + return {}; +}); assert.sameValue(result, 0, 'coerced object'); -result = arr.findIndex(function(val) { return Symbol(''); }); +result = arr.findIndex(function(val) { + return Symbol(''); +}); assert.sameValue(result, 0, 'coerced Symbol'); -result = arr.findIndex(function(val) { return 1; }); +result = arr.findIndex(function(val) { + return 1; +}); assert.sameValue(result, 0, 'coerced number'); -result = arr.findIndex(function(val) { return -1; }); +result = arr.findIndex(function(val) { + return -1; +}); assert.sameValue(result, 0, 'coerced negative number'); diff --git a/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js index f5348ea596c090da837037c9ce3a4a73f24e03ac..b1e6eb76b7467232d9d6b1ff236b0af85d73e024 100644 --- a/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js +++ b/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js @@ -28,17 +28,27 @@ var result = arr.findIndex(function(val) { assert.sameValue(called, 3, 'predicate was called three times'); assert.sameValue(result, -1); -result = arr.findIndex(function(val) { return ''; }); +result = arr.findIndex(function(val) { + return ''; +}); assert.sameValue(result, -1, 'coerced string'); -result = arr.findIndex(function(val) { return undefined; }); +result = arr.findIndex(function(val) { + return undefined; +}); assert.sameValue(result, -1, 'coerced undefined'); -result = arr.findIndex(function(val) { return null; }); +result = arr.findIndex(function(val) { + return null; +}); assert.sameValue(result, -1, 'coerced null'); -result = arr.findIndex(function(val) { return 0; }); +result = arr.findIndex(function(val) { + return 0; +}); assert.sameValue(result, -1, 'coerced 0'); -result = arr.findIndex(function(val) { return NaN; }); +result = arr.findIndex(function(val) { + return NaN; +}); assert.sameValue(result, -1, 'coerced NaN'); diff --git a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js index 95f5aeffe7ad41ac57d7a5df489f342af3d8a4a6..daa314115734b86a424be34d08bdc8c355638474 100644 --- a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js +++ b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js @@ -9,4 +9,6 @@ features: [Array.prototype.flatMap] ---*/ var a = [0, 0]; -assert.compareArray(a.flatMap(function(){ return this; }.bind([1, 2])), [1, 2, 1, 2]); +assert.compareArray(a.flatMap(function() { + return this; +}.bind([1, 2])), [1, 2, 1, 2]); diff --git a/test/built-ins/Array/prototype/flatMap/depth-always-one.js b/test/built-ins/Array/prototype/flatMap/depth-always-one.js index 851a9a74493307f0384e95d3d996e81e32183e43..4f5f672b484f133aeb01a3c5e4b1857fd9f84b93 100644 --- a/test/built-ins/Array/prototype/flatMap/depth-always-one.js +++ b/test/built-ins/Array/prototype/flatMap/depth-always-one.js @@ -13,7 +13,9 @@ assert.compareArray([1, 2].flatMap(function(e) { }), [1, 2, 2, 4], 'array depth is 1'); var result = [1, 2, 3].flatMap(function(ele) { - return [[ele * 2]]; + return [ + [ele * 2] + ]; }); assert.sameValue(result.length, 3, 'array depth is more than 1 - length'); assert.compareArray(result[0], [2], 'array depth is more than 1 - 1st element'); diff --git a/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js b/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js index 6d47d0233547094902d3ee1ef774cc5ca23d44b2..ab0f8ca86dc0e201c889ebb0c25fdea2b95eef7e 100644 --- a/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js +++ b/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js @@ -7,6 +7,6 @@ description: > features: [Array.prototype.flatMap] ---*/ -assert.throws(TypeError, function () { +assert.throws(TypeError, function() { [].flatMap({}); }, 'non callable argument'); diff --git a/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js b/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js index 21e44b6818612aa5dc983af54aea15bc0dce7e14..65767d2ce4de4d1e9c61491daf9e09cf0824172e 100644 --- a/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js +++ b/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js @@ -31,4 +31,3 @@ a.constructor = true; assert.throws(TypeError, function() { a.flatMap(); }, 'boolean value'); - diff --git a/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js b/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js index 5a4e966e25625fae3245897d023dbabf4257aadb..dcfe81aaf4a89134288272631f58841defb08e35 100644 --- a/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js +++ b/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js @@ -18,4 +18,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { [].flatMap.call(void 0); }, 'undefined'); - diff --git a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js index 95b95ca7a387b53847bd4334d9df923087f84882..34db60abdc847c87d660ce5650d9f029cec91086 100644 --- a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js +++ b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js @@ -12,9 +12,21 @@ features: [Array.prototype.flatMap] var a = {}; -assert(compareArray([1].flatMap(function() { return [this]; }, "TestString"), ["TestString"])); -assert(compareArray([1].flatMap(function() { return [this]; }, 1), [1])); -assert(compareArray([1].flatMap(function() { return [this]; }, null), [null])); -assert(compareArray([1].flatMap(function() { return [this]; }, true), [true])); -assert(compareArray([1].flatMap(function() { return [this]; }, a), [a])); -assert(compareArray([1].flatMap(function() { return [this]; }, void 0), [undefined])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, "TestString"), ["TestString"])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, 1), [1])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, null), [null])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, true), [true])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, a), [a])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, void 0), [undefined])); diff --git a/test/built-ins/Array/prototype/flatten/bound-function-call.js b/test/built-ins/Array/prototype/flatten/bound-function-call.js index ce4153b87cd0069ebe709c130f50ecc4f92423cc..fd35f0975f3a766daf04f67f3b75f8b19019d493 100644 --- a/test/built-ins/Array/prototype/flatten/bound-function-call.js +++ b/test/built-ins/Array/prototype/flatten/bound-function-call.js @@ -8,7 +8,10 @@ includes: [compareArray.js] features: [Array.prototype.flatten] ---*/ -var a = [[0],[1]]; +var a = [ + [0], + [1] +]; var actual = [].flatten.bind(a)(); assert.compareArray(actual, [0, 1], 'bound flatten'); diff --git a/test/built-ins/Array/prototype/flatten/empty-array-elements.js b/test/built-ins/Array/prototype/flatten/empty-array-elements.js index cbf2ae4b07b01ae22c8cd893998e25a702282da7..379b1e48cd87ef869ced614559cc815235347717 100644 --- a/test/built-ins/Array/prototype/flatten/empty-array-elements.js +++ b/test/built-ins/Array/prototype/flatten/empty-array-elements.js @@ -10,6 +10,15 @@ features: [Array.prototype.flatten] var a = {}; assert.compareArray([].flatten(), []); -assert.compareArray([[], []].flatten(), []); -assert.compareArray([[], [1]].flatten(), [1]); -assert.compareArray([[], [1, a]].flatten(), [1, a]); +assert.compareArray([ + [], + [] +].flatten(), []); +assert.compareArray([ + [], + [1] +].flatten(), [1]); +assert.compareArray([ + [], + [1, a] +].flatten(), [1, a]); diff --git a/test/built-ins/Array/prototype/flatten/empty-object-elements.js b/test/built-ins/Array/prototype/flatten/empty-object-elements.js index 356cab6606e3f34ac3728c49f5e4d66363b8c070..e1fcb18d31a4faa1c7b870fae04b64b1e0789f74 100644 --- a/test/built-ins/Array/prototype/flatten/empty-object-elements.js +++ b/test/built-ins/Array/prototype/flatten/empty-object-elements.js @@ -8,9 +8,15 @@ includes: [compareArray.js] features: [Array.prototype.flatten] ---*/ -var a = {}, b = {}; +var a = {}, + b = {}; assert.compareArray([a].flatten(), [a]); assert.compareArray([a, [b]].flatten(), [a, b]); -assert.compareArray([[a], b].flatten(), [a, b]); -assert.compareArray([[a], [b]].flatten(), [a, b]); +assert.compareArray([ + [a], b +].flatten(), [a, b]); +assert.compareArray([ + [a], + [b] +].flatten(), [a, b]); diff --git a/test/built-ins/Array/prototype/flatten/name.js b/test/built-ins/Array/prototype/flatten/name.js index 365c7e11cef4863b711666676f78ce73df3e234a..6d89ae6b7d016a47854ce9a15f98bd4c9c2aa091 100644 --- a/test/built-ins/Array/prototype/flatten/name.js +++ b/test/built-ins/Array/prototype/flatten/name.js @@ -18,4 +18,3 @@ assert.sameValue( verifyNotEnumerable(Array.prototype.flatten, 'name'); verifyNotWritable(Array.prototype.flatten, 'name'); verifyConfigurable(Array.prototype.flatten, 'name'); - diff --git a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js index ef8fb3a53241f9209a133fb1079b99612eb2f121..8211fdcc28b5b6db36623f999b87b4368dfa71d3 100644 --- a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js +++ b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js @@ -11,7 +11,10 @@ features: [Array.prototype.flatten] var a = [void 0]; assert(compareArray([1, null, void 0].flatten(), [1, null, undefined])); -assert(compareArray([1,[null, void 0]].flatten(), [1, null, undefined])); -assert(compareArray([[null, void 0], [null, void 0]].flatten(), [null, undefined, null, undefined])); -assert(compareArray([1,[null, a]].flatten(1), [1, null, a])); -assert(compareArray([1,[null, a]].flatten(2), [1, null, undefined])); +assert(compareArray([1, [null, void 0]].flatten(), [1, null, undefined])); +assert(compareArray([ + [null, void 0], + [null, void 0] +].flatten(), [null, undefined, null, undefined])); +assert(compareArray([1, [null, a]].flatten(1), [1, null, a])); +assert(compareArray([1, [null, a]].flatten(2), [1, null, undefined])); diff --git a/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js b/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js index 3e711223f75bfd1d0d042ca6cdab0571c33a9c85..d3a5a59adc77b1c4c2bf30a14dbebf87a08a9585 100644 --- a/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js +++ b/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js @@ -18,4 +18,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { [].flatten.call(void 0); }, 'undefined'); - diff --git a/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js b/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js index 9bcf98ae0c23a2b8366afbfd6b0a529580b13bd4..af58ce6b7d20662e512db629a36a98d1eda100b0 100644 --- a/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js +++ b/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js @@ -14,4 +14,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { [].flatten(Object.create(null)); }, 'object create null'); - diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js index 1f7f8df82d0fdec0c30fc2969309f7cdf164e688..8e8bb700363bdc11291d8200cb5fc19224324b2a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js @@ -9,5 +9,5 @@ description: Array.prototype.forEach applied to undefined assert.throws(TypeError, function() { - Array.prototype.forEach.call(undefined); // TypeError is thrown if value is undefined + Array.prototype.forEach.call(undefined); // TypeError is thrown if value is undefined }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js index e751161d6a2f19550e32341e85314b5edb173142..7ba92b9737e34f6f34f9f6d4cea02b3baf63ab24 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js @@ -7,14 +7,14 @@ es5id: 15.4.4.18-1-10 description: Array.prototype.forEach applied to the Math object ---*/ - var result = false; +var result = false; - function callbackfn(val, idx, obj) { - result = ('[object Math]' === Object.prototype.toString.call(obj)); - } +function callbackfn(val, idx, obj) { + result = ('[object Math]' === Object.prototype.toString.call(obj)); +} - Math.length = 1; - Math[0] = 1; - Array.prototype.forEach.call(Math, callbackfn); +Math.length = 1; +Math[0] = 1; +Array.prototype.forEach.call(Math, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js index 2ec98784d2edaec50d8d5ad1027955e40caf8f85..8d30c99daeb294f974e1851ccf3e87b8e0403a6b 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-11 description: Array.prototype.forEach applied to Date object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Date; - } +var result = false; - var obj = new Date(); - obj.length = 1; - obj[0] = 1; +function callbackfn(val, idx, obj) { + result = obj instanceof Date; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new Date(); +obj.length = 1; +obj[0] = 1; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js index 5e54175c65a61ab2af60d71d1feffa738f999e2c..c360a87716f2255df580b004ef0467aa530a5cdb 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-12 description: Array.prototype.forEach applied to RegExp object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof RegExp; - } +var result = false; - var obj = new RegExp(); - obj.length = 1; - obj[0] = 1; +function callbackfn(val, idx, obj) { + result = obj instanceof RegExp; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new RegExp(); +obj.length = 1; +obj[0] = 1; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js index 70fc4362937c30a14e0e8a2200d47a4bdb9fe526..9759f019af4b49107ae7f45106992fd6ae89735b 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js @@ -7,13 +7,14 @@ es5id: 15.4.4.18-1-13 description: Array.prototype.forEach applied to the JSON object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = ('[object JSON]' === Object.prototype.toString.call(obj)); - } +var result = false; - JSON.length = 1; - JSON[0] = 1; - Array.prototype.forEach.call(JSON, callbackfn); +function callbackfn(val, idx, obj) { + result = ('[object JSON]' === Object.prototype.toString.call(obj)); +} + +JSON.length = 1; +JSON[0] = 1; +Array.prototype.forEach.call(JSON, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js index b7a59755a57c5cd33334e67ab8c532a30448b8c8..e6c5caa104cdac2175466d11ce2e81dd98366b53 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-14 description: Array.prototype.forEach applied to Error object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Error; - } +var result = false; - var obj = new Error(); - obj.length = 1; - obj[0] = 1; +function callbackfn(val, idx, obj) { + result = obj instanceof Error; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new Error(); +obj.length = 1; +obj[0] = 1; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js index 6b9762524b8766c81142e0f9b2d98c515159c2a7..2ea3f1e44febd75fa33cddaf5d98d090e83375bd 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-15 description: Array.prototype.forEach applied to the Arguments object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = ('[object Arguments]' === Object.prototype.toString.call(obj)); - } +var result = false; - var obj = (function () { - return arguments; - }("a", "b")); +function callbackfn(val, idx, obj) { + result = ('[object Arguments]' === Object.prototype.toString.call(obj)); +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = (function() { + return arguments; +}("a", "b")); + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js index 49ee29fb4010ab1bfdd74b7722a779940b73b0f4..bce24cc3fc17b037325ed17eddb66016b5469e02 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js @@ -9,5 +9,5 @@ description: Array.prototype.forEach applied to null assert.throws(TypeError, function() { - Array.prototype.forEach.call(null); // TypeError is thrown if value is null + Array.prototype.forEach.call(null); // TypeError is thrown if value is null }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js index fde0360220961f9c65d1ea52f04074f77000e3af..6434a1a5d5955b2d7fb5797981ef83a3e372603e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js @@ -7,15 +7,15 @@ es5id: 15.4.4.18-1-3 description: Array.prototype.forEach applied to boolean primitive ---*/ - var result = false; +var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Boolean; - } +function callbackfn(val, idx, obj) { + result = obj instanceof Boolean; +} - Boolean.prototype[0] = true; - Boolean.prototype.length = 1; +Boolean.prototype[0] = true; +Boolean.prototype.length = 1; - Array.prototype.forEach.call(false, callbackfn); +Array.prototype.forEach.call(false, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js index 899d60a7da0f7f929467e83aa9b6dc3c0125b4b2..87304f79b487a02083a46bd52549b2de42ebbb01 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js @@ -7,16 +7,17 @@ es5id: 15.4.4.18-1-4 description: Array.prototype.forEach applied to Boolean object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Boolean; - } +var result = false; - var obj = new Boolean(true); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +function callbackfn(val, idx, obj) { + result = obj instanceof Boolean; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new Boolean(true); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js index dbfdba7f9b60bc3337d1a0e011df68e1ad5d7f68..7afae81ba96b4cb85265fe0fe589ee5822fbca09 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js @@ -7,14 +7,15 @@ es5id: 15.4.4.18-1-5 description: Array.prototype.forEach applied to number primitive ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Number; - } +var result = false; - Number.prototype[0] = 1; - Number.prototype.length = 1; +function callbackfn(val, idx, obj) { + result = obj instanceof Number; +} - Array.prototype.forEach.call(2.5, callbackfn); +Number.prototype[0] = 1; +Number.prototype.length = 1; + +Array.prototype.forEach.call(2.5, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js index a4417baced5d583905759158f2f54f55ee0cd918..8e33905dfb5bf6a2a361d32dea046d98a839adb2 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js @@ -7,16 +7,17 @@ es5id: 15.4.4.18-1-6 description: Array.prototype.forEach applied to Number object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Number; - } +var result = false; - var obj = new Number(-128); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +function callbackfn(val, idx, obj) { + result = obj instanceof Number; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new Number(-128); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js index c85736e356cdc259afbae2bea50efeda19acb8e2..7160b1c0484efb769d43b577158afbba63ffe121 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-1-7 description: Array.prototype.forEach applied to string primitive ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof String; - } +var result = false; - Array.prototype.forEach.call("abc", callbackfn); +function callbackfn(val, idx, obj) { + result = obj instanceof String; +} + +Array.prototype.forEach.call("abc", callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js index 6aa6ade20149756d82a13565430616e7ed3d8618..3f2027f772d5a1668bcd0f2fa58bd10d722c155d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js @@ -7,12 +7,13 @@ es5id: 15.4.4.18-1-8 description: Array.prototype.forEach applied to String object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof String; - } +var result = false; - var obj = new String("abc"); - Array.prototype.forEach.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + result = obj instanceof String; +} + +var obj = new String("abc"); +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js index 24024487f45388fd024ead61aaec0dd547ba8a52..38cd914432af5382db9056bc95e136c2dad5060a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js @@ -7,17 +7,18 @@ es5id: 15.4.4.18-1-9 description: Array.prototype.forEach applied to Function object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Function; - } +var result = false; - var obj = function (a, b) { - return a + b; - }; - obj[0] = 11; - obj[1] = 9; +function callbackfn(val, idx, obj) { + result = obj instanceof Function; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = function(a, b) { + return a + b; +}; +obj[0] = 11; +obj[1] = 9; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js index a8cacea2b34029bcf111ed0607dcd46e494e4def..f6d82711cdffe5298f45ecf0645ea0ef88a3f3be 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js @@ -9,18 +9,19 @@ description: > Array-like object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: 2 - }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 +}; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js index b62dda53caf99958ee4469b892b25839b7698d14..a4b5e78bbeab53aea87cf41063db1409b2f8e5c2 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js @@ -9,28 +9,29 @@ description: > an inherited accessor property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = {}; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = {}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.forEach.call(child, callbackfn); +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js index c28736d4581a56532eba3d1734ac389db07c9553..e9e36719e2f07552f8ded3ca86df936fd6f143b2 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js @@ -9,20 +9,21 @@ description: > an own accessor property without a get function ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +var accessed = false; - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js index c8649b335468b0ffe5a1f2ebc2fbaec2bde1131b..6bb1b8f12a004833580d53eb257285f5fe93ed27 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js @@ -10,24 +10,28 @@ description: > property on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +var accessed = false; - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 12, 1: 11 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 12, + 1: 11 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js index 200cd401c44ae13a5452cf3d218dde1402fd85f1..9dac1f4a26503727d018cce7d1e71dbb82cd0979 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js @@ -9,25 +9,25 @@ description: > 'length' is inherited accessor property without a get function ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 11; - child[1] = 12; +var child = new Con(); +child[0] = 11; +child[1] = 12; - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js index a78c2fbdc878ddc57dcb4d54e5eb76d0520942f4..297cdf482c70ba4c88ca51cf2a1bfeabe30f64e2 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js @@ -9,14 +9,17 @@ description: > 'length' property doesn't exist ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js index 57e36efaa4b40b6e836b28b302f51881c52c9c0c..9f2cd87c73a24f9efbf4c1ef2efc61beb5d65a61 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js @@ -9,15 +9,16 @@ description: > implements its own property get method ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var func = function (a, b) { - arguments[2] = 9; - Array.prototype.forEach.call(arguments, callbackfn); - return result; - }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} + +var func = function(a, b) { + arguments[2] = 9; + Array.prototype.forEach.call(arguments, callbackfn); + return result; +}; assert(func(12, 11), 'func(12, 11) !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js index 8089c6836868755a0a2cda94944fa49deb43247f..717904329a2a68fbb5195990f0570a3dc9c83f72 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js @@ -9,13 +9,14 @@ description: > its own property get method ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 3); - } +var result = false; - var str = new String("012"); +function callbackfn(val, idx, obj) { + result = (obj.length === 3); +} - Array.prototype.forEach.call(str, callbackfn); +var str = new String("012"); + +Array.prototype.forEach.call(str, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js index da202f1588e9cef5247b45a2fb2a7978070e2651..200ad5818c455e34ee21a2adeb3ad74bafa92970 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js @@ -9,18 +9,19 @@ description: > implements its own property get method ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var fun = function (a, b) { - return a + b; - }; - fun[0] = 12; - fun[1] = 11; - fun[2] = 9; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Array.prototype.forEach.call(fun, callbackfn); +var fun = function(a, b) { + return a + b; +}; +fun[0] = 12; +fun[1] = 11; +fun[2] = 9; + +Array.prototype.forEach.call(fun, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js index 1f3da7255d9904237aae62945934314647901208..4f3c8f8c3b339aab75daf05c4889768ce97d6bc5 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-2-2 description: Array.prototype.forEach - 'length' is own data property on an Array ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - [12, 11].forEach(callbackfn); +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} + +[12, 11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js index 3a70a3fa135d4dd6ba63d7de57f4954e7dcb297f..05c761a4f4147b1804396e14b8e778f9b3e8cdee 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js @@ -9,22 +9,25 @@ description: > overrides an inherited data property on an Array-like object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = { length: 3 }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - var Con = function () { }; - Con.prototype = proto; +var proto = { + length: 3 +}; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.forEach.call(child, callbackfn); +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js index 4a5be142588b19b2c1b0d13fb300ce32688c5a26..9d522433395c8991e0074cebda094059f65d4aab 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js @@ -9,14 +9,15 @@ description: > overrides an inherited data property on an Array ---*/ - var result = false; - var arrProtoLen; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; +var arrProtoLen; - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; - [12, 11].forEach(callbackfn); +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} + +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; +[12, 11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js index c261643e5ad09afe5e316c6171482c181012707d..21fd3b12c9d9feb0c85fa27ffea371168b18866f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js @@ -9,32 +9,33 @@ description: > an own data property that overrides an inherited accessor property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } - - var proto = {}; - - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - child[0] = 12; - child[1] = 11; - child[2] = 9; - - Array.prototype.forEach.call(child, callbackfn); +var result = false; + +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} + +var proto = {}; + +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js index e0ee2a2ed4e711251c37f6043de4fbfe1973da17..23627c89aad09949055f40d75fd64d07672ca686 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js @@ -9,21 +9,24 @@ description: > an inherited data property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = { length: 2 }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - var Con = function () { }; - Con.prototype = proto; +var proto = { + length: 2 +}; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.forEach.call(child, callbackfn); +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js index e1fc969f4ac434887c4d98a946ddd5a7fabe5c07..2fb7ebdc3bb0ab62d216ae4f72fd5804a14f827d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js @@ -9,24 +9,25 @@ description: > an own accessor property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var obj = {}; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var obj = {}; - obj[0] = 12; - obj[1] = 11; - obj[2] = 9; +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +obj[0] = 12; +obj[1] = 11; +obj[2] = 9; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js index e1da5228232dde3d89526d95f7ab28d4825cc77d..ee2588cd25905ac873617168c8528c8b8d60822a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js @@ -9,29 +9,32 @@ description: > an own accessor property that overrides an inherited data property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = { length: 3 }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - var Con = function () { }; - Con.prototype = proto; +var proto = { + length: 3 +}; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Array.prototype.forEach.call(child, callbackfn); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js index 0b8017b05aaaa3d406492a2415c4b7c2917d7b70..98f607595825f114d5295651e67b60a5c0b2a01f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js @@ -10,36 +10,37 @@ description: > property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = {}; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); +var proto = {}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Array.prototype.forEach.call(child, callbackfn); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js index 29126acb2b0d427dff134aecccc5c37b951b8782..61853f5cadaa58bad3c730a0e8b45bcd81524c5b 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js @@ -7,14 +7,18 @@ es5id: 15.4.4.18-3-1 description: Array.prototype.forEach - value of 'length' is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 0, 1: 1, length: undefined }; +var obj = { + 0: 0, + 1: 1, + length: undefined +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js index 1b5fdbcfc3bc88f91fca70b4e1ee97e82b14baac..b82073f6a8049e1185179c472430bb93ea484420 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js @@ -9,14 +9,17 @@ description: > NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js index 5244023de7e0be6b2e7c2f19616076d9406fa097..cc8e8892cff198cc19f87266d6a6c9d12978ce92 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js @@ -9,14 +9,18 @@ description: > positive number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "2" }; +var obj = { + 1: 11, + 2: 9, + length: "2" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js index f50bbdc552b6bedbdb580271e5593fdc8ce1b9c6..f08f896a2a40fbbdea86eb9bbd28beec4ca762b4 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js @@ -9,14 +9,18 @@ description: > negative number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "-4294967294" }; +var obj = { + 1: 11, + 2: 9, + length: "-4294967294" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js index 80e34f71688a4aa20d9e42c3134528bd93f3e907..a5816b0ce32df471865d83e3c494f49ab58a1f5f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js @@ -9,13 +9,17 @@ description: > decimal number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } - var obj = { 1: 11, 2: 9, length: "2.5" }; +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} +var obj = { + 1: 11, + 2: 9, + length: "2.5" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js index 482c69d42cc931b8280c3c5aa06973cdb7faf05d..a3583896a2b56c3b28ac60f335402571932743f5 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js @@ -7,14 +7,17 @@ es5id: 15.4.4.18-3-14 description: Array.prototype.forEach - 'length' is a string containing -Infinity ---*/ - var accessed2 = false; +var accessed2 = false; - function callbackfn2(val, idx, obj) { - accessed2 = true; - } +function callbackfn2(val, idx, obj) { + accessed2 = true; +} - var obj2 = { 0: 9, length: "-Infinity" }; +var obj2 = { + 0: 9, + length: "-Infinity" +}; - Array.prototype.forEach.call(obj2, callbackfn2); +Array.prototype.forEach.call(obj2, callbackfn2); assert.sameValue(accessed2, false, 'accessed2'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js index 09b71e39165dc0a8aacf06644b3547890e6924b7..2fb4ad6e90f5bdfe0e48bd0b187ca9d84ca82d52 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js @@ -9,14 +9,18 @@ description: > exponential number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "2E0" }; +var obj = { + 1: 11, + 2: 9, + length: "2E0" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js index e6f77c16a77ebe8feac48513a0bb1e97cd5ffe47..4395836822b4d5b736c7b8f1fd8023aff1566ec9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js @@ -9,14 +9,18 @@ description: > number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "0x0002" }; +var obj = { + 1: 11, + 2: 9, + length: "0x0002" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js index e8ca4bd505bd7b5aaf1ecf6608599d9257e1d9f8..acf6a235dd4d7452df30558d5677aa62fef0f4ca 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js @@ -9,14 +9,18 @@ description: > with leading zeros ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 1: 11, + 2: 9, + length: "0002.00" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js index 7b47f80bafc074ccb3f95f8edf275adf5e039655..070a95aa45a3f2652e916a4bbf4ebc2dbb37db40 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js @@ -9,14 +9,17 @@ description: > convert to a number ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: "asdf!_" }; +var obj = { + 0: 9, + length: "asdf!_" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js index 953f8ef8b7398be57901a0214740881f5db596cb..1c162f9f26f1f3d689c1b81cead7f111006823bc 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js @@ -9,22 +9,22 @@ description: > an own toString method. ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { - 1: 11, - 2: 9, - length: { - toString: function () { - return '2'; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + toString: function() { + return '2'; + } + } +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js index 03e951271e1b4befac386465d3cc4d141cc2b1f6..5dfb9e78278a81afc1cf8c94b76f3c3604ccaaaf 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js @@ -9,13 +9,18 @@ description: > true) ---*/ - var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +var testResult = false; - var obj = { 0: 11, 1: 9, length: true }; +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: true +}; + +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js index 6a1fed479006da9dc074b9d87a1533f7245a0651..64304dc3fab9a4b0c0ac79d4f897fdfcc8cb22f6 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js @@ -9,22 +9,22 @@ description: > an own valueOf method. ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { - 1: 11, - 2: 9, - length: { - valueOf: function () { - return 2; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + valueOf: function() { + return 2; + } + } +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js index e2be7cdb69c92fb2f570316c2f72772c47c1ef85..94681a1400bfb24e2b67437eccc09cab1e8c34d4 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js @@ -10,30 +10,30 @@ description: > returns a string ---*/ - var testResult = false; - var firstStepOccured = false; - var secondStepOccured = false; +var testResult = false; +var firstStepOccured = false; +var secondStepOccured = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { - 1: 11, - 2: 9, - length: { - valueOf: function () { - firstStepOccured = true; - return {}; - }, - toString: function () { - secondStepOccured = true; - return '2'; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + valueOf: function() { + firstStepOccured = true; + return {}; + }, + toString: function() { + secondStepOccured = true; + return '2'; + } + } +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(firstStepOccured, 'firstStepOccured !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js index 6298b50ef1bf5ef2ab02dca4f57e8bc3335dfeb7..1dada065048e5bdb01719143fe5c335244f4fe3e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js @@ -10,30 +10,30 @@ description: > primitive values ---*/ - var accessed = false; - var firstStepOccured = false; - var secondStepOccured = false; +var accessed = false; +var firstStepOccured = false; +var secondStepOccured = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { - 1: 11, - 2: 12, +var obj = { + 1: 11, + 2: 12, - length: { - valueOf: function () { - firstStepOccured = true; - return {}; - }, - toString: function () { - secondStepOccured = true; - return {}; - } - } - }; + length: { + valueOf: function() { + firstStepOccured = true; + return {}; + }, + toString: function() { + secondStepOccured = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.forEach.call(obj, callbackfn); + Array.prototype.forEach.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js index cf7cb7b30d6a0b6e343f5e531045084ab2f2579c..d8cc31d6cca9dcce56d28873411f8724688a368d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js @@ -10,38 +10,38 @@ description: > methods ---*/ - var testResult = false; - var valueOfAccessed = false; - var toStringAccessed = false; - - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } - - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - - child.toString = function () { - toStringAccessed = true; - return '1'; - }; - - var obj = { - 1: 11, - 2: 9, - length: child - }; - - Array.prototype.forEach.call(obj, callbackfn); +var testResult = false; +var valueOfAccessed = false; +var toStringAccessed = false; + +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} + +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +child.toString = function() { + toStringAccessed = true; + return '1'; +}; + +var obj = { + 1: 11, + 2: 9, + length: child +}; + +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js index 770f80e021624ba4292955e404b99fd3bd8a83d1..fb2da44e17808d85257f3a33e2ba39bf64f363fd 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js @@ -9,18 +9,18 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { - 1: 11, - 2: 9, - length: 2.685 - }; +var obj = { + 1: 11, + 2: 9, + length: 2.685 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js index e855f28d66aef375b0657139d6124d56ef843b0b..c9e1809c7bb3c5c1fc7a7bfa87df1eb02741648e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js @@ -9,18 +9,18 @@ description: > non-integer ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { - 1: 11, - 2: 9, - length: -4294967294.5 - }; +var obj = { + 1: 11, + 2: 9, + length: -4294967294.5 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js index a98ea617683dcc833561787b9a519e88a92c7956..467960654c278d77b65014245ab5c1ba2a1e00bb 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js @@ -9,14 +9,18 @@ description: > 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 1, 1: 1, length: 0 }; +var obj = { + 0: 1, + 1: 1, + length: 0 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js index dc457c42a69c0d4b93735c14b031ca0916a9b930..1ac3e8c0b5d9e9fe991e2a2b10d0c1613f3695e4 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js @@ -9,14 +9,17 @@ description: > +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 11, length: +0 }; +var obj = { + 0: 11, + length: +0 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js index 50348c00a62b660a0c03f7c21e2921267e942324..d8caecc2e684c69f73e9170e9ff2990c5b346b38 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js @@ -9,14 +9,17 @@ description: > -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 11, length: -0 }; +var obj = { + 0: 11, + length: -0 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js index 41701e6e57a8c8c09d746577a8d204fdb295f7c3..1197b48160eec4031b3493b56fa808716f7218ef 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js @@ -9,14 +9,18 @@ description: > positive) ---*/ - var testResult1 = false; +var testResult1 = false; - function callbackfn(val, idx, obj) { - testResult1 = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult1 = (val > 10); +} - var obj = { 1: 11, 2: 9, length: 2 }; +var obj = { + 1: 11, + 2: 9, + length: 2 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult1, 'testResult1 !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js index 05ffaedf48ef8deaf44317e3fd4c2693b3e0b320..f3b859b9b0e0d2a4eae3cba5cae1b3b4609f2006 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js @@ -9,14 +9,18 @@ description: > negative) ---*/ - var testResult1 = false; +var testResult1 = false; - function callbackfn(val, idx, obj) { - testResult1 = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult1 = (val > 10); +} - var obj = { 1: 11, 2: 9, length: -4294967294 }; +var obj = { + 1: 11, + 2: 9, + length: -4294967294 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(testResult1, false, 'testResult1'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js index 300fd705ddf0ecb0e1226fc106256545389f1b6e..3d3468809e1a4dc38b11019b123127790da11354 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js @@ -9,14 +9,17 @@ description: > -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js index 0c1e6e517ccc8ee3eb162b29e44d3c68cb2ebb0e..81f4d15b656cd9a586a10538fcc183ff61d769e9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-1 description: Array.prototype.forEach throws TypeError if callbackfn is undefined ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.forEach(); + arr.forEach(); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js index d9ef1c8081e96b7d06ae27d4c9aea748d7b83c13..0dad22c77cdb310a4bd356c9301df78338bb1dfe 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.forEach.call(obj, undefined); + Array.prototype.forEach.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js index 2ae6d34613accbbfd7543d5e01aa307c960bf89d..0a9bca0128260d56910158d5de22d74296679172 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.forEach.call(obj, undefined); + Array.prototype.forEach.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js index 69581f68ec145e5b8f61684ddc1bdc9501bb5369..8bc18df1e510fdf30680745c26baf93a38fca72c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-4-12 description: Array.prototype.forEach - 'callbackfn' is a function ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +var accessed = false; - [11, 9].forEach(callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; +} + +[11, 9].forEach(callbackfn); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js index 1d94ede8a98344accac647401b229f72d4d0a7d5..09b8a247d73a3396bdd6b44d3406d93089afd59f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js @@ -9,27 +9,29 @@ description: > as passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.forEach.call(obj); + Array.prototype.forEach.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js index b3f465b7970d28bf1a86f713d5787df764bd2792..a26b2ea39fc909c1d7ba0d924e4117ec61675a4e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js @@ -9,7 +9,7 @@ description: > unreferenced ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(ReferenceError, function() { - arr.forEach(foo); + arr.forEach(foo); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js index b04887033387656227409d23673c0914088da320..81934e7ea4ca483933a32d8887ab2ee253e484ac 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-3 description: Array.prototype.forEach throws TypeError if callbackfn is null ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.forEach(null); + arr.forEach(null); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js index b9a1d8952611b45ac283e3a689c8cab34915d722..399cdbf5b4d81c5e79f1b07997e721dfd619dd8c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js @@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-4 description: Array.prototype.forEach throws TypeError if callbackfn is boolean ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.forEach(true); + arr.forEach(true); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js index 1ffe8b09462d87fc039fb10c8c9992ded6c7ef0a..866d6fddafea6be875a7aa10b0eb336df670b3f3 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js @@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-5 description: Array.prototype.forEach throws TypeError if callbackfn is number ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.forEach(5); + arr.forEach(5); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js index 146bb7df2d3a2f94d5883c5eb839cc8ab7d2490b..4cf36be9874e768fbe6c526c6bbeada85908cc4a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js @@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-6 description: Array.prototype.forEach throws TypeError if callbackfn is string ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.forEach("abc"); + arr.forEach("abc"); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js index 93d142b9b61cd6d327bcb4fef406cf535e5cb436..3379dbe02e00b7e87ec614a8f7fb96fa851d1a63 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js @@ -9,7 +9,7 @@ description: > without Call internal method ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.forEach(new Object()); + arr.forEach(new Object()); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js index 9ea17000ac1cfb4aea64a2b307432447ab7e9ec8..09f9862fefaf425c4f10775a21e4a6887503b588 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.forEach.call(obj, null); + Array.prototype.forEach.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js index 8600794ddf5f95903e64b03138daa784bebefb38..75b0065b3207d45a3e81967e20daa7a03a7c6704 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.forEach.call(obj, null); + Array.prototype.forEach.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js index 540b38d09d8a3ff19416e5a1d6210499db841c71..c4b4c0df4c133adb73cb4a8740d359f37d3a9ad8 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js @@ -8,14 +8,14 @@ description: Array.prototype.forEach - thisArg not passed to strict callbackfn flags: [noStrict] ---*/ - var innerThisCorrect = false; +var innerThisCorrect = false; - function callbackfn(val, idx, obj) { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } +function callbackfn(val, idx, obj) { + "use strict"; + innerThisCorrect = this === undefined; + return true; +} - [1].forEach(callbackfn); +[1].forEach(callbackfn); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js index ae937bd6ec3ea835e06c36e54397a1963f017ffe..6dd49f78f1cd64473f92105de2f1ccc51ed5b2b2 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js @@ -9,14 +9,15 @@ flags: [noStrict] ---*/ (function() { - this._15_4_4_18_5_1 = false; - var _15_4_4_18_5_1 = true; - var result; - function callbackfn(val, idx, obj) { - result = this._15_4_4_18_5_1; - } - var arr = [1]; - arr.forEach(callbackfn) + this._15_4_4_18_5_1 = false; + var _15_4_4_18_5_1 = true; + var result; -assert.sameValue(result, false, 'result'); + function callbackfn(val, idx, obj) { + result = this._15_4_4_18_5_1; + } + var arr = [1]; + arr.forEach(callbackfn) + + assert.sameValue(result, false, 'result'); })(); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js index 914cfafaebcc7f2297781bf0968dc13f28f015f9..771626914ada8ca8a69a5e95e72da11df94d3756 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js @@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-10 description: Array.prototype.forEach - Array Object can be used as thisArg ---*/ - var result = false; - var objArray = []; +var result = false; +var objArray = []; - function callbackfn(val, idx, obj) { - result = (this === objArray); - } +function callbackfn(val, idx, obj) { + result = (this === objArray); +} - [11].forEach(callbackfn, objArray); +[11].forEach(callbackfn, objArray); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js index 0f0e203b3747af239a335838d24d8da3c280d87f..9975fe11c9c8090abe5c90b53db126e1d3efbcb7 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js @@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-11 description: Array.prototype.forEach - String Object can be used as thisArg ---*/ - var result = false; - var objString = new String(); +var result = false; +var objString = new String(); - function callbackfn(val, idx, obj) { - result = (this === objString); - } +function callbackfn(val, idx, obj) { + result = (this === objString); +} - [11].forEach(callbackfn, objString); +[11].forEach(callbackfn, objString); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js index 76e1b95671ead1f0ed4265b6c668b90e5970149f..4aa627ea0cd7b5495d3bc71fbfbccfafdc939d1d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js @@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-12 description: Array.prototype.forEach - Boolean Object can be used as thisArg ---*/ - var result = false; - var objBoolean = new Boolean(); +var result = false; +var objBoolean = new Boolean(); - function callbackfn(val, idx, obj) { - result = (this === objBoolean); - } +function callbackfn(val, idx, obj) { + result = (this === objBoolean); +} - [11].forEach(callbackfn, objBoolean); +[11].forEach(callbackfn, objBoolean); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js index 7657769762bf4fb9e918eeee374dd5284147e1cf..0ca2d8c48e88039612990a8dc8f7db38944f3636 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js @@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-13 description: Array.prototype.forEach - Number Object can be used as thisArg ---*/ - var result = false; - var objNumber = new Number(); +var result = false; +var objNumber = new Number(); - function callbackfn(val, idx, obj) { - result = (this === objNumber); - } +function callbackfn(val, idx, obj) { + result = (this === objNumber); +} - [11].forEach(callbackfn, objNumber); +[11].forEach(callbackfn, objNumber); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js index 9033553789bd754513bb79ccd94996ffff72a964..8c1b7fcd53ecb9387c1445135199de8fd8494acf 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-14 description: Array.prototype.forEach - the Math object can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this === Math); - } +var result = false; - [11].forEach(callbackfn, Math); +function callbackfn(val, idx, obj) { + result = (this === Math); +} + +[11].forEach(callbackfn, Math); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js index d4154fead7f997f7b63f7cfa931f024ae19f08e0..8835b6bdcff4025c5366874f1979d8b3eb648037 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js @@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-15 description: Array.prototype.forEach - Date Object can be used as thisArg ---*/ - var result = false; - var objDate = new Date(); +var result = false; +var objDate = new Date(); - function callbackfn(val, idx, obj) { - result = (this === objDate); - } +function callbackfn(val, idx, obj) { + result = (this === objDate); +} - [11].forEach(callbackfn, objDate); +[11].forEach(callbackfn, objDate); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js index 67f48ac06d259ea1c7171172b9a70f708235a816..a0f3cb83dd65b3cb365eb46b572ff6e4614a7c3d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js @@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-16 description: Array.prototype.forEach - RegExp Object can be used as thisArg ---*/ - var result = false; - var objRegExp = new RegExp(); +var result = false; +var objRegExp = new RegExp(); - function callbackfn(val, idx, obj) { - result = (this === objRegExp); - } +function callbackfn(val, idx, obj) { + result = (this === objRegExp); +} - [11].forEach(callbackfn, objRegExp); +[11].forEach(callbackfn, objRegExp); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js index 5d9ec5130ca41e84eee6b6a58c362fef02bc4a68..2aea48e64ea37409d507f4f53841bee369335f6e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-17 description: Array.prototype.forEach - the JSON object can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this === JSON); - } +var result = false; - [11].forEach(callbackfn, JSON); +function callbackfn(val, idx, obj) { + result = (this === JSON); +} + +[11].forEach(callbackfn, JSON); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js index 237bd7b389907771a255a22696e2eac7c958e8b9..84480af75fa921ec4cd743fb419930e4b0211b80 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js @@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-18 description: Array.prototype.forEach - Error Object can be used as thisArg ---*/ - var result = false; - var objError = new RangeError(); +var result = false; +var objError = new RangeError(); - function callbackfn(val, idx, obj) { - result = (this === objError); - } +function callbackfn(val, idx, obj) { + result = (this === objError); +} - [11].forEach(callbackfn, objError); +[11].forEach(callbackfn, objError); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js index 0ffb3591d08d65a702077d1526a7e4acc8791fa1..cf428f4401bb760a2640395ea8e2eb5c374b48a9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js @@ -9,17 +9,17 @@ description: > thisArg ---*/ - var result = false; - var arg; +var result = false; +var arg; - function callbackfn(val, idx, obj) { - result = (this === arg); - } +function callbackfn(val, idx, obj) { + result = (this === arg); +} - (function fun() { - arg = arguments; - }(1, 2, 3)); +(function fun() { + arg = arguments; +}(1, 2, 3)); - [11].forEach(callbackfn, arg); +[11].forEach(callbackfn, arg); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js index 194c4ed484d0978129d0182053e253920d63ca1e..7c62ee13dd3448ceb032555ac1bfbd03063f9588 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js @@ -7,16 +7,17 @@ es5id: 15.4.4.18-5-2 description: Array.prototype.forEach - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var o = new Object(); +o.res = true; +var result; - var arr = [1]; - arr.forEach(callbackfn,o) +function callbackfn(val, idx, obj) +{ + result = this.res; +} + +var arr = [1]; +arr.forEach(callbackfn, o) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js index 3a3e5c9626739686f867ef65b1d43459c18b529f..19b8de2faae9dd80fcf2bdf841843a3e8ba93ba1 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js @@ -8,11 +8,12 @@ description: Array.prototype.forEach - the global object can be used as thisArg ---*/ var global = this; - var result = false; - function callbackfn(val, idx, obj) { - result = (this === global); - } +var result = false; - [11].forEach(callbackfn, this); +function callbackfn(val, idx, obj) { + result = (this === global); +} + +[11].forEach(callbackfn, this); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js index ae22b88b03eac460449f84118249d6394c9b1c22..22fe09f8eecd369a245eed67adb028c347bf4ba8 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js @@ -7,12 +7,12 @@ es5id: 15.4.4.18-5-22 description: Array.prototype.forEach - boolean primitive can be used as thisArg ---*/ - var result = false; +var result = false; - function callbackfn(val, idx, obj) { - result = (this.valueOf() === false); - } +function callbackfn(val, idx, obj) { + result = (this.valueOf() === false); +} - [11].forEach(callbackfn, false); +[11].forEach(callbackfn, false); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js index 5fc0674f06763471049dd3e4728626d5f2b97670..c74f302aa790995a963268063521cc720703f8a1 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-23 description: Array.prototype.forEach - number primitive can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this.valueOf() === 101); - } +var result = false; - [11].forEach(callbackfn, 101); +function callbackfn(val, idx, obj) { + result = (this.valueOf() === 101); +} + +[11].forEach(callbackfn, 101); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js index 6b774576bce767193a74a0a642f46c9f8289d7e8..fc1c4fa6f952b90c3e13025b0eec7fa6cc1c808c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-24 description: Array.prototype.forEach - string primitive can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this.valueOf() === "abc"); - } +var result = false; - [11].forEach(callbackfn, "abc"); +function callbackfn(val, idx, obj) { + result = (this.valueOf() === "abc"); +} + +[11].forEach(callbackfn, "abc"); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js index f32dd6f8102c0fa48e07bb64ae6a367a9957274a..af345a918861ca0f4350708796832ac3174e349e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js @@ -8,16 +8,17 @@ description: Array.prototype.forEach - thisArg not passed flags: [noStrict] ---*/ - function innerObj() { - this._15_4_4_18_5_25 = true; - var _15_4_4_18_5_25 = false; - var result; - function callbackfn(val, idx, obj) { - result = this._15_4_4_18_5_25; - } - var arr = [1]; - arr.forEach(callbackfn) - this.retVal = !result; - } +function innerObj() { + this._15_4_4_18_5_25 = true; + var _15_4_4_18_5_25 = false; + var result; + + function callbackfn(val, idx, obj) { + result = this._15_4_4_18_5_25; + } + var arr = [1]; + arr.forEach(callbackfn) + this.retVal = !result; +} assert(new innerObj().retVal, 'new innerObj().retVal !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js index 7ce819a4fcf131c35dd6f48bc8604f8002b5777b..738c6624f9d8b2bde2fd7bbd2ad433deec6705d1 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js @@ -7,16 +7,17 @@ es5id: 15.4.4.18-5-3 description: Array.prototype.forEach - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var a = new Array(); +a.res = true; +var result; - var arr = [1]; - arr.forEach(callbackfn,a) +function callbackfn(val, idx, obj) +{ + result = this.res; +} + +var arr = [1]; +arr.forEach(callbackfn, a) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js index 211bafd486be6d05081669c8188ae94129b9bc07..6a88eded2ec9247f8e146948599583f927911dbe 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js @@ -9,17 +9,18 @@ description: > template(prototype) ---*/ - var res = false; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var result; - function foo(){} - foo.prototype.res = true; - var f = new foo(); - var arr = [1]; - arr.forEach(callbackfn,f) +function callbackfn(val, idx, obj) +{ + result = this.res; +} + +function foo() {} +foo.prototype.res = true; +var f = new foo(); +var arr = [1]; +arr.forEach(callbackfn, f) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js index 3f3d7ba8cc55a78f32a2e085104812e490da3c50..eedf65b799e2f7500a7d1d6cc4a137c5c284d21c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js @@ -7,18 +7,19 @@ es5id: 15.4.4.18-5-5 description: Array.prototype.forEach - thisArg is object from object template ---*/ - var res = false; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var result; - function foo(){} - var f = new foo(); - f.res = true; +function callbackfn(val, idx, obj) +{ + result = this.res; +} - var arr = [1]; - arr.forEach(callbackfn,f) +function foo() {} +var f = new foo(); +f.res = true; + +var arr = [1]; +arr.forEach(callbackfn, f) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js index bcbb7bb55ce9aa9883b74a9f6b6feb03e4fd4f14..00e62309bea43952c72f342f54a596714db351a6 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js @@ -7,17 +7,18 @@ es5id: 15.4.4.18-5-6 description: Array.prototype.forEach - thisArg is function ---*/ - var res = false; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var result; - function foo(){} - foo.res = true; +function callbackfn(val, idx, obj) +{ + result = this.res; +} - var arr = [1]; - arr.forEach(callbackfn,foo) +function foo() {} +foo.res = true; + +var arr = [1]; +arr.forEach(callbackfn, foo) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js index d7550402786448075d8e9ed28f3726221be36f6b..c5db1a536b614bd8dd7bbee7a63db618be78198c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js @@ -7,12 +7,12 @@ es5id: 15.4.4.18-5-7 description: Array.prototype.forEach - built-in functions can be used as thisArg ---*/ - var result = false; +var result = false; - function callbackfn(val, idx, obj) { - result = (this === eval); - } +function callbackfn(val, idx, obj) { + result = (this === eval); +} - [11].forEach(callbackfn, eval); +[11].forEach(callbackfn, eval); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js index 81097bd2f0f919a4a442413eac2fef8899c7c403..9dede756a347beee69b5af1548f40fb3a269572c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js @@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-9 description: Array.prototype.forEach - Function Object can be used as thisArg ---*/ - var result = false; - var objString = function () { }; +var result = false; +var objString = function() {}; - function callbackfn(val, idx, obj) { - result = (this === objString); - } +function callbackfn(val, idx, obj) { + result = (this === objString); +} - [11].forEach(callbackfn, objString); +[11].forEach(callbackfn, objString); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js index 304a956838597b9361a6a28e7284d7a486c3e9a9..0ee2556d65cef5de403bf5433811615c77b86581 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js @@ -9,15 +9,16 @@ description: > array after the call ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - arr[2] = 3; - arr[5] = 6; - } +var callCnt = 0; - var arr = [1,2,,4,5]; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; + arr[2] = 3; + arr[5] = 6; +} + +var arr = [1, 2, , 4, 5]; +arr.forEach(callbackfn); assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js index 427fee6c85bada7802c99ad25a02339b28b06fa9..240795f062a5c5911eac95c09a5af44910befc1d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js @@ -9,15 +9,16 @@ description: > after the call ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - if(callCnt == 0) - delete arr[3]; - callCnt++; - } +var callCnt = 0; - var arr = [1,2,3,4,5]; - arr.forEach(callbackfn) +function callbackfn(val, idx, obj) +{ + if (callCnt == 0) + delete arr[3]; + callCnt++; +} + +var arr = [1, 2, 3, 4, 5]; +arr.forEach(callbackfn) assert.sameValue(callCnt, 4, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js index c45a36fc089310e451e89fe945041571e55a35c3..d81ed613feec1e806b638883a5f8d1eb70f3a81e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js @@ -9,14 +9,15 @@ description: > Array.length is decreased ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - arr.length=3; - callCnt++; - } +var callCnt = 0; - var arr = [1,2,3,4,5]; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + arr.length = 3; + callCnt++; +} + +var arr = [1, 2, 3, 4, 5]; +arr.forEach(callbackfn); assert.sameValue(callCnt, 3, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js index c178ead68286f89ab3400664213dbee6fbf7f220..96180c3ab70d873a82f62f6508ac0ab03fcfcf41 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js @@ -9,16 +9,17 @@ description: > sparse array ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - arr[1000] = 3; - callCnt++; - } +var callCnt = 0; - var arr = new Array(10); - arr[1] = 1; - arr[2] = 2; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + arr[1000] = 3; + callCnt++; +} + +var arr = new Array(10); +arr[1] = 1; +arr[2] = 2; +arr.forEach(callbackfn); assert.sameValue(callCnt, 2, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js index 71a7d7b939aa97d58deb044d97e08438d21cdaec..9c56fa65cfce9c5405461c449fdc99bbb90b0d23 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js @@ -9,17 +9,18 @@ description: > call when same index is also present in prototype ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - delete arr[4]; - callCnt++; - } +var callCnt = 0; - Array.prototype[4] = 5; +function callbackfn(val, idx, obj) +{ + delete arr[4]; + callCnt++; +} - var arr = [1,2,3,4,5]; - arr.forEach(callbackfn) - delete Array.prototype[4]; +Array.prototype[4] = 5; + +var arr = [1, 2, 3, 4, 5]; +arr.forEach(callbackfn) +delete Array.prototype[4]; assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js index ba099415402bd94f3bedede9f3f6f8ae86e32c4d..eb8ad48c670b7a028d4b5a08073822e036c55767 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js @@ -9,16 +9,16 @@ description: > after the call ---*/ - var result = false; - var arr = [1, 2, 3, 4, 5]; +var result = false; +var arr = [1, 2, 3, 4, 5]; - function callbackfn(val, Idx, obj) { - arr[4] = 6; - if (val >= 6) { - result = true; - } - } +function callbackfn(val, Idx, obj) { + arr[4] = 6; + if (val >= 6) { + result = true; + } +} - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js index df0a1c9bc0f2000cadb4592488c4fc246b85ae24..8a2065833ac3ba36a056258971556aa09e866935 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js @@ -7,14 +7,18 @@ es5id: 15.4.4.18-7-8 description: Array.prototype.forEach - no observable effects occur if len is 0 ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 11, 1: 12, length: 0 }; +var obj = { + 0: 11, + 1: 12, + length: 0 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js index 1c9ab103775b845af627e5b5f08c0cb39d320150..361e22528558158aa65b5d78b33c161e10f5b8ac 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js @@ -9,21 +9,26 @@ description: > number of iterations ---*/ - var called = 0; - function callbackfn(val, idx, obj) { - called++; - } +var called = 0; - var obj = { 1: 12, 2: 9, length: 2 }; +function callbackfn(val, idx, obj) { + called++; +} - Object.defineProperty(obj, "0", { - get: function () { - obj.length = 3; - return 11; - }, - configurable: true - }); +var obj = { + 1: 12, + 2: 9, + length: 2 +}; - Array.prototype.forEach.call(obj, callbackfn); +Object.defineProperty(obj, "0", { + get: function() { + obj.length = 3; + return 11; + }, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js index 647090637124d904544c9d40ba85bc4817b9658e..ad7133ffb39d232e6c2476645327d8191c0a2d92 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js @@ -9,14 +9,15 @@ description: > been assigned values ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - } +var callCnt = 0; - var arr = new Array(10); - arr[1] = undefined; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; +} + +var arr = new Array(10); +arr[1] = undefined; +arr.forEach(callbackfn); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js index 716fc69ff568d0ad88f0e23b79ca53cff9433c75..b3e6e5cc3dfee6fc9e60a96de63ad84766d5328b 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js @@ -9,28 +9,31 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.forEach.call(obj, callbackfn); +Object.prototype[1] = 1; +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js index e505e3d4dc5a892afa18c7a9a2b2fade2dc08ee9..5c7ee84f70387de56d3d31ac74ec323803d13ff5 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js @@ -9,28 +9,28 @@ description: > prototype index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} - var arr = [0, , ]; +var arr = [0, , ]; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.forEach(callbackfn); +Array.prototype[1] = 1; +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js index a9350d2996927787e404c6345c666af8c2532b69..a7de152f1154152bcc8df64645e7b7a745253497 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js @@ -10,25 +10,29 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, length: 10 }; +var obj = { + 0: 0, + 1: 111, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.forEach.call(obj, callbackfn); +Object.prototype[1] = 1; +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js index b0b704f1a97283543e289727f436cb52025da999..ecc5607a50bbc7c3ceccba6513a073d05791b139 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js @@ -9,24 +9,24 @@ description: > property causes prototype index property to be visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } - var arr = [0, 111]; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} +var arr = [0, 111]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.forEach(callbackfn); +Array.prototype[1] = 1; +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js index 8106ac8ed81209db3cda883458e0cde269f45d16..8a09839a584e2773fd44ab255cbba2c0343f096a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js @@ -9,27 +9,27 @@ description: > property not to be visited ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var arr = [0, 1, 2, "last"]; +var arr = [0, 1, 2, "last"]; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js index 57a7cb646bed0749d8e87948c0948c3e6c5d6349..d92cf600a513b59b782119ce441b6c3ce71ae575 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js @@ -9,30 +9,30 @@ description: > prototype property causes prototype index property to be visited ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "prototype") { - testResult = true; - } - } - var arr = [0, 1, 2]; +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "prototype") { + testResult = true; + } +} +var arr = [0, 1, 2]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js index c337ed6a780e64b54caebc1e9d4f87479954d5c5..864b5aac6d6a25634ff554a50e8e557b22aa36a4 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js @@ -10,31 +10,31 @@ description: > flags: [noStrict] ---*/ - var testResult = false; - - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "unconfigurable") { - testResult = true; - } - } - - var arr = [0, 1, 2]; - - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); - - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); - - arr.forEach(callbackfn); +var testResult = false; + +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "unconfigurable") { + testResult = true; + } +} + +var arr = [0, 1, 2]; + +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); + +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); + +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js index 4d1ba1c19e52bf9af622dc2f0b2cc4e04bf5957a..abc78638b8aca931d9a4425dba0d0831c987a6df 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js @@ -9,24 +9,24 @@ description: > here ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "length") { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "length") { + testResult = true; + } +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - obj[2] = "length"; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + obj[2] = "length"; + return 3; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js index 71abd46a0f7f7305a54a355572b9aadc976ae455..d949efd18671b261544d0ec86d3a7a89df25622d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js @@ -9,26 +9,29 @@ description: > here ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 8) { - testResult = false; - } - } - var obj = { 2: 6.99, 8: 19 }; +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 8) { + testResult = false; + } +} +var obj = { + 2: 6.99, + 8: 19 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[8]; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[8]; + return 10; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js index d9315e91dfa35786b7c8a9f154427322ac094264..af22a021966f2b55019ea96a399767300e654f4f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js @@ -9,29 +9,31 @@ description: > current position are visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js index 0afda4bd38a30b4e80eba43fcf86cbdc2407a3b9..fda33ef758577a64a356858b5f9b3924bb086164 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js @@ -9,29 +9,29 @@ description: > current position are visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js index a26a16afeed269dad88f31bfc109a266df28aebe..8e5262582f24e2d03cb0822802d6239c7631547c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js @@ -9,29 +9,31 @@ description: > after current position are visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js index 48619ba101f0b5f712108f6cf1372397d84eec16..11d9bd6ecf3807c6787b42896bc42515640ac86e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js @@ -9,29 +9,29 @@ description: > after current position are visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js index d850238c62acb0fd462dd8ecfc25bdfdfa17f53c..0e7f8c30841bcb03ee8a91ddba05ee44f418beb4 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js @@ -9,34 +9,36 @@ description: > property not to be visited on an Array-like object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { length: 2 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.forEach.call(obj, callbackfn); +var accessed = false; +var testResult = true; + +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + length: 2 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js index b9fda4c355f838f16e66e2a6508a40390cbb64f4..aa579d22b935354b9aa5b33b238cfcaa3dd43018 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js @@ -9,34 +9,34 @@ description: > property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var arr = [1, 2]; - - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); - - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); - - arr.forEach(callbackfn); +var accessed = false; +var testResult = true; + +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var arr = [1, 2]; + +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); + +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js index 8983f724e3d7524f7a201ed000b83c03e299bec2..4261196fb7f9f9b8c74ec2f3221a7e06d0a6d788 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js @@ -9,17 +9,20 @@ description: > property on an Array-like object ---*/ - var kValue = { }; - var testResult = false; +var kValue = {}; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 5) { - testResult = (val === kValue); - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + testResult = (val === kValue); + } +} - var obj = { 5: kValue, length: 100 }; +var obj = { + 5: kValue, + length: 100 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js index 4b6a3b8aa1ef669e8a6fd0bc18fa2f9d2005f570..1411c10bd442a8c794ce65b0eb47d82beaf83a2c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js @@ -9,23 +9,23 @@ description: > property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 2) { - testResult = (val === 12); - } - } +function callbackfn(val, idx, obj) { + if (idx === 2) { + testResult = (val === 12); + } +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "2", { - get: function () { - return 12; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + return 12; + }, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js index d886a548f3d623461a58b73f9f232328d6d71358..b313ad7c6a21afbc9d0e56806c9d39df3097ef2f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js @@ -10,29 +10,31 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} - var proto = { 0: 5 }; +var proto = { + 0: 5 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Object.defineProperty(child, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(child, "0", { + get: function() { + return 11; + }, + configurable: true +}); - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js index 8c97ccda436176e95f85fbca3004bf2e7e666fde..493e9632c4954a99e50aa95832a8a84e328a4280 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js @@ -9,25 +9,25 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 111); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 111); + } +} - var arr = []; +var arr = []; - Array.prototype[0] = 10; +Array.prototype[0] = 10; - Object.defineProperty(arr, "0", { - get: function () { - return 111; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return 111; + }, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js index 5b5966bd869db15d8ecd62a6ca776113493ea522..c3d66f5f4b6b5b0e06a28413dce6a474fadf03dc 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js @@ -10,37 +10,37 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (val === 12); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (val === 12); + } +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "1", { - get: function () { - return 6; - }, - configurable: true - }); +Object.defineProperty(proto, "1", { + get: function() { + return 6; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Object.defineProperty(child, "1", { - get: function () { - return 12; - }, - configurable: true - }); +Object.defineProperty(child, "1", { + get: function() { + return 12; + }, + configurable: true +}); - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js index 8222ec722b3b2cad3ebcca657b5ae465a6898c63..e87ed433ee96bb246367fcb198553aac76a97287 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js @@ -9,30 +9,30 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } - - var arr = []; - - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 5; - }, - configurable: true - }); - - Object.defineProperty(arr, "0", { - get: function () { - return 11; - }, - configurable: true - }); - - arr.forEach(callbackfn); +var testResult = false; + +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} + +var arr = []; + +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 5; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + return 11; + }, + configurable: true +}); + +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js index 4782e16db370438a92345d74001a1f8df768adc0..5eebc81eabc8c4bd2591d8bf6f5744eda788543d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js @@ -9,29 +9,29 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (val === 11); + } +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "1", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(proto, "1", { + get: function() { + return 11; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 20; +var child = new Con(); +child.length = 20; - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js index 5abba48e7c76012b6110046450da4edcc8ab5048..bf0c514cc6eb01a2fd0c951edd23675e9cd04c88 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js @@ -9,21 +9,21 @@ description: > accessor property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true +}); - [, , , ].forEach(callbackfn); +[, , , ].forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js index a3258cbd51de0e431550d69953f92eab8e7ce42a..c63d80321cfebcfdb61b0a4c92bda22d1e1eadeb 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js @@ -9,20 +9,22 @@ description: > property without a get function on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (typeof val === "undefined"); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (typeof val === "undefined"); + } +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js index a6a8df0775ad091d131ed31cd5156d1421f83c99..ae7114850f9b3b4556dce532e53db165ec7966c3 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js @@ -9,21 +9,21 @@ description: > property without a get function on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (typeof val === "undefined"); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (typeof val === "undefined"); + } +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js index 12b0e0f29b8e4169a1abbe296d57bb565c1a46de..2c1a00be6b789dc27f2e5b4d6df773a548cdfb67 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js @@ -10,28 +10,30 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (typeof val === "undefined"); - } - } - - var obj = { length: 2 }; - - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); - - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 10; - }, - configurable: true - }); - - Array.prototype.forEach.call(obj, callbackfn); +var testResult = false; + +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (typeof val === "undefined"); + } +} + +var obj = { + length: 2 +}; + +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Object.defineProperty(Object.prototype, "1", { + get: function() { + return 10; + }, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js index 03ba5f4a12bcadbb145fc39362f94e8c7600866b..c5c0e5942926eb2a0100faa559fe62ed5b87364f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js @@ -9,14 +9,14 @@ description: > property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} - [11].forEach(callbackfn); +[11].forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js index 6bd5c5402acd6a5a70435ada26cf2bf29ad8fa0d..3d12eb66818c901db976fb21f9c071888cc9b1d0 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js @@ -10,28 +10,28 @@ description: > accessor property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (typeof val === "undefined"); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (typeof val === "undefined"); + } +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 100; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 100; + }, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js index d952c57dc09e18df3a8d6336cfb53e7fb39ba623..a185cb0a02deb65c4b321e6f5b50dc1f0ba54f2d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js @@ -9,26 +9,26 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (typeof val === "undefined"); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (typeof val === "undefined"); + } +} - var proto = {}; - Object.defineProperty(proto, "1", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "1", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; +var child = new Con(); +child.length = 2; - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js index baf2b2bcfe735b080614d6d668f09f236bd231f9..c3ccfca7b93483e983e2b53e5739e936da72e339 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js @@ -9,19 +9,19 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (typeof val === "undefined"); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (typeof val === "undefined"); + } +} - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); - [, 1].forEach(callbackfn); +[, 1].forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js index 51930b840f661afef9dd268e869a80d028df3078..7f192e129b2b4fbefea71f035a5d7387d1e44235 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js @@ -10,18 +10,18 @@ description: > is less than number of parameters) ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} - var func = function (a, b) { - return Array.prototype.forEach.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.forEach.call(arguments, callbackfn); +}; - func(11); +func(11); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js index 51aefae34ca2a404abb2613658c0146c20fdee76..22775361f3e9a049c730e76f3df573b9a4a5d497 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js @@ -10,27 +10,27 @@ description: > equals number of parameters) ---*/ - var called = 0; - var testResult = false; +var called = 0; +var testResult = false; - function callbackfn(val, idx, obj) { - called++; - if (called !== 1 && !testResult) { - return; - } - if (idx === 0) { - testResult = (val === 11); - } else if (idx === 1) { - testResult = (val === 9); - } else { - testResult = false; - } - } +function callbackfn(val, idx, obj) { + called++; + if (called !== 1 && !testResult) { + return; + } + if (idx === 0) { + testResult = (val === 11); + } else if (idx === 1) { + testResult = (val === 9); + } else { + testResult = false; + } +} - var func = function (a, b) { - Array.prototype.forEach.call(arguments, callbackfn); - }; +var func = function(a, b) { + Array.prototype.forEach.call(arguments, callbackfn); +}; - func(11, 9); +func(11, 9); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js index 21734ecca0e3f5c721f72a65a2607d4a65e09f2f..8ae05bc5ace6c6d0e062fff3c5ef52b8a9c61d4c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js @@ -10,29 +10,29 @@ description: > is greater than number of parameters) ---*/ - var called = 0; - var testResult = false; +var called = 0; +var testResult = false; - function callbackfn(val, idx, obj) { - called++; - if (called !== 1 && !testResult) { - return; - } - if (idx === 0) { - testResult = (val === 11); - } else if (idx === 1) { - testResult = (val === 12); - } else if (idx === 2) { - testResult = (val === 9); - } else { - testResult = false; - } - } +function callbackfn(val, idx, obj) { + called++; + if (called !== 1 && !testResult) { + return; + } + if (idx === 0) { + testResult = (val === 11); + } else if (idx === 1) { + testResult = (val === 12); + } else if (idx === 2) { + testResult = (val === 9); + } else { + testResult = false; + } +} - var func = function (a, b) { - return Array.prototype.forEach.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.forEach.call(arguments, callbackfn); +}; - func(11, 12, 9); +func(11, 12, 9); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js index 7bf82871907a7266a4320e0d337c6f611650a93f..ca2a6f90215f3e77e2cee106fd526ab82da785ad 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js @@ -9,35 +9,35 @@ description: > iterations is observed on an Array ---*/ - var preIterVisible = false; - var arr = []; - var testResult = false; +var preIterVisible = false; +var arr = []; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (val === 9); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (val === 9); + } +} - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 13; - } - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 13; + } + }, + configurable: true +}); - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js index 9d9da525ad7fc02e5f771842e3ce04c1d1593cf7..12f468ac7f62c7324af2fcbe5c0c0f46e1b7f26d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js @@ -9,35 +9,37 @@ description: > iterations is observed on an Array-like object ---*/ - var preIterVisible = false; - var obj = { length: 2 }; - var testResult = false; +var preIterVisible = false; +var obj = { + length: 2 +}; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (val === 9); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (val === 9); + } +} - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 13; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 13; + } + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js index c7abc31d73479afd4d9b494c0f2203c715070bcf..7ee64853f124d463635eccfbf396cc1d335827e9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js @@ -9,24 +9,26 @@ description: > property that overrides an inherited data property on an Array ---*/ - var kValue = "abc"; - var testResult = false; +var kValue = "abc"; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 5) { - testResult = (val === kValue); - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + testResult = (val === kValue); + } +} - var proto = { 5: 100 }; +var proto = { + 5: 100 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = kValue; - child.length = 10; +var child = new Con(); +child[5] = kValue; +child.length = 10; - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js index 0787f9b955586916e6ee150164fa09cb063ef788..2ded257f9f01d572ff171d21a98f4d4151dc3aa9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js @@ -9,30 +9,35 @@ description: > terminate iteration on an Array-like object ---*/ - var obj = { 0: 11, 5: 10, 10: 8, length: 20 }; - var accessed = false; +var obj = { + 0: 11, + 5: 10, + 10: 8, + length: 20 +}; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - } +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } +} - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - accessed = true; - return 100; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + accessed = true; + return 100; + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.forEach.call(obj, callbackfn); + Array.prototype.forEach.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js index e8da569a8e7988b27b4b141fd5c7905d6d42bffd..b6745f6d10153f7aa5b7792ec0e4535416c4a766 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js @@ -9,33 +9,33 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - } +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } +} - var arr = []; - arr[5] = 10; - arr[10] = 100; +var arr = []; +arr[5] = 10; +arr[10] = 100; - Object.defineProperty(arr, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); - Object.defineProperty(arr, "2", { - get: function () { - accessed = true; - return 100; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + accessed = true; + return 100; + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.forEach(callbackfn); + arr.forEach(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js index ed8fffe015565fd3db987e30d415cbf3a0da9edd..3aa9c4573756961b223b5d75e6bc26373681a09c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js @@ -9,16 +9,16 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 12); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 12); + } +} - Array.prototype[0] = 11; +Array.prototype[0] = 11; - [12].forEach(callbackfn); +[12].forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js index 4ddef569aeca482d1bdfea6998a3b153f7766eac..0cba85375358b8403e2506ecc80602f0004deb98 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js @@ -10,33 +10,33 @@ description: > Array-like object ---*/ - var testResult = false; - - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } - - var proto = {}; - - Object.defineProperty(proto, "0", { - get: function () { - return 5; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 2; - Object.defineProperty(child, "0", { - value: 11, - configurable: true - }); - - Array.prototype.forEach.call(child, callbackfn); +var testResult = false; + +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} + +var proto = {}; + +Object.defineProperty(proto, "0", { + get: function() { + return 5; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 2; +Object.defineProperty(child, "0", { + value: 11, + configurable: true +}); + +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js index 691feab76b3fe07a43653c576180fa4dc7213365..213de16bd8ca21bff2601c56221f61c0097b6490 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js @@ -9,21 +9,21 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 9; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 9; + }, + configurable: true +}); - [11].forEach(callbackfn); +[11].forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js index 75d5890f867eefa6bcb0359cb2cf359d314eb5d1..28f747e836172732afd21d864006bc4ce14d3bea 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js @@ -9,23 +9,25 @@ description: > data property on an Array-like object ---*/ - var kValue = 'abc'; - var testResult = false; +var kValue = 'abc'; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 5) { - testResult = (val === kValue); - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + testResult = (val === kValue); + } +} - var proto = { 5: kValue }; +var proto = { + 5: kValue +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js index 8943de8186117b3bb4689fd3771145f989443ad7..9ede560ba4c43635503e027d7529fd7d5d827d9d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js @@ -9,16 +9,16 @@ description: > data property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (val === 13); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (val === 13); + } +} - Array.prototype[1] = 13; +Array.prototype[1] = 13; - [, , , ].forEach(callbackfn); +[, , , ].forEach(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js index d2fc330af9f2e134abc70572440c8594b21c7394..51c77ca23ea30823ddcdf5fa4d200d78e0395531 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js @@ -9,23 +9,26 @@ description: > property on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} - var obj = { 10: 10, length: 20 }; +var obj = { + 10: 10, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js index 189dc1a57f20f732667017b9a9b0935630a700d5..e0eb4782991e2b78f775ecddb955ccaf40cff599 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js @@ -7,18 +7,19 @@ es5id: 15.4.4.18-7-c-ii-1 description: Array.prototype.forEach - callbackfn called with correct parameters ---*/ - var bPar = true; - var bCalled = false; - function callbackfn(val, idx, obj) - { - bCalled = true; - if(obj[idx] !== val) - bPar = false; - } +var bPar = true; +var bCalled = false; - var arr = [0,1,true,null,new Object(),"five"]; - arr[999999] = -6.6; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (obj[idx] !== val) + bPar = false; +} + +var arr = [0, 1, true, null, new Object(), "five"]; +arr[999999] = -6.6; +arr.forEach(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); assert.sameValue(bPar, true, 'bPar'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js index 4e44bb713b8013be155a23c8b527cef9ef2415b3..1f6e4baa39421b8f1f1d34f9b5753425c72f2627 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(val) { - result = (val > 10); - } +var result = false; - [11].forEach(callbackfn); +function callbackfn(val) { + result = (val > 10); +} + +[11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js index f0a81a8718173fe08ca5e664876f518753229172..a2991bb19c7a2212dde89458347c570258b6d281 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(val, idx) { - result = (val > 10 && arguments[2][idx] === val); - } +var result = false; - [11].forEach(callbackfn); +function callbackfn(val, idx) { + result = (val > 10 && arguments[2][idx] === val); +} + +[11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js index af31ca180b1423588b773e439dac6d7d1773958b..667bec2276d0033de82a1edeb34a46e65cd86cda 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (val > 10 && obj[idx] === val); - } +var result = false; - [11].forEach(callbackfn); +function callbackfn(val, idx, obj) { + result = (val > 10 && obj[idx] === val); +} + +[11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js index 80df8a4195663b694d0fcb26de1e23bbcd58bce0..46a0ec317fc8cef3ed7171b924f73c8dc56cbf8e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-7-c-ii-13 description: Array.prototype.forEach - callbackfn that uses arguments ---*/ - var result = false; - function callbackfn() { - result = (arguments[2][arguments[1]] === arguments[0]); - } +var result = false; - [11].forEach(callbackfn); +function callbackfn() { + result = (arguments[2][arguments[1]] === arguments[0]); +} + +[11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js index ef9ff8c4f7e6bce835d713c0e190dbccd7457777..739bae5f3de3dff80b88018a77b9898222b65a26 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js @@ -9,13 +9,17 @@ description: > object when T is not an object (T is a boolean) ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this.valueOf() !== false); - } +var result = false; - var obj = { 0: 11, length: 2 }; +function callbackfn(val, idx, obj) { + result = (this.valueOf() !== false); +} - Array.prototype.forEach.call(obj, callbackfn, false); +var obj = { + 0: 11, + length: 2 +}; + +Array.prototype.forEach.call(obj, callbackfn, false); assert.sameValue(result, false, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js index 8967922b2cf6b0c66c6127a5b4bd9d3c7464a601..44e2e9bacaa26e3e9dff5732e67f8d77df6bb024 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js @@ -9,13 +9,17 @@ description: > object when T is not an object (T is a number) ---*/ - var result = false; - function callbackfn(val, idx, o) { - result = (5 === this.valueOf()); - } +var result = false; - var obj = { 0: 11, length: 2 }; +function callbackfn(val, idx, o) { + result = (5 === this.valueOf()); +} - Array.prototype.forEach.call(obj, callbackfn, 5); +var obj = { + 0: 11, + length: 2 +}; + +Array.prototype.forEach.call(obj, callbackfn, 5); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js index 3b073f0195da974c552a339f30407f6584acea95..3cf057a311f72ab0f8cc319a3571646fbedf9784 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js @@ -9,13 +9,17 @@ description: > object when T is not an object (T is a string) ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = ('hello' === this.valueOf()); - } +var result = false; - var obj = { 0: 11, length: 2 }; +function callbackfn(val, idx, obj) { + result = ('hello' === this.valueOf()); +} - Array.prototype.forEach.call(obj, callbackfn, "hello"); +var obj = { + 0: 11, + length: 2 +}; + +Array.prototype.forEach.call(obj, callbackfn, "hello"); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js index 677a50236c6f30b7ff8f3ae1288d3c82ec924ea3..df0f1401e0d2fa0c45659ab99f82bd36dd1c0ea6 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js @@ -7,18 +7,24 @@ es5id: 15.4.4.18-7-c-ii-19 description: Array.prototype.forEach - non-indexed properties are not called ---*/ - var accessed = false; - var result = true; - function callbackfn(val, idx, obj) { - accessed = true; - if (val === 8) { - result = false; - } - } +var accessed = false; +var result = true; - var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 }; +function callbackfn(val, idx, obj) { + accessed = true; + if (val === 8) { + result = false; + } +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 11, + 10: 12, + non_index_property: 8, + length: 20 +}; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js index 4140f28cb139a98fc87f49af790064bbdce20a93..6dcd31b1392e5e74d17f709c12d0abbba8b656f4 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js @@ -7,17 +7,18 @@ es5id: 15.4.4.18-7-c-ii-2 description: Array.prototype.forEach - callbackfn takes 3 arguments ---*/ - var parCnt = 3; - var bCalled = false - function callbackfn(val, idx, obj) - { - bCalled = true; - if(arguments.length !== 3) - parCnt = arguments.length; //verify if callbackfn was called with 3 parameters - } +var parCnt = 3; +var bCalled = false - var arr = [0,1,2,3,4,5,6,7,8,9]; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (arguments.length !== 3) + parCnt = arguments.length; //verify if callbackfn was called with 3 parameters +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +arr.forEach(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); assert.sameValue(parCnt, 3, 'parCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js index cf6b3fe8b3c4997025626ad913886883b599ea45..d0a6f846d605a37eceeab58cf25a8b653c3cc228 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js @@ -9,15 +9,21 @@ description: > parameters (thisArg is correct) ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (10 === this.threshold); - } +var result = false; - var thisArg = { threshold: 10 }; +function callbackfn(val, idx, obj) { + result = (10 === this.threshold); +} - var obj = { 0: 11, length: 1 }; +var thisArg = { + threshold: 10 +}; - Array.prototype.forEach.call(obj, callbackfn, thisArg); +var obj = { + 0: 11, + length: 1 +}; + +Array.prototype.forEach.call(obj, callbackfn, thisArg); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js index 9879606253f84a0d63cd6a9c5fc9a41f763b755f..a165b482097d0f7f8f476acc64f5621442d3256f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js @@ -9,23 +9,27 @@ description: > parameters (kValue is correct) ---*/ - var resultOne = false; - var resultTwo = false; +var resultOne = false; +var resultTwo = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - resultOne = (val === 11); - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + resultOne = (val === 11); + } - if (idx === 1) { - resultTwo = (val === 12); - } + if (idx === 1) { + resultTwo = (val === 12); + } - } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(resultOne, 'resultOne !== true'); assert(resultTwo, 'resultTwo !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js index 3f7fa9349f57c1e36faf5a4637ceda52eff82f21..8b29f06dab622c312282c1710835d4b0a57dea2c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js @@ -9,23 +9,27 @@ description: > parameters (the index k is correct) ---*/ - var resultOne = false; - var resultTwo = false; +var resultOne = false; +var resultTwo = false; - function callbackfn(val, idx, obj) { - if (val === 11) { - resultOne = (idx === 0); - } +function callbackfn(val, idx, obj) { + if (val === 11) { + resultOne = (idx === 0); + } - if (val === 12) { - resultTwo = (idx === 1); - } + if (val === 12) { + resultTwo = (idx === 1); + } - } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(resultOne, 'resultOne !== true'); assert(resultTwo, 'resultTwo !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js index 559f0ea68cc3f7ef69f0afa3faf951ba99589661..24ae74378ff9207f1c4e31890adcbeac5de8dc48 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js @@ -9,13 +9,16 @@ description: > parameters (this object O is correct) ---*/ - var result = false; - var obj = { 0: 11, length: 2 }; +var result = false; +var obj = { + 0: 11, + length: 2 +}; - function callbackfn(val, idx, o) { - result = (obj === o); - } +function callbackfn(val, idx, o) { + result = (obj === o); +} - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js index aafb439dd1f68886dac9d21ae7feaff1a59670f5..89d2da4a0d1b95d0078439fadf6c79a4aabbb007 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js @@ -9,20 +9,21 @@ description: > order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - var result = true; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - result = false; - } else { - lastIdx++; - } - } +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; +var result = true; - arr.forEach(callbackfn); +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + result = false; + } else { + lastIdx++; + } +} + +arr.forEach(callbackfn); assert(result, 'result !== true'); assert.sameValue(arr.length, called, 'arr.length'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js index 11159ba6fbca484b18995314148a8bbb84eb0c60..1b597b8ed18863b2273a78bbf5141faa9261fdc9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js @@ -9,23 +9,23 @@ description: > iteration and not prior to starting the loop on an Array ---*/ - var result = true; - var kIndex = []; +var result = true; +var kIndex = []; - //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. - function callbackfn(val, idx, obj) { - //Each position should be visited one time, which means k is accessed one time during iterations. - if (typeof kIndex[idx] === "undefined") { - //when current position is visited, its previous index should has been visited. - if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { - result = false; - } - kIndex[idx] = 1; - } else { - result = false; - } - } +//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. +function callbackfn(val, idx, obj) { + //Each position should be visited one time, which means k is accessed one time during iterations. + if (typeof kIndex[idx] === "undefined") { + //when current position is visited, its previous index should has been visited. + if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { + result = false; + } + kIndex[idx] = 1; + } else { + result = false; + } +} - [11, 12, 13, 14].forEach(callbackfn, undefined); +[11, 12, 13, 14].forEach(callbackfn, undefined); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js index b1474e751c9bba10423a41c4e71d223e90f48074..22d73e78be6235ce361467258b805a9bc814d973 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js @@ -9,17 +9,20 @@ description: > consistent ---*/ - var result = false; - var obj = { 0: 11, length: 1 }; - var thisArg = {}; +var result = false; +var obj = { + 0: 11, + length: 1 +}; +var thisArg = {}; - function callbackfn() { - result = (this === thisArg && - arguments[0] === 11 && - arguments[1] === 0 && - arguments[2] === obj); - } +function callbackfn() { + result = (this === thisArg && + arguments[0] === 11 && + arguments[1] === 0 && + arguments[2] === obj); +} - Array.prototype.forEach.call(obj, callbackfn, thisArg); +Array.prototype.forEach.call(obj, callbackfn, thisArg); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js index 0941fe49bf85ef83e9e8733156f208b0bcd0423b..c7f28a11f64ca3f87c13a887040a24cd3a26e021 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js @@ -9,19 +9,24 @@ description: > callbackfn terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - } +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.forEach.call(obj, callbackfn); + Array.prototype.forEach.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js index c1b460cc3e03f584c743da6473fdda802faf6312..452044f84c3a3fc985b84cc613003d6258110c78 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js @@ -9,19 +9,23 @@ description: > previous iterations is observed ---*/ - var result = false; - var obj = { 0: 11, 1: 12, length: 2 }; +var result = false; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - if (idx === 0) { - obj[idx + 1] = 8; - } +function callbackfn(val, idx, o) { + if (idx === 0) { + obj[idx + 1] = 8; + } - if (idx === 1) { - result = (val === 8); - } - } + if (idx === 1) { + result = (val === 8); + } +} - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js index b8396ea609169a286326e643b6f138d08ad293d6..5f6aa9cfd09eefd7f8a4278071ac15cec38500b6 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var called = 0; - function callbackfn() { - called++; - } +var called = 0; - [11, 12].forEach(callbackfn); +function callbackfn() { + called++; +} + +[11, 12].forEach(callbackfn); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js index 4716477c779e36aca5112c1fa53f7ad6405ed9c2..cf592c1e4228cc9870c352339e4bc9d094c8693c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js @@ -9,8 +9,11 @@ description: > (empty array) ---*/ - var callCnt = 0; - function cb(){callCnt++} - var i = [].forEach(cb); +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = [].forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js index ef289af4301613a2f2c9243a7d5219d4c9778cb7..37344074848cf52c2e5fc914da4e83b604f2f845 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js @@ -7,13 +7,17 @@ es5id: 15.4.4.18-8-10 description: Array.prototype.forEach - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 1; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = 1; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js index 9c70a3a059884020591d0d9a25323bf1307477be..d594b58a20c4f0093d7f616cc25df0ed5e490724 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js @@ -9,12 +9,12 @@ description: > called on ---*/ - function callbackfn(val, idx, obj) - { - return true; - } - var arr = [1,2,3,4,5]; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + return true; +} +var arr = [1, 2, 3, 4, 5]; +arr.forEach(callbackfn); assert.sameValue(arr[0], 1, 'arr[0]'); assert.sameValue(arr[1], 2, 'arr[1]'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js index 74e0eef2ca7319ed1cbc063d30db01019f425879..3b92ddb24cac239a5c14ccd78a661f8297934022 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-8-12 description: Array.prototype.forEach doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - } - var arr = [1,2,3,4,5]; - arr["i"] = 10; - arr[true] = 11; +var callCnt = 0; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; +} +var arr = [1, 2, 3, 4, 5]; +arr["i"] = 10; +arr[true] = 11; + +arr.forEach(callbackfn); assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js index 8137d9b4aca87ef0979332d4d32a0da2f8bb00c1..de40f14e3001db95a0d585c391fbdb729aded8e3 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js @@ -9,12 +9,13 @@ description: > 0 ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +var accessed = false; - var result = [].forEach(callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; +} + +var result = [].forEach(callbackfn); assert.sameValue(typeof result, "undefined", 'typeof result'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js index 24a5efda0b556609c3dc1b0395ffeaa8adc485d9..96c4cdc45d981bc591c358db6ee304c58158a1e3 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js @@ -9,13 +9,17 @@ description: > (subclassed Array, length overridden to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = null; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js index ad6d2c88d322617a67a49fda54aba81e33374979..9dbf01bec98f0c1518a46460b3220de7637e9950 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js @@ -9,13 +9,17 @@ description: > (subclassed Array, length overridden to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = false; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js index eca6eb28c5289827917003836bc82041dde4be34..fd9bfba94055d0d32f4c9d9d2a8c396e8382400a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js @@ -9,13 +9,17 @@ description: > (subclassed Array, length overridden to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = 0; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js index 89ef96a1dbd19ecbeae180e7fa1a15699725a032..6e3ce9beedefed2884c3c75011d04b987951a8ff 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js @@ -9,13 +9,17 @@ description: > (subclassed Array, length overridden to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = '0'; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js index 57bf3415d19b68a2d861bcddaf6edef5652fc978..0e26ea86fcb4d85455665db57561f9555b6e0f3e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js @@ -9,15 +9,23 @@ description: > (subclassed Array, length overridden with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js index 941c6ee3fb19154e93052a1f2dab2c7479be5b02..d08dadd7acb9fe78d6b30d0a6f81801dd80acc81 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js @@ -10,20 +10,28 @@ description: > (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js index acfa321f405ee3e8f214d55c718d7e9e970f35c0..dee5abda64b63a73d9ae09f3a440a6f212ee7105 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js @@ -9,27 +9,31 @@ description: > (subclassed Array, length overridden with [] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +f.length = []; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js index 3e36453a42af97f36a244e0b3d731f770494dfde..2ce7678bf1db01475f7075000418c4a2cf681933 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js @@ -9,28 +9,32 @@ description: > (subclassed Array, length overridden with [0] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - - f.length = [0]; - - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +foo.prototype = new Array(1, 2, 3); + +function foo() {} +var f = new foo(); + +f.length = [0]; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js index bdaef05035ecba0c8df4c473f54ca1bbb0d83359..0cfaf6ea8d6789eb33583a9b3629d4333619bc94 100644 --- a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js +++ b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js @@ -8,4 +8,6 @@ es5id: 15.4.4.18_A1 description: Freezes array.forEach during a forEach to see if it works ---*/ -['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); }); +['z'].forEach(function() { + Object.freeze(Array.prototype.forEach); +}); diff --git a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js index a95da06dda4bbf48d112a62e71e89576423c4977..c743d247efe10a88c371d703a2187faaeec68594 100644 --- a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js +++ b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js @@ -9,6 +9,8 @@ description: Freezes array.forEach during a forEach to see if it works ---*/ function foo() { - ['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); }); + ['z'].forEach(function() { + Object.freeze(Array.prototype.forEach); + }); } foo(); diff --git a/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js b/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js index ebca5a0430442c3109006aa0e7dec2ee6152d7f6..84bb4526d8ecd8feb11cc90a23598c2f64d085b3 100644 --- a/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js +++ b/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js @@ -18,6 +18,6 @@ info: | 8. Return false. ---*/ -var sample = [ 7, 7, 7, 7 ]; +var sample = [7, 7, 7, 7]; assert.sameValue(sample.includes(7, 4), false, "length"); assert.sameValue(sample.includes(7, 5), false, "length + 1"); diff --git a/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js b/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js index 6d5393dbb7b29d3ae233bc448e54e95f1ff4d48e..7d98d2a68bc9859adf8d6df48c714b15098dab0f 100644 --- a/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js +++ b/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js @@ -35,7 +35,9 @@ assert.sameValue([null].includes(undefined), false, "undefined"); assert.sameValue([Symbol("1")].includes(Symbol("1")), false, "symbol"); assert.sameValue([{}].includes({}), false, "object"); -assert.sameValue([[]].includes([]), false, "array"); +assert.sameValue([ + [] +].includes([]), false, "array"); var sample = [42]; assert.sameValue(sample.includes(sample), false, "this"); diff --git a/test/built-ins/Array/prototype/includes/sparse.js b/test/built-ins/Array/prototype/includes/sparse.js index bd272fe93530a97ccc01e29e678107f0141b2e0f..751c2c928ed279f26fe8c7d74608c6c516c94c27 100644 --- a/test/built-ins/Array/prototype/includes/sparse.js +++ b/test/built-ins/Array/prototype/includes/sparse.js @@ -21,18 +21,18 @@ info: | ---*/ assert.sameValue( - [ , , , ].includes(undefined), + [, , , ].includes(undefined), true, "[ , , , ].includes(undefined)" ); assert.sameValue( - [ , , , 42, ].includes(undefined, 4), + [, , , 42, ].includes(undefined, 4), false, "[ , , , 42, ].includes(undefined, 4)" ); -var sample = [ , , , 42, , ]; +var sample = [, , , 42, , ]; assert.sameValue( sample.includes(undefined), diff --git a/test/built-ins/Array/prototype/includes/tolength-length.js b/test/built-ins/Array/prototype/includes/tolength-length.js index a3c868474a83db91172128e4ae38276c6f64cb17..c1e82b9da585ec184f9caa3f44c6bea8673ed692 100644 --- a/test/built-ins/Array/prototype/includes/tolength-length.js +++ b/test/built-ins/Array/prototype/includes/tolength-length.js @@ -72,8 +72,16 @@ assert.sameValue([].includes.call(obj, "a"), false, "false"); obj.length = true; assert.sameValue([].includes.call(obj, "a"), true, "true"); -obj.length = { valueOf: function() { return 2; } }; +obj.length = { + valueOf: function() { + return 2; + } +}; assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.valueOf"); -obj.length = { toString: function() { return 2; } }; +obj.length = { + toString: function() { + return 2; + } +}; assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.toString"); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js index 1eb9ef72e07e8f12635ebcbb6557d2911769b459..ea9ca6068f5f86bdbbbd75beb83ad4ee890ee46d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js @@ -9,5 +9,5 @@ description: Array.prototype.indexOf applied to undefined throws a TypeError assert.throws(TypeError, function() { - Array.prototype.indexOf.call(undefined); + Array.prototype.indexOf.call(undefined); }); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js index 1a552021883296689367fdef2ddc42426bb80466..4622e10a06ca8983ee1a8c654278ffb17623c22e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js @@ -7,7 +7,7 @@ es5id: 15.4.4.14-1-10 description: Array.prototype.indexOf applied to the Math object ---*/ - Math[1] = true; - Math.length = 2; +Math[1] = true; +Math.length = 2; assert.sameValue(Array.prototype.indexOf.call(Math, true), 1, 'Array.prototype.indexOf.call(Math, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js index bcb3b21eadf242a942d4cf796e86e4d51e0d8a48..51d4a331e99e42a1566e9dd3d4939e4d2a074c8a 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-11 description: Array.prototype.indexOf applied to Date object ---*/ - var obj = new Date(); - obj.length = 2; - obj[1] = true; +var obj = new Date(); +obj.length = 2; +obj[1] = true; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js index c416b6e1b96cc849ed9e23269e034f3d12bbce40..4c23949e9c1215bd42e43d861a64fecb5e068904 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-12 description: Array.prototype.indexOf applied to RegExp object ---*/ - var obj = new RegExp(); - obj.length = 2; - obj[1] = true; +var obj = new RegExp(); +obj.length = 2; +obj[1] = true; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js index c1ca78731658d81330a4ce5dfe935f59d27a49fe..b339869a0a0dadd9517735815c1f6d8d19bb3682 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js @@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-13 description: Array.prototype.indexOf applied to the JSON object ---*/ - var targetObj = {}; +var targetObj = {}; - JSON[3] = targetObj; - JSON.length = 5; +JSON[3] = targetObj; +JSON.length = 5; assert.sameValue(Array.prototype.indexOf.call(JSON, targetObj), 3, 'Array.prototype.indexOf.call(JSON, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js index 6f116d5ceec7c410db64d04999103e03bc39cc46..06c02d8f184e4661ab6f95617380c281b23803f8 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-14 description: Array.prototype.indexOf applied to Error object ---*/ - var obj = new SyntaxError(); - obj[1] = true; - obj.length = 2; +var obj = new SyntaxError(); +obj[1] = true; +obj.length = 2; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js index 7a6c9b7ca42ea9d2ac59d7173ebc6a8dab8bf5da..598ba594e1a2052ede35f459fa80e4011b0d3e60 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js @@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-15 description: Array.prototype.indexOf applied to Arguments object ---*/ - function fun() { - return arguments; - } - var obj = fun(1, true, 3); +function fun() { + return arguments; +} +var obj = fun(1, true, 3); assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js index 5584d5f68fb0d3f7c63698935ada78466084bd8e..5e348a54ec4018452bd9da251c9316b6ae54c1c0 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js @@ -9,5 +9,5 @@ description: Array.prototype.indexOf applied to null throws a TypeError assert.throws(TypeError, function() { - Array.prototype.indexOf.call(null); + Array.prototype.indexOf.call(null); }); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js index 510a693ed46c445022bad10785633f544a6e73cd..3bfe5e7a6ea7af24b13b783ce4eff875d0b7e862 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js @@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-3 description: Array.prototype.indexOf applied to boolean primitive ---*/ - var targetObj = {}; +var targetObj = {}; - Boolean.prototype[1] = targetObj; - Boolean.prototype.length = 2; +Boolean.prototype[1] = targetObj; +Boolean.prototype.length = 2; assert.sameValue(Array.prototype.indexOf.call(true, targetObj), 1, 'Array.prototype.indexOf.call(true, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js index 844e34af49932a40b5548e02372b7f4466c6a603..5f0dd9ed5fef11e0785cb8d936e9971b8587c7d2 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-4 description: Array.prototype.indexOf applied to Boolean Object ---*/ - var obj = new Boolean(false); - obj.length = 2; - obj[1] = true; +var obj = new Boolean(false); +obj.length = 2; +obj[1] = true; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js index ccca65776021a0cfb35e918623bfe9f2732fab43..4fa661c8b8a6073b0c70412b32b945255c3f48db 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js @@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-5 description: Array.prototype.indexOf applied to number primitive ---*/ - var targetObj = {}; +var targetObj = {}; - Number.prototype[1] = targetObj; - Number.prototype.length = 2; +Number.prototype[1] = targetObj; +Number.prototype.length = 2; assert.sameValue(Array.prototype.indexOf.call(5, targetObj), 1, 'Array.prototype.indexOf.call(5, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js index c6416ebe4e9ce6e1467ed73a2dba984151920b8e..928377959bff49fe1dc34192d003bf1eb7df2c98 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-6 description: Array.prototype.indexOf applied to Number object ---*/ - var obj = new Number(-3); - obj.length = 2; - obj[1] = true; +var obj = new Number(-3); +obj.length = 2; +obj[1] = true; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js index 46575fb68dacaf421676815062acb228e9316396..eaa29361e3ef18d2415f3b2c0fc1ce2352f96ecf 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js @@ -7,6 +7,6 @@ es5id: 15.4.4.14-1-8 description: Array.prototype.indexOf applied to String object ---*/ - var obj = new String("null"); +var obj = new String("null"); assert.sameValue(Array.prototype.indexOf.call(obj, 'l'), 2, 'Array.prototype.indexOf.call(obj, "l")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js index 76d8e87c0b7bc120edf4ab637fd99460fb9d0f29..065d31bc7400c7114d6d65c74d86214222af8c86 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js @@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-9 description: Array.prototype.indexOf applied to Function object ---*/ - var obj = function (a, b) { - return a + b; - }; - obj[1] = true; +var obj = function(a, b) { + return a + b; +}; +obj[1] = true; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js index c0d6c537acfcebcbbee52d2ce22ba265920858a9..8a77b86f52e3ac0a703411ad59bdf9c09bf509ea 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js @@ -9,13 +9,13 @@ description: > array ---*/ - var a = new Array(); - a[100] = 1; - a[99999] = ""; - a[10] = new Object(); - a[5555] = 5.5; - a[123456] = "str"; - a[5] = 1E+309; +var a = new Array(); +a[100] = 1; +a[99999] = ""; +a[10] = new Object(); +a[5555] = 5.5; +a[123456] = "str"; +a[5] = 1E+309; assert.sameValue(a.indexOf(1), 100, 'a.indexOf(1)'); assert.sameValue(a.indexOf(""), 99999, 'a.indexOf("")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js index 124043c97fde7591a773c54e3a01e7e82ff6be40..fbb92688888091b584e3f68d7bc9cd6b6dcf062e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js @@ -9,12 +9,19 @@ description: > access any other properties ---*/ - var accessed = false; - var f = {length: 0}; - Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}}); +var accessed = false; +var f = { + length: 0 +}; +Object.defineProperty(f, "0", { + get: function() { + accessed = true; + return 1; + } +}); - var i = Array.prototype.indexOf.call(f,1); +var i = Array.prototype.indexOf.call(f, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js index 61dd7f294625568ef44081993bcdc3af62aad882..e14c28ba318ff4b282b5986a2e043a7361c2cc15 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js @@ -9,8 +9,14 @@ description: > Array-like object ---*/ - var objOne = { 1: true, length: 2 }; - var objTwo = { 2: true, length: 2 }; +var objOne = { + 1: true, + length: 2 +}; +var objTwo = { + 2: true, + length: 2 +}; assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)'); assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js index f4c6f0b83a10827d7553d1d16c3424f101dadaf1..bde4a7b79be33bb51b5dd5b6ef8d90a9c0a5c41d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js @@ -7,21 +7,21 @@ es5id: 15.4.4.14-2-10 description: Array.prototype.indexOf - 'length' is inherited accessor property ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var childOne = new Con(); - childOne[1] = true; - var childTwo = new Con(); - childTwo[2] = true; +var childOne = new Con(); +childOne[1] = true; +var childTwo = new Con(); +childTwo[2] = true; assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)'); assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js index bb89914e0b5b7289e32a07ecf8fb6638e6e58af2..d5d473e994dccafe807534d5f202da29f01f901d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js @@ -9,10 +9,12 @@ description: > without a get function ---*/ - var obj = { 1: true }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 1: true +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js index ff9ac06df0756b88e08f75b6b7ddd8091afa282e..205d52fbe5b593c66acc80b0000494f950f4a991 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js @@ -10,17 +10,19 @@ description: > property ---*/ - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 20; + }, + configurable: true +}); - var obj = { 1: 1 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 1: 1 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js index 6aa17ff1ea6a49344f379c0e583900abf61b687e..833c45d701725c3a78953d98c5c0c0981395e0ac 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js @@ -9,16 +9,16 @@ description: > without a get function ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = true; +var child = new Con(); +child[1] = true; assert.sameValue(Array.prototype.indexOf.call(child, true), -1, 'Array.prototype.indexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js index 6ffd345dbee4c0f2c0a091b65a1606efb3e548d9..8807657e82c875c98f60df3f2f8b8ffb363e8dfe 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js @@ -7,6 +7,9 @@ es5id: 15.4.4.14-2-14 description: Array.prototype.indexOf - 'length' is undefined property ---*/ - var obj = { 0: true, 1: true }; +var obj = { + 0: true, + 1: true +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js index 2df7594957a8776d6d2b57138174b1a7f77bbcbf..cce214933dbe57af604d74bd49b528075d85b9c2 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js @@ -9,10 +9,10 @@ description: > implements its own property get method ---*/ - var func = function (a, b) { - arguments[2] = false; - return Array.prototype.indexOf.call(arguments, true) === 1 && - Array.prototype.indexOf.call(arguments, false) === -1; - }; +var func = function(a, b) { + arguments[2] = false; + return Array.prototype.indexOf.call(arguments, true) === 1 && + Array.prototype.indexOf.call(arguments, false) === -1; +}; assert(func(0, true), 'func(0, true) !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js index e48cb33de8cdc2b24bc6dc03b579583651789467..e739dd81a1bf042c6f8345cdb6a3f9c27cc90b82 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js @@ -9,9 +9,9 @@ description: > its own property get method ---*/ - var str = new String("012"); +var str = new String("012"); - String.prototype[3] = "3"; +String.prototype[3] = "3"; assert.sameValue(Array.prototype.indexOf.call(str, "2"), 2, 'Array.prototype.indexOf.call(str, "2")'); assert.sameValue(Array.prototype.indexOf.call(str, "3"), -1, 'Array.prototype.indexOf.call(str, "3")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js index 09bb09dd3a513cb5709aa3b07cbfedc56f795ffd..b5735739ff54332dbe784c8f44f82317723dd9b7 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js @@ -9,11 +9,11 @@ description: > implements its own property get method ---*/ - var obj = function (a, b) { - return a + b; - }; - obj[1] = "b"; - obj[2] = "c"; +var obj = function(a, b) { + return a + b; +}; +obj[1] = "b"; +obj[2] = "c"; assert.sameValue(Array.prototype.indexOf.call(obj, obj[1]), 1, 'Array.prototype.indexOf.call(obj, obj[1])'); assert.sameValue(Array.prototype.indexOf.call(obj, obj[2]), -1, 'Array.prototype.indexOf.call(obj, obj[2])'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js index d1fb4b7bb67191aa67ef3353ca15d5110a03bb1c..9fba718211c7d56b4e92da874b73cfb1434d71f4 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js @@ -7,9 +7,9 @@ es5id: 15.4.4.14-2-2 description: Array.prototype.indexOf - 'length' is own data property on an Array ---*/ - var targetObj = {}; +var targetObj = {}; - Array.prototype[2] = targetObj; +Array.prototype[2] = targetObj; assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js index c0c72be3b03da57b66bdeb1f9f312f0647cc194a..db7ecfe83911134174a94e0acebb71f1b0800a14 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js @@ -9,13 +9,15 @@ description: > overrides an inherited data property on an Array-like object ---*/ - var proto = { length: 0 }; +var proto = { + length: 0 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[1] = true; +var child = new Con(); +child.length = 2; +child[1] = true; assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js index 5a4f6f2386d56c80276cb05a1f8bc6f1ccdc680d..dfc01cd8d78760a03c73257fa206f815e744b8c5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js @@ -9,10 +9,10 @@ description: > overrides an inherited data property on an Array ---*/ - var targetObj = {}; - var arrProtoLen; +var targetObj = {}; +var arrProtoLen; - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js index 8c5523964a59fe924f8f11e327f6203f68114c61..0f3909236cbd91730151223e7c2a00dd45bd6241 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js @@ -9,23 +9,23 @@ description: > overrides an inherited accessor property on an Array-like object ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 0; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 0; + }, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - child[1] = true; +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); +child[1] = true; assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js index 39788558ae66a81f0a2303f393c86b7871335e8a..79269969a1465757a6ca2dc037f1bfccac65afaf 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js @@ -7,15 +7,17 @@ es5id: 15.4.4.14-2-6 description: Array.prototype.indexOf - 'length' is an inherited data property ---*/ - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var childOne = new Con(); - childOne[1] = true; - var childTwo = new Con(); - childTwo[2] = true; +var childOne = new Con(); +childOne[1] = true; +var childTwo = new Con(); +childTwo[2] = true; assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)'); assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js index 975a8673ab65a5e0822635cf0cd0553d65b6c663..6a0ec25878aa44cca165b04daa78df50bee19343 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js @@ -7,20 +7,24 @@ es5id: 15.4.4.14-2-7 description: Array.prototype.indexOf - 'length' is own accessor property ---*/ - var objOne = { 1: true }; - var objTwo = { 2: true }; - Object.defineProperty(objOne, "length", { - get: function () { - return 2; - }, - configurable: true - }); - Object.defineProperty(objTwo, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var objOne = { + 1: true +}; +var objTwo = { + 2: true +}; +Object.defineProperty(objOne, "length", { + get: function() { + return 2; + }, + configurable: true +}); +Object.defineProperty(objTwo, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)'); assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js index 92bf58f7ab0ffd9730b50465a16050f7b28a8627..8ad55630ea2f300cfb9b387cc67cead04c58bdb8 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js @@ -9,19 +9,21 @@ description: > overrides an inherited data property ---*/ - var proto = { length: 0 }; +var proto = { + length: 0 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = true; +var child = new Con(); +child[1] = true; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js index 5ec60e0581b0b213d123acb4dc77030fa45b64a6..2bf8c82efe5811d905dd64ca6503e8863dd513a8 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js @@ -9,25 +9,25 @@ description: > overrides an inherited accessor property ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 0; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 0; + }, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = true; +var child = new Con(); +child[1] = true; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js index 528bb1f48913020405cbb8a49451125addfd5e5a..0787c3a9c450d74924d06dffa9a98067e8879c9d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js @@ -7,6 +7,10 @@ es5id: 15.4.4.14-3-1 description: Array.prototype.indexOf - value of 'length' is undefined ---*/ - var obj = { 0: 1, 1: 1, length: undefined }; +var obj = { + 0: 1, + 1: 1, + length: undefined +}; assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js index 2d422228ca9c383aa3293a776f6055f450905fff..503c2206df354bad39848000859561c85ea5e0d1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js @@ -9,6 +9,9 @@ description: > (value is NaN) ---*/ - var obj = { 0: 0, length: NaN }; +var obj = { + 0: 0, + length: NaN +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js index dbccc238b986b785af2e3ca461f173a2c846096d..9914d8d78ceaa62fce3a52c57e19d786fd948d3a 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js @@ -9,7 +9,11 @@ description: > positive number ---*/ - var obj = { 1: 1, 2: 2, length: "2" }; +var obj = { + 1: 1, + 2: 2, + length: "2" +}; assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)'); assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js index c147d9355385fcc1ac168ef5b48243a25665f894..edc04e60cb77698480385490cb7c05615bd4fe1e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js @@ -9,7 +9,11 @@ description: > negative number ---*/ - var obj = { 1: "true", 2: "2", length: "-4294967294" }; +var obj = { + 1: "true", + 2: "2", + length: "-4294967294" +}; assert.sameValue(Array.prototype.indexOf.call(obj, "true"), -1, 'Array.prototype.indexOf.call(obj, "true")'); assert.sameValue(Array.prototype.indexOf.call(obj, "2"), -1, 'Array.prototype.indexOf.call(obj, "2")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js index d2ff4af50f0909468fe314e1cbc7f55704ce9b9a..0b2ea6bb6d259705f98cfca93c700e1e0fad36f1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js @@ -9,7 +9,11 @@ description: > decimal number ---*/ - var obj = { 199: true, 200: "200.59", length: "200.59" }; +var obj = { + 199: true, + 200: "200.59", + length: "200.59" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 199, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, "200.59"), -1, 'Array.prototype.indexOf.call(obj, "200.59")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js index f37712cf3199af8c71780f05cfaced4ce4ae3a50..ec4c578d212006e284c3503e119f2fefa9a3bb4c 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js @@ -9,9 +9,21 @@ description: > +/-Infinity ---*/ - var objOne = { 0: true, 1: true, length: "Infinity" }; - var objTwo = { 0: true, 1: true, length: "+Infinity" }; - var objThree = { 0: true, 1: true, length: "-Infinity" }; +var objOne = { + 0: true, + 1: true, + length: "Infinity" +}; +var objTwo = { + 0: true, + 1: true, + length: "+Infinity" +}; +var objThree = { + 0: true, + 1: true, + length: "-Infinity" +}; assert.sameValue(Array.prototype.indexOf.call(objOne, true), 0, 'Array.prototype.indexOf.call(objOne, true)'); assert.sameValue(Array.prototype.indexOf.call(objTwo, true), 0, 'Array.prototype.indexOf.call(objTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js index e35a97c2cd0355104273603f5dcaade75602948c..2bf0dd8b2bf8bfa3bc88e2a78be38543ba8d5a58 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js @@ -9,7 +9,11 @@ description: > exponential number ---*/ - var obj = { 1: true, 2: "2E0", length: "2E0" }; +var obj = { + 1: true, + 2: "2E0", + length: "2E0" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, "2E0"), -1, 'Array.prototype.indexOf.call(obj, "2E0")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js index adc6ff83a49bc58ff8962e2a90cbd23a09b22de2..c3cd2c458ffcc6ab91bbc34a84fd604fda21be3f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js @@ -9,7 +9,11 @@ description: > number ---*/ - var obj = { 10: true, 11: "0x00B", length: "0x00B" }; +var obj = { + 10: true, + 11: "0x00B", + length: "0x00B" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 10, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, "0x00B"), -1, 'Array.prototype.indexOf.call(obj, "0x00B")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js index 3f5d9a17350fbdb188b2bf892cb3b4fd09eb05cf..66bb812c35de8e9d756767a1164eae2e16c8dfeb 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js @@ -9,7 +9,11 @@ description: > with leading zeros ---*/ - var obj = { 1: true, 2: "0002.0", length: "0002.0" }; +var obj = { + 1: true, + 2: "0002.0", + length: "0002.0" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, "0002.0"), -1, 'Array.prototype.indexOf.call(obj, "0002.0")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js index 71c052c5bf6a17e6aeadb1eb81c1476a55332b99..382df40af81cb571946078770351c275d9bac09f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js @@ -9,6 +9,10 @@ description: > convert to a number ---*/ - var obj = { 0: true, 100: true, length: "one" }; +var obj = { + 0: true, + 100: true, + length: "one" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js index 17a3c545acd8f049946d42f4e99673b454fc143e..b770f05777e790d5e9ce96aaef90743cf5522c99 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js @@ -9,22 +9,22 @@ description: > an own toString method. ---*/ - // objects inherit the default valueOf() method from Object - // that simply returns itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +// objects inherit the default valueOf() method from Object +// that simply returns itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. - var obj = { - 1: true, - 2: 2, +var obj = { + 1: true, + 2: 2, - length: { - toString: function () { - return '2'; - } - } - }; + length: { + toString: function() { + return '2'; + } + } +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js index 8cfa825b898404ca6c6d8baa9d1adc73d7bc829e..a645ce3b0b7649fc156fed6e56d6a57f3654ac00 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js @@ -9,7 +9,11 @@ description: > (value is true) ---*/ - var obj = { 0: 0, 1: 1, length: true }; +var obj = { + 0: 0, + 1: 1, + length: true +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)'); assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js index 3479154f06fb843044ac6275f5990136a493505d..6c9c56ff27b654c781de5f8b7cb5140d0ccd7729 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js @@ -9,16 +9,16 @@ description: > an own valueOf method. ---*/ - //valueOf method will be invoked first, since hint is Number - var obj = { - 1: true, - 2: 2, - length: { - valueOf: function () { - return 2; - } - } - }; +//valueOf method will be invoked first, since hint is Number +var obj = { + 1: true, + 2: 2, + length: { + valueOf: function() { + return 2; + } + } +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js index a9ad676ad94f841425a906caef68419790df683e..f1de649c8745af291164d62a53f90178a71bac7d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js @@ -10,23 +10,23 @@ description: > returns a string ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var obj = { - 1: true, - length: { - toString: function () { - toStringAccessed = true; - return '2'; - }, +var obj = { + 1: true, + length: { + toString: function() { + toStringAccessed = true; + return '2'; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js index 5cb92837cbbba325991ae31fa891422e1c9f5189..ad43241289180bd8984a2fa3ea529863dcfd7888 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js @@ -10,25 +10,25 @@ description: > primitive values ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var obj = { - length: { - toString: function () { - toStringAccessed = true; - return {}; - }, +var obj = { + length: { + toString: function() { + toStringAccessed = true; + return {}; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.indexOf.call(obj); + Array.prototype.indexOf.call(obj); }); assert(toStringAccessed, 'toStringAccessed'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js index 5b30d00cf6b0984132614a2f3434395db45739c1..a87a044d5feb7095db6fb0f4c873b574287e2d20 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js @@ -10,29 +10,29 @@ description: > methods ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.toString = function () { - toStringAccessed = true; - return 2; - }; +var child = new Con(); +child.toString = function() { + toStringAccessed = true; + return 2; +}; - var obj = { - 1: true, - length: child - }; +var obj = { + 1: true, + length: child +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js index 539f8d669dc649ab603cb59c3ca961177717236b..109eca9ec1837db9832131d7081755f283b49640 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js @@ -9,7 +9,11 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - var obj = { 122: true, 123: false, length: 123.321 }; //length will be 123 finally +var obj = { + 122: true, + 123: false, + length: 123.321 +}; //length will be 123 finally assert.sameValue(Array.prototype.indexOf.call(obj, true), 122, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js index 4e275b17fbd43acce07214a393b8c0a8443075cf..d1c35a48584440adcf6efc56c2f779b587289767 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js @@ -9,7 +9,11 @@ description: > non-integer ---*/ - var obj = { 1: true, 2: false, length: -4294967294.5 }; //length will be 0 finally +var obj = { + 1: true, + 2: false, + length: -4294967294.5 +}; //length will be 0 finally assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js index 62702eed764b628d3aa36e4fd459a3212c52afb9..b6f651f6950a81e244f5e3233300447a28e10f9a 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js @@ -9,12 +9,12 @@ description: > (2^32) ---*/ - var targetObj = {}; - var obj = { - 0: targetObj, - 4294967294: targetObj, - 4294967295: targetObj, - length: 4294967296 - }; +var targetObj = {}; +var obj = { + 0: targetObj, + 4294967294: targetObj, + 4294967295: targetObj, + length: 4294967296 +}; assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), 0, 'Array.prototype.indexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js index 23bb38ae782a44c3114018a382170a140f484376..41298b8a34a75104bc3707f7ee01bde782765bac 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js @@ -9,12 +9,12 @@ description: > (2^32 + 1) ---*/ - var targetObj = {}; - var obj = { - 0: targetObj, - 1: 4294967297, - length: 4294967297 - }; +var targetObj = {}; +var obj = { + 0: targetObj, + 1: 4294967297, + length: 4294967297 +}; assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), 0, 'Array.prototype.indexOf.call(obj, targetObj)'); assert.sameValue(Array.prototype.indexOf.call(obj, 4294967297), 1, 'Array.prototype.indexOf.call(obj, 4294967297)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js index 83c239e170a2a28a53fefbf5ccfc3a124fa092a3..2db8c77fc69dbf853a09704a85171ca9a7213a4a 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js @@ -9,6 +9,9 @@ description: > 0) ---*/ - var obj = { 0: true, length: 0 }; +var obj = { + 0: true, + length: 0 +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js index e2dc4190fa601350d2ec6828118e71097ffc0923..c2f4f22c838dbac4ca8fa673765501e0f04bc9e1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js @@ -9,6 +9,9 @@ description: > +0) ---*/ - var obj = { 0: true, length: +0 }; +var obj = { + 0: true, + length: +0 +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js index 6fccac8750e8dcfb0a1e07112bc6f3e7960ba4b2..4ca356c5f92ce9a395e4496760e93532d9c19f79 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js @@ -9,6 +9,9 @@ description: > -0) ---*/ - var obj = { 0: true, length: -0 }; +var obj = { + 0: true, + length: -0 +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js index 50cc7c262cff273a27c497507e4b6fb0464dbf4c..841c6b02ed759820656e04d34084cb8e87cc0b7e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js @@ -9,7 +9,11 @@ description: > positive) ---*/ - var obj = { 3: true, 4: false, length: 4 }; +var obj = { + 3: true, + 4: false, + length: 4 +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 3, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js index 1ff3602c0b8a28de40542156b23d24439369b726..bbc47c9817e5db322ad457f765d5e0b2bb775b3b 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js @@ -9,7 +9,11 @@ description: > negative) ---*/ - var obj = { 4: true, 5: false, length: 5 - Math.pow(2, 32) }; +var obj = { + 4: true, + 5: false, + length: 5 - Math.pow(2, 32) +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js index c7873e9ee77e665312d858cdaa777a9fb2d9f924..b7ffedc0c6a8f4165007cbf9bfeaba0030912769 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js @@ -9,6 +9,9 @@ description: > Infinity) ---*/ - var obj = { 0: 0, length: Infinity }; +var obj = { + 0: 0, + length: Infinity +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js index faf4a227c4f00458cdf8e66fbe52e3bd7925a26d..00fafbc745cc3f45a0f0647022c48000a6c09d39 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js @@ -9,6 +9,9 @@ description: > -Infinity) ---*/ - var obj = { 0: 0, length: -Infinity }; +var obj = { + 0: 0, + length: -Infinity +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js index 5b6a62eb9963de23e2e3d4972eed8dda26f155ed..7f753d7855e9ab379ad959f0af89147afd9c215f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js @@ -7,6 +7,6 @@ es5id: 15.4.4.14-4-1 description: Array.prototype.indexOf returns -1 if 'length' is 0 (empty array) ---*/ - var i = [].indexOf(42); +var i = [].indexOf(42); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js index 6af3e10a85511c0f7118d2208dc8fd6310c1cb78..47a90a22878a29009cc30b8094848f3dfe708bd7 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js @@ -7,7 +7,11 @@ es5id: 15.4.4.14-4-10 description: Array.prototype.indexOf - 'length' is a number of value -6e-1 ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: -6e-1 }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: -6e-1 +}; assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js index 3410cb85c842f034db5baf45e2d0c8b674cf453a..94da778486dc8f009b70413f9cc7aa95215772ad 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js @@ -7,7 +7,11 @@ es5id: 15.4.4.14-4-11 description: Array.prototype.indexOf - 'length' is an empty string ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: "" }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: "" +}; assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js index 485bcf04e6969a39c6f6a9683bc182512a8ed3d3..e39faf7b10f39ca3834e3b2cde92ab0541954122 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js @@ -9,7 +9,9 @@ description: > overridden to null (type conversion)) ---*/ - var i = Array.prototype.indexOf.call({length: null}, 1); +var i = Array.prototype.indexOf.call({ + length: null +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js index 535a46c8e18875eb5eeb72c0d54cbb2a880c1d5f..ccca42340fd2352d9e46ef185c65126188442955 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js @@ -9,7 +9,9 @@ description: > overridden to false (type conversion)) ---*/ - var i = Array.prototype.indexOf.call({length: false}, 1); +var i = Array.prototype.indexOf.call({ + length: false +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js index c614ca938522b63e9cc25f457721979a2f99d788..d665e97c1f0254887efd5c2398ea463ea49c7988 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js @@ -9,7 +9,9 @@ description: > 'array' with length 0 ) ---*/ - var i = Array.prototype.lastIndexOf.call({length: 0}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: 0 +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js index 59512257948839ba30fc34d94c8ee5d3430c0301..7cd825ba8d9ed03ed8911a5786a4b077900ff95d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js @@ -9,7 +9,9 @@ description: > overridden to '0' (type conversion)) ---*/ - var i = Array.prototype.indexOf.call({length: '0'}, 1); +var i = Array.prototype.indexOf.call({ + length: '0' +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js index 365da0c371d4391da35eda19e65de188535380f9..bdb5f01fa1a622f40df148991b7e0feb9fbdfecd 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js @@ -9,7 +9,13 @@ description: > Array, length overridden with obj with valueOf) ---*/ - var i = Array.prototype.indexOf.call({length: { valueOf: function () { return 0;}}}, 1); +var i = Array.prototype.indexOf.call({ + length: { + valueOf: function() { + return 0; + } + } +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js index ed4cf9894714814e8da2cdb55c224b7ac087d2f7..c6c14d7736334812e7d3c38245edeeb2a14734a3 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js @@ -9,12 +9,18 @@ description: > object overridden with obj w/o valueOf (toString)) ---*/ - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - var i = Array.prototype.indexOf.call({length: { toString: function () { return '0';}}}, 1); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +var i = Array.prototype.indexOf.call({ + length: { + toString: function() { + return '0'; + } + } +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js index 04ad4c7fb6ea107edfefb20ef08a95bfec989f62..2c863ea4902c891ec422e286f9bdd4c28d813fea 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js @@ -9,20 +9,22 @@ description: > empty array) ---*/ - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - var i = Array.prototype.indexOf.call({length: [ ]}, 1); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. +var i = Array.prototype.indexOf.call({ + length: [] +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js index e90ce2e4c9223b59196d21ffde50c8258dfdc4db..b64c1213aa8fc396322d80318594580557de7e5b 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js @@ -7,7 +7,11 @@ es5id: 15.4.4.14-4-9 description: Array.prototype.indexOf - 'length' is a number of value 0.1 ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: 0.1 }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: 0.1 +}; assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js index 146456dbab5d71f755b6ba080e6f649f065a557b..bfb7c07cdf0f5dbdc4d7b84d4dacbc5cf3c0b42d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-1 description: Array.prototype.indexOf when fromIndex is string ---*/ - var a = [1,2,1,2,1,2]; +var a = [1, 2, 1, 2, 1, 2]; -assert.sameValue(a.indexOf(2,"2"), 3, '"2" resolves to 2'); -assert.sameValue(a.indexOf(2,"one"), 1, '"one" resolves to 0'); +assert.sameValue(a.indexOf(2, "2"), 3, '"2" resolves to 2'); +assert.sameValue(a.indexOf(2, "one"), 1, '"one" resolves to 0'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js index 7c006a5d04a60d2408b2b5ed79163cb97dfb9583..4ec2ce2a055b166b03abc1b6810f8e9ddf79a5af 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js @@ -9,7 +9,7 @@ description: > is positive number) ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, targetObj, 2].indexOf(targetObj, 2), -1, '[0, targetObj, 2].indexOf(targetObj, 2)'); assert.sameValue([0, 1, targetObj].indexOf(targetObj, 2), 2, '[0, 1, targetObj].indexOf(targetObj, 2)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js index e8dccbd1d9fc95f7d5e9d7b6d2e31500403c9ba5..873dcea1901ca90a29c6bf5095d49a9bc8038e11 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js @@ -9,7 +9,7 @@ description: > is negative number) ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, targetObj, 2].indexOf(targetObj, -1), -1, '[0, targetObj, 2].indexOf(targetObj, -1)'); assert.sameValue([0, 1, targetObj].indexOf(targetObj, -1), 2, '[0, 1, targetObj].indexOf(targetObj, -1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js index dbdc234eb5c4b53bbd7fad42346fc525aa0b8458..ef4baf22eb870fd0ff846c8aee2ea97a7f72aa90 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js @@ -9,7 +9,7 @@ description: > is Infinity) ---*/ - var arr = []; - arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type +var arr = []; +arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type assert.sameValue(arr.indexOf(true, Infinity), -1, 'arr.indexOf(true, Infinity)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js index 68e8cbe5fe43b8b2c55412dca5288fd4b6733ce4..6f9afde36afc4a8748746dd86393ecc546ffb6d5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js @@ -9,7 +9,7 @@ description: > containing Infinity ---*/ - var arr = []; - arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type +var arr = []; +arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type assert.sameValue(arr.indexOf(true, "Infinity"), -1, 'arr.indexOf(true, "Infinity")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js index 7729f74b5fe3ec3bf062c43bef1ff1be7d8f1247..66bfabd2fa528efe085353ce2444e15dd7f1d402 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js @@ -9,7 +9,7 @@ description: > containing an exponential number ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "3E0"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "3E0")'); assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "3E0"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "3E0")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js index ef2936fb7bbb1ee1d454a359804cfb7b124ec393..123b1304f71321e5cbcb81df7cd8d750bdfb60f6 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js @@ -9,7 +9,7 @@ description: > containing a hex number ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "0x0003"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "0x0003")'); assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "0x0003"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "0x0003")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js index 6fbcc5ced6aaeedd78e551ed5d7508d7bb296d1d..092e4127f6ece202a0476230bd167a03c2b6035e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-5-2 description: Array.prototype.indexOf when fromIndex is floating point number ---*/ - var a = new Array(1,2,3); +var a = new Array(1, 2, 3); -assert.sameValue(a.indexOf(3,0.49), 2, '0.49 resolves to 0'); -assert.sameValue(a.indexOf(1,0.51), 0, '0.51 resolves to 0'); -assert.sameValue(a.indexOf(1,1.51), -1, '1.51 resolves to 1'); +assert.sameValue(a.indexOf(3, 0.49), 2, '0.49 resolves to 0'); +assert.sameValue(a.indexOf(1, 0.51), 0, '0.51 resolves to 0'); +assert.sameValue(a.indexOf(1, 1.51), -1, '1.51 resolves to 1'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js index 0471343e27d2f9ae8c7791f6ab3029c2769bb5f5..106b630ba1e9de3499bfd7d2db973d63fe504d73 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js @@ -9,7 +9,7 @@ description: > containing a number with leading zeros ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "0003.10"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "0003.10")'); assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "0003.10"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "0003.10")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js index 05fbacd4df63d4f80f59ee01dd0f8baeea8ad362..887de235ac838af26654ffb0bbb46de90e725c39 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js @@ -9,15 +9,15 @@ description: > has an own toString method ---*/ - // objects inherit the default valueOf() method from Object - // that simply returns itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - var fromIndex = { - toString: function () { - return '1'; - } - }; +// objects inherit the default valueOf() method from Object +// that simply returns itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +var fromIndex = { + toString: function() { + return '1'; + } +}; assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js index 21bb6b03a73a96e2151364edce8c3cbb4e7adf6e..e1ed1319783d49c0d040d8c6da083a5d6f71ca27 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js @@ -9,11 +9,11 @@ description: > has an own valueOf method ---*/ - var fromIndex = { - valueOf: function () { - return 1; - } - }; +var fromIndex = { + valueOf: function() { + return 1; + } +}; assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js index 64f186fc817f3fae214db5119b97ccd7d7a5521f..8bfad2363fdf65117946dcd97f1bf8baf045086a 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js @@ -10,20 +10,20 @@ description: > method that returns a string ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var fromIndex = { - toString: function () { - toStringAccessed = true; - return '1'; - }, +var fromIndex = { + toString: function() { + toStringAccessed = true; + return '1'; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } +}; assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js index 3f83428a20a0eb81ef876152c9fee23722e513c7..881197259db59d11c53d723124fec699ae09b225 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js @@ -10,22 +10,22 @@ description: > don�t return primitive values ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; - var fromIndex = { - toString: function () { - toStringAccessed = true; - return {}; - }, +var toStringAccessed = false; +var valueOfAccessed = false; +var fromIndex = { + toString: function() { + toStringAccessed = true; + return {}; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } +}; assert.throws(TypeError, function() { - [0, true].indexOf(true, fromIndex); + [0, true].indexOf(true, fromIndex); }); assert(toStringAccessed, 'toStringAccessed'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js index a8139b75124735529e969f4e0fb481760c240ba8..f3943fc4905c4faace6ecaf3703a40a44189e913 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js @@ -10,24 +10,24 @@ description: > valueOf methods ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 1; - } - }; +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 1; + } +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.toString = function () { - toStringAccessed = true; - return 2; - }; +var child = new Con(); +child.toString = function() { + toStringAccessed = true; + return 2; +}; assert.sameValue([0, true].indexOf(true, child), 1, '[0, true].indexOf(true, child)'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js index 6c66928cee0272c61968c7e1118ff44ba6d505b5..43307ad73465c84d0c0b90fb6ce43c1a3f755eb0 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js @@ -9,30 +9,30 @@ description: > visible when an exception occurs ---*/ - var stepTwoOccurs = false; - var stepFiveOccurs = false; +var stepTwoOccurs = false; +var stepFiveOccurs = false; - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - stepTwoOccurs = true; - if (stepFiveOccurs) { - throw new Error("Step 5 occurred out of order"); - } - return 20; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + stepTwoOccurs = true; + if (stepFiveOccurs) { + throw new Error("Step 5 occurred out of order"); + } + return 20; + }, + configurable: true +}); - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; - Array.prototype.indexOf.call(obj, undefined, fromIndex); +Array.prototype.indexOf.call(obj, undefined, fromIndex); assert(stepTwoOccurs, 'stepTwoOccurs !== true'); assert(stepFiveOccurs, 'stepFiveOccurs !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js index 0207afac1e74e8a3b854adf4c58bf5c991a6bcd3..ec03ca8394e8892f652eafcda00e9ae98d7ce31c 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js @@ -9,34 +9,34 @@ description: > visible when an exception occurs ---*/ - var stepThreeOccurs = false; - var stepFiveOccurs = false; +var stepThreeOccurs = false; +var stepFiveOccurs = false; - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return { - valueOf: function () { - stepThreeOccurs = true; - if (stepFiveOccurs) { - throw new Error("Step 5 occurred out of order"); - } - return 20; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + valueOf: function() { + stepThreeOccurs = true; + if (stepFiveOccurs) { + throw new Error("Step 5 occurred out of order"); + } + return 20; + } + }; + }, + configurable: true +}); - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; - Array.prototype.indexOf.call(obj, undefined, fromIndex); +Array.prototype.indexOf.call(obj, undefined, fromIndex); assert(stepThreeOccurs, 'stepThreeOccurs !== true'); assert(stepFiveOccurs, 'stepFiveOccurs !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js index 9e838354597ddcaffb5282877b2b165a516a9112..71adbb3478357c155ee880ee2e5b45d6fdb3d5dc 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js @@ -9,14 +9,14 @@ description: > visible when an exception occurs ---*/ - var stepFiveOccurs = false; - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var stepFiveOccurs = false; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; assert.throws(TypeError, function() { - Array.prototype.indexOf.call(undefined, undefined, fromIndex); + Array.prototype.indexOf.call(undefined, undefined, fromIndex); }); assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js index 30381433b86c0ef98fec23e094cf1b97df6edba9..373bbc7e50c1372caf52f455290e22c68f67dc77 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js @@ -9,23 +9,23 @@ description: > visible when an exception occurs ---*/ - var stepFiveOccurs = false; +var stepFiveOccurs = false; - var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - throw new RangeError(); - }, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "length", { + get: function() { + throw new RangeError(); + }, + configurable: true +}); - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; assert.throws(RangeError, function() { - Array.prototype.indexOf.call(obj, undefined, fromIndex); + Array.prototype.indexOf.call(obj, undefined, fromIndex); }); assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js index 9030d5314c9de0ccfa5ffb5b5c9db13022f0d36d..f9ec42cc876f4ef55244aa5068ad13eda69a8e25 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-3 description: Array.prototype.indexOf when fromIndex is boolean ---*/ - var a = [1,2,3]; +var a = [1, 2, 3]; -assert.sameValue(a.indexOf(1,true), -1, 'true resolves to 1'); -assert.sameValue(a.indexOf(1,false), 0, 'false resolves to 0'); +assert.sameValue(a.indexOf(1, true), -1, 'true resolves to 1'); +assert.sameValue(a.indexOf(1, false), 0, 'false resolves to 0'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js index 9a229e976cf36986938bc0b2783dcb0952530386..d3eac966c0979f6e8dedab9938c08b27f675c7c0 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js @@ -9,27 +9,27 @@ description: > visible when an exception occurs ---*/ - var stepFiveOccurs = false; +var stepFiveOccurs = false; - var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return { - valueOf: function () { - throw new TypeError(); - } - }; - }, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "length", { + get: function() { + return { + valueOf: function() { + throw new TypeError(); + } + }; + }, + configurable: true +}); - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; assert.throws(TypeError, function() { - Array.prototype.indexOf.call(obj, undefined, fromIndex); + Array.prototype.indexOf.call(obj, undefined, fromIndex); }); assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js index 9a7f1d3ff56b1a3fbee8fee91e8d3406c4c2b44a..64442d0db8babc78f5171a9a251c896e6509753f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js @@ -9,7 +9,7 @@ description: > verify truncation occurs in the proper direction ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, targetObj, 2].indexOf(targetObj, 2.5), -1, '[0, targetObj, 2].indexOf(targetObj, 2.5)'); assert.sameValue([0, 1, targetObj].indexOf(targetObj, 2.5), 2, '[0, 1, targetObj].indexOf(targetObj, 2.5)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js index df4812b786c8aac5246a33b171ab3df192c39e33..a11186d51e472d98ee67ccbd32126b6b0409016d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js @@ -9,7 +9,7 @@ description: > verify truncation occurs in the proper direction ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, targetObj, 2].indexOf(targetObj, -1.5), -1, '[0, targetObj, 2].indexOf(targetObj, -1.5)'); assert.sameValue([0, 1, targetObj].indexOf(targetObj, -1.5), 2, '[0, 1, targetObj].indexOf(targetObj, -1.5)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js index 3611b179928ef1a98b162309650a5ed293de8cc4..4230ef2bc02e415d2e47e1959de3db9d224b5ae2 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js @@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-4 description: Array.prototype.indexOf returns 0 if fromIndex is 'undefined' ---*/ - var a = [1,2,3]; +var a = [1, 2, 3]; // undefined resolves to 0 -assert.sameValue(a.indexOf(1,undefined), 0, 'a.indexOf(1,undefined)'); +assert.sameValue(a.indexOf(1, undefined), 0, 'a.indexOf(1,undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js index 9056a5fe9448d2db39967e07bcb40707f93931a8..4cd4418d56d020a848129fa30280fc0336101872 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js @@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-5 description: Array.prototype.indexOf returns 0 if fromIndex is null ---*/ - var a = [1,2,3]; +var a = [1, 2, 3]; // null resolves to 0 -assert.sameValue(a.indexOf(1,null), 0, 'a.indexOf(1,null)'); +assert.sameValue(a.indexOf(1, null), 0, 'a.indexOf(1,null)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js index 69610b347ada8c6870d0a5779573d86819b837b1..2ea05b825eccbee006ca146e208b6be02e530865 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-5-6 description: Array.prototype.indexOf - 'fromIndex' isn't passed ---*/ - var arr = [0, 1, 2, 3, 4]; - //'fromIndex' will be set as 0 if not passed by default +var arr = [0, 1, 2, 3, 4]; +//'fromIndex' will be set as 0 if not passed by default assert.sameValue(arr.indexOf(0), arr.indexOf(0, 0), 'arr.indexOf(0)'); assert.sameValue(arr.indexOf(2), arr.indexOf(2, 0), 'arr.indexOf(2)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js index f2da76943c08e5064b09a4fc860bb73369120fd6..1309ad967ada31f4b9128bba890ecd7525881662 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js @@ -9,8 +9,8 @@ description: > Array length ---*/ - var a = [1,2,3]; +var a = [1, 2, 3]; -assert.sameValue(a.indexOf(1,5), -1, 'a.indexOf(1,5)'); -assert.sameValue(a.indexOf(1,3), -1, 'a.indexOf(1,3)'); -assert.sameValue([ ].indexOf(1,0), -1, '[ ].indexOf(1,0)'); +assert.sameValue(a.indexOf(1, 5), -1, 'a.indexOf(1,5)'); +assert.sameValue(a.indexOf(1, 3), -1, 'a.indexOf(1,3)'); +assert.sameValue([].indexOf(1, 0), -1, '[ ].indexOf(1,0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js index 57d4f191db518812d3655a13b09fc87181b17e64..4531f805196c1cb7a0533eb8273a49264d3ce18e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js @@ -7,10 +7,10 @@ es5id: 15.4.4.14-8-1 description: Array.prototype.indexOf with negative fromIndex ---*/ - var a = new Array(1,2,3); +var a = new Array(1, 2, 3); -assert.sameValue(a.indexOf(2,-1), -1, 'a.indexOf(2,-1)'); -assert.sameValue(a.indexOf(2,-2), 1, 'a.indexOf(2,-2)'); -assert.sameValue(a.indexOf(1,-3), 0, 'a.indexOf(1,-3)'); -assert.sameValue(a.indexOf(1,-5.3), 0, 'a.indexOf(1,-5.3)'); +assert.sameValue(a.indexOf(2, -1), -1, 'a.indexOf(2,-1)'); +assert.sameValue(a.indexOf(2, -2), 1, 'a.indexOf(2,-2)'); +assert.sameValue(a.indexOf(1, -3), 0, 'a.indexOf(1,-3)'); +assert.sameValue(a.indexOf(1, -5.3), 0, 'a.indexOf(1,-5.3)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js index 94125fa8177c8ac1c545fca2e2859c02cbce8321..91a596078f68c616da9fe092297689f5ad38ab5b 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js @@ -7,9 +7,13 @@ es5id: 15.4.4.14-9-1 description: Array.prototype.indexOf must return correct index (boolean) ---*/ - var obj = {toString:function (){return true}}; - var _false = false; - var a = [obj,"true", undefined,0,_false,null,1,"str",0,1,true,false,true,false]; +var obj = { + toString: function() { + return true + } +}; +var _false = false; +var a = [obj, "true", undefined, 0, _false, null, 1, "str", 0, 1, true, false, true, false]; - assert.sameValue(a.indexOf(true), 10, 'a[10]=true'); - assert.sameValue(a.indexOf(false), 4, 'a[4] =_false'); +assert.sameValue(a.indexOf(true), 10, 'a[10]=true'); +assert.sameValue(a.indexOf(false), 4, 'a[4] =_false'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js index 4b3ec82c6abcf3912825aea3576326ff9bb52969..92ebaa80aa766f2c1e4fb89996e0fb28bc607213 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js @@ -10,7 +10,11 @@ es5id: 15.4.4.14-9-10 description: Array.prototype.indexOf must return correct index (NaN) ---*/ - var _NaN = NaN; - var a = new Array("NaN",undefined,0,false,null,{toString:function (){return NaN}},"false",_NaN,NaN); +var _NaN = NaN; +var a = new Array("NaN", undefined, 0, false, null, { + toString: function() { + return NaN + } +}, "false", _NaN, NaN); assert.sameValue(a.indexOf(NaN), -1, 'NaN is equal to nothing, including itself.'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js index cf1aac54125810e4920a470001cff0e5f5569a6e..77108424d9bd4870eaf9f56306183cb89f577d53 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js @@ -9,14 +9,14 @@ description: > adding elements to the array during iteration ---*/ - var arr = [20]; +var arr = [20]; - Object.defineProperty(arr, "0", { - get: function () { - arr[1] = 1; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr[1] = 1; + return 0; + }, + configurable: true +}); assert.sameValue(arr.indexOf(1), -1, 'arr.indexOf(1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js index fcce013d2c05c93979726c4daf87b368818a255b..410a7c0ef10243a6b2c9a4561678eff56289ea3d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js @@ -7,12 +7,16 @@ es5id: 15.4.4.14-9-2 description: Array.prototype.indexOf must return correct index (Number) ---*/ - var obj = {toString:function (){return 0}}; - var one = 1; - var _float = -(4/3); - var a = new Array(false,undefined,null,"0",obj,-1.3333333333333, "str",-0,true,+0, one, 1,0, false, _float, -(4/3)); +var obj = { + toString: function() { + return 0 + } +}; +var one = 1; +var _float = -(4 / 3); +var a = new Array(false, undefined, null, "0", obj, -1.3333333333333, "str", -0, true, +0, one, 1, 0, false, _float, -(4 / 3)); -assert.sameValue(a.indexOf(-(4/3)), 14, 'a[14]=_float===-(4/3)'); +assert.sameValue(a.indexOf(-(4 / 3)), 14, 'a[14]=_float===-(4/3)'); assert.sameValue(a.indexOf(0), 7, 'a[7] = +0, 0===+0'); assert.sameValue(a.indexOf(-0), 7, 'a[7] = +0, -0===+0'); assert.sameValue(a.indexOf(1), 10, 'a[10] =one=== 1'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js index 3c83a98d95627135ffe0834919092fef4bb5d2e6..8b4ff007cce7b29ece5f5361cc1fbae0479ad80a 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js @@ -7,8 +7,12 @@ es5id: 15.4.4.14-9-3 description: Array.prototype.indexOf must return correct index(string) ---*/ - var obj = {toString:function (){return "false"}}; - var szFalse = "false"; - var a = new Array("false1",undefined,0,false,null,1,obj,0,szFalse, "false"); +var obj = { + toString: function() { + return "false" + } +}; +var szFalse = "false"; +var a = new Array("false1", undefined, 0, false, null, 1, obj, 0, szFalse, "false"); assert.sameValue(a.indexOf("false"), 8, 'a[8]=szFalse'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js index d0b3a3a3efe19574f6f4a168890612ca22e30ff4..697f9196785efae635e3c045971d20c32ee4dc38 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js @@ -7,9 +7,13 @@ es5id: 15.4.4.14-9-4 description: Array.prototype.indexOf must return correct index(undefined) ---*/ - var obj = {toString:function (){return undefined;}}; - var _undefined1 = undefined; - var _undefined2; - var a = new Array(true,0,false,null,1,"undefined",obj,1,_undefined2,_undefined1,undefined); +var obj = { + toString: function() { + return undefined; + } +}; +var _undefined1 = undefined; +var _undefined2; +var a = new Array(true, 0, false, null, 1, "undefined", obj, 1, _undefined2, _undefined1, undefined); assert.sameValue(a.indexOf(undefined), 8, 'a[8]=_undefined2'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js index 3a31b1477a79496b1bf91af882f6a2a444f348d9..8537c3ac30b3b7a4edaecb05ff12c6b2921e3b79 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js @@ -7,9 +7,21 @@ es5id: 15.4.4.14-9-5 description: Array.prototype.indexOf must return correct index (Object) ---*/ - var obj1 = {toString:function (){return "false"}}; - var obj2 = {toString:function (){return "false"}}; - var obj3 = obj1; - var a = new Array(false,undefined,0,false,null,{toString:function (){return "false"}},"false",obj2,obj1,obj3); +var obj1 = { + toString: function() { + return "false" + } +}; +var obj2 = { + toString: function() { + return "false" + } +}; +var obj3 = obj1; +var a = new Array(false, undefined, 0, false, null, { + toString: function() { + return "false" + } +}, "false", obj2, obj1, obj3); assert.sameValue(a.indexOf(obj3), 8, 'a[8] = obj1'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js index adb3280e8a9c4fcbc5a60d54d69b9073cca9d129..cb657505bbd65a0b11ffd638fb6c391a004377ce 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js @@ -7,8 +7,12 @@ es5id: 15.4.4.14-9-6 description: Array.prototype.indexOf must return correct index(null) ---*/ - var obj = {toString:function (){return null}}; - var _null = null; - var a = new Array(true,undefined,0,false,_null,1,"str",0,1,obj,true,false,null); +var obj = { + toString: function() { + return null + } +}; +var _null = null; +var a = new Array(true, undefined, 0, false, _null, 1, "str", 0, 1, obj, true, false, null); assert.sameValue(a.indexOf(null), 4, 'a[4]=_null'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js index 33bf64933bf7ab1e21f80cd1460c94b32b581148..0a8028b4e772ffd5df799662c7584614524f60f5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-9-7 description: Array.prototype.indexOf must return correct index (self reference) ---*/ - var a = new Array(0,1,2,3); - a[2] = a; +var a = new Array(0, 1, 2, 3); +a[2] = a; assert.sameValue(a.indexOf(a), 2, 'a.indexOf(a)'); assert.sameValue(a.indexOf(3), 3, 'a.indexOf(3)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js index 86889e43727b55e78cb76c3544c9751824d18963..7e07ce058f78358e51aed526d228ff1a25dfa506 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js @@ -7,8 +7,8 @@ es5id: 15.4.4.14-9-8 description: Array.prototype.indexOf must return correct index (Array) ---*/ - var b = new Array("0,1"); - var a = new Array(0,b,"0,1",3); +var b = new Array("0,1"); +var a = new Array(0, b, "0,1", 3); assert.sameValue(a.indexOf(b.toString()), 2, 'a.indexOf(b.toString())'); assert.sameValue(a.indexOf("0,1"), 2, 'a.indexOf("0,1")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js index 82fc8113c12506de1ad4d1b35b71c3510616639f..800f568bf46a89487666238fe53fbec5f7f0eec5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js @@ -7,15 +7,15 @@ es5id: 15.4.4.14-9-9 description: Array.prototype.indexOf must return correct index (Sparse Array) ---*/ - var a = new Array(0,1); - a[4294967294] = 2; // 2^32-2 - is max array element - a[4294967295] = 3; // 2^32-1 added as non-array element property - a[4294967296] = 4; // 2^32 added as non-array element property - a[4294967297] = 5; // 2^32+1 added as non-array element property +var a = new Array(0, 1); +a[4294967294] = 2; // 2^32-2 - is max array element +a[4294967295] = 3; // 2^32-1 added as non-array element property +a[4294967296] = 4; // 2^32 added as non-array element property +a[4294967297] = 5; // 2^32+1 added as non-array element property - // start searching near the end so in case implementation actually tries to test all missing elements!! +// start searching near the end so in case implementation actually tries to test all missing elements!! -assert.sameValue(a.indexOf(2,4294967290 ), 4294967294, 'a.indexOf(2,4294967290 )'); -assert.sameValue(a.indexOf(3,4294967290), -1, 'a.indexOf(3,4294967290)'); -assert.sameValue(a.indexOf(4,4294967290), -1, 'a.indexOf(4,4294967290)'); -assert.sameValue(a.indexOf(5,4294967290), -1, 'a.indexOf(5,4294967290)'); +assert.sameValue(a.indexOf(2, 4294967290), 4294967294, 'a.indexOf(2,4294967290 )'); +assert.sameValue(a.indexOf(3, 4294967290), -1, 'a.indexOf(3,4294967290)'); +assert.sameValue(a.indexOf(4, 4294967290), -1, 'a.indexOf(4,4294967290)'); +assert.sameValue(a.indexOf(5, 4294967290), -1, 'a.indexOf(5,4294967290)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js index 0d17a2be4b5f86d652128f16607f7fae7fffecbb..043314c60706d7ebfb3dc8bffb619d16a5f3451b 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js @@ -9,14 +9,14 @@ description: > here ---*/ - var arr = { }; +var arr = {}; - Object.defineProperty(arr, "length", { - get: function () { - arr[2] = "length"; - return 3; - }, - configurable: true - }); +Object.defineProperty(arr, "length", { + get: function() { + arr[2] = "length"; + return 3; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, "length"), 2, 'Array.prototype.indexOf.call(arr, "length")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js index ff6b0a9c8e60fbf2ad588f843e5947b28b2edb59..4a2797e620ebd6b2ff74f3f4e3b9ade56da2c232 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js @@ -9,19 +9,19 @@ description: > after current position are visited on an Array ---*/ - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(arr.indexOf(6.99), 1, 'arr.indexOf(6.99)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js index 6e9587d5a8ecc6e303a15db8968131466e1e30f8..65e50432535a946a5077d72ef325484b443fdc44 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js @@ -9,21 +9,23 @@ description: > property not to be visited on an Array-like object ---*/ - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js index 172dd11336cc1e63696ab216ce63706a8726dc63..d07f4a7102ecc9a18e64f266bacebd32c29d602d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js @@ -9,21 +9,21 @@ description: > property not to be visited on an Array ---*/ - var arr = [1, 2]; +var arr = [1, 2]; - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(arr.indexOf("6.99"), -1, 'arr.indexOf("6.99")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js index 2390e6e7f5895a97ea4896d6897cc5729b04e17d..f45f555cf6c3325be22536cfec209a2bf5fa46d8 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js @@ -9,16 +9,19 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - var arr = { 2: 2, length: 20 }; +var arr = { + 2: 2, + length: 20 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.indexOf.call(arr, 1), -1, 'Array.prototype.indexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js index 81cbe7b98891525a2086d43161b57f82087bc36a..216e4da0b3226240e4e82cafe39c725f99142dd2 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js @@ -9,16 +9,16 @@ description: > prototype index property not to be visited on an Array ---*/ - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; +Array.prototype[1] = 1; assert.sameValue(arr.indexOf(1), -1, 'arr.indexOf(1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js index c7c60d7c43753fbe3bae56ed30905a2d8467011b..5c5be6dc92b1c8c195475f92572eaebc1aeb0acd 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js @@ -10,16 +10,21 @@ description: > Array-like object ---*/ - var arr = { 0: 0, 1: 111, 2: 2, length: 10 }; +var arr = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js index 707207440eb58b320ad076d65cf10da8b11c4682..ed4072719df1bb5acd19da0399232dceefbe6324 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js @@ -9,16 +9,16 @@ description: > property causes prototype index property to be visited on an Array ---*/ - var arr = [0, 111, 2]; +var arr = [0, 111, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; +Array.prototype[1] = 1; assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js index 74a6eddb42c8620615807414332bab47acb2f0c7..8309a3b86e58852809c33e083e32c73f776711c0 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js @@ -9,14 +9,14 @@ description: > property not to be visited ---*/ - var arr = [0, 1, 2, "last"]; +var arr = [0, 1, 2, "last"]; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); assert.sameValue(arr.indexOf("last"), -1, 'arr.indexOf("last")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js index f1e2fa4f4c5bb1c7bcf57c71c55b145eee4b55dd..1d728bce1f8d4fbb4818abb1aad8671a51f691c0 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js @@ -9,21 +9,21 @@ description: > prototype property causes prototype index property to be visited ---*/ - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); assert.sameValue(arr.indexOf("prototype"), 2, 'arr.indexOf("prototype")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js index b30be5fdabf10d9e3df99b88264e8c4271c5779f..0fab8d12b720c733193fd942e75bab1e5f1f1452 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js @@ -10,22 +10,22 @@ description: > flags: [noStrict] ---*/ - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); assert.sameValue(arr.indexOf("unconfigurable"), 2, 'arr.indexOf("unconfigurable")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js index a0e8b829569694b4ec27941f7ad8cfac0cd53563..fac0434b988f622a7914d8014a32eede87953c43 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js @@ -9,15 +9,17 @@ description: > here on an Array-like object ---*/ - var arr = { length: 30 }; - var targetObj = function () { }; +var arr = { + length: 30 +}; +var targetObj = function() {}; - var fromIndex = { - valueOf: function () { - arr[4] = targetObj; - return 3; - } - }; +var fromIndex = { + valueOf: function() { + arr[4] = targetObj; + return 3; + } +}; assert.sameValue(Array.prototype.indexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.indexOf.call(arr, targetObj, fromIndex)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js index 5ac6827ee62b6a9740fedad1362cfe35f41b26e4..d7954ea908464fc3cc4c90a09ae7b2e5dc95dd55 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js @@ -9,15 +9,15 @@ description: > here on an Array ---*/ - var arr = []; - arr.length = 30; - var targetObj = function () { }; +var arr = []; +arr.length = 30; +var targetObj = function() {}; - var fromIndex = { - valueOf: function () { - arr[4] = targetObj; - return 3; - } - }; +var fromIndex = { + valueOf: function() { + arr[4] = targetObj; + return 3; + } +}; assert.sameValue(arr.indexOf(targetObj, fromIndex), 4, 'arr.indexOf(targetObj, fromIndex)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js index 8a5e756c56fb12f3134fdfc8b461f20fcb78debd..1340a1d67bcba8f267495b4a6d5bb16e576ae11f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js @@ -9,14 +9,16 @@ description: > here ---*/ - var arr = { 2: 6.99 }; +var arr = { + 2: 6.99 +}; - Object.defineProperty(arr, "length", { - get: function () { - delete arr[2]; - return 3; - }, - configurable: true - }); +Object.defineProperty(arr, "length", { + get: function() { + delete arr[2]; + return 3; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js index 255c327a3f9b56e93838268a872dfca09ab9cf3e..926a37aeb5ded804578de42b078b6c5ab01c6416 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js @@ -9,13 +9,16 @@ description: > here on an Array-like object ---*/ - var arr = { 10: false, length: 30 }; +var arr = { + 10: false, + length: 30 +}; - var fromIndex = { - valueOf: function () { - delete arr[10]; - return 3; - } - }; +var fromIndex = { + valueOf: function() { + delete arr[10]; + return 3; + } +}; assert.sameValue(Array.prototype.indexOf.call(arr, false, fromIndex), -1, 'Array.prototype.indexOf.call(arr, false, fromIndex)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js index e78f717c3c250511d22dcb6b78e429432e189a88..41e275c6ce0733bbe1f891d35fd83aea782c118f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js @@ -9,15 +9,15 @@ description: > here on an Array ---*/ - var arr = []; - arr[10] = "10"; - arr.length = 20; +var arr = []; +arr[10] = "10"; +arr.length = 20; - var fromIndex = { - valueOf: function () { - delete arr[10]; - return 3; - } - }; +var fromIndex = { + valueOf: function() { + delete arr[10]; + return 3; + } +}; assert.sameValue(arr.indexOf("10", fromIndex), -1, 'arr.indexOf("10", fromIndex)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js index 58e38614c5583afa58cdf78d71cbacaf90c71755..317816ab65e6a3c6ac1ee9faaefa38999d8a21f7 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js @@ -9,19 +9,21 @@ description: > current position are visited on an Array-like object ---*/ - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js index aa43ed573b6dfae363bc8c2e72c1243134cdfcef..af3577d7dbdac2305f43a1b790a2c3ad19386c85 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js @@ -9,19 +9,19 @@ description: > current position are visited on an Array ---*/ - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js index e36af343da0845938ee66a8a1071e4b5288affb2..22ea6154ae17911839c627d45c08b82aa9ec905e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js @@ -9,19 +9,21 @@ description: > after current position are visited on an Array-like object ---*/ - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), 1, 'Array.prototype.indexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js index dc8bba8671c836b22a01fdef2eca06ba59803d28..211c212ccd265254a39840612bbcbebfc6e07ef4 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js @@ -9,7 +9,12 @@ description: > property on an Array-like object ---*/ - var obj = { 0: 0, 1: 1, 2: 2, length: 3 }; +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)'); assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js index 8cf69e48dd956b55affcf3246f4eb767a8edf877..af735dd41870e0069f376d0af0a34d3cede467f1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js @@ -9,27 +9,29 @@ description: > property on an Array-like object ---*/ - var obj = { length: 3 }; - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var obj = { + length: 3 +}; +Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)'); assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js index 0d1ca8e702130fa4f01afde84e73699981d48ac0..d744fec56ca43556bc86eab5cd69d8e9cc8491e7 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js @@ -9,14 +9,14 @@ description: > property that overrides an inherited data property on an Array ---*/ - var arr = []; +var arr = []; - Array.prototype[0] = false; - Object.defineProperty(arr, "0", { - get: function () { - return true; - }, - configurable: true - }); +Array.prototype[0] = false; +Object.defineProperty(arr, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(arr.indexOf(true), 0, 'arr.indexOf(true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js index de13d9f38a147fc0abb8fe7368e1de1571594c5e..77f337f6b150cd7716eab3f73d9742024270df61 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js @@ -10,14 +10,16 @@ description: > Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.prototype[0] = false; - Object.defineProperty(obj, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.prototype[0] = false; +Object.defineProperty(obj, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js index 27be95dc60f4a9182a4afcde4529f67fd1847508..f260b91bfafa3bb86790492450889de4a163887e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js @@ -9,20 +9,20 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var arr = []; +var arr = []; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(arr.indexOf(true), 0, 'arr.indexOf(true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js index 265667e71a967feaae75904b01aad37cb323b0ea..b3133a5bcba12f13cf9277d678309636774c0176 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js @@ -10,20 +10,22 @@ description: > Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.defineProperty(Object.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js index 44b2da7afd729abc294e3519098455d2cab752cf..e9f5b47b765151938e8af1b62777e764c1e551c6 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js @@ -9,26 +9,26 @@ description: > accessor property on an Array ---*/ - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 10; + }, + configurable: true +}); - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 20; + }, + configurable: true +}); - Object.defineProperty(Array.prototype, "2", { - get: function () { - return 30; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return 30; + }, + configurable: true +}); assert.sameValue([, , , ].indexOf(10), 0, '[, , , ].indexOf(10)'); assert.sameValue([, , , ].indexOf(20), 1, '[, , , ].indexOf(20)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js index 754db8aad4ab0f547e43567ad0888e41f933988a..8a8057ee9f0daeb7538d6e44127964edb84c7114 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js @@ -9,27 +9,33 @@ description: > accessor property on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return 10; + }, + configurable: true +}); - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "1", { + get: function() { + return 20; + }, + configurable: true +}); - Object.defineProperty(Object.prototype, "2", { - get: function () { - return 30; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "2", { + get: function() { + return 30; + }, + configurable: true +}); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js index 551e2a30e7b1fc0eb336f87c5fb0084af49176eb..9ffbbe16cabb66fa4bcdd8a3a0af3620f40c7a1d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js @@ -9,10 +9,10 @@ description: > property without a get function on an Array ---*/ - var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +var arr = []; +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); assert.sameValue(arr.indexOf(undefined), 0, 'arr.indexOf(undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js index 4701e3fd8d94867ec6681b2dc4a1573719d75d75..e79db90e3b4b6668f842649448772f6557ea03a6 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js @@ -9,10 +9,12 @@ description: > property without a get function on an Array-like object ---*/ - var obj = { length: 1 }; - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +var obj = { + length: 1 +}; +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, undefined), 0, 'Array.prototype.indexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js index b640d89655f4343fff97e91d4c1051e2bed6e9fa..2ded8363e79b3fe5c74e2eed65465968ea2a5a49 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js @@ -10,18 +10,18 @@ description: > accessor property on an Array ---*/ - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(arr.indexOf(undefined), 0, 'arr.indexOf(undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js index 56508fe50890804ddfcaa5ab94c9f53f48050f93..793084e9e09ccd9240c7b59b66c377ad7a2f5b0f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js @@ -10,23 +10,23 @@ description: > accessor property on an Array-like object ---*/ - var proto = {}; - Object.defineProperty(proto, "0", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "0", { + get: function() { + return 2; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 1; +var child = new Con(); +child.length = 1; - Object.defineProperty(child, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(child, "0", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(child, undefined), 0, 'Array.prototype.indexOf.call(child, undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js index 24144df082cd739b80aa740371bf320d7f1cad91..ffc933148910cceb1a029d7b3c56fe5c58275793 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js @@ -9,9 +9,9 @@ description: > accessor property without a get function on an Array ---*/ - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); assert.sameValue([, ].indexOf(undefined), 0, '[, ].indexOf(undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js index 922d2e7ce1204b1420c50174b2c7650a0e258628..f9fa4d41a2cfb7f7663f53d565d071bde4ebba40 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js @@ -9,9 +9,11 @@ description: > accessor property without a get function on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + set: function() {}, + configurable: true +}); -assert.sameValue(Array.prototype.indexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 1 +}, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js index b2f3bc442a43d0ac02033c8bf7f95390a827a169..4e5bb8b13bb9d59f628fef504f94791c2f5376fe 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js @@ -10,9 +10,9 @@ description: > less than number of parameters) ---*/ - var func = function (a, b) { - return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) && - -1 === Array.prototype.indexOf.call(arguments, arguments[1]); - }; +var func = function(a, b) { + return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) && + -1 === Array.prototype.indexOf.call(arguments, arguments[1]); +}; assert(func(true), 'func(true) !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js index 330ea1966e45fcab837883b0a400b0c881887171..caa167d9d58888319aae440d9c4ce5fd74b4dad3 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js @@ -10,10 +10,10 @@ description: > to number of parameters) ---*/ - var func = function (a, b) { - return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) && - 1 === Array.prototype.indexOf.call(arguments, arguments[1]) && - -1 === Array.prototype.indexOf.call(arguments, arguments[2]); - }; +var func = function(a, b) { + return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) && + 1 === Array.prototype.indexOf.call(arguments, arguments[1]) && + -1 === Array.prototype.indexOf.call(arguments, arguments[2]); +}; assert(func(0, true), 'func(0, true) !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js index 5935f22bae4e4b4fa06bf33cfe1087318bb0ecee..02017a929283b1b14830ee6382fa6e5fa083eeac 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js @@ -10,10 +10,10 @@ description: > greater than number of parameters) ---*/ - var func = function (a, b) { - return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) && - 3 === Array.prototype.indexOf.call(arguments, arguments[3]) && - -1 === Array.prototype.indexOf.call(arguments, arguments[4]); - }; +var func = function(a, b) { + return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) && + 3 === Array.prototype.indexOf.call(arguments, arguments[3]) && + -1 === Array.prototype.indexOf.call(arguments, arguments[4]); +}; assert(func(0, false, 0, true), 'func(0, false, 0, true) !== true'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js index dc9119d68e65d5ff21ccd9fc75048e89efc86ff8..2a13283be25a4c0c7400a3f54b81ecf64314c6f5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js @@ -9,26 +9,26 @@ description: > iterations on an Array ---*/ - var preIterVisible = false; - var arr = []; +var preIterVisible = false; +var arr = []; - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return false; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return false; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return true; - } else { - return false; - } - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return true; + } else { + return false; + } + }, + configurable: true +}); assert.sameValue(arr.indexOf(true), 1, 'arr.indexOf(true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js index 1c941586ece17b66538ce292e79cb83e2dfa1f82..475817a8e82e708406331dd819f9ccf25185f42c 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js @@ -9,26 +9,28 @@ description: > iterations on an Array-like object ---*/ - var preIterVisible = false; - var obj = { length: 2 }; +var preIterVisible = false; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return false; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return false; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return true; - } else { - return false; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return true; + } else { + return false; + } + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js index 1df5d9eb968ff6a5e2b40cdd5a7e378011b5d29b..84006e81e46fbdd957cadabb25cc2067076baec0 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js @@ -9,6 +9,6 @@ description: > property that overrides an inherited data property on an Array ---*/ - Array.prototype[0] = false; +Array.prototype[0] = false; assert.sameValue([true].indexOf(true), 0, '[true].indexOf(true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js index 440a314480bb926cb6faa15991cbbe6d3b599b76..c2c8d13507278e538ff2e2e52857bb5ea435d5f1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js @@ -9,24 +9,24 @@ description: > exception on an Array ---*/ - var accessed = false; - var arr = []; +var accessed = false; +var arr = []; - Object.defineProperty(arr, "0", { - get: function () { - throw new TypeError(); - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + throw new TypeError(); + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - accessed = true; - return true; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + accessed = true; + return true; + }, + configurable: true +}); assert.throws(TypeError, function() { - arr.indexOf(true); + arr.indexOf(true); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js index 9cae879bc51667c6fb2293aa5a79aa3c70cff1d5..8977a9893905062447058bfc4a4e803eb66252df 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js @@ -9,24 +9,26 @@ description: > exception on an Array-like object ---*/ - var accessed = false; - var obj = { length: 2 }; +var accessed = false; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - throw new TypeError(); - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + throw new TypeError(); + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - accessed = true; - return true; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + accessed = true; + return true; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.indexOf.call(obj, true); + Array.prototype.indexOf.call(obj, true); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js index 171ced904f6cfa990b44764260de1d49547aa06e..89206842622b9c82c4054c0f6b409bd586f23199 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js @@ -10,6 +10,10 @@ description: > Array-like object ---*/ - Object.prototype[0] = false; +Object.prototype[0] = false; -assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)'); +assert.sameValue(Array.prototype.indexOf.call({ + 0: true, + 1: 1, + length: 2 +}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js index 24a4076913fe9a55aa4e9125ba8827f6485eac1d..1d4332e749830ff790dac08de3dbab8e54e8325c 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js @@ -9,11 +9,11 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - Object.defineProperty(Array.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); assert.sameValue([true].indexOf(true), 0, '[true].indexOf(true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js index 22e410e7d195c3b4264358a922e10f114b8431da..4661515c4f524bb1a7f40cec112b3056f9448f29 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js @@ -10,11 +10,15 @@ description: > Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); -assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)'); +assert.sameValue(Array.prototype.indexOf.call({ + 0: true, + 1: 1, + length: 2 +}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js index 9382abf00ce99748cff5e6fecc20bde7c265b7cf..6344f1784d13d28f46b217c0c03430439890300e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js @@ -9,9 +9,9 @@ description: > data property on an Array ---*/ - Array.prototype[0] = true; - Array.prototype[1] = false; - Array.prototype[2] = "true"; +Array.prototype[0] = true; +Array.prototype[1] = false; +Array.prototype[2] = "true"; assert.sameValue([, , , ].indexOf(true), 0, '[, , , ].indexOf(true)'); assert.sameValue([, , , ].indexOf(false), 1, '[, , , ].indexOf(false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js index 52e280f1c4249f9af2c10844ac048ae6156d3222..7ac1d98104c41a1fce4717f1fa33f89d38602e1e 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js @@ -9,10 +9,16 @@ description: > data property on an Array-like object ---*/ - Object.prototype[0] = true; - Object.prototype[1] = false; - Object.prototype[2] = "true"; +Object.prototype[0] = true; +Object.prototype[1] = false; +Object.prototype[2] = "true"; -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js index ed295d20112acd5892fc80c4d8532e556a8445c1..007bbcc02ca317df68a00306051c6fa917559c26 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js @@ -9,27 +9,27 @@ description: > property on an Array ---*/ - var arr = [, , , ]; - Object.defineProperty(arr, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var arr = [, , , ]; +Object.defineProperty(arr, "0", { + get: function() { + return 0; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true +}); - Object.defineProperty(arr, "2", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(arr.indexOf(0), 0, 'arr.indexOf(0)'); assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js index 8c2c6d709b732badd1c5c2d9bdb9cd8b53524805..9402b5c0347c1f87837a1e82ba0ccfae1007e9a0 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js @@ -14,4 +14,6 @@ assert.sameValue(["0"].indexOf(0), -1, '["0"].indexOf(0)'); assert.sameValue([false].indexOf(0), -1, '[false].indexOf(0)'); assert.sameValue([undefined].indexOf(0), -1, '[undefined].indexOf(0)'); assert.sameValue([null].indexOf(0), -1, '[null].indexOf(0)'); -assert.sameValue([[]].indexOf(0), -1, '[[]].indexOf(0)'); +assert.sameValue([ + [] +].indexOf(0), -1, '[[]].indexOf(0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js index 8aad97866b78573630d77d2bca51ad35431bddea..dcce4f0170e63fcc21027e79ac0faf51c68da061 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js @@ -9,8 +9,8 @@ description: > are Object type, and they refer to the same object ---*/ - var obj1 = {}; - var obj2 = {}; - var obj3 = obj2; +var obj1 = {}; +var obj2 = {}; +var obj3 = obj2; assert.sameValue([{}, obj1, obj2].indexOf(obj3), 2, '[{}, obj1, obj2].indexOf(obj3)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js index a593c8ce4879dd77f43e59c34bec5a7eb1a97237..94a30fd4a68ec298b001134e060c2720e629e4e5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js @@ -9,26 +9,26 @@ description: > element once search value is found ---*/ - var arr = [1, 2, , 1, 2]; - var elementThirdAccessed = false; - var elementFifthAccessed = false; +var arr = [1, 2, , 1, 2]; +var elementThirdAccessed = false; +var elementFifthAccessed = false; - Object.defineProperty(arr, "2", { - get: function () { - elementThirdAccessed = true; - return 2; - }, - configurable: true - }); - Object.defineProperty(arr, "4", { - get: function () { - elementFifthAccessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + elementThirdAccessed = true; + return 2; + }, + configurable: true +}); +Object.defineProperty(arr, "4", { + get: function() { + elementFifthAccessed = true; + return 2; + }, + configurable: true +}); - arr.indexOf(2); +arr.indexOf(2); assert.sameValue(elementThirdAccessed, false, 'elementThirdAccessed'); assert.sameValue(elementFifthAccessed, false, 'elementFifthAccessed'); diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js index 1953684e56260d19269018245d3f13870f796496..002775eac9b1b58de6bc95afee70f0b35b876979 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js @@ -9,7 +9,7 @@ description: Checking this use new Array() and [] ---*/ //CHECK#1 -var x = new Array(0,1,2,3); +var x = new Array(0, 1, 2, 3); if (x.join() !== "0,1,2,3") { $ERROR('#1: x = new Array(0,1,2,3); x.join() === "0,1,2,3". Actual: ' + (x.join())); } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js index abb176f63e1be3bf27b6b09a39c8123e19b65405..9ec63f6c75e17c5b00d81292add022745e30281f 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js @@ -9,7 +9,7 @@ description: Checking this use new Array() and [] ---*/ //CHECK#1 -var x = new Array(0,1,2,3); +var x = new Array(0, 1, 2, 3); if (x.join(undefined) !== "0,1,2,3") { $ERROR('#1: x = new Array(0,1,2,3); x.join(undefined) === "0,1,2,3". Actual: ' + (x.join(undefined))); } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js index 8d8a730b0e4d2928f0e78e3dfa6436ed71c53a32..bbe9801e5bed10d394bd5449ade2550bdc458c4d 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js @@ -23,7 +23,7 @@ if (x.join() !== "") { } //CHECK#3 -x = Array(undefined,1,null,3); +x = Array(undefined, 1, null, 3); if (x.join() !== ",1,,3") { $ERROR('#3: x = Array(undefined,1,null,3); x.join() === ",1,,3". Actual: ' + (x.join())); } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js index 0b9c69bf8de35b3b5d43d93eb9236ce37ea97f75..e9b56c05337ebc436b73c6e71a7fa2032a38becf 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js @@ -16,14 +16,14 @@ obj.join = Array.prototype.join; if (obj.length !== undefined) { $ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length)); } else { - //CHECK#1 - if (obj.join() !== "") { - $ERROR('#1: var obj = {}; obj.join = Array.prototype.join; obj.join() === "". Actual: ' + (obj.join())); - } - //CHECK#2 - if (obj.length !== undefined) { - $ERROR('#2: var obj = {}; obj.join = Array.prototype.join; obj.join(); obj.length === undefined. Actual: ' + (obj.length)); - } + //CHECK#1 + if (obj.join() !== "") { + $ERROR('#1: var obj = {}; obj.join = Array.prototype.join; obj.join() === "". Actual: ' + (obj.join())); + } + //CHECK#2 + if (obj.length !== undefined) { + $ERROR('#2: var obj = {}; obj.join = Array.prototype.join; obj.join(); obj.length === undefined. Actual: ' + (obj.length)); + } } //CHECK#3 diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js index 3cd42a8324801131f363eabb4e6b379ef291ec5c..8a6fbb9809c837e55e823dc95d026baa84551ffb 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js @@ -43,7 +43,7 @@ if (obj.join() !== "") { if (obj.length !== -0) { $ERROR('#8: var obj = {}; obj.length = -0; obj.join = Array.prototype.join; obj.join(); obj.length === 0. Actual: ' + (obj.length)); } else { - if (1/obj.length !== Number.NEGATIVE_INFINITY) { + if (1 / obj.length !== Number.NEGATIVE_INFINITY) { $ERROR('#8: var obj = {}; obj.length = -0; obj.join = Array.prototype.join; obj.join(); obj.length === -0. Actual: ' + (obj.length)); } } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js index ac019fb7989db7335ffffa2adcdc82fa19464c87..729580e0422730112977a210d3eb400c6f5ffb86 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js @@ -16,26 +16,51 @@ var obj = {}; obj.join = Array.prototype.join; //CHECK#1 -obj.length = {valueOf: function() {return 3}}; +obj.length = { + valueOf: function() { + return 3 + } +}; if (obj.join() !== ",,") { $ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.join() === ",,". Actual: ' + (obj.join())); } //CHECK#2 -obj.length = {valueOf: function() {return 3}, toString: function() {return 2}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return 2 + } +}; if (obj.join() !== ",,") { $ERROR('#2: obj.length = {valueOf: function() {return 3}, toString: function() {return 2}} obj.join() === ",,". Actual: ' + (obj.join())); } //CHECK#3 -obj.length = {valueOf: function() {return 3}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return {} + } +}; if (obj.join() !== ",,") { $ERROR('#3: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.join() === ",,". Actual: ' + (obj.join())); } //CHECK#4 try { - obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + throw "error" + } + }; if (obj.join() !== ",,") { $ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.join() === ",". Actual: ' + (obj.join())); } @@ -49,20 +74,38 @@ catch (e) { } //CHECK#5 -obj.length = {toString: function() {return 2}}; +obj.length = { + toString: function() { + return 2 + } +}; if (obj.join() !== ",") { $ERROR('#5: obj.length = {toString: function() {return 2}} obj.join() === ",". Actual: ' + (obj.join())); } //CHECK#6 -obj.length = {valueOf: function() {return {}}, toString: function() {return 2}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 2 + } +} if (obj.join() !== ",") { $ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 2}} obj.join() === ",". Actual: ' + (obj.join())); } //CHECK#7 try { - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 2}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 2 + } + }; obj.join(); $ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 2}}; obj.join() throw "error". Actual: ' + (obj.join())); } @@ -74,7 +117,14 @@ catch (e) { //CHECK#8 try { - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; obj.join(); $ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.join() throw TypeError. Actual: ' + (obj.join())); } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js index 2bcd9eead5f3e0cfeea5c34c267b270ae4c9ebbb..a76e7ba020e794e34a11a15ee85dc24e09b36ddc 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js @@ -11,13 +11,13 @@ description: > ---*/ //CHECK#0 -var x = new Array(0,1,2,3); +var x = new Array(0, 1, 2, 3); if (x.join("") !== "0123") { $ERROR('#0: x = new Array(0,1,2,3); x.join("") === "0123". Actual: ' + (x.join(""))); } //CHECK#1 -x = new Array(0,1,2,3); +x = new Array(0, 1, 2, 3); if (x.join("\\") !== "0\\1\\2\\3") { $ERROR('#1: x = new Array(0,1,2,3); x.join("\\") === "0\\1\\2\\3". Actual: ' + (x.join("\\"))); } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js index 70efad97b826e931ef5bac8d2de10eb159046cb6..28925d93e313bad119cab0470cd969cb976eef2e 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js @@ -10,28 +10,53 @@ description: > String) ---*/ -var x = new Array(0,1,2,3); +var x = new Array(0, 1, 2, 3); //CHECK#1 -var object = {valueOf: function() {return "+"}}; +var object = { + valueOf: function() { + return "+" + } +}; if (x.join(object) !== "0[object Object]1[object Object]2[object Object]3") { $ERROR('#1: var object = {valueOf: function() {return "+"}}; x.join(object) === "0[object Object]1[object Object]2[object Object]3". Actual: ' + (x.join(object))); } //CHECK#2 -var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return "*" + } +}; if (x.join(object) !== "0*1*2*3") { $ERROR('#2: var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object))); } //CHECK#3 -var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return {} + } +}; if (x.join(object) !== "0+1+2+3") { $ERROR('#3: var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; x.join(object) === "0+1+2+3". Actual: ' + (x.join(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "*" + } + }; if (x.join(object) !== "0*1*2*3") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object))); } @@ -45,20 +70,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "*"}}; +var object = { + toString: function() { + return "*" + } +}; if (x.join(object) !== "0*1*2*3") { $ERROR('#5: var object = {toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "*"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "*" + } +} if (x.join(object) !== "0*1*2*3") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "+" + }, + toString: function() { + throw "error" + } + }; x.join(object); $ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; x.join(object) throw "error". Actual: ' + (x.join(object))); } @@ -70,7 +113,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; x.join(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x.join(object) throw TypeError. Actual: ' + (x.join(object))); } @@ -82,12 +132,16 @@ catch (e) { //CHECK#9 try { - var object = {toString: function() {throw "error"}}; - [].join(object); - $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object))); + var object = { + toString: function() { + throw "error" + } + }; + [].join(object); + $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object))); } catch (e) { - if (e !== "error") { - $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e)); - } + if (e !== "error") { + $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e)); + } } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js index f6a4966557fa0f7ccbb6dc1dee233216bd7bb407..e90ed6ffe7e73f837d18c1b76be95856f296d186 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js @@ -11,13 +11,13 @@ description: > ---*/ //CHECK#0 -var x = new Array("","",""); +var x = new Array("", "", ""); if (x.join("") !== "") { $ERROR('#0: var x = new Array("","",""); x.join("") === "". Actual: ' + (x.join(""))); } //CHECK#1 -var x = new Array("\\","\\","\\"); +var x = new Array("\\", "\\", "\\"); if (x.join("\\") !== "\\\\\\\\\\") { $ERROR('#1: var x = new Array("\\","\\","\\"); x.join("\\") === "\\\\\\\\\\". Actual: ' + (x.join("\\"))); } @@ -29,31 +29,31 @@ if (x.join("&") !== "&&&&&") { } //CHECK#3 -var x = new Array(true,true,true); +var x = new Array(true, true, true); if (x.join() !== "true,true,true") { - $ERROR('#3: var x = new Array(true,true,true); x.join(true,true,true) === "true,true,true". Actual: ' + (x.join(true,true,true))); + $ERROR('#3: var x = new Array(true,true,true); x.join(true,true,true) === "true,true,true". Actual: ' + (x.join(true, true, true))); } //CHECK#4 -var x = new Array(null,null,null); +var x = new Array(null, null, null); if (x.join() !== ",,") { - $ERROR('#4: var x = new Array(null,null,null); x.join(null,null,null) === ",,". Actual: ' + (x.join(null,null,null))); + $ERROR('#4: var x = new Array(null,null,null); x.join(null,null,null) === ",,". Actual: ' + (x.join(null, null, null))); } //CHECK#5 -var x = new Array(undefined,undefined,undefined); +var x = new Array(undefined, undefined, undefined); if (x.join() !== ",,") { - $ERROR('#5: var x = new Array(undefined,undefined,undefined); x.join(undefined,undefined,undefined) === ",,". Actual: ' + (x.join(undefined,undefined,undefined))); + $ERROR('#5: var x = new Array(undefined,undefined,undefined); x.join(undefined,undefined,undefined) === ",,". Actual: ' + (x.join(undefined, undefined, undefined))); } //CHECK#6 -var x = new Array(Infinity,Infinity,Infinity); +var x = new Array(Infinity, Infinity, Infinity); if (x.join() !== "Infinity,Infinity,Infinity") { - $ERROR('#6: var x = new Array(Infinity,Infinity,Infinity); x.join(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.join(Infinity,Infinity,Infinity))); + $ERROR('#6: var x = new Array(Infinity,Infinity,Infinity); x.join(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.join(Infinity, Infinity, Infinity))); } //CHECK#7 -var x = new Array(NaN,NaN,NaN); +var x = new Array(NaN, NaN, NaN); if (x.join() !== "NaN,NaN,NaN") { - $ERROR('#7: var x = new Array(NaN,NaN,NaN); x.join(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.join(NaN,NaN,NaN))); + $ERROR('#7: var x = new Array(NaN,NaN,NaN); x.join(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.join(NaN, NaN, NaN))); } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js index 863cead865714c8124d8de315c35b688153578fa..4dc0ff12a1ee8bc61c7b1ede55d13e71f1ff942f 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js @@ -9,21 +9,39 @@ description: If Type(argument) is Object, evaluate ToPrimitive(argument, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "+"}}; +var object = { + valueOf: function() { + return "+" + } +}; var x = new Array(object); if (x.join() !== "[object Object]") { $ERROR('#1: var object = {valueOf: function() {return "+"}} var x = new Array(object); x.join() === "[object Object]". Actual: ' + (x.join())); } //CHECK#2 -var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return "*" + } +}; var x = new Array(object); if (x.join() !== "*") { $ERROR('#2: var object = {valueOf: function() {return "+"}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join())); } //CHECK#3 -var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return {} + } +}; var x = new Array(object); if (x.join() !== "+") { $ERROR('#3: var object = {valueOf: function() {return "+"}, toString: function() {return {}}} var x = new Array(object); x.join() === "+". Actual: ' + (x.join())); @@ -31,7 +49,14 @@ if (x.join() !== "+") { //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "*" + } + }; var x = new Array(object); if (x.join() !== "*") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join())); @@ -46,14 +71,25 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "*"}}; +var object = { + toString: function() { + return "*" + } +}; var x = new Array(object); if (x.join() !== "*") { $ERROR('#5: var object = {toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join())); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "*"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "*" + } +} var x = new Array(object); if (x.join() !== "*") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join())); @@ -61,7 +97,14 @@ if (x.join() !== "*") { //CHECK#7 try { - var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "+" + }, + toString: function() { + throw "error" + } + }; var x = new Array(object); x.join(); $ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}} var x = new Array(object); x.join() throw "error". Actual: ' + (x.join())); @@ -74,7 +117,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var x = new Array(object); x.join(); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}} var x = new Array(object); x.join() throw TypeError. Actual: ' + (x.join())); diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js index e8e7817939e7333c655fd7300281afdb09b28b48..90ecc5cffffe55d92f597b1930b34b6174ea4b3b 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js @@ -22,7 +22,9 @@ if (x.join() !== "0,1") { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.join = Array.prototype.join; -x = {0:0}; +x = { + 0: 0 +}; if (x.join() !== "0,1") { $ERROR('#2: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.join = Array.prototype.join; x = {0:0}; x.join() === "0,1". Actual: ' + (x.join())); } diff --git a/test/built-ins/Array/prototype/keys/iteration-mutable.js b/test/built-ins/Array/prototype/keys/iteration-mutable.js index c20b26ee956224f3cf0d1daaa810732a71abb07c..d2a2ecdbbb9e03c5fa1ff4d3701d27194acc18ec 100644 --- a/test/built-ins/Array/prototype/keys/iteration-mutable.js +++ b/test/built-ins/Array/prototype/keys/iteration-mutable.js @@ -20,7 +20,7 @@ var result; array.push('a'); result = iterator.next(); -assert.sameValue(result.done, false , 'First result `done` flag'); +assert.sameValue(result.done, false, 'First result `done` flag'); assert.sameValue(result.value, 0, 'First result `value`'); result = iterator.next(); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js index 39fc4df94e90d56a360cc3d9d1a15f00732ace67..a1048adc8f9150c288902776eb7483f079d7f81d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js @@ -9,5 +9,5 @@ description: Array.prototype.lastIndexOf applied to undefined throws a TypeError assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(undefined); + Array.prototype.lastIndexOf.call(undefined); }); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js index f2f1afb8b27c96387195ae404872358f7018f44f..ba6aec098fbf4d82fd816eb6d797235dd2b72d67 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js @@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-10 description: Array.prototype.lastIndexOf applied to the Math object ---*/ - Math.length = 2; - Math[1] = 100; +Math.length = 2; +Math[1] = 100; assert.sameValue(Array.prototype.lastIndexOf.call(Math, 100), 1, 'Array.prototype.lastIndexOf.call(Math, 100)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js index acfcd13a2a84fb4e8f4148d1cf6f01f23c17c043..ed42913de946d2f77a260956ee119bfbd55ca839 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-11 description: Array.prototype.lastIndexOf applied to Date object ---*/ - var obj = new Date(); - obj.length = 2; - obj[1] = true; +var obj = new Date(); +obj.length = 2; +obj[1] = true; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js index 54d128eb5fdc1641290f066d2d8daa836fe65f04..26b2c149209deac1a39fb96420442e5376b3f81d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-12 description: Array.prototype.lastIndexOf applied to RegExp object ---*/ - var obj = new RegExp("afdasf"); - obj.length = 100; - obj[1] = "afdasf"; +var obj = new RegExp("afdasf"); +obj.length = 100; +obj[1] = "afdasf"; assert.sameValue(Array.prototype.lastIndexOf.call(obj, "afdasf"), 1, 'Array.prototype.lastIndexOf.call(obj, "afdasf")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js index e6a2d816687a6e503023a563ec0c056d588ce42f..8ac92c38520261b5432fc0742d73626fa8707707 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js @@ -7,9 +7,9 @@ es5id: 15.4.4.15-1-13 description: Array.prototype.lastIndexOf applied to the JSON object ---*/ - var targetObj = {}; +var targetObj = {}; - JSON[3] = targetObj; - JSON.length = 5; +JSON[3] = targetObj; +JSON.length = 5; assert.sameValue(Array.prototype.lastIndexOf.call(JSON, targetObj), 3, 'Array.prototype.lastIndexOf.call(JSON, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js index 258d52b25c970c9bf9c17abcbf16734fd5177f4e..13cd332841e9c472c546424ad29e34c2d048682a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-14 description: Array.prototype.lastIndexOf applied to Error object ---*/ - var obj = new SyntaxError(); - obj.length = 2; - obj[1] = Infinity; +var obj = new SyntaxError(); +obj.length = 2; +obj[1] = Infinity; assert.sameValue(Array.prototype.lastIndexOf.call(obj, Infinity), 1, 'Array.prototype.lastIndexOf.call(obj, Infinity)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js index 717e839b3640144f51b4564d1273507ce3dd0861..4d0dcb42a69bc2313cab426a08bcf7a52ca93972 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-15 description: Array.prototype.lastIndexOf applied to the Arguments object ---*/ - var obj = (function fun() { - return arguments; - }(1, 2, 3)); +var obj = (function fun() { + return arguments; +}(1, 2, 3)); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), 1, 'Array.prototype.lastIndexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js index d09b72ba6378d95e7c309aae8811377fcd6f9cc1..ee2d9c1dc9a4fdd4c5f146c4385302b6f6977152 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js @@ -9,5 +9,5 @@ description: Array.prototype.lastIndexOf applied to null throws a TypeError assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(null); + Array.prototype.lastIndexOf.call(null); }); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js index 07823a7430b784983152a63d3154d592802a5b70..80339e81ed56a6711955c84a86a4212ee0096cb4 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-3 description: Array.prototype.lastIndexOf applied to boolean primitive ---*/ - Boolean.prototype[1] = true; - Boolean.prototype.length = 2; +Boolean.prototype[1] = true; +Boolean.prototype.length = 2; assert.sameValue(Array.prototype.lastIndexOf.call(true, true), 1, 'Array.prototype.lastIndexOf.call(true, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js index d04aef167eda078a9286c145e153fb83ddf4d51e..6a71084ce9342729716f650dbdc84b3ad718fff8 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-4 description: Array.prototype.lastIndexOf applied to Boolean object ---*/ - var obj = new Boolean(false); - obj.length = 2; - obj[1] = true; +var obj = new Boolean(false); +obj.length = 2; +obj[1] = true; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js index 1119ac1aaf4d124b40846d56e9aadad1e4310ef8..840ae225c28e46546b6459ccf4341feb465b8bbd 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js @@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-5 description: Array.prototype.lastIndexOf applied to number primitive ---*/ - Number.prototype[1] = isNaN; - Number.prototype.length = 2; +Number.prototype[1] = isNaN; +Number.prototype.length = 2; assert.sameValue(Array.prototype.lastIndexOf.call(5, isNaN), 1, 'Array.prototype.lastIndexOf.call(5, isNaN)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js index 5e96b816e22be47b326b3145257c0b11a3ceec50..e35973cd83895084e3cbab6eb59bcd6d0e43321e 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-6 description: Array.prototype.lastIndexOf applied to Number object ---*/ - var obj = new Number(-3); - obj.length = 2; - obj[1] = true; +var obj = new Number(-3); +obj.length = 2; +obj[1] = true; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js index d623c9beab92b8060ac65ef6b16700c9d1fa3548..9983969957ec0cf967049e89fc3e04d48e85b03e 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js @@ -7,6 +7,6 @@ es5id: 15.4.4.15-1-8 description: Array.prototype.lastIndexOf applied to String object ---*/ - var obj = new String("undefined"); +var obj = new String("undefined"); assert.sameValue(Array.prototype.lastIndexOf.call(obj, "f"), 4, 'Array.prototype.lastIndexOf.call(obj, "f")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js index 7372b6b1f7b06582f0d47fcc7a19d49cb05a941d..6d69baa7c3fb82117517234470d72fbedf612674 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js @@ -7,9 +7,9 @@ es5id: 15.4.4.15-1-9 description: Array.prototype.lastIndexOf applied to Function object ---*/ - var obj = function (a, b) { - return a + b; - }; - obj[1] = true; +var obj = function(a, b) { + return a + b; +}; +obj[1] = true; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js index 5da3312da3146d098dfdc9f91996ed9816c1893d..09c37e87c75ae291a9694a5ec9a2ace1f1808242 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js @@ -9,7 +9,11 @@ description: > Array-like object ---*/ - var obj = { 1: null, 2: undefined, length: 2 }; +var obj = { + 1: null, + 2: undefined, + length: 2 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), 1, 'Array.prototype.lastIndexOf.call(obj, null)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), -1, 'Array.prototype.lastIndexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js index a77b62b12493b7d881fcf17157d378e7ae20aaa9..8a17af9c010736e6c29f0e95d70ad4cd44fdb79c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js @@ -9,20 +9,20 @@ description: > property on an Array-like object ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = 1; - child[2] = 2; +var child = new Con(); +child[1] = 1; +child[2] = 2; assert.sameValue(Array.prototype.lastIndexOf.call(child, 1), 1, 'Array.prototype.lastIndexOf.call(child, 1)'); assert.sameValue(Array.prototype.lastIndexOf.call(child, 2), -1, 'Array.prototype.lastIndexOf.call(child, 2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js index 0ae767b6f09541609f32e82126995cdcb35fae0d..ab2b9fdd70bb35f4fc91ae9feeab503a74bedc42 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js @@ -9,10 +9,12 @@ description: > without a get function on an Array-like object ---*/ - var obj = { 0: 1 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 1 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js index 98cf2147a23a6d852ab42e0388c99f49e913cd9a..fcd9b41d156410cad4786dc07d3ec9d1a7d4fe69 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js @@ -10,17 +10,19 @@ description: > property on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 20; + }, + configurable: true +}); - var obj = { 1: 1 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 1: 1 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js index 59045d59d4c87f77801c11b084cbfb2f8a8f1017..6f379e88618969376fa3533a5f7ee76490eb70dc 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js @@ -9,16 +9,16 @@ description: > property without a get function on an Array-like object ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = true; +var child = new Con(); +child[0] = true; assert.sameValue(Array.prototype.lastIndexOf.call(child, true), -1, 'Array.prototype.lastIndexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js index f88b2b3c847acf294842a668adfe6f366bde343c..f47f32dc700872498410682be1deb0a01f5d991c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js @@ -9,6 +9,9 @@ description: > Array-like object ---*/ - var obj = { 0: null, 1: undefined }; +var obj = { + 0: null, + 1: undefined +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), -1, 'Array.prototype.lastIndexOf.call(obj, null)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js index 02ea04ddd98da6dbf6d626ff6ef6a232cbf02599..62532d79aa383db0e8217c40cc44689ff757880a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js @@ -9,11 +9,11 @@ description: > implements its own property get method ---*/ - var targetObj = function () { }; - var func = function (a, b) { - arguments[2] = function () { }; - return Array.prototype.lastIndexOf.call(arguments, targetObj) === 1 && - Array.prototype.lastIndexOf.call(arguments, arguments[2]) === -1; - }; +var targetObj = function() {}; +var func = function(a, b) { + arguments[2] = function() {}; + return Array.prototype.lastIndexOf.call(arguments, targetObj) === 1 && + Array.prototype.lastIndexOf.call(arguments, arguments[2]) === -1; +}; assert(func(0, targetObj), 'func(0, targetObj) !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js index 6cf87f6445a54b727a8d0ad1e7684ba21756fc8a..f2a6682fe8c6482e793baf8fdf72afd4706f8f3a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js @@ -9,9 +9,9 @@ description: > implements its own property get method ---*/ - var str = new String("012"); +var str = new String("012"); - String.prototype[3] = "3"; +String.prototype[3] = "3"; assert.sameValue(Array.prototype.lastIndexOf.call(str, "2"), 2, 'Array.prototype.lastIndexOf.call(str, "2")'); assert.sameValue(Array.prototype.lastIndexOf.call(str, "3"), -1, 'Array.prototype.lastIndexOf.call(str, "3")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js index 89565918b63e9fba0b7acc285a73f3e5565f8422..e5542f0ed62ec4beeaf19406cc8b8932741d7dd6 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js @@ -9,11 +9,11 @@ description: > implements its own property get method ---*/ - var obj = function (a, b) { - return a + b; - }; - obj[1] = "b"; - obj[2] = "c"; +var obj = function(a, b) { + return a + b; +}; +obj[1] = "b"; +obj[2] = "c"; assert.sameValue(Array.prototype.lastIndexOf.call(obj, obj[1]), 1, 'Array.prototype.lastIndexOf.call(obj, obj[1])'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, obj[2]), -1, 'Array.prototype.lastIndexOf.call(obj, obj[2])'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js index 651492954107624720aaebd17a831f6c0e02fbcc..134cd566a4846f5195f32a7c1a0fd66205a7d021 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js @@ -9,9 +9,9 @@ description: > Array ---*/ - var targetObj = {}; +var targetObj = {}; - Array.prototype[2] = targetObj; +Array.prototype[2] = targetObj; assert.sameValue([0, targetObj].lastIndexOf(targetObj), 1, '[0, targetObj].lastIndexOf(targetObj)'); assert.sameValue([0, 1].lastIndexOf(targetObj), -1, '[0, 1].lastIndexOf(targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js index b500b9f10e9b1606ddc82f16560851c5dcaefe1b..5d2a8bbf1f697887e1e52ec0772b796520eb427a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js @@ -9,13 +9,15 @@ description: > overrides an inherited data property on an Array-like object ---*/ - var proto = {length: 0}; +var proto = { + length: 0 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[1] = child; +var child = new Con(); +child.length = 2; +child[1] = child; assert.sameValue(Array.prototype.lastIndexOf.call(child, child), 1, 'Array.prototype.lastIndexOf.call(child, child)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js index a13cc99a93b7ec9c09b622b6d16c2d85e4be75ed..0a8f124f3a05e8642922e51711868331d12717ff 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js @@ -9,10 +9,10 @@ description: > that overrides an inherited data property on an Array ---*/ - var targetObj = {}; - var arrProtoLen; +var targetObj = {}; +var arrProtoLen; - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; assert.sameValue([0, targetObj, 2].lastIndexOf(targetObj), 1, '[0, targetObj, 2].lastIndexOf(targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js index fa298751004e211929f19d7c7a798f5e1f6df308..33e9075e608bc34604f94b8cc8519bce5f1eba8f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js @@ -9,23 +9,23 @@ description: > overrides an inherited accessor property on an Array-like object ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 0; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 0; + }, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - child[1] = null; +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); +child[1] = null; assert.sameValue(Array.prototype.lastIndexOf.call(child, null), 1, 'Array.prototype.lastIndexOf.call(child, null)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js index bfe82a3ac78c48c2312dff55ebe74e016c5a09e2..05900f832f485c163e8c8618687a9b388bf357ef 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js @@ -9,14 +9,16 @@ description: > property on an Array-like object ---*/ - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = "x"; - child[2] = "y"; +var child = new Con(); +child[1] = "x"; +child[2] = "y"; assert.sameValue(Array.prototype.lastIndexOf.call(child, "x"), 1, 'Array.prototype.lastIndexOf.call(child, "x")'); assert.sameValue(Array.prototype.lastIndexOf.call(child, "y"), -1, 'Array.prototype.lastIndexOf.call(child, "y")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js index d5b44311572d8652d56f0545f7571f091ed97b47..4c38da5be212623253ada12a68ba39313c9dcd86 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js @@ -9,14 +9,17 @@ description: > an Array-like object ---*/ - var obj = { 1: true, 2: false }; +var obj = { + 1: true, + 2: false +}; - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js index 61f659a699b6636e844a534d8d25e13e4e754124..ef7ea0a5192eb7731b87b907174ffcf22c1b3075 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js @@ -9,19 +9,21 @@ description: > that overrides an inherited data property on an Array-like object ---*/ - var proto = { length: 0 }; +var proto = { + length: 0 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = eval; +var child = new Con(); +child[1] = eval; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(child, eval), 1, 'Array.prototype.lastIndexOf.call(child, eval)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js index 3e0695eb830d053c51b10ed124f2730686737ef0..9bc7a8b5bd7e33f3cb88674e57a257383672c6c5 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js @@ -10,25 +10,25 @@ description: > object ---*/ - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 0; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 0; + }, + configurable: true +}); - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = true; +var child = new Con(); +child[1] = true; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(child, true), 1, 'Array.prototype.lastIndexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js index 374141ad0b61ff38887c04a6f0ef21d760623636..1141fd90a14a7502a86cd382a2166af62bc2cc38 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js @@ -7,6 +7,10 @@ es5id: 15.4.4.15-3-1 description: Array.prototype.lastIndexOf - value of 'length' is undefined ---*/ - var obj = { 0: 1, 1: 1, length: undefined }; +var obj = { + 0: 1, + 1: 1, + length: undefined +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js index c6da7633955440520e2bc6e1e642ee253e86c3a7..761fd85c13f209ce59f01e4004a87e7903d47f68 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js @@ -9,6 +9,9 @@ description: > is NaN) ---*/ - var obj = { 0: 0, length: NaN }; +var obj = { + 0: 0, + length: NaN +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), -1, 'Array.prototype.lastIndexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js index f0838068e5b2f599b7a16d766abf22e7c436179d..dae527da98fe7ee4e669c32b6edee42ec1c27659 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js @@ -9,7 +9,11 @@ description: > containing positive number ---*/ - var obj = {1: true, 2: false, length: "2"}; +var obj = { + 1: true, + 2: false, + length: "2" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js index 6811ff35d8196d01641d192daae68adf4dbacd75..99df97b76d22ec3db8a79816f29c7a372c86b500 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js @@ -9,7 +9,11 @@ description: > containing negative number ---*/ - var obj = {1: null, 2: undefined, length: "-4294967294"}; +var obj = { + 1: null, + 2: undefined, + length: "-4294967294" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), -1, 'Array.prototype.lastIndexOf.call(obj, null)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), -1, 'Array.prototype.lastIndexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js index afdcf21df2c7abd695e697050ea27d7ff8e4d421..394744d69384ef2cfd4644c07bf9ca7be9c8baf7 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js @@ -9,7 +9,11 @@ description: > containing a decimal number ---*/ - var obj = { 4: 4, 5: 5, length: "5.512345" }; +var obj = { + 4: 4, + 5: 5, + length: "5.512345" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 4), 4, 'Array.prototype.lastIndexOf.call(obj, 4)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 5), -1, 'Array.prototype.lastIndexOf.call(obj, 5)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js index a49316794db4c6c5a959a128d044456d725ee202..3751aeb805d095ecd3a7cdedb744ea3994eeec44 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js @@ -9,6 +9,10 @@ description: > containing -Infinity ---*/ - var objThree = { 0: true, 1: true, length: "-Infinity" }; +var objThree = { + 0: true, + 1: true, + length: "-Infinity" +}; assert.sameValue(Array.prototype.lastIndexOf.call(objThree, true), -1, 'Array.prototype.lastIndexOf.call(objThree, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js index 281305e13f2f69c771265eeb38eb0e1c5fe0285f..cb669fc0167cabd149eaf7276ac056c955c3fd99 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js @@ -9,7 +9,11 @@ description: > containing an exponential number ---*/ - var obj = {229: 229, 230: 2.3E2, length: "2.3E2"}; +var obj = { + 229: 229, + 230: 2.3E2, + length: "2.3E2" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 229), 229, 'Array.prototype.lastIndexOf.call(obj, 229)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2.3E2), -1, 'Array.prototype.lastIndexOf.call(obj, 2.3E2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js index 6c0e5e388d761a97fb376f9b0c5bfc5f9a302205..653a8ea366d5fa1d3890729969741525d1af4dbe 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js @@ -9,7 +9,11 @@ description: > is able to be converted into hex number ---*/ - var obj = { 2573: 2573, 2574: 0x000A0E, length: "0x000A0E" }; +var obj = { + 2573: 2573, + 2574: 0x000A0E, + length: "0x000A0E" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2573), 2573, 'Array.prototype.lastIndexOf.call(obj, 2573)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0x000A0E), -1, 'Array.prototype.lastIndexOf.call(obj, 0x000A0E)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js index c603231587b2f76f01f1a60903eed05adac6e2d7..345e54e1461a27ae12c383ac4cc5afb7d159c254 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js @@ -9,7 +9,11 @@ description: > containing a number with leading zeros ---*/ - var obj = { 1: 1, 2: 2, length: "0002.0" }; +var obj = { + 1: 1, + 2: 2, + length: "0002.0" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js index a56ab67a71c72243564e9701ea57ecc8431d1a2c..76161d8da053de90e229fea45fd7cf1fbbd9ae5d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js @@ -9,7 +9,10 @@ description: > can't convert to a number ---*/ - var targetObj = new String("123abc123"); - var obj = { 0: targetObj, length: "123abc123" }; +var targetObj = new String("123abc123"); +var obj = { + 0: targetObj, + length: "123abc123" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js index 419be48569e3919f17a8611f3f2cac1b9f352a7c..bbbf635c8b0224feac6548f9717602faccda886f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js @@ -9,23 +9,23 @@ description: > has an own toString method ---*/ - // objects inherit the default valueOf() method from Object - // that simply returns itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +// objects inherit the default valueOf() method from Object +// that simply returns itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. - var targetObj = this; - var obj = { - 1: targetObj, - 2: 2, +var targetObj = this; +var obj = { + 1: targetObj, + 2: 2, - length: { - toString: function () { - return '2'; - } - } - }; + length: { + toString: function() { + return '2'; + } + } +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js index 16314cad2ccd3958766c279366b6e4612fc810af..1f603c3804f1c747038d4d8655372588110d8236 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js @@ -9,7 +9,11 @@ description: > boolean (value is true) ---*/ - var obj = { 0: 0, 1: 1, length: true }; +var obj = { + 0: 0, + 1: 1, + length: true +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js index 56d05e1a125e4951638109ee68cf8922164d11b9..51df32323913e014ae871c1055090ba05a81dc25 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js @@ -9,17 +9,17 @@ description: > has an own valueOf method ---*/ - //valueOf method will be invoked first, since hint is Number - var obj = { - 1: true, - 2: 2, +//valueOf method will be invoked first, since hint is Number +var obj = { + 1: true, + 2: 2, - length: { - valueOf: function () { - return 2; - } - } - }; + length: { + valueOf: function() { + return 2; + } + } +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js index d568434fa9e8c076691890e4108d274305945e82..4ffe9d3bfd4807eff8730897e24175a765e03eda 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js @@ -10,24 +10,24 @@ description: > returns a string ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var targetObj = this; - var obj = { - 1: targetObj, - length: { - toString: function () { - toStringAccessed = true; - return '3'; - }, +var targetObj = this; +var obj = { + 1: targetObj, + length: { + toString: function() { + toStringAccessed = true; + return '3'; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js index 9624defeb898e4a9ee09f6a5e7412c0e3432d11b..69aa3c8f9e1457f78aaa0f2174e92d53bf12155d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js @@ -10,26 +10,26 @@ description: > return primitive values ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var obj = { - 1: true, - length: { - toString: function () { - toStringAccessed = true; - return {}; - }, +var obj = { + 1: true, + length: { + toString: function() { + toStringAccessed = true; + return {}; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(obj, true); + Array.prototype.lastIndexOf.call(obj, true); }); assert(toStringAccessed, 'toStringAccessed'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js index a69b33edfc53467f5096d2cdfaa61706eb58d4c3..178517a413682c02f4dbcf8fe28f4fa9a5c5075d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js @@ -10,29 +10,29 @@ description: > valueOf methods ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.toString = function () { - toStringAccessed = true; - return 2; - }; +var child = new Con(); +child.toString = function() { + toStringAccessed = true; + return 2; +}; - var obj = { - 1: child, - length: child - }; +var obj = { + 1: child, + length: child +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, child), 1, 'Array.prototype.lastIndexOf.call(obj, child)'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js index 31ffe0ed733b393c56bf0f3dffd9ad25b0695210..08763b59058678af6d58182b4a52627a44b6d59c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js @@ -9,7 +9,11 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - var obj = { 122: true, 123: false, length: 123.5 }; +var obj = { + 122: true, + 123: false, + length: 123.5 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 122, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js index 12e37f63be4aa1bafedb34bb5a220c38570a1ed0..fe78a4e2dba2c12b94cd00ccb71e3f9321735536 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js @@ -9,7 +9,11 @@ description: > non-integer ---*/ - var obj = { 1: true, 2: false, length: -4294967294.5 }; +var obj = { + 1: true, + 2: false, + length: -4294967294.5 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), -1, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js index a28fbc7465221365c9c123251f243bed830cc05f..4768053245a969dac9df98898f10c566f16d428d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js @@ -9,12 +9,12 @@ description: > (2^32) ---*/ - var targetObj = {}; - var obj = { - 0: targetObj, - 4294967294: targetObj, - 4294967295: targetObj, - length: 4294967296 - }; +var targetObj = {}; +var obj = { + 0: targetObj, + 4294967294: targetObj, + 4294967295: targetObj, + length: 4294967296 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 4294967295, 'verify length is 4294967296 finally'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js index 069585fb210b711e5eb9c6a0f700c80d3b53ea9f..98bb896dffa1382b997fd8be88cf992a59d28bf9 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js @@ -9,6 +9,9 @@ description: > is 0) ---*/ - var obj = { 0: "undefined", length: 0 }; +var obj = { + 0: "undefined", + length: 0 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, "undefined"), -1, 'Array.prototype.lastIndexOf.call(obj, "undefined")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js index 1c8a99b9cf0e13c1a51dbc76a9a5e29b0abb7c9e..5e6cedae92a99a1a821563aec28dcf9cbfc87cdc 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js @@ -9,6 +9,9 @@ description: > is -0) ---*/ - var obj = { 0: true, length: -0 }; +var obj = { + 0: true, + length: -0 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), -1, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js index 927ee3daa2a1cc4634ab67e2994d87dff1cded14..60a1721895159c4e57ff5f6a8ad250a0363f4618 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js @@ -9,6 +9,9 @@ description: > is +0) ---*/ - var obj = { 0: +0, length: +0 }; +var obj = { + 0: +0, + length: +0 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, +0), -1, 'Array.prototype.lastIndexOf.call(obj, +0)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js index 8aec6c2c1dc0ca619c6fb8d37fef87aaff621121..5f097dbb01a20085729a3b7133f9780b40bd22e2 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js @@ -9,7 +9,11 @@ description: > is a positive number) ---*/ - var obj = { 99: true, 100: 100, length: 100 }; +var obj = { + 99: true, + 100: 100, + length: 100 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 99, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 100), -1, 'Array.prototype.lastIndexOf.call(obj, 100)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js index ff7fbc0d2835f06b1702ca4c8ae382fdca4c927b..8f912984973fed598351338f4dc7501e3f37d070 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js @@ -9,7 +9,11 @@ description: > is a negative number) ---*/ - var obj = { 4: -Infinity, 5: Infinity, length: 5 - Math.pow(2, 32) }; +var obj = { + 4: -Infinity, + 5: Infinity, + length: 5 - Math.pow(2, 32) +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, -Infinity), -1, 'Array.prototype.lastIndexOf.call(obj, -Infinity)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, Infinity), -1, 'Array.prototype.lastIndexOf.call(obj, Infinity)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js index 39856e71324eb01a7617d91e08ce8c2f11786b2b..b9387834165f75d82872c47ce10a9e8ef4995a5b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js @@ -9,6 +9,9 @@ description: > is -Infinity) ---*/ - var obj = { 0: 0, length: -Infinity }; +var obj = { + 0: 0, + length: -Infinity +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), -1, 'Array.prototype.lastIndexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js index f073190b94b8e9fe6e5cc1be324cd66c427c931e..f6fc912532fd6f66cff0f9f7651b75088995fa5c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js @@ -9,6 +9,6 @@ description: > array) ---*/ - var i = [].lastIndexOf(42); +var i = [].lastIndexOf(42); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js index 72514438f6a9382779814c427450f42fccd3601c..1899442e7a92a622192cb2346019f2a9245b2348 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js @@ -7,7 +7,11 @@ es5id: 15.4.4.15-4-10 description: Array.prototype.lastIndexOf - 'length' is a number of value -6e-1 ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: -6e-1 }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: -6e-1 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js index fdf1b598e2110301aa39e073cded450a6f68768f..cec59b134a02c4080c01e0c2a9950be7f119bfb2 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js @@ -7,7 +7,11 @@ es5id: 15.4.4.15-4-11 description: Array.prototype.lastIndexOf - 'length' is an empty string ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: "" }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: "" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js index ced61de4cc87366c4f94e3ca489d88d36e0a9129..5ed7ad2496523e6a60bb0b2ab2bb3eda6a8fbc45 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js @@ -9,7 +9,9 @@ description: > overridden to null (type conversion)) ---*/ - var i = Array.prototype.lastIndexOf.call({length: null}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: null +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js index 52e2fa68c1e0b962e63be99ed13dc754d6e0c2ed..2004e36780bc62ad0ae114cbef27504b35a79493 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js @@ -9,7 +9,9 @@ description: > overridden to false (type conversion)) ---*/ - var i = Array.prototype.lastIndexOf.call({length: false}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: false +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js index 592a69274d7dbd6b73935b5508397b5646ab3c84..b2babee1dd0ed3a3a1d36191dfff9a97ef1056d6 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js @@ -9,12 +9,15 @@ description: > 'array' with length 0 ) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - var i = Array.prototype.lastIndexOf.call({length: 0}, 1); +function foo() {} +var f = new foo(); +f.length = 0; + +var i = Array.prototype.lastIndexOf.call({ + length: 0 +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js index f664184bc1680c61051da0f1b20b59515302b8aa..9e72015657a1746283b72e6aa47644ebb2046f66 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js @@ -9,7 +9,9 @@ description: > overridden to '0' (type conversion)) ---*/ - var i = Array.prototype.lastIndexOf.call({length: '0'}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: '0' +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js index 2a81100b76b1d97977d3727749c2bd83098130dc..1362e14aed0d630e6d38d8da63bd2045d988c153 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js @@ -9,7 +9,13 @@ description: > (subclassed Array, length overridden with obj with valueOf) ---*/ - var i = Array.prototype.lastIndexOf.call({length: { valueOf: function () { return 0;}}}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: { + valueOf: function() { + return 0; + } + } +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js index cf238e3e2a590e760dfed5fa72bd471b8fde1d43..57850a0270d27e20acf089ef4f3a13055da7b26c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js @@ -9,19 +9,30 @@ description: > is object overridden with obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - var i = Array.prototype.lastIndexOf.call({length: { toString: function () { return '0';}}}, 1); +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +var i = Array.prototype.lastIndexOf.call({ + length: { + toString: function() { + return '0'; + } + } +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js index 90fdbad630c4e72bacd91e02feca8a8a0aa4a69d..ae98ed9f0f84f6affad502995ea209250eee317c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js @@ -9,20 +9,22 @@ description: > an empty array) ---*/ - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - var i = Array.prototype.lastIndexOf.call({length: [ ]}, 1); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. +var i = Array.prototype.lastIndexOf.call({ + length: [] +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js index 6ebf6b4eb2392d1343edeb899f981f5c3f7ad38b..7f758adeccb697f2edbf30b3060ebeb82f152067 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js @@ -7,7 +7,11 @@ es5id: 15.4.4.15-4-9 description: Array.prototype.lastIndexOf - 'length' is a number of value 0.1 ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: 0.1 }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: 0.1 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js index 44f940354908f9b3db76ee9bdb032207411b2428..f632c5bf9b15377373014580546afe3314d30572 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.15-5-1 description: Array.prototype.lastIndexOf when fromIndex is string ---*/ - var a = new Array(0,1,1); +var a = new Array(0, 1, 1); -assert.sameValue(a.lastIndexOf(1,"1"), 1, '"1" resolves to 1'); -assert.sameValue(a.lastIndexOf(1,"one"), -1, 'NaN string resolves to 01'); +assert.sameValue(a.lastIndexOf(1, "1"), 1, '"1" resolves to 1'); +assert.sameValue(a.lastIndexOf(1, "one"), -1, 'NaN string resolves to 01'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js index 6a9a11c1972be3aead56c75efe7e1d07d3b74c29..3e6778af6665b100e52c5299a4defdc539aeefc9 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js @@ -9,7 +9,7 @@ description: > (value is positive number) ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, 1.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, 1.5)'); assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, 1.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, 1.5)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js index 5ed43bf0e667b06eb2af4a31593be879ace722c2..839e611a8fa4217c131b5abd706850a1ae73a5dc 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js @@ -9,7 +9,7 @@ description: > (value is negative number) ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, -2.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, -2.5)'); assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, -2.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, -2.5)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js index 4e7c34dd90a160d1057100e3253a599fd1a3604e..03d5bc0da888bc7e582c012e19f1f96ec6472af5 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js @@ -9,7 +9,7 @@ description: > (value is Infinity) ---*/ - var arr = []; - arr[Math.pow(2, 32) - 2] = null; // length is the max value of Uint type +var arr = []; +arr[Math.pow(2, 32) - 2] = null; // length is the max value of Uint type assert.sameValue(arr.lastIndexOf(null, Infinity), Math.pow(2, 32) - 2, 'arr.lastIndexOf(null, Infinity)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js index a219b6b67d008e1c5ece44802eb68790a12d594b..ab3089950ce0451a2c3f6733d791fbaca6e3e7c4 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js @@ -9,7 +9,7 @@ description: > containing Infinity ---*/ - var arr = []; - arr[Math.pow(2, 32) - 2] = true; // length is the max value of Uint type +var arr = []; +arr[Math.pow(2, 32) - 2] = true; // length is the max value of Uint type assert.sameValue(arr.lastIndexOf(true, "Infinity"), Math.pow(2, 32) - 2, 'arr.lastIndexOf(true, "Infinity")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js index 973d33cd354af94b1c3b8da957195387d51cad10..d5bf6c0fa078b81b6988e87e30c3cb67209c8e77 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js @@ -9,7 +9,7 @@ description: > containing an exponential number ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, NaN, targetObj, 3, false].lastIndexOf(targetObj, "2E0"), 2, '[0, NaN, targetObj, 3, false].lastIndexOf(targetObj, "2E0")'); assert.sameValue([0, NaN, 3, targetObj, false].lastIndexOf(targetObj, "2E0"), -1, '[0, NaN, 3, targetObj, false].lastIndexOf(targetObj, "2E0")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js index 90b87161fe6344fbba0d6b76b362560be5d6fa96..acb1c0140c54a3b8ceccd947fdd2261372aa3e89 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js @@ -9,7 +9,7 @@ description: > containing a hex number ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, "0x0002"), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, "0x0002")'); assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, "0x0002"), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, "0x0002")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js index 8dc61ceae1c88d88b03beab519dc2ac619b94acb..95b4db82b048e8be18ed5e3c40f420d5daafc5ba 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-2 description: Array.prototype.lastIndexOf when fromIndex is floating point number ---*/ - var a = new Array(1,2,1); +var a = new Array(1, 2, 1); -assert.sameValue(a.lastIndexOf(2,1.49), 1, '1.49 resolves to 1'); -assert.sameValue(a.lastIndexOf(2,0.51), -1, '0.51 resolves to 0'); -assert.sameValue(a.lastIndexOf(1,0.51), 0, '0.51 resolves to 0'); +assert.sameValue(a.lastIndexOf(2, 1.49), 1, '1.49 resolves to 1'); +assert.sameValue(a.lastIndexOf(2, 0.51), -1, '0.51 resolves to 0'); +assert.sameValue(a.lastIndexOf(1, 0.51), 0, '0.51 resolves to 0'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js index de7d8cdea7e47c68686e219c34b33c9751b26259..72a6f16fa01db3e36efdb80a53bb51080e217d33 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js @@ -9,7 +9,7 @@ description: > string containing a number with leading zeros ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, "0002.10"), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, "0002.10")'); assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, "0002.10"), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, "0002.10")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js index 21e3ef508d74b006a16e01a90741b893d2352e24..d5ec47052d3eb955ed4a7d619588b3a9bad79eb0 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js @@ -9,17 +9,17 @@ description: > Object, and has an own toString method ---*/ - // objects inherit the default valueOf() method from Object - // that simply returns itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - var fromIndex = { - toString: function () { - return '2'; - } - }; - var targetObj = new RegExp(); +// objects inherit the default valueOf() method from Object +// that simply returns itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +var fromIndex = { + toString: function() { + return '2'; + } +}; +var targetObj = new RegExp(); assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex)'); assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js index edd857c534c70779a4c96198ef6f76eb38ba1969..b3bcfbc461b8ba1cad0a1a74b27c86fb3644dc6e 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js @@ -9,13 +9,13 @@ description: > object, and has an own valueOf method ---*/ - var fromIndex = { - valueOf: function () { - return 2; - } - }; +var fromIndex = { + valueOf: function() { + return 2; + } +}; - var targetObj = function () {}; +var targetObj = function() {}; assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex)'); assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js index 2387ba6579c999d8ef69229b22fb578949cce1c1..e371687ad890427676b022483440dc4cf09dffc8 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js @@ -10,20 +10,20 @@ description: > method that returns a string ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var fromIndex = { - toString: function () { - toStringAccessed = true; - return '1'; - }, +var fromIndex = { + toString: function() { + toStringAccessed = true; + return '1'; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } +}; assert.sameValue([0, true].lastIndexOf(true, fromIndex), 1, '[0, true].lastIndexOf(true, fromIndex)'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js index 52bcc45648180866c94b1e5ba4219db1e33963ee..949b07c4ab0141a20c56932fafbc39ccc7891cb9 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js @@ -10,23 +10,23 @@ description: > than don't return primitive value ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var fromIndex = { - toString: function () { - toStringAccessed = true; - return {}; - }, +var fromIndex = { + toString: function() { + toStringAccessed = true; + return {}; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - }; + valueOf: function() { + valueOfAccessed = true; + return {}; + } +}; assert.throws(TypeError, function() { - [0, null].lastIndexOf(null, fromIndex); + [0, null].lastIndexOf(null, fromIndex); }); assert(toStringAccessed, 'toStringAccessed'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js index c8860be07656198e9ab45933a8c5b1e4c6cbd301..8de12b1843a6297f267c6c832d392e28ea20d10e 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js @@ -10,24 +10,24 @@ description: > inherited valueOf methods ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 1; - } - }; +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 1; + } +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.toString = function () { - toStringAccessed = true; - return 1; - }; +var child = new Con(); +child.toString = function() { + toStringAccessed = true; + return 1; +}; assert.sameValue([0, true].lastIndexOf(true, child), 1, '[0, true].lastIndexOf(true, child)'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js index 0ec967938c976c3c424c2f3ad33d95fffdd1e6e0..6b977c909b668e7c949627aabd3af1c56a7c9622 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js @@ -9,29 +9,29 @@ description: > visible when an exception occurs ---*/ - var stepTwoOccurs = false; - var stepFiveOccurs = false; - var obj = {}; +var stepTwoOccurs = false; +var stepFiveOccurs = false; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - stepTwoOccurs = true; - if (stepFiveOccurs) { - throw new Error("Step 5 occurred out of order"); - } - return 20; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + stepTwoOccurs = true; + if (stepFiveOccurs) { + throw new Error("Step 5 occurred out of order"); + } + return 20; + }, + configurable: true +}); - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; - Array.prototype.lastIndexOf.call(obj, undefined, fromIndex); +Array.prototype.lastIndexOf.call(obj, undefined, fromIndex); assert(stepTwoOccurs, 'stepTwoOccurs !== true'); assert(stepFiveOccurs, 'stepFiveOccurs !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js index 491866633a68218cfa19f7ebd0b17fe0c3cb717b..dc56d995c4106fbc86354ee2231b322fac4e4d13 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js @@ -9,34 +9,34 @@ description: > visible when an exception occurs ---*/ - var stepThreeOccurs = false; - var stepFiveOccurs = false; +var stepThreeOccurs = false; +var stepFiveOccurs = false; - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return { - valueOf: function () { - stepThreeOccurs = true; - if (stepFiveOccurs) { - throw new Error("Step 5 occurred out of order"); - } - return 20; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + valueOf: function() { + stepThreeOccurs = true; + if (stepFiveOccurs) { + throw new Error("Step 5 occurred out of order"); + } + return 20; + } + }; + }, + configurable: true +}); - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; - Array.prototype.lastIndexOf.call(obj, undefined, fromIndex); +Array.prototype.lastIndexOf.call(obj, undefined, fromIndex); assert(stepThreeOccurs, 'stepThreeOccurs !== true'); assert(stepFiveOccurs, 'stepFiveOccurs !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js index f3538884d7946c7fe19d750fa940170d76050a2a..b2a3da5977a8973215d26be4f336b8b1d69bb57b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js @@ -9,14 +9,14 @@ description: > visible when an exception occurs ---*/ - var stepFiveOccurs = false; - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var stepFiveOccurs = false; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(undefined, undefined, fromIndex); + Array.prototype.lastIndexOf.call(undefined, undefined, fromIndex); }); assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js index 9d4e8f52265bbf18d64b0c93fc6825573ea5de3b..f1fd8f73a53f0512a9491c0cd055d7f2473f371f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js @@ -9,23 +9,23 @@ description: > visible when an exception occurs ---*/ - var stepFiveOccurs = false; +var stepFiveOccurs = false; - var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - throw new RangeError(); - }, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "length", { + get: function() { + throw new RangeError(); + }, + configurable: true +}); - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; assert.throws(RangeError, function() { - Array.prototype.lastIndexOf.call(obj, undefined, fromIndex); + Array.prototype.lastIndexOf.call(obj, undefined, fromIndex); }); assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js index 5fccb2a9ce3df0372c2373a2fc8d18eee79edece..57bf7dfd4f0e99d3bad4a5cfa0f6f1751fd057c4 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.15-5-3 description: Array.prototype.lastIndexOf when fromIndex is boolean ---*/ - var a = new Array(1,2,1); +var a = new Array(1, 2, 1); -assert.sameValue(a.lastIndexOf(2,true), 1, 'true resolves to 1'); -assert.sameValue(a.lastIndexOf(2,false), -1, 'false resolves to 0'); +assert.sameValue(a.lastIndexOf(2, true), 1, 'true resolves to 1'); +assert.sameValue(a.lastIndexOf(2, false), -1, 'false resolves to 0'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js index 92fef085dd5062c672cc5a2c35d83271fdb0fe46..4d0ad283f404f03878f961fdeade674b3c50e715 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js @@ -9,27 +9,27 @@ description: > visible when an exception occurs ---*/ - var stepFiveOccurs = false; +var stepFiveOccurs = false; - var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return { - valueOf: function () { - throw new TypeError(); - } - }; - }, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "length", { + get: function() { + return { + valueOf: function() { + throw new TypeError(); + } + }; + }, + configurable: true +}); - var fromIndex = { - valueOf: function () { - stepFiveOccurs = true; - return 0; - } - }; +var fromIndex = { + valueOf: function() { + stepFiveOccurs = true; + return 0; + } +}; assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(obj, undefined, fromIndex); + Array.prototype.lastIndexOf.call(obj, undefined, fromIndex); }); assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js index 11152525fdb09749fb67b548b437fcd86cc9382e..66c4b8c012b4f7c8333bf9e330d09ffe350102a9 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js @@ -9,7 +9,7 @@ description: > non-integer, verify truncation occurs in the proper direction ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, 1.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, 1.5)'); assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, 1.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, 1.5)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js index db105484b3b127e9c706a62033ecd1470a3324ab..75aed0966d0a04c7c691d5408de7f2c3412eb0c7 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js @@ -9,7 +9,7 @@ description: > non-integer, verify truncation occurs in the proper direction ---*/ - var targetObj = {}; +var targetObj = {}; assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, -2.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, -2.5)'); assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, -2.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, -2.5)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js index 120641ec7c5afb8fc27b41c9b224a86780c554be..f581274c2779c948ab2ebf8ac820e5d36efd8cd1 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js @@ -7,9 +7,9 @@ es5id: 15.4.4.15-5-4 description: Array.prototype.lastIndexOf when fromIndex is undefined ---*/ - var a = new Array(1,2,1); +var a = new Array(1, 2, 1); // undefined resolves to 0, no second argument resolves to len -assert.sameValue(a.lastIndexOf(2,undefined), -1, 'a.lastIndexOf(2,undefined)'); -assert.sameValue(a.lastIndexOf(1,undefined), 0, 'a.lastIndexOf(1,undefined)'); +assert.sameValue(a.lastIndexOf(2, undefined), -1, 'a.lastIndexOf(2,undefined)'); +assert.sameValue(a.lastIndexOf(1, undefined), 0, 'a.lastIndexOf(1,undefined)'); assert.sameValue(a.lastIndexOf(1), 2, 'a.lastIndexOf(1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js index 38614daf9eaf809301586fdb26bdf8b4e6acc466..72efdc3075b1647a5a48394c64c226d6d7fc9fbd 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-5 description: Array.prototype.lastIndexOf when fromIndex is null ---*/ - var a = new Array(1,2,1); +var a = new Array(1, 2, 1); // null resolves to 0 -assert.sameValue(a.lastIndexOf(2,null), -1, 'a.lastIndexOf(2,null)'); -assert.sameValue(a.lastIndexOf(1,null), 0, 'a.lastIndexOf(1,null)'); +assert.sameValue(a.lastIndexOf(2, null), -1, 'a.lastIndexOf(2,null)'); +assert.sameValue(a.lastIndexOf(1, null), 0, 'a.lastIndexOf(1,null)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js index e66f4a75eff92e5b88605aa6bbd6fa90efc32c41..033e078b3940e54a2a1009112c29bc48a96985d8 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-6 description: Array.prototype.lastIndexOf when 'fromIndex' isn't passed ---*/ - var arr = [0, 1, 2, 3, 4]; - //'fromIndex' will be set as 4 if not passed by default +var arr = [0, 1, 2, 3, 4]; +//'fromIndex' will be set as 4 if not passed by default assert.sameValue(arr.lastIndexOf(0), arr.lastIndexOf(0, 4), 'arr.lastIndexOf(0)'); assert.sameValue(arr.lastIndexOf(2), arr.lastIndexOf(2, 4), 'arr.lastIndexOf(2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js index efe30ad08f2f62b80baa65cc86d4b4c4564bed4f..87cf25f0c6edcc5f1c26c5749ed16582d249b245 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js @@ -9,7 +9,7 @@ description: > Array.length ---*/ - var a = new Array(1,2,3); +var a = new Array(1, 2, 3); -assert.sameValue(a.lastIndexOf(3,5.4), 2, 'a.lastIndexOf(3,5.4)'); -assert.sameValue(a.lastIndexOf(3,3.1), 2, 'a.lastIndexOf(3,3.1)'); +assert.sameValue(a.lastIndexOf(3, 5.4), 2, 'a.lastIndexOf(3,5.4)'); +assert.sameValue(a.lastIndexOf(3, 3.1), 2, 'a.lastIndexOf(3,3.1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js index f0d4f45ef56ab9df1cdf1d737b62e5fb1b3ea69c..50f0225fab6e0d247032539f8da702ddedfdbff9 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js @@ -7,9 +7,9 @@ es5id: 15.4.4.15-7-1 description: Array.prototype.lastIndexOf with negative fromIndex ---*/ - var a = new Array(1,2,3); +var a = new Array(1, 2, 3); -assert.sameValue(a.lastIndexOf(2,-2), 1, 'a.lastIndexOf(2,-2)'); -assert.sameValue(a.lastIndexOf(2,-3), -1, 'a.lastIndexOf(2,-3)'); -assert.sameValue(a.lastIndexOf(1,-5.3), -1, 'a.lastIndexOf(1,-5.3)'); +assert.sameValue(a.lastIndexOf(2, -2), 1, 'a.lastIndexOf(2,-2)'); +assert.sameValue(a.lastIndexOf(2, -3), -1, 'a.lastIndexOf(2,-3)'); +assert.sameValue(a.lastIndexOf(1, -5.3), -1, 'a.lastIndexOf(1,-5.3)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js index 90b73979e9b99fc9aa38fb384e7d9eea1bfe0700..ba9f6f41dbe60b4a931b246f7a3df503edef2b97 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js @@ -7,9 +7,13 @@ es5id: 15.4.4.15-8-1 description: Array.prototype.lastIndexOf must return correct index(boolean) ---*/ - var obj = {toString:function (){return true}}; - var _false = false; - var a = new Array(false,true,false,obj,_false,true,"true", undefined,0,null,1,"str",0,1); +var obj = { + toString: function() { + return true + } +}; +var _false = false; +var a = new Array(false, true, false, obj, _false, true, "true", undefined, 0, null, 1, "str", 0, 1); assert.sameValue(a.lastIndexOf(true), 5, 'a[5]=true'); assert.sameValue(a.lastIndexOf(false), 4, 'a[4] =_false'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js index c225526866b0f5c61de4ed46ecc074b052b59144..91f6f3c01adbd3fb03e43a6644e136e6bddfcfca 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js @@ -10,7 +10,11 @@ es5id: 15.4.4.15-8-10 description: Array.prototype.lastIndexOf must return correct index (NaN) ---*/ - var _NaN = NaN; - var a = new Array("NaN",_NaN,NaN, undefined,0,false,null,{toString:function (){return NaN}},"false"); +var _NaN = NaN; +var a = new Array("NaN", _NaN, NaN, undefined, 0, false, null, { + toString: function() { + return NaN + } +}, "false"); assert.sameValue(a.lastIndexOf(NaN), -1, 'NaN matches nothing, not even itself'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js index 9e2f6d79afcaa7d7e07c78ce0a225c2d11949094..0fd222276f315d8d81ba33e29269b06682a05df5 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js @@ -9,14 +9,14 @@ description: > changed by adding elements to the array during iteration ---*/ - var arr = [20]; +var arr = [20]; - Object.defineProperty(arr, "0", { - get: function () { - arr[1] = 1; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr[1] = 1; + return 0; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf(1), -1, 'arr.lastIndexOf(1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js index 8dcc8e602a272c0cef3a267c5c269ae516838ca9..51273ec3b4b3b104ce7695786bf247a175c0dd9b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js @@ -7,12 +7,16 @@ es5id: 15.4.4.15-8-2 description: Array.prototype.lastIndexOf must return correct index(Number) ---*/ - var obj = {toString:function (){return 0}}; - var one = 1; - var _float = -(4/3); - var a = new Array(+0,true,0,-0, false,undefined,null,"0",obj, _float,-(4/3),-1.3333333333333,"str",one, 1, false); +var obj = { + toString: function() { + return 0 + } +}; +var one = 1; +var _float = -(4 / 3); +var a = new Array(+0, true, 0, -0, false, undefined, null, "0", obj, _float, -(4 / 3), -1.3333333333333, "str", one, 1, false); -assert.sameValue(a.lastIndexOf(-(4/3)), 10, 'a[10]=-(4/3)'); +assert.sameValue(a.lastIndexOf(-(4 / 3)), 10, 'a[10]=-(4/3)'); assert.sameValue(a.lastIndexOf(0), 3, 'a[3] = -0, but using === -0 and 0 are equal'); assert.sameValue(a.lastIndexOf(-0), 3, 'a[3] = -0'); assert.sameValue(a.lastIndexOf(1), 14, 'a[14] = 1'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js index ba6b3e8261474add011c9812de92759bcce91491..a1f22e7de86a76a9d25ef282b5a6c013e694bd2c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js @@ -7,8 +7,12 @@ es5id: 15.4.4.15-8-3 description: Array.prototype.lastIndexOf must return correct index(string) ---*/ - var obj = {toString:function (){return "false"}}; - var szFalse = "false"; - var a = new Array(szFalse, "false","false1",undefined,0,false,null,1,obj,0); +var obj = { + toString: function() { + return "false" + } +}; +var szFalse = "false"; +var a = new Array(szFalse, "false", "false1", undefined, 0, false, null, 1, obj, 0); assert.sameValue(a.lastIndexOf("false"), 1, 'a.lastIndexOf("false")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js index 1c4050783c842993c727e6d784896cb2a1c6d264..e77e8d780be1853a35d2c7b87a9444a246dd0ccf 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js @@ -7,9 +7,13 @@ es5id: 15.4.4.15-8-4 description: Array.prototype.lastIndexOf must return correct index(undefined) ---*/ - var obj = {toString:function (){return undefined;}}; - var _undefined1 = undefined; - var _undefined2; - var a = new Array(_undefined1,_undefined2,undefined,true,0,false,null,1,"undefined",obj,1); +var obj = { + toString: function() { + return undefined; + } +}; +var _undefined1 = undefined; +var _undefined2; +var a = new Array(_undefined1, _undefined2, undefined, true, 0, false, null, 1, "undefined", obj, 1); assert.sameValue(a.lastIndexOf(undefined), 2, 'a.lastIndexOf(undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js index afd59f8ac78e237497b8c60e7ec953c20f19d078..2aea2f8ee1bc34ae8b61c47d07264721f007b855 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js @@ -7,9 +7,21 @@ es5id: 15.4.4.15-8-5 description: Array.prototype.lastIndexOf must return correct index(Object) ---*/ - var obj1 = {toString:function (){return "false"}}; - var obj2 = {toString:function (){return "false"}}; - var obj3 = obj1; - var a = new Array(obj2,obj1,obj3,false,undefined,0,false,null,{toString:function (){return "false"}},"false"); +var obj1 = { + toString: function() { + return "false" + } +}; +var obj2 = { + toString: function() { + return "false" + } +}; +var obj3 = obj1; +var a = new Array(obj2, obj1, obj3, false, undefined, 0, false, null, { + toString: function() { + return "false" + } +}, "false"); assert.sameValue(a.lastIndexOf(obj3), 2, 'a.lastIndexOf(obj3)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js index c3e542c7c976a5fb5cb970b61bd05ee2be627955..18b8888ee76107a133ed4f8ceb2f20cc727f212c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js @@ -7,8 +7,12 @@ es5id: 15.4.4.15-8-6 description: Array.prototype.lastIndexOf must return correct index(null) ---*/ - var obj = {toString:function (){return null}}; - var _null = null; - var a = new Array(true,undefined,0,false,null,1,"str",0,1,null,true,false,undefined,_null,"null",undefined,"str",obj); +var obj = { + toString: function() { + return null + } +}; +var _null = null; +var a = new Array(true, undefined, 0, false, null, 1, "str", 0, 1, null, true, false, undefined, _null, "null", undefined, "str", obj); assert.sameValue(a.lastIndexOf(null), 13, 'a.lastIndexOf(null)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js index 763dbfe402e00f6b8fed8a337f433e311577e29b..543564a91ca7e49dbba00543c7990792f94112e4 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js @@ -9,8 +9,8 @@ description: > reference) ---*/ - var a = new Array(0,1,2,3); - a[2] = a; +var a = new Array(0, 1, 2, 3); +a[2] = a; assert.sameValue(a.lastIndexOf(a), 2, 'a.lastIndexOf(a)'); assert.sameValue(a.lastIndexOf(3), 3, 'a.lastIndexOf(3)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js index 1cb37a62df128457ebc9a75200fc57ec9e59a7b6..b5676e56d22ea9467acd4fd58444f320a02fc729 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js @@ -7,8 +7,8 @@ es5id: 15.4.4.15-8-8 description: Array.prototype.lastIndexOf must return correct index (Array) ---*/ - var b = new Array("0,1"); - var a = new Array(0,b,"0,1",3); +var b = new Array("0,1"); +var a = new Array(0, b, "0,1", 3); assert.sameValue(a.lastIndexOf(b.toString()), 2, 'a.lastIndexOf(b.toString())'); assert.sameValue(a.lastIndexOf("0,1"), 2, 'a.lastIndexOf("0,1")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js index 7c7026a1dea4b6ccb467e8c07465a24f5cd7782a..c70075216bb6cc17ed17e804e73dde7685d2738f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js @@ -9,15 +9,15 @@ description: > Array) ---*/ - var a = new Array(0,1); - a[4294967294] = 2; // 2^32-2 - is max array element index - a[4294967295] = 3; // 2^32-1 added as non-array element property - a[4294967296] = 4; // 2^32 added as non-array element property - a[4294967297] = 5; // 2^32+1 added as non-array element property - // stop searching near the end in case implementation actually tries to test all missing elements!! - a[4294967200] = 3; - a[4294967201] = 4; - a[4294967202] = 5; +var a = new Array(0, 1); +a[4294967294] = 2; // 2^32-2 - is max array element index +a[4294967295] = 3; // 2^32-1 added as non-array element property +a[4294967296] = 4; // 2^32 added as non-array element property +a[4294967297] = 5; // 2^32+1 added as non-array element property +// stop searching near the end in case implementation actually tries to test all missing elements!! +a[4294967200] = 3; +a[4294967201] = 4; +a[4294967202] = 5; assert.sameValue(a.lastIndexOf(2), 4294967294, 'a.lastIndexOf(2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js index 71fb4d1b5cd07e1061454cd454fec100b7a85f97..8da0ba48d084dc4c8d93a30f28bc0b3ecaf9a39f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js @@ -9,14 +9,14 @@ description: > visible here ---*/ - var arr = { }; +var arr = {}; - Object.defineProperty(arr, "length", { - get: function () { - arr[2] = "length"; - return 3; - }, - configurable: true - }); +Object.defineProperty(arr, "length", { + get: function() { + arr[2] = "length"; + return 3; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, "length"), 2, 'Array.prototype.lastIndexOf.call(arr, "length")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js index 5dd88469ddebc5699e3f782714177110c974cb6d..aa82dc85b359deab04acf0864f2ea1e65a666506 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js @@ -9,19 +9,19 @@ description: > after current position are visited on an Array ---*/ - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "2", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf(6.99), 1, 'arr.lastIndexOf(6.99)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js index 83d4ac5ce5738c9eb81653b21dcb488452fe75e9..c7bd8ed99e7bbb0c61134363b36b8f337963aa8b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js @@ -9,21 +9,23 @@ description: > property not to be visited on an Array-like object ---*/ - var arr = { length: 200 }; +var arr = { + length: 200 +}; - Object.defineProperty(arr, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); - Object.defineProperty(arr, "100", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "100", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, 6.99), -1, 'Array.prototype.lastIndexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js index 00f8a44fed1a70d2483195871775a6ac29dcebac..e1b6e93dedbe2067fd8e4bd7f55e09c5b4175dd8 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js @@ -9,21 +9,21 @@ description: > property not to be visited on an Array ---*/ - var arr = [1, 2, 3, 4]; +var arr = [1, 2, 3, 4]; - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); - Object.defineProperty(arr, "3", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf("6.99"), -1, 'arr.lastIndexOf("6.99")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js index df702ae2175161ac0ab5556d8865ee42bea1ee00..052114d92627d6a9ef6662d9fe0684d1d3ae3999 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js @@ -10,16 +10,19 @@ description: > Object ---*/ - var arr = { 2: 2, length: 20 }; +var arr = { + 2: 2, + length: 20 +}; - Object.defineProperty(arr, "3", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), -1, 'Array.prototype.lastIndexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js index d86e21b9e2ce6e3d0d50e11701e2709838d40c3a..864c9a8fa439079a8f23c726ec1aacf3217b3217 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js @@ -9,16 +9,16 @@ description: > causes prototype index property not to be visited on an Array ---*/ - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "20", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "20", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; +Array.prototype[1] = 1; assert.sameValue(arr.lastIndexOf(1), -1, 'arr.lastIndexOf(1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js index a5ae27fef0df30fb3f8c9268dc637c5ff39f9199..c9ed09f3a7ee78892364349d242e6b5972b75b6b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js @@ -10,16 +10,21 @@ description: > on an Array-like object ---*/ - var arr = { 0: 0, 1: 111, 2: 2, length: 10 }; +var arr = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(arr, "6", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "6", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), 1, 'Array.prototype.lastIndexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js index fce1f7c2c3572a82ebc8143e2b876daad1193a2c..49b6f786a387ee82f8409b9140065f7765e75e0c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js @@ -10,16 +10,16 @@ description: > on an Array ---*/ - var arr = [0, 111, 2]; +var arr = [0, 111, 2]; - Object.defineProperty(arr, "2", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; +Array.prototype[1] = 1; assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js index f2bd2ff1fa5667be8df50a7c6ddf4014f3e512fc..5056ac8a2742e6ee3f3991a1c108570354fa5b0d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js @@ -9,14 +9,14 @@ description: > index property not to be visited ---*/ - var arr = [0, 1, 2, "last", 4]; +var arr = [0, 1, 2, "last", 4]; - Object.defineProperty(arr, "4", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "4", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf("last"), -1, 'arr.lastIndexOf("last")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js index 9202ce28e314d742bfd98382598141a4d8899ba8..a34d8b58e767ed3def55451631f69424f3d0b401 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js @@ -9,21 +9,21 @@ description: > prototype property causes prototype index property to be visited ---*/ - var arr = [0, 1, 2, 3, 4]; +var arr = [0, 1, 2, 3, 4]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "3", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf("prototype"), 2, 'arr.lastIndexOf("prototype")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js index b5c018d0cfa1a745d2133e1f86466a382155546a..ca788c2bc0d7d2bc3f309fe2b3280dbecb64b74f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js @@ -10,21 +10,21 @@ description: > flags: [noStrict] ---*/ - var arr = [0, 1, 2, 3]; +var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); - Object.defineProperty(arr, "3", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf("unconfigurable"), 2, 'arr.lastIndexOf("unconfigurable")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js index 416d33fc8912e4d3847fb7d52eda6e414508482c..01d4e44dbf3f7dbfdb71b26319851a7f1ed94d44 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js @@ -9,15 +9,17 @@ description: > visible here on an Array-like object ---*/ - var arr = { length: 30 }; - var targetObj = function () { }; +var arr = { + length: 30 +}; +var targetObj = function() {}; - var fromIndex = { - valueOf: function () { - arr[4] = targetObj; - return 10; - } - }; +var fromIndex = { + valueOf: function() { + arr[4] = targetObj; + return 10; + } +}; assert.sameValue(Array.prototype.lastIndexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.lastIndexOf.call(arr, targetObj, fromIndex)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js index e02d240e52ad90001dba38a1490497863458ec75..7ceda1ccdd2c96562320841480b02cd54f28929b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js @@ -9,15 +9,15 @@ description: > visible here on an Array ---*/ - var arr = []; - arr.length = 30; - var targetObj = function () { }; +var arr = []; +arr.length = 30; +var targetObj = function() {}; - var fromIndex = { - valueOf: function () { - arr[4] = targetObj; - return 11; - } - }; +var fromIndex = { + valueOf: function() { + arr[4] = targetObj; + return 11; + } +}; assert.sameValue(arr.lastIndexOf(targetObj, fromIndex), 4, 'arr.lastIndexOf(targetObj, fromIndex)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js index 2846cf6e9e420e8d73a20dafe249aa5db34dd6b7..010ffb36d752dc3280d3e8ed0b0883b4e668d5c9 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js @@ -9,14 +9,16 @@ description: > visible here ---*/ - var arr = { 2: 6.99 }; +var arr = { + 2: 6.99 +}; - Object.defineProperty(arr, "length", { - get: function () { - delete arr[2]; - return 3; - }, - configurable: true - }); +Object.defineProperty(arr, "length", { + get: function() { + delete arr[2]; + return 3; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, 6.99), -1, 'Array.prototype.lastIndexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js index 4d1c2f8db6693684d0d9ec0f9a8b026f897dae3e..cd592d237caf077fadca25d9cb3d636fbfea6558 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js @@ -9,13 +9,16 @@ description: > visible here on an Array-like object ---*/ - var arr = { 10: false, length: 30 }; +var arr = { + 10: false, + length: 30 +}; - var fromIndex = { - valueOf: function () { - delete arr[10]; - return 15; - } - }; +var fromIndex = { + valueOf: function() { + delete arr[10]; + return 15; + } +}; assert.sameValue(Array.prototype.lastIndexOf.call(arr, false, fromIndex), -1, 'Array.prototype.lastIndexOf.call(arr, false, fromIndex)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js index 0ad3830b3dcd650143672adbde5c14c50db4a1b4..6b23e07f8d1290f7767ff66cc4767a339ea521fc 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js @@ -9,15 +9,15 @@ description: > visible here on an Array ---*/ - var arr = []; - arr[10] = "10"; - arr.length = 20; +var arr = []; +arr[10] = "10"; +arr.length = 20; - var fromIndex = { - valueOf: function () { - delete arr[10]; - return 11; - } - }; +var fromIndex = { + valueOf: function() { + delete arr[10]; + return 11; + } +}; assert.sameValue(arr.lastIndexOf("10", fromIndex), -1, 'arr.lastIndexOf("10", fromIndex)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js index af7fc70e584400684fcf5c47e0dee16223d3fafb..e64cc5bab423d5ad44df270b398746a0ce0a7317 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js @@ -9,19 +9,21 @@ description: > after current position are visited on an Array-like object ---*/ - var arr = { length: 8 }; +var arr = { + length: 8 +}; - Object.defineProperty(arr, "4", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "4", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), 1, 'Array.prototype.lastIndexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js index c368ef5706472593fdfed3d3da3924de8fed99d1..ef7d6b67425b5e8374ee9948a4a7c9277dd200b6 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js @@ -9,19 +9,19 @@ description: > after current position are visited on an Array ---*/ - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "2", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js index 412604d03d3c22cbb27c5ffd9450ffa41d634f92..d0d856f61791ae63ca68075427dd2caa635f0b53 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js @@ -10,19 +10,21 @@ description: > object ---*/ - var arr = { length: 9 }; +var arr = { + length: 9 +}; - Object.defineProperty(arr, "4", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return Infinity; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "4", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return Infinity; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, Infinity), 1, 'Array.prototype.lastIndexOf.call(arr, Infinity)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js index 7a4e136a62ca2f7f470bd2d4a063178029f6f246..3dfe2ffa104d80acaaf7203c4f4e955099231b50 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js @@ -9,7 +9,12 @@ description: > property on an Array-like object ---*/ - var obj = { 0: 0, 1: 1, 2: 2, length: 3 }; +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js index 38b41bddf69ff149ac4877a6d23d67b5d80e44e6..b60f3beb3b7c5d1e1db8140fea7744d648c3430a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js @@ -9,27 +9,29 @@ description: > accessor property on an Array-like object ---*/ - var obj = { length: 3 }; - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var obj = { + length: 3 +}; +Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js index 72eb049479c21566fcb0bf7c1a85a6954d194ad4..6dfa28831c1ae2e3f55e2fd5504311f0dc56e64c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js @@ -10,14 +10,14 @@ description: > Array ---*/ - var arr = []; +var arr = []; - Array.prototype[0] = false; - Object.defineProperty(arr, "0", { - get: function () { - return true; - }, - configurable: true - }); +Array.prototype[0] = false; +Object.defineProperty(arr, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf(true), 0, 'arr.lastIndexOf(true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js index 94fef7d4cf948fafa0594530db71b94772db10b1..739d80bb32d418bd991fcda15c9ce9708649949b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js @@ -10,14 +10,16 @@ description: > Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.prototype[0] = false; - Object.defineProperty(obj, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.prototype[0] = false; +Object.defineProperty(obj, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 0, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js index bd077110e06aecac431cb5c7246f10498edcf1fb..70462919d3b71ec3720c49a07ad8187bfc70d54b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js @@ -10,20 +10,20 @@ description: > an Array ---*/ - var arr = []; +var arr = []; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf(true), 0, 'arr.lastIndexOf(true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js index 9a326f9d47823c986964076d2ee9b9c9387fcec7..9662f75bd5cdf9b003082fe0da5077aa0d895b43 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js @@ -10,20 +10,22 @@ description: > an Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.defineProperty(Object.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 0, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js index e91eaf66b5fbe08c08a5fb9f16f2ca06fdb48d42..32c4149d882463ecc47c26fc89782b8c59892689 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js @@ -9,26 +9,26 @@ description: > accessor property on an Array ---*/ - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 10; + }, + configurable: true +}); - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 20; + }, + configurable: true +}); - Object.defineProperty(Array.prototype, "2", { - get: function () { - return 30; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return 30; + }, + configurable: true +}); assert.sameValue([, , , ].lastIndexOf(10), 0, '[, , , ].lastIndexOf(10)'); assert.sameValue([, , , ].lastIndexOf(20), 1, '[, , , ].lastIndexOf(20)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js index 89205ee26e8bd7226feb03baf20706cf7fddb6fd..e8cb635fd92086261c38201a2ac95651b8fa0294 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js @@ -9,27 +9,33 @@ description: > accessor property on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return 10; + }, + configurable: true +}); - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "1", { + get: function() { + return 20; + }, + configurable: true +}); - Object.defineProperty(Object.prototype, "2", { - get: function () { - return 30; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "2", { + get: function() { + return 30; + }, + configurable: true +}); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 10), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, 10)'); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 20), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, 20)'); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 30), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, 30)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, 10), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, 10)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, 20), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, 20)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, 30), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, 30)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js index 796abed7bd09bb0040ac6a653242103772894070..dc14b777b568e27b76fb9e9219322d422011365c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js @@ -9,10 +9,10 @@ description: > accessor property without a get function on an Array ---*/ - var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +var arr = []; +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); assert.sameValue(arr.lastIndexOf(undefined), 0, 'arr.lastIndexOf(undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js index 65fc004c55818530acf09eeae3155423dd4cc857..0a9e3a693656314a2752a62dcf8933f758400b14 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js @@ -9,10 +9,12 @@ description: > accessor property without a get function on an Array-like object ---*/ - var obj = { length: 1 }; - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +var obj = { + length: 1 +}; +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js index 3c9baf0af23088f5ceead0ca2dafe9ffa201b475..d5ca0b3ee1f4cde2472aa8a88e75b45a4ed75fad 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js @@ -10,18 +10,20 @@ description: > inherited accessor property on an Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.defineProperty(Object.prototype, "0", { - get: function () { - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); assert(obj.hasOwnProperty(0), 'obj.hasOwnProperty(0) !== true'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js index d0c826fd283f1a1ad78591ae6fbf395886ac8465..1f0b708390e6178b9f66371971ea2b2155e9f953 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js @@ -10,18 +10,18 @@ description: > inherited accessor property on an Array ---*/ - var arr = [, 1]; +var arr = [, 1]; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 100; - }, - configurable: true - }); - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 100; + }, + configurable: true +}); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true'); assert.sameValue(arr.lastIndexOf(undefined), 0, 'arr.lastIndexOf(undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js index 71304e77763688833b9898bc7760a6598bc1b111..ee64326c12dd9e4405b298ae36d00e7453b96da2 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js @@ -9,9 +9,9 @@ description: > accessor property without a get function on an Array ---*/ - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); assert.sameValue([, ].lastIndexOf(undefined), 0, '[, ].lastIndexOf(undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js index 735c9cc7aad09e04e3d777342a3c13675c6b91a3..8dbf01f642621772049d13c6087fa2710edf51d3 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js @@ -9,9 +9,11 @@ description: > accessor property without a get function on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + set: function() {}, + configurable: true +}); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.lastIndexOf.call({ length: 1 }, undefined)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 1 +}, undefined), 0, 'Array.prototype.lastIndexOf.call({ length: 1 }, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js index eeb3f4653513e3c89189935eb74763977d7fa931..d6806a98edb7b2888d375ce0749eee52b95a15c1 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js @@ -10,9 +10,9 @@ description: > less than number of parameters) ---*/ - var func = function (a, b) { - return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) && - -1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]); - }; +var func = function(a, b) { + return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) && + -1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]); +}; assert(func(true), 'func(true) !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js index b568be548398862adb25795e204c727f742b39fd..b4066d73348dce64907270dac6badca94d0274fb 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js @@ -10,10 +10,10 @@ description: > to number of parameters) ---*/ - var func = function (a, b) { - return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) && - 1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]) && - -1 === Array.prototype.lastIndexOf.call(arguments, arguments[2]); - }; +var func = function(a, b) { + return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) && + 1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]) && + -1 === Array.prototype.lastIndexOf.call(arguments, arguments[2]); +}; assert(func(0, true), 'func(0, true) !== true'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js index 7936ac8fb17cbcdee04f288045ac636a9ba0b6b4..1d9f678632d8ad0185e31c940048b3fc496926d1 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js @@ -10,7 +10,7 @@ description: > greater than number of parameters) ---*/ -var func = function (a, b) { +var func = function(a, b) { assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[0]), 2); assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[3]), 3); assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[4]), -1); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js index aa3fa78183689f1312b91dd40a92f2ebc4280788..d599c9fa4505a7acf13f307fd28e9a86a12bf838 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js @@ -9,26 +9,26 @@ description: > subsequent iterations on an Array ---*/ - var preIterVisible = false; - var arr = []; +var preIterVisible = false; +var arr = []; - Object.defineProperty(arr, "2", { - get: function () { - preIterVisible = true; - return false; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + preIterVisible = true; + return false; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return true; - } else { - return false; - } - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return true; + } else { + return false; + } + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf(true), 1, 'arr.lastIndexOf(true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js index e73976d9384b02ed0c1018919ab60064bf13dd3a..59ada2f1dbe9ef43ca721618de7c6bc69b163da0 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js @@ -9,26 +9,28 @@ description: > subsequent iterations on an Array-like object ---*/ - var preIterVisible = false; - var obj = { length: 3 }; +var preIterVisible = false; +var obj = { + length: 3 +}; - Object.defineProperty(obj, "2", { - get: function () { - preIterVisible = true; - return false; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + preIterVisible = true; + return false; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return true; - } else { - return false; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return true; + } else { + return false; + } + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js index b292c0f5cd4a6c51c9e666be073963c9d2e9cf55..5b82efe114b2a3616c8aee8213be432c75de31f7 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js @@ -9,6 +9,6 @@ description: > property that overrides an inherited data property on an Array ---*/ - Array.prototype[0] = Object; +Array.prototype[0] = Object; assert.sameValue([Object.prototype].lastIndexOf(Object.prototype), 0, '[Object.prototype].lastIndexOf(Object.prototype)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js index 251c5d42850f065bee64061370dfeec1296ed76d..15b600383ecb82af6e6b7fb8a135863fdd831b2d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js @@ -9,24 +9,24 @@ description: > exception on an Array ---*/ - var accessed = false; - var arr = []; +var accessed = false; +var arr = []; - Object.defineProperty(arr, "2", { - get: function () { - throw new TypeError(); - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + throw new TypeError(); + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - accessed = true; - return true; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + accessed = true; + return true; + }, + configurable: true +}); assert.throws(TypeError, function() { - arr.lastIndexOf(true); + arr.lastIndexOf(true); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js index 933d72d123a02ddfff117e0f91fa92996fa0a7dd..0d46b3d56cd6726a0f015df0f9513086b770ccac 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js @@ -9,24 +9,26 @@ description: > exception on an Array-like object ---*/ - var accessed = false; - var obj = { length: 3 }; +var accessed = false; +var obj = { + length: 3 +}; - Object.defineProperty(obj, "2", { - get: function () { - throw new TypeError(); - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + throw new TypeError(); + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - accessed = true; - return true; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + accessed = true; + return true; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(obj, true); + Array.prototype.lastIndexOf.call(obj, true); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js index 8f6e11da43f0db8d8fcd6532518d08cd8739416f..2204423702a8d30fc9861916b8700398bd3c3b03 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js @@ -10,6 +10,10 @@ description: > Array-like object ---*/ - Object.prototype[0] = false; +Object.prototype[0] = false; -assert.sameValue(Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + 0: true, + 1: 1, + length: 2 +}, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js index 771fde968ee093fe11ffb20f286c3ff221c68669..aa6921e41a905b86fe4cca5c88bfc7c88ad82041 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js @@ -9,11 +9,11 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - Object.defineProperty(Array.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); assert.sameValue([Number].lastIndexOf(Number), 0, '[Number].lastIndexOf(Number)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js index 8c2ec33795fb81353030ef91608ab432e900da49..70e3914190bb01a2ea99654f62925fea50d4de21 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js @@ -10,11 +10,15 @@ description: > Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); -assert.sameValue(Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + 0: true, + 1: 1, + length: 2 +}, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js index d38620b9886b3538b20e1fa64701a480c4b3468b..a3c2f490260984daa3e7dd2ff9c9ef2c924da352 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js @@ -9,9 +9,9 @@ description: > data property on an Array ---*/ - Array.prototype[0] = true; - Array.prototype[1] = false; - Array.prototype[2] = "true"; +Array.prototype[0] = true; +Array.prototype[1] = false; +Array.prototype[2] = "true"; assert.sameValue([, , , ].lastIndexOf(true), 0, '[, , , ].lastIndexOf(true)'); assert.sameValue([, , , ].lastIndexOf(false), 1, '[, , , ].lastIndexOf(false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js index fbb0ea0bd0687d67f5ce6deaf39d03738d4df66a..f06b7bfefc511da2a008d67b84cd1d69c28d54ea 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js @@ -9,10 +9,16 @@ description: > data property on an Array-like object ---*/ - Object.prototype[0] = true; - Object.prototype[1] = false; - Object.prototype[2] = "true"; +Object.prototype[0] = true; +Object.prototype[1] = false; +Object.prototype[2] = "true"; -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, true), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, true)'); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, false), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, false)'); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, "true")'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, true), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, true)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, false), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, false)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, "true"), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, "true")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js index a20c0fa5d4ce5fe1afca225f61153831fdd6ba52..d5ff8a47a30c5cbd85d2fab70476502bb80e47e0 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js @@ -9,27 +9,27 @@ description: > accessor property on an Array ---*/ - var arr = [, , , ]; - Object.defineProperty(arr, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var arr = [, , , ]; +Object.defineProperty(arr, "0", { + get: function() { + return 0; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true +}); - Object.defineProperty(arr, "2", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(arr.lastIndexOf(0), 0, 'arr.lastIndexOf(0)'); assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js index c88bf06b2627f3886e53a43e9aba332fff3e54db..953212528eef91bc2e40277ab6e0bb4ae82e3adb 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js @@ -14,4 +14,6 @@ assert.sameValue(["0"].lastIndexOf(0), -1, '["0"].lastIndexOf(0)'); assert.sameValue([false].lastIndexOf(0), -1, '[false].lastIndexOf(0)'); assert.sameValue([undefined].lastIndexOf(0), -1, '[undefined].lastIndexOf(0)'); assert.sameValue([null].lastIndexOf(0), -1, '[null].lastIndexOf(0)'); -assert.sameValue([[]].lastIndexOf(0), -1, '[[]].lastIndexOf(0)'); +assert.sameValue([ + [] +].lastIndexOf(0), -1, '[[]].lastIndexOf(0)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js index 97cbb1fd48d875ea5c755906adf632bf9e5d2139..bbe793889095a83f22f3c241962baf740322cdce 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js @@ -9,8 +9,8 @@ description: > element are Objects, and they refer to the same object ---*/ - var obj1 = {}; - var obj2 = {}; - var obj3 = obj2; +var obj1 = {}; +var obj2 = {}; +var obj3 = obj2; assert.sameValue([obj2, obj1].lastIndexOf(obj3), 0, '[obj2, obj1].lastIndexOf(obj3)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js index 5c1d0c670e3cf6409e9b7e53c1e04a94d2f313dd..ae16fd014dfdb4a832a8abcd8ed6e562d116c5b7 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js @@ -9,26 +9,26 @@ description: > element once search value is found ---*/ - var arr = [2, 1, , 1, 2]; - var elementFirstAccessed = false; - var elementThirdAccessed = false; +var arr = [2, 1, , 1, 2]; +var elementFirstAccessed = false; +var elementThirdAccessed = false; - Object.defineProperty(arr, "2", { - get: function () { - elementThirdAccessed = true; - return 2; - }, - configurable: true - }); - Object.defineProperty(arr, "0", { - get: function () { - elementFirstAccessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + elementThirdAccessed = true; + return 2; + }, + configurable: true +}); +Object.defineProperty(arr, "0", { + get: function() { + elementFirstAccessed = true; + return 2; + }, + configurable: true +}); - arr.lastIndexOf(2); +arr.lastIndexOf(2); assert.sameValue(elementThirdAccessed, false, 'elementThirdAccessed'); assert.sameValue(elementFirstAccessed, false, 'elementFirstAccessed'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js index 8f70daaf5c2f4d3a79d3cd5f5e5ad6f8ba6b3a21..2c4b6a094da68a18e596bf5e64479361ffe6299f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js @@ -7,13 +7,13 @@ es5id: 15.4.4.15-9-1 description: Array.prototype.lastIndexOf returns -1 for elements not present ---*/ - var a = new Array(); - a[100] = 1; - a[99999] = ""; - a[10] = new Object(); - a[5555] = 5.5; - a[123456] = "str"; - a[5] = 1E+309; +var a = new Array(); +a[100] = 1; +a[99999] = ""; +a[10] = new Object(); +a[5555] = 5.5; +a[123456] = "str"; +a[5] = 1E+309; assert.sameValue(a.lastIndexOf(1), 100, 'a.lastIndexOf(1)'); assert.sameValue(a.lastIndexOf(""), 99999, 'a.lastIndexOf("")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js index 2c47880f4823dd085f38f35bb75aad3ed4c39592..e756e32f0502a1ba87ab483a6b11641412534abc 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js @@ -9,11 +9,18 @@ description: > not access any other properties ---*/ - var accessed = false; - var f = {length: 0}; - Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}}); +var accessed = false; +var f = { + length: 0 +}; +Object.defineProperty(f, "0", { + get: function() { + accessed = true; + return 1; + } +}); - var i = Array.prototype.lastIndexOf.call(f,1); +var i = Array.prototype.lastIndexOf.call(f, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js index 84d3f60dea34b3812a8945d41711e4e8fc18c435..15edce5b1e6dfb759e91ebdffcadbdecda4019bd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js @@ -9,5 +9,5 @@ description: Array.prototype.map - applied to undefined assert.throws(TypeError, function() { - Array.prototype.map.call(undefined); // TypeError is thrown if value is undefined + Array.prototype.map.call(undefined); // TypeError is thrown if value is undefined }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js index abe5006666d412631c5f28c5878b61f9a4e40e43..52eb839eba8d05a80d273953a900e460d0afa2e6 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-10 description: Array.prototype.map - applied to the Math object ---*/ - function callbackfn(val, idx, obj) { - return ('[object Math]' === Object.prototype.toString.call(obj)); - } +function callbackfn(val, idx, obj) { + return ('[object Math]' === Object.prototype.toString.call(obj)); +} - Math.length = 1; - Math[0] = 1; - var testResult = Array.prototype.map.call(Math, callbackfn); +Math.length = 1; +Math[0] = 1; +var testResult = Array.prototype.map.call(Math, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js index bf14fa9a5eb302d6e1297757dbfb2b6a2ea9bf66..48585111966682c7c1f0bae46c5acc200914b7d8 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js @@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-11 description: Array.prototype.map - applied to Date object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Date; - } +function callbackfn(val, idx, obj) { + return obj instanceof Date; +} - var obj = new Date(); - obj.length = 1; - obj[0] = 1; +var obj = new Date(); +obj.length = 1; +obj[0] = 1; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js index ff7c0430cba209c040c55b1f87280243ab6abdac..ed40782e89a53b47a20d1456bd55c0bfeddbb105 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js @@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-12 description: Array.prototype.map - applied to RegExp object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof RegExp; - } +function callbackfn(val, idx, obj) { + return obj instanceof RegExp; +} - var obj = new RegExp(); - obj.length = 1; - obj[0] = 1; +var obj = new RegExp(); +obj.length = 1; +obj[0] = 1; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js index 72f36faed5de43ce0ed420081afb112657598a08..a17d877bd7ce1d19a44cf6fb235c065da8671f74 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-13 description: Array.prototype.map - applied to the JSON object ---*/ - function callbackfn(val, idx, obj) { - return ('[object JSON]' === Object.prototype.toString.call(obj)); - } +function callbackfn(val, idx, obj) { + return ('[object JSON]' === Object.prototype.toString.call(obj)); +} - JSON.length = 1; - JSON[0] = 1; - var testResult = Array.prototype.map.call(JSON, callbackfn); +JSON.length = 1; +JSON[0] = 1; +var testResult = Array.prototype.map.call(JSON, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js index 0beb4afa90d285592277dc21cb6f64799585d844..2fc430d6d407e132d46bc69f07de2d231931439b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js @@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-14 description: Array.prototype.map - applied to Error object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Error; - } +function callbackfn(val, idx, obj) { + return obj instanceof Error; +} - var obj = new Error(); - obj.length = 1; - obj[0] = 1; +var obj = new Error(); +obj.length = 1; +obj[0] = 1; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js index 2dd146e2aa4612d1b426bdfc46d7eb5c807b10d4..a8774bf2fc3e881a037f3bc99476bc4016525795 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js @@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-15 description: Array.prototype.map - applied to the Arguments object ---*/ - function callbackfn(val, idx, obj) { - return ('[object Arguments]' === Object.prototype.toString.call(obj)); - } +function callbackfn(val, idx, obj) { + return ('[object Arguments]' === Object.prototype.toString.call(obj)); +} - var obj = (function () { - return arguments; - }("a", "b")); +var obj = (function() { + return arguments; +}("a", "b")); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js index 45316ee3e2bfbb83db1f8df3b4224e51a5797b08..864d017a075787b48fbf446a02172448487a6b0f 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js @@ -9,5 +9,5 @@ description: Array.prototype.map - applied to null assert.throws(TypeError, function() { - Array.prototype.map.call(null); // TypeError is thrown if value is null + Array.prototype.map.call(null); // TypeError is thrown if value is null }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js index 94d84f8f9cc17b12c3cb897273e232be897debb6..3566c0ee49d6aa53fd9d877dab4ad260737486a7 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js @@ -7,13 +7,13 @@ es5id: 15.4.4.19-1-3 description: Array.prototype.map - applied to boolean primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Boolean; - } +function callbackfn(val, idx, obj) { + return obj instanceof Boolean; +} - Boolean.prototype[0] = true; - Boolean.prototype.length = 1; +Boolean.prototype[0] = true; +Boolean.prototype.length = 1; - var testResult = Array.prototype.map.call(false, callbackfn); +var testResult = Array.prototype.map.call(false, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js index 0fd3c3f0004450bc9da5cb469e06434d162d1da5..82e9e614e57595df4680eab7b48113ccb6119d81 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js @@ -7,16 +7,16 @@ es5id: 15.4.4.19-1-4 description: Array.prototype.map - applied to Boolean object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Boolean; - } +function callbackfn(val, idx, obj) { + return obj instanceof Boolean; +} - var obj = new Boolean(true); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +var obj = new Boolean(true); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js index 15ef1ec6d141afff5628a698648916bc1a8f5252..6a04e9177d24197913a3a5ac643a6ffb7036cde8 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js @@ -7,13 +7,13 @@ es5id: 15.4.4.19-1-5 description: Array.prototype.map - applied to number primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Number; - } +function callbackfn(val, idx, obj) { + return obj instanceof Number; +} - Number.prototype[0] = 1; - Number.prototype.length = 1; +Number.prototype[0] = 1; +Number.prototype.length = 1; - var testResult = Array.prototype.map.call(2.5, callbackfn); +var testResult = Array.prototype.map.call(2.5, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js index e27b6cabbea795ec61bf84ca79bfd6e8a9ed0570..ac9c03bca2ad1fbb97f42167fe726c8b5ab484ed 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js @@ -7,16 +7,16 @@ es5id: 15.4.4.19-1-6 description: Array.prototype.map - applied to Number object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Number; - } +function callbackfn(val, idx, obj) { + return obj instanceof Number; +} - var obj = new Number(-128); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +var obj = new Number(-128); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js index ca3f320496b1fdfbfcb602ea6ea595119da57464..402368ebd851787f2bf6bf93d3ff167fdd941e78 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js @@ -7,11 +7,11 @@ es5id: 15.4.4.19-1-7 description: Array.prototype.map - applied to string primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof String; - } +function callbackfn(val, idx, obj) { + return obj instanceof String; +} - var testResult = Array.prototype.map.call("abc", callbackfn); +var testResult = Array.prototype.map.call("abc", callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js index aef3b6dcccd2d4d720cb35455f49c9774d29b76a..93ca61e4fcc93dfc015da1f6bef3f1077a90bb85 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-8 description: Array.prototype.map - applied to String object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof String; - } +function callbackfn(val, idx, obj) { + return obj instanceof String; +} - var obj = new String("abc"); - var testResult = Array.prototype.map.call(obj, callbackfn); +var obj = new String("abc"); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js index 73438cef48738f856189245b5364ce4f8621870a..82f5918aa3c84055a17ecfda061d2da48a567e11 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js @@ -7,17 +7,17 @@ es5id: 15.4.4.19-1-9 description: Array.prototype.map - applied to Function object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Function; - } +function callbackfn(val, idx, obj) { + return obj instanceof Function; +} - var obj = function (a, b) { - return a + b; - }; - obj[0] = 11; - obj[1] = 9; +var obj = function(a, b) { + return a + b; +}; +obj[0] = 11; +obj[1] = 9; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js index 19e77252c445449ad2516759c8b05bb2df19fedb..9e89b6d856fe297198c7a1d5087c2cf9018c9f9c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js @@ -9,17 +9,17 @@ description: > is an own data property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: 2 - }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js index 431968e00c27089e3a7ad7059cbac010b1e068d3..9a74b1e09ad85dbd4bddc4d9d5e335f11778ff5e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js @@ -9,27 +9,27 @@ description: > inherited accessor property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js index c0766d9bce1a60e4aafbad1b72848950f413eece..c026c69712ff7d66c2578944db838581e96e35fd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js @@ -9,19 +9,19 @@ description: > is an own accessor property without a get function ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js index 2aebd50d9b4c7631c31142113cd37382a5059b90..93d0ceada020768b730d82a39588402de3b61bd8 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js @@ -10,23 +10,26 @@ description: > overrides an inherited accessor property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var obj = { 0: 12, 1: 11 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 12, + 1: 11 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js index 6c59cd21a96fd71789439de25780b6c6dbd0e8dc..756b3754febf227958304050fdff2237adc013b2 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js @@ -9,23 +9,23 @@ description: > 'length' is inherited accessor property without a get function ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 11; - child[1] = 12; +var child = new Con(); +child[0] = 11; +child[1] = 12; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js index 430de152502ce2d4d65d34ffc1003d758bed6384..6b3f226099d280bad3ea11573a5a1d2b54517cff 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js @@ -9,12 +9,15 @@ description: > 'length' property doesn't exist ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js index 04fd19b43e48cd41c7bd0e63588f890efb2b7b7f..28607e1b68fc79561fc624bb552506f73d0217c3 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js @@ -9,14 +9,14 @@ description: > implements its own property get method ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var func = function (a, b) { - return Array.prototype.map.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.map.call(arguments, callbackfn); +}; - var testResult = func(12, 11); +var testResult = func(12, 11); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js index 524012db22a59fcb3659803fd6956f9c8a3cf141..16f307c0fcfdb0a806763d4f85d4068f2e01ff85 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js @@ -9,13 +9,13 @@ description: > its own property get method ---*/ - function callbackfn(val, idx, obj) { - return parseInt(val, 10) > 1; - } +function callbackfn(val, idx, obj) { + return parseInt(val, 10) > 1; +} - var str = new String("432"); +var str = new String("432"); - String.prototype[3] = "1"; - var testResult = Array.prototype.map.call(str, callbackfn); +String.prototype[3] = "1"; +var testResult = Array.prototype.map.call(str, callbackfn); assert.sameValue(testResult.length, 3, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js index 60be78877fdde59f934004e56ffa19e1bded30fa..c2dbc89e3a542cea951cdf7681747546c78bf482 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js @@ -9,17 +9,17 @@ description: > its own property get method ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var fun = function (a, b) { - return a + b; - }; - fun[0] = 12; - fun[1] = 11; - fun[2] = 9; +var fun = function(a, b) { + return a + b; +}; +fun[0] = 12; +fun[1] = 11; +fun[2] = 9; - var testResult = Array.prototype.map.call(fun, callbackfn); +var testResult = Array.prototype.map.call(fun, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js index 028b0c6e0534bdab2b36f9cc598bbba140d937a0..46aa6c4fbb135afdae8584c6c6687d536209e877 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js @@ -9,10 +9,10 @@ description: > Array ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var testResult = [12, 11].map(callbackfn); +var testResult = [12, 11].map(callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js index c6170291e6f0efa61b275c718bb3ddc1b04a0c5d..4c6c6b18df6532a30e742a1e1381a138cfeae223 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js @@ -9,21 +9,23 @@ description: > own data property that overrides an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js index 3eff1cd3b49860b58dd63f286eb69b920f7d6706..eab5b1cb3be1a40a96e492b4ffdb3eb26f87d0db 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js @@ -9,13 +9,13 @@ description: > overrides an inherited data property on an Array ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } - var arrProtoLen; +function callbackfn(val, idx, obj) { + return val > 10; +} +var arrProtoLen; - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; - var testResult = [12, 11].map(callbackfn); +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; +var testResult = [12, 11].map(callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js index 144505d75fb70e4a09871d2741b1770292ccdf52..a636e0655fb018bb0a66bea7273bbefbf09e7be9 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js @@ -9,31 +9,31 @@ description: > own data property that overrides an inherited accessor property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } - - var proto = {}; - - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - child[0] = 12; - child[1] = 11; - child[2] = 9; - - var testResult = Array.prototype.map.call(child, callbackfn); +function callbackfn(val, idx, obj) { + return val > 10; +} + +var proto = {}; + +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js index a08231572e9331b6f69d9cbaa7716c4c1a4244aa..1cd5e51a2c0ce0188affe463714699a6e82cc603 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js @@ -9,20 +9,22 @@ description: > inherited data property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js index da80f49cb7581b4ade53c57d512b9fb31ca4e48b..6853ad8d3055f4db2f2f69ac60c69a3820459caa 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js @@ -9,23 +9,23 @@ description: > own accessor property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); - obj[0] = 12; - obj[1] = 11; - obj[2] = 9; +obj[0] = 12; +obj[1] = 11; +obj[2] = 9; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js index 45029cd3921a7ee67d9d732164b23696078142cd..abbf6ab285e542db0d30ff33dc074b3db259ef7a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js @@ -9,28 +9,30 @@ description: > own accessor property that overrides an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js index f587d696f64ecf603e2dc14cbdf6545a007bef25..043d20e1b4824fbb78a0b8fe87acb6abcc7b7037 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js @@ -10,35 +10,35 @@ description: > property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js index 4318f25adf97fd8ac315bef8c34ba6e65f2c05c0..364277255ed5fc7cd8554af02c6b6f9247481780 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js @@ -7,12 +7,14 @@ es5id: 15.4.4.19-3-1 description: Array.prototype.map - value of 'length' is undefined ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { length: undefined }; +var obj = { + length: undefined +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js index 513b39734dc41a827f44b0e1fe54364499339acb..ec607589a8b4652bf44417062dba1173c9f98059 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js @@ -7,12 +7,15 @@ es5id: 15.4.4.19-3-10 description: Array.prototype.map - value of 'length' is a number (value is NaN) ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js index aaa1244064ab646fae2b46502b641d0d46e98a78..78210aa745614d243b39a55261d4c6dc28e68f21 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js @@ -9,12 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "2" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "2" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js index ca5eb14e6202887ce2c53b1b9570c7e49800d460..a355dc5b2b5884b61496ec5cc8ca3cfa2e49ae99 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js @@ -9,12 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "-4294967294" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "-4294967294" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js index 5c0236679e7307f03fc248904e7eded5256bc584..704ea0f16dce22b2a2a27edd642a7146504c2d59 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js @@ -9,12 +9,17 @@ description: > convert to number primitive (value is a decimal number) ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "2.5" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "2.5" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js index 7d77ddf00db0a9e27544bd65072fdfceeeee12f4..1b57ec367933f54a70f6f0cbc892e72075c6cb27 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js @@ -7,11 +7,14 @@ es5id: 15.4.4.19-3-14 description: Array.prototype.map - 'length' is a string containing Infinity ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 9, length: "Infinity" }; +var obj = { + 0: 9, + length: "Infinity" +}; assert.throws(RangeError, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js index 180be9ffbb377ec5b7efd796000b645a178b1be7..100952bcdee6ffb35cc08c0c37046cc6d0b4c35d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js @@ -9,12 +9,17 @@ description: > exponential number ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "2E0" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "2E0" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js index 4190366affcbef7889a55028a27f24170ee26baa..d227a73ec0d5fffce5e7a6d46cf45813a2de2ba9 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js @@ -7,12 +7,17 @@ es5id: 15.4.4.19-3-16 description: Array.prototype.map - 'length' is a string containing a hex number ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "0x0002" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "0x0002" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js index bf76228350da6df5f6c300c4669d1283c99c6f3e..5c7446c41edcb2f2bd1af1b3ca8689dc019d009c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js @@ -9,12 +9,17 @@ description: > number with leading zeros ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "0002.00" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "0002.00" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js index 887e7999259786809bf5512acfb62aad9a47d3a0..bbd1b8b5a0336c39040f2d440209f26f7e9d665b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js @@ -9,12 +9,14 @@ description: > convert to a number ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { length: "asdf!_" }; +var obj = { + length: "asdf!_" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js index 4a181897f93fae215efcb25c7f001b68d5e29ce4..2f5e2b414f6d818e40299a5afe7b4dddaf2bc483 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js @@ -9,21 +9,21 @@ description: > own toString method ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { - 0: 11, - 1: 9, +var obj = { + 0: 11, + 1: 9, - length: { - toString: function () { - return '2'; - } - } - }; + length: { + toString: function() { + return '2'; + } + } +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js index dc6edd021905c1a976b9cbc8a563898509caf3bf..0dae4ae48583c8418863421fee40be42b0d17660 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js @@ -9,12 +9,15 @@ description: > (length overridden to true(type conversion)) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, length: true }; +var obj = { + 0: 11, + length: true +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js index e980403850a6202d56b0e1346fe5e645354d91c9..bc431d8a7259a7a96c960bb0bce6b6f8544dd450 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js @@ -9,21 +9,21 @@ description: > own valueOf method ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { - 0: 11, - 1: 9, +var obj = { + 0: 11, + 1: 9, - length: { - valueOf: function () { - return 2; - } - } - }; + length: { + valueOf: function() { + return 2; + } + } +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js index d1df6df8ec44f3a8ed96426a7deab8e93edf6b43..fb22c735517b98aa50cfee632b8fe325e90aee31 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js @@ -10,29 +10,29 @@ description: > returns a string ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var firstStepOccured = false; - var secondStepOccured = false; - var obj = { - 0: 11, - 1: 9, +var firstStepOccured = false; +var secondStepOccured = false; +var obj = { + 0: 11, + 1: 9, - length: { - valueOf: function () { - firstStepOccured = true; - return {}; - }, - toString: function () { - secondStepOccured = true; - return '2'; - } - } - }; + length: { + valueOf: function() { + firstStepOccured = true; + return {}; + }, + toString: function() { + secondStepOccured = true; + return '2'; + } + } +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert(firstStepOccured, 'firstStepOccured !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js index 3365cf226add59ae8a6afba236f1c7bb21d5d9b2..a7825b1c132c62a35bf9d70dd25eeba05af9a8bd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js @@ -10,23 +10,23 @@ description: > primitive values ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { - 1: 11, - 2: 12, +var obj = { + 1: 11, + 2: 12, - length: { - valueOf: function () { - return {}; - }, - toString: function () { - return {}; - } - } - }; + length: { + valueOf: function() { + return {}; + }, + toString: function() { + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js index 69eb09631fc5d2a0f9fdf64f65486324419b0682..44269d081649db86c735e51e36b419f46dc54463 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js @@ -9,37 +9,37 @@ description: > an object with an own toString and inherited valueOf methods ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var valueOfAccessed = false; - var toStringAccessed = false; +var valueOfAccessed = false; +var toStringAccessed = false; - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - child.toString = function () { - toStringAccessed = true; - return '1'; - }; +child.toString = function() { + toStringAccessed = true; + return '1'; +}; - var obj = { - 0: 11, - 1: 9, - length: child - }; +var obj = { + 0: 11, + 1: 9, + length: child +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js index 829ee06977cdf5211e4da6f41206ec7cc4b6d208..870a5631c47bda253287e4b8bf51748396c53cd4 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js @@ -9,16 +9,16 @@ description: > ensure truncation occurs in the proper direction ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { - 0: 11, - 1: 9, - length: 2.685 - }; +var obj = { + 0: 11, + 1: 9, + length: 2.685 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js index 07ed728fc421950021aefb2a100289921d39d357..3c7138f672322fc0402cd86984da46aa3eb360ad 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js @@ -7,16 +7,16 @@ es5id: 15.4.4.19-3-25 description: Array.prototype.map - value of 'length' is a negative non-integer ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { - 0: 11, - 1: 9, - length: -4294967294.5 - }; +var obj = { + 0: 11, + 1: 9, + length: -4294967294.5 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js index 4c0c9848661e6ddcca967e67d9838456d9421050..b4c3e3b311870e0017e975a68676b1eee1a90d93 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js @@ -7,14 +7,14 @@ es5id: 15.4.4.19-3-28 description: Array.prototype.map - value of 'length' is boundary value (2^32) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { - 0: 12, - length: 4294967296 - }; +var obj = { + 0: 12, + length: 4294967296 +}; assert.throws(RangeError, function() { - var newArr = Array.prototype.map.call(obj, callbackfn); + var newArr = Array.prototype.map.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js index 647d3c24daf17e3eb7dd96a8481b0b3dcf2f7795..613ab9c8e68b91c5fc357d0f606406a21dfc17a9 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js @@ -9,15 +9,15 @@ description: > 1) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { - 0: 11, - 1: 9, - length: 4294967297 - }; +var obj = { + 0: 11, + 1: 9, + length: 4294967297 +}; assert.throws(RangeError, function() { - var newArr = Array.prototype.map.call(obj, callbackfn); + var newArr = Array.prototype.map.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js index bc926871d2abcc560b683836ab14d18d81017408..096a0c323626b55ed95b1d6209842ceaddb3829c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js @@ -7,12 +7,15 @@ es5id: 15.4.4.19-3-3 description: Array.prototype.map - value of 'length' is a number (value is 0) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, length: 0 }; +var obj = { + 0: 11, + length: 0 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js index d0a34ea147a381ac1253e04388551d1d3b936b1d..c3d6fbc9cb541344e6e949d4cad721254aa592d1 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js @@ -7,12 +7,15 @@ es5id: 15.4.4.19-3-4 description: Array.prototype.map - value of 'length' is a number (value is +0) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, length: +0 }; +var obj = { + 0: 11, + length: +0 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js index d9409340f52c3b9338395fb59314e6a1925e5e1d..d467cfe172d4c9919e20d0c20f91e3fee5629342 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js @@ -7,12 +7,15 @@ es5id: 15.4.4.19-3-5 description: Array.prototype.map - value of 'length' is a number (value is -0) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, length: -0 }; +var obj = { + 0: 11, + length: -0 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js index 6efbf8d0b1a5d7660309fb38c5c1f9983f2b5ef1..794464e22a556f0196d2aaa3b8a0a62a04633599 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js @@ -9,12 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 10, 1: 12, 2: 9, length: 2 }; +var obj = { + 0: 10, + 1: 12, + 2: 9, + length: 2 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js index c4b0f1bd4ce2d2efa1efe86d0ab514047386080d..a5215ce4fb2f6d58d923ba07e7a7f944f08999c9 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js @@ -9,12 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 10, 1: 12, 2: 9, length: -4294967294 }; +var obj = { + 0: 10, + 1: 12, + 2: 9, + length: -4294967294 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js index 6265784775bdb5854c222adb2632142edf92f37f..3677932afd848a7d1a111d11d4ecb15376bf40c4 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js @@ -9,11 +9,14 @@ description: > Infinity) ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 9, length: Infinity }; +var obj = { + 0: 9, + length: Infinity +}; assert.throws(RangeError, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js index be3cdf24c6cd01df8af623fe0c5849b79b1b09ee..a97e6065eef75b5718bbdf18eebd04a665d139cd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js @@ -9,12 +9,15 @@ description: > -Infinity) ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js index 417b73aba78d0df4d16abe8b497ddb7e6ac9eae3..fc826857a19bab49793d6a4afacbab7ac9cb4f31 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-1 description: Array.prototype.map throws TypeError if callbackfn is undefined ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.map(); + arr.map(); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js index 0b449aa216cae2cf4a3f19ba7239b64c3f2ec06c..74bc391271fbf877c09394143f559d502477e662 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js @@ -9,15 +9,18 @@ description: > thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.map.call(obj, undefined); + Array.prototype.map.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js index 2c9041b64c9b95cdc16728ea66ddc595aa9774fe..5723ab3ed86092736d212eabc7a38922b3810eff 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js @@ -9,19 +9,22 @@ description: > thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.map.call(obj, undefined); + Array.prototype.map.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js index 68bc2785587687a3032ae263ca7fc5e1307403ac..45d301f5f426c46c83aa5d54d989fb4f5580150f 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js @@ -7,11 +7,11 @@ es5id: 15.4.4.19-4-12 description: Array.prototype.map - 'callbackfn' is a function ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var testResult = [11, 9].map(callbackfn); +var testResult = [11, 9].map(callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js index 2d440b206def65bf39860275901cdcc5bc0d9ff4..3df2d5ab4e0005e98d890aebdeb6efc88d74e799 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js @@ -9,26 +9,28 @@ description: > passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.map.call(obj); + Array.prototype.map.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js index b239210714657aaf4920c005826fa469ce3b6cfa..1da77da817607c2e8a157e8a971ef3e9e950bc65 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js @@ -9,7 +9,7 @@ description: > unreferenced ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(ReferenceError, function() { - arr.map(foo); + arr.map(foo); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js index 2dd6ecef6abcaadd0473b8ad55bc561754eed65a..d6e5f8d341dba1e4e0afe3cc788be3f0695b830a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-3 description: Array.prototype.map throws TypeError if callbackfn is null ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.map(null); + arr.map(null); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js index fe5eb72aaad57d3c297cdf6c7af46f92ba2a8ea1..fe8918bfcae531e6247fa072be9c5a9a9f2524dc 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js @@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-4 description: Array.prototype.map throws TypeError if callbackfn is boolean ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.map(true); + arr.map(true); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js index 0c7a6d5e3625b8717f08ac359df24609af2d8117..b6c230364ad161620ba957f50365ae8b1ce3fe50 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js @@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-5 description: Array.prototype.map throws TypeError if callbackfn is number ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.map(5); + arr.map(5); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js index bebc2b0202be1f509c53fed236b4792c411a030d..df6ccdb90d51f128ddada074bb67cf1354a84af2 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js @@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-6 description: Array.prototype.map throws TypeError if callbackfn is string ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.map("abc"); + arr.map("abc"); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js index a52fc2c2beaafd1f4b5fdda97dfb7c8913885f43..d795447cb12e49fd831a98be52e774625936fdc0 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js @@ -9,7 +9,7 @@ description: > without Call internal method ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.map(new Object()); + arr.map(new Object()); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js index d9126d50ab21f293f66059d8fce16628b0da6257..f7914a9410d2481c002d6eb4bb4ca66dd8a19395 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js @@ -9,18 +9,21 @@ description: > when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.map.call(obj, null); + Array.prototype.map.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js index 5a28ad017819a2834187d3ff440acf76beb30e7f..03ecedcc6a8e6ae0e7efca4554b408dc86b5353c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js @@ -9,22 +9,25 @@ description: > when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.map.call(obj, null); + Array.prototype.map.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js index 9132028458c7da69d38822663d3d3bd3135bccbe..a2e997d8b4aa7b3dea1b56ed812ecfd1eaf71b19 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js @@ -8,14 +8,14 @@ description: Array.prototype.map - thisArg not passed to strict callbackfn flags: [noStrict] ---*/ - var innerThisCorrect = false; +var innerThisCorrect = false; - function callbackfn(val, idx, obj) { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } +function callbackfn(val, idx, obj) { + "use strict"; + innerThisCorrect = this === undefined; + return true; +} - [1].map(callbackfn); +[1].map(callbackfn); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js index c9e19110cfd767a7fde23dffcb7568f015413a99..a2b7393a98d871d18a81a7c17e2fa69d1aac718c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js @@ -8,17 +8,17 @@ description: Array.prototype.map - thisArg not passed flags: [noStrict] ---*/ - this._15_4_4_19_5_1 = true; +this._15_4_4_19_5_1 = true; (function() { - var _15_4_4_19_5_1 = false; + var _15_4_4_19_5_1 = false; - function callbackfn(val, idx, obj) { - return this._15_4_4_19_5_1; - } - var srcArr = [1]; - var resArr = srcArr.map(callbackfn); + function callbackfn(val, idx, obj) { + return this._15_4_4_19_5_1; + } + var srcArr = [1]; + var resArr = srcArr.map(callbackfn); -assert.sameValue(resArr[0], true, 'resArr[0]'); + assert.sameValue(resArr[0], true, 'resArr[0]'); })(); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js index 04fca72a6a7bfcb7d87e1e30fccb091165b69b9f..a2c4d150b421dc59f342a0f6b6472c4b4855f376 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-10 description: Array.prototype.map - Array object can be used as thisArg ---*/ - var objArray = new Array(2); +var objArray = new Array(2); - function callbackfn(val, idx, obj) { - return this === objArray; - } +function callbackfn(val, idx, obj) { + return this === objArray; +} - var testResult = [11].map(callbackfn, objArray); +var testResult = [11].map(callbackfn, objArray); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js index 945db32b66882c042b89643d2a6a79dd58b608c2..98cd84ad181454bdfe87c09dc45bdaaae951dfcb 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-11 description: Array.prototype.map - String object can be used as thisArg ---*/ - var objString = new String(); +var objString = new String(); - function callbackfn(val, idx, obj) { - return this === objString; - } +function callbackfn(val, idx, obj) { + return this === objString; +} - var testResult = [11].map(callbackfn, objString); +var testResult = [11].map(callbackfn, objString); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js index a6bbce103e9d8f796aafc65057d496afba3c57c9..0fbcf8f7a9ef63691c33dc90a746e4a3c70af34c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-12 description: Array.prototype.map - Boolean object can be used as thisArg ---*/ - var objBoolean = new Boolean(); +var objBoolean = new Boolean(); - function callbackfn(val, idx, obj) { - return this === objBoolean; - } +function callbackfn(val, idx, obj) { + return this === objBoolean; +} - var testResult = [11].map(callbackfn, objBoolean); +var testResult = [11].map(callbackfn, objBoolean); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js index 23db7ce3a36036f0ad5c5ce17008ddd6c0337372..a02c29a9e026c6afa658dca6e84fb746b9594031 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-13 description: Array.prototype.map - Number object can be used as thisArg ---*/ - var objNumber = new Number(); +var objNumber = new Number(); - function callbackfn(val, idx, obj) { - return this === objNumber; - } +function callbackfn(val, idx, obj) { + return this === objNumber; +} - var testResult = [11].map(callbackfn, objNumber); +var testResult = [11].map(callbackfn, objNumber); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js index a845aa77a07a2f450b51eab328c48178c9957284..01a23927ac179d2effef74a5d44ec87efd0e9633 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-14 description: Array.prototype.map - the Math object can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this === Math; - } +function callbackfn(val, idx, obj) { + return this === Math; +} - var testResult = [11].map(callbackfn, Math); +var testResult = [11].map(callbackfn, Math); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js index 84e7c7b78a87336070e20ff24f8bd6e16118d8fc..9dd98f582241f8e93bc297e0d6022f0ba840935c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-15 description: Array.prototype.map - Date object can be used as thisArg ---*/ - var objDate = new Date(); +var objDate = new Date(); - function callbackfn(val, idx, obj) { - return this === objDate; - } +function callbackfn(val, idx, obj) { + return this === objDate; +} - var testResult = [11].map(callbackfn, objDate); +var testResult = [11].map(callbackfn, objDate); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js index b7a7384274b213dbb9b5b615f8261e58b49ef9f4..f34254d011b20485cc74f43f23e2ad88ddb8e21c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-16 description: Array.prototype.map - RegExp object can be used as thisArg ---*/ - var objRegExp = new RegExp(); +var objRegExp = new RegExp(); - function callbackfn(val, idx, obj) { - return this === objRegExp; - } +function callbackfn(val, idx, obj) { + return this === objRegExp; +} - var testResult = [11].map(callbackfn, objRegExp); +var testResult = [11].map(callbackfn, objRegExp); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js index acc8b9d40822628167b92fdae3f7d83ef07549b9..42d67bbeff2800af682b22fb923eabc7a9250840 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-17 description: Array.prototype.map - the JSON object can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this === JSON; - } +function callbackfn(val, idx, obj) { + return this === JSON; +} - var testResult = [11].map(callbackfn, JSON); +var testResult = [11].map(callbackfn, JSON); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js index 9b65b9c5b9d38ddb2c2fd43b545a3b939b634796..e3032b4f47631770197ec8e6b6108d0e08159054 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-18 description: Array.prototype.map - Error object can be used as thisArg ---*/ - var objError = new RangeError(); +var objError = new RangeError(); - function callbackfn(val, idx, obj) { - return this === objError; - } +function callbackfn(val, idx, obj) { + return this === objError; +} - var testResult = [11].map(callbackfn, objError); +var testResult = [11].map(callbackfn, objError); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js index 2da89ea4f2ac13c5ee4dc356e5a12c85e3076a10..c2740c110bdfe5156f946ce7c9507714ac0b89d3 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js @@ -7,16 +7,16 @@ es5id: 15.4.4.19-5-19 description: Array.prototype.map - the Arguments object can be used as thisArg ---*/ - var arg; +var arg; - function callbackfn(val, idx, obj) { - return this === arg; - } +function callbackfn(val, idx, obj) { + return this === arg; +} - arg = (function () { - return arguments; - }(1, 2, 3)); +arg = (function() { + return arguments; +}(1, 2, 3)); - var testResult = [11].map(callbackfn, arg); +var testResult = [11].map(callbackfn, arg); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js index 6bbeebe523da49cc8e897ed43642265e596c5168..fdb667af1b811e9433b7bd45643a6587cc88f29c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js @@ -7,15 +7,16 @@ es5id: 15.4.4.19-5-2 description: Array.prototype.map - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var o = new Object(); +o.res = true; - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,o); +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, o); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js index f101b1660eff0ef8aa8d3616b15594c9a7d5eaf1..0f105c52cec480c6690596c0c9ca2968a24b6ddd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js @@ -8,10 +8,11 @@ description: Array.prototype.map - the global object can be used as thisArg ---*/ var global = this; - function callbackfn(val, idx, obj) { - return this === global; - } - var testResult = [11].map(callbackfn, this); +function callbackfn(val, idx, obj) { + return this === global; +} + +var testResult = [11].map(callbackfn, this); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js index 9ef42b64e2624d0e25546cfaf39136cc7e7571a7..1386aa749304ac5dd1bc055e0634fadd89131c0a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-22 description: Array.prototype.map - boolean primitive can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === false; +} - var testResult = [11].map(callbackfn, false); +var testResult = [11].map(callbackfn, false); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js index 29f99094ab2b3e70f98e5f76f84e9ec6e4e476ae..8e7ee98356441b6b27486823bf00ef26f697e188 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-23 description: Array.prototype.map - number primitive can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === 101; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === 101; +} - var testResult = [11].map(callbackfn, 101); +var testResult = [11].map(callbackfn, 101); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js index 292dca579adba591b19a70d766bc029239bae978..cb29707e65b0c511bf63ac57331729385c124c0e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-24 description: Array.prototype.map - string primitive can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === "abc"; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === "abc"; +} - var testResult = [11].map(callbackfn, "abc"); +var testResult = [11].map(callbackfn, "abc"); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js index 08e3e062b482cf03c7e00cd575640c7e9ec481f7..97dd1e7280088d548c7631b9f0d7b824d9ceb731 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js @@ -7,15 +7,16 @@ es5id: 15.4.4.19-5-3 description: Array.prototype.map - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var a = new Array(); +a.res = true; - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,a); +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, a); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js index 36c4c36ff32b406079aafbafe9d0c36ed6e55284..85ee3deec963dfe2eaca5e961672e16df718ea51 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js @@ -9,17 +9,18 @@ description: > template(prototype) ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.prototype.res = true; - var f = new foo(); +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,f); +function foo() {} +foo.prototype.res = true; +var f = new foo(); + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, f); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js index 2e116854993ace05a7600a4abd3015a3c1dff62a..9568cc3d490b1be7a6c04837a18dde370debc86e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js @@ -7,17 +7,18 @@ es5id: 15.4.4.19-5-5 description: Array.prototype.map - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,f); +function foo() {} +var f = new foo(); +f.res = true; + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, f); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js index 8950f71db641eb0a2f4e98117a27460926beb748..20366e19c6ded04b9b02cbe04f65342dc01743aa 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js @@ -7,16 +7,17 @@ es5id: 15.4.4.19-5-6 description: Array.prototype.map - thisArg is function ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,foo); +function foo() {} +foo.res = true; + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, foo); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js index 7bd84eb5917ce2d001a107acb1ab0088a1e89f6a..7f11fa6764d94bf3a670bcc824121798f566a9c2 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-7 description: Array.prototype.map - built-in functions can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this === eval; - } +function callbackfn(val, idx, obj) { + return this === eval; +} - var testResult = [11].map(callbackfn, eval); +var testResult = [11].map(callbackfn, eval); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js index 247bfb3c392c9d00d5a54931e2bc2695f33b3fa1..31f536819cd5e8f5d47eae242b78e74a9e3d1433 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js @@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-9 description: Array.prototype.map - Function object can be used as thisArg ---*/ - var objFunction = function () { }; +var objFunction = function() {}; - function callbackfn(val, idx, obj) { - return this === objFunction; - } +function callbackfn(val, idx, obj) { + return this === objFunction; +} - var testResult = [11].map(callbackfn, objFunction); +var testResult = [11].map(callbackfn, objFunction); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js index 2c86c43b8c8bde46ab1a527136b12240144b2348..b72e54a44a767f0bb3a4970eb7a27f41e5a67dc8 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js @@ -9,6 +9,6 @@ description: > argument is the ourput array ---*/ - var newArr = [11].map(function () { }); +var newArr = [11].map(function() {}); assert(Array.isArray(newArr), 'Array.isArray(newArr) !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js index 1acfec147fe1a88967bbea70f1ba757f05bcd720..593496d8516239314f413fddb1c9b69639f965bc 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js @@ -7,6 +7,6 @@ es5id: 15.4.4.19-6-2 description: Array.prototype.map - the returned array is instanceof Array ---*/ - var newArr = [11].map(function () { }); +var newArr = [11].map(function() {}); assert(newArr instanceof Array, 'newArr instanceof Array !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js index eeb0830e84d6b543b9452001de5468ca8fe2709b..07255dc87f8de288087439871b44ab8f33971710 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js @@ -9,14 +9,14 @@ description: > after it is called ---*/ - function callbackfn(val, idx, obj) - { - srcArr[2] = 3; - srcArr[5] = 6; - return 1; - } +function callbackfn(val, idx, obj) +{ + srcArr[2] = 3; + srcArr[5] = 6; + return 1; +} - var srcArr = [1,2,,4,5]; - var resArr = srcArr.map(callbackfn); +var srcArr = [1, 2, , 4, 5]; +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 5, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js index f1bbd8be5dd32415facaf9adf7e5e5be97e603f5..17ff67f93e2cf600eee46aa7430720c2feabe373 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js @@ -9,17 +9,17 @@ description: > it is called ---*/ - function callbackfn(val, idx, obj) - { - srcArr[4] = -1; - if(val > 0) - return 1; - else - return 0; - } +function callbackfn(val, idx, obj) +{ + srcArr[4] = -1; + if (val > 0) + return 1; + else + return 0; +} - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.map(callbackfn); +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 5, 'resArr.length'); assert.sameValue(resArr[4], 0, 'resArr[4]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js index 3b6e5a675e405d7c225076fbb71f53e8f4c083a7..10ef81567fc70dd9beb6ef291690d73dc32b1ebf 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js @@ -9,18 +9,18 @@ description: > the call ---*/ - function callbackfn(val, idx, obj) - { - delete srcArr[4]; - if(val > 0) - return 1; - else - return 0; +function callbackfn(val, idx, obj) +{ + delete srcArr[4]; + if (val > 0) + return 1; + else + return 0; - } +} - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.map(callbackfn); +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 5, 'resArr.length'); assert.sameValue(resArr[4], undefined, 'resArr[4]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js index 5962cdd901d0350ebc3337d965d6f1174e79c231..e488c814941ffdac4702b8a5138f0e0e65bdd780 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js @@ -9,16 +9,17 @@ description: > Array.length is decreased ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - srcArr.length = 2; - callCnt++; - return 1; - } +var callCnt = 0; - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + srcArr.length = 2; + callCnt++; + return 1; +} + +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 5, 'resArr.length'); assert.sameValue(callCnt, 2, 'callCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js index 85747416a144f9da85cdf0f1ce29962e52fad3ca..969ef76b088cd277aafe9b250cf6f87f49d63f7c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js @@ -9,18 +9,19 @@ description: > sparse array ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - srcArr[1000] = 3; - callCnt++; - return val; - } +var callCnt = 0; - var srcArr = new Array(10); - srcArr[1] = 1; - srcArr[2] = 2; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + srcArr[1000] = 3; + callCnt++; + return val; +} + +var srcArr = new Array(10); +srcArr[1] = 1; +srcArr[2] = 2; +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 10, 'resArr.length'); assert.sameValue(callCnt, 2, 'callCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js index 131558eb445c0c96aef31014477d75265fbee7a9..1a3d4c17556e51d9ddbbb70d4d0e926e7a0324e7 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js @@ -9,20 +9,20 @@ description: > when same index is also present in prototype ---*/ - function callbackfn(val, idx, obj) - { - delete srcArr[4]; - if(val > 0) - return 1; - else - return 0; +function callbackfn(val, idx, obj) +{ + delete srcArr[4]; + if (val > 0) + return 1; + else + return 0; - } +} - Array.prototype[4] = 5; - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.map(callbackfn); - delete Array.prototype[4]; +Array.prototype[4] = 5; +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.map(callbackfn); +delete Array.prototype[4]; assert.sameValue(resArr.length, 5, 'resArr.length'); assert.sameValue(resArr[4], 1, 'resArr[4]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js index 02da272f15b23f24b55dd0b9f29b16277c7b5fda..537e153f5c871973117a50eea46e0138467ae7ad 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js @@ -7,18 +7,18 @@ es5id: 15.4.4.19-8-7 description: Array.prototype.map successful to delete the object in callbackfn ---*/ - var obj = {}; - obj.srcArr = [1, 2, 3, 4, 5]; +var obj = {}; +obj.srcArr = [1, 2, 3, 4, 5]; - function callbackfn(val, idx, obj) { - delete obj.srcArr; - if (val > 0) - return 1; - else - return 0; - } +function callbackfn(val, idx, obj) { + delete obj.srcArr; + if (val > 0) + return 1; + else + return 0; +} - var resArr = obj.srcArr.map(callbackfn); +var resArr = obj.srcArr.map(callbackfn); assert.sameValue(resArr.toString(), "1,1,1,1,1", 'resArr.toString()'); assert.sameValue(obj.hasOwnProperty("arr"), false, 'obj.hasOwnProperty("arr")'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js index 6b3d7146d6ad222083bfc20e88a1c2d4bd6733ee..0a9f95ed4bbf02416d5c1dc5a81c77236e3b62a1 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js @@ -9,15 +9,20 @@ description: > on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +var accessed = false; - var obj = { 0: 11, 1: 12, length: 0 }; +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var testResult = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12, + length: 0 +}; + +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js index 397d7a9ff52cae8808bed5b18d5fe906ab9f0a3f..5f47a3a63ab037cab04612c7aa1471d9917388c4 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js @@ -9,23 +9,24 @@ description: > of iterations on an Array ---*/ - var called = 0; - function callbackfn(val, idx, obj) { - called += 1; - return val > 10; - } +var called = 0; - var arr = [9, , 12]; +function callbackfn(val, idx, obj) { + called += 1; + return val > 10; +} - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 8; - }, - configurable: true - }); +var arr = [9, , 12]; - var testResult = arr.map(callbackfn); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 8; + }, + configurable: true +}); + +var testResult = arr.map(callbackfn); assert.sameValue(testResult.length, 3, 'testResult.length'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js index 1c9aa86a7e69c34391774518220afc2bdeb6c870..ff4a57e8ae93728d3e114eb402c5546590399e48 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js @@ -9,16 +9,17 @@ description: > assigned values ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return 1; - } +var callCnt = 0; - var srcArr = new Array(10); - srcArr[1] = undefined; //explicitly assigning a value - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; + return 1; +} + +var srcArr = new Array(10); +srcArr[1] = undefined; //explicitly assigning a value +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 10, 'resArr.length'); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js index 040c0b852c0288ea8d3b9bf1036d1ed7af3bed98..18ef426fb6340c338923c19f5a02629da6d8d6da 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js @@ -9,21 +9,24 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - function callbackfn(val, idx, obj) { - return idx === 1 && typeof val === "undefined"; - } - var obj = { 2: 2, length: 20 }; +function callbackfn(val, idx, obj) { + return idx === 1 && typeof val === "undefined"; +} +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - var testResult = Array.prototype.map.call(obj, callbackfn); +Object.prototype[1] = 1; +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 20, 'testResult.length'); assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js index 58fccded06ae790df2916e42581deec1b98b5ac3..d194b572bf1757ec810ded31c21f13931464a005 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js @@ -9,21 +9,21 @@ description: > prototype index property not to be visited on an Array ---*/ - function callbackfn(val, idx, obj) { - return idx === 1 && typeof val === "undefined"; - } - var arr = [0, , 2]; +function callbackfn(val, idx, obj) { + return idx === 1 && typeof val === "undefined"; +} +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - var testResult = arr.map(callbackfn); +Array.prototype[1] = 1; +var testResult = arr.map(callbackfn); assert.sameValue(testResult.length, 3, 'testResult.length'); assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js index 0f5e4fc68d1369130bc8414d4c6e58b64f4ed00a..8d6fd84c8c10fdd8c796f6b5c809c864b3508955 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js @@ -10,24 +10,29 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 3) { - return false; - } else { - return true; - } - } - var obj = { 0: 0, 1: 1, 2: 2, length: 10 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 3) { + return false; + } else { + return true; + } +} +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 3; - var testResult = Array.prototype.map.call(obj, callbackfn); +Object.prototype[1] = 3; +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js index f510e09e24e86e3a2a7cd4e30dab974da27ca9f3..7cea73c7353a96d145c0be9a05db203293bf04bc 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js @@ -9,24 +9,24 @@ description: > property causes prototype index property to be visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 3) { - return false; - } else { - return true; - } - } - var arr = [0, 1, 2]; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 3) { + return false; + } else { + return true; + } +} +var arr = [0, 1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 3; - var testResult = arr.map(callbackfn); +Array.prototype[1] = 3; +var testResult = arr.map(callbackfn); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js index ddef903df1946064afe1996964c71976d5a8f5a1..45131bd9a535d81c21eb107c6b92efb8f1a59d0d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js @@ -9,20 +9,20 @@ description: > property not to be visited ---*/ - function callbackfn(val, idx, obj) { - return idx === 3 && typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + return idx === 3 && typeof val === "undefined"; +} - var arr = [0, 1, 2, "last"]; +var arr = [0, 1, 2, "last"]; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(typeof testResult[3], "undefined", 'typeof testResult[3]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js index 1ed9f5ad34360f326ada03850322ecec48f76096..2cf1762a52348872d09c17612e7bede8f71f8f6e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js @@ -9,31 +9,31 @@ description: > property causes prototype index property to be visited ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "prototype") { - return false; - } else { - return true; - } - } - var arr = [0, 1, 2]; +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "prototype") { + return false; + } else { + return true; + } +} +var arr = [0, 1, 2]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult.length, 3, 'testResult.length'); assert.sameValue(testResult[2], false, 'testResult[2]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js index b12e1aab05232ea229b216558461981c7d940f19..5e5290fddaf2c674efed9b0b1b4335c40575610c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js @@ -10,32 +10,32 @@ description: > flags: [noStrict] ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "unconfigurable") { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "unconfigurable") { + return false; + } else { + return true; + } +} - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult.length, 3, 'testResult.length'); assert.sameValue(testResult[2], false, 'testResult[2]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js index bc701853645dfaf6397164a29235c7d863de1336..74108f0927b72db24d9850a6b8cf6332af6c8acf 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js @@ -7,24 +7,24 @@ es5id: 15.4.4.19-8-b-2 description: Array.prototype.map - added properties in step 2 are visible here ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "length") { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "length") { + return false; + } else { + return true; + } +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - obj[2] = "length"; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + obj[2] = "length"; + return 3; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[2], false, 'testResult[2]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js index 1377383e1575d54ddc1304a8419fe8f28ead2fa5..957b9048a10e2cd780f7ba10db23da73ac5a524c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js @@ -7,23 +7,26 @@ es5id: 15.4.4.19-8-b-3 description: Array.prototype.map - deleted properties in step 2 are visible here ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2) { - return false; - } else { - return true; - } - } - var obj = { 2: 6.99, 8: 19 }; +function callbackfn(val, idx, obj) { + if (idx === 2) { + return false; + } else { + return true; + } +} +var obj = { + 2: 6.99, + 8: 19 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 10; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(typeof testResult[2], "undefined", 'typeof testResult[2]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js index 8e166666d5e29ecaecd44a13b47a2ab5f89c5820..bf1e739fbb9eafc21f690336a38f019c7f94caaa 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js @@ -9,30 +9,32 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js index a380501440b644f7a3ed506b86626833942aa9c7..c0ca4d25913a9988c7cd143f7e5837110ab5ba3d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js @@ -9,30 +9,30 @@ description: > current position are visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js index 2f12f0c1e1f339f91c3da6ef6884a566b10c6293..6f983455ee1c28c48309ec26b62adc17d9b7842f 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js @@ -9,29 +9,31 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return false; - } else { - return true; - } - } - var obj = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return false; + } else { + return true; + } +} +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js index fe1b0998cbb364573089ccf93322ebcf3868a7a1..5e40ddb27318dbf944fb990fbf6bb0c3b6420d3b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js @@ -9,29 +9,29 @@ description: > current position are visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return false; - } else { - return true; - } - } - var arr = [0, , 2]; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return false; + } else { + return true; + } +} +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js index 1dd61b31e2c51527e507a16659d457d40da7a3f0..58f3ac9c18895b894c0ae4e3961b7c7a3c5bad4d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js @@ -9,31 +9,33 @@ description: > not to be visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return false; - } else { - return true; - } - } - var obj = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1) { + return false; + } else { + return true; + } +} +var obj = { + length: 2 +}; - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js index 1d0cc76407246ed7ff93096a451db9548aa6ad40..a1dd861f20cb2304229cc31c141fda3b3eab19c2 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js @@ -9,31 +9,31 @@ description: > not to be visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return false; - } else { - return true; - } - } - var arr = [1, 2]; +function callbackfn(val, idx, obj) { + if (idx === 1) { + return false; + } else { + return true; + } +} +var arr = [1, 2]; - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js index 8543d0ead620681c9642702b5e91e053fc7e31ed..16b3fe32611031ac1ece401649360b71e36d12be 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js @@ -9,17 +9,20 @@ description: > on an Array-like object ---*/ - var kValue = {}; +var kValue = {}; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var obj = { 5: kValue, length: 100 }; +var obj = { + 5: kValue, + length: 100 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr[5], true, 'newArr[5]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js index ccf8d3fbd2dc6d4933aad0c61b1f2cb2b5182b2e..f9809a1a5834945ee8d497a7cc6e6383130f96a0 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js @@ -9,24 +9,24 @@ description: > property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js index 5e8f0eba5a2e26ffc7811a95766b7990e15a5c0e..db7bfa03d375ae6ff3fd35aa8327930746f7fff1 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js @@ -10,29 +10,32 @@ description: > Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var proto = { 0: 5, length: 2 }; +var proto = { + 0: 5, + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(child, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js index b233477370b0238e04cfb99ca9f756a843cc176e..9f61f72be72f82afc536b20f233b9b00a3ab2ba3 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js @@ -9,26 +9,26 @@ description: > property that overrides an inherited data property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var arr = []; +var arr = []; - Array.prototype[0] = 11; +Array.prototype[0] = 11; - Object.defineProperty(arr, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js index 47c8e86c5d26aff13b173ea572d5e97d7c8bf4b3..3ca3d54de96bf3e675dcb604f7f0edd39c8d955d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js @@ -10,36 +10,38 @@ description: > Array-like object ---*/ - var kValue = "abc"; - - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } - - var proto = { length: 2 }; - - Object.defineProperty(proto, "0", { - get: function () { - return 5; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - - Object.defineProperty(child, "0", { - get: function () { - return kValue; - }, - configurable: true - }); - - var testResult = Array.prototype.map.call(child, callbackfn); +var kValue = "abc"; + +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} + +var proto = { + length: 2 +}; + +Object.defineProperty(proto, "0", { + get: function() { + return 5; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +Object.defineProperty(child, "0", { + get: function() { + return kValue; + }, + configurable: true +}); + +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js index 57580015db728e6164d2913311480c3abb9215a0..148bf9dbcbc73bd620ec41a80a3c357e5f0c4551 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js @@ -9,31 +9,31 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var kValue = "abc"; - - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } - - var arr = []; - - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); - - Object.defineProperty(arr, "0", { - get: function () { - return kValue; - }, - configurable: true - }); - - var testResult = arr.map(callbackfn); +var kValue = "abc"; + +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} + +var arr = []; + +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + return kValue; + }, + configurable: true +}); + +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js index ada617c65bab523392cc3f2513e956b3d4714d9e..590dbe8bd05641e4513714aac5abdc426f6de980 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js @@ -9,29 +9,31 @@ description: > accessor property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - Object.defineProperty(proto, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(proto, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js index 78714aeabb7c98f2392ce9284c3abf95ebaa19e3..8be14c2d2957bc0db8ce02a4de76e32c626a7a74 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js @@ -9,22 +9,22 @@ description: > accessor property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = [, ].map(callbackfn); +var testResult = [, ].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js index 2e3f9f98726ff77a560fb5d3b7aea3fb09306229..9c0a96b09a082919a1c09eb5bc4dd6f1602eb020 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js @@ -9,20 +9,22 @@ description: > property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js index fda5968c70eb004a91b4cd464f6fec069773361e..142b2878daf144f030addee514e119e98716a38a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js @@ -9,20 +9,20 @@ description: > property without a get function on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js index 7589e4c132cf6824ac71687f9beab9d1615bcf47..f20dbc09850b2516c4774c4119634b07083b5193 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js @@ -10,27 +10,27 @@ description: > accessor property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return typeof val === "undefined"; + } + return false; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 100; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 100; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js index e9fb0f5588f48920635ba8561e2b6408b342fff6..b3c0686e222d952299fa17f424cfb4c42a157059 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js @@ -9,17 +9,17 @@ description: > on an Array ---*/ - var kValue = {}; +var kValue = {}; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var arr = [kValue]; +var arr = [kValue]; - var newArr = arr.map(callbackfn); +var newArr = arr.map(callbackfn); assert.sameValue(newArr[0], true, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js index d73b92a01e14096d65f2616fa117fff5bf7c2419..79faa22950003cbfd8850531963042a42e23a467 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js @@ -10,33 +10,33 @@ description: > accessor property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return typeof val === "undefined"; - } - return false; - } - - var proto = {}; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 2; - - Object.defineProperty(child, "0", { - set: function () { }, - configurable: true - }); - - Object.defineProperty(proto, "0", { - get: function () { - return 100; - }, - configurable: true - }); - - var testResult = Array.prototype.map.call(child, callbackfn); +function callbackfn(val, idx, obj) { + if (idx === 0) { + return typeof val === "undefined"; + } + return false; +} + +var proto = {}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 2; + +Object.defineProperty(child, "0", { + set: function() {}, + configurable: true +}); + +Object.defineProperty(proto, "0", { + get: function() { + return 100; + }, + configurable: true +}); + +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js index 09387d32895d739553e216f426d7d238220ffe42..d7e36fc415cd24ef2058fbc4ca9657b38a86025b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js @@ -9,24 +9,26 @@ description: > accessor property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return typeof val === "undefined"; + } + return false; +} - var proto = { length: 2 }; - Object.defineProperty(proto, "0", { - set: function () { }, - configurable: true - }); +var proto = { + length: 2 +}; +Object.defineProperty(proto, "0", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js index c45f502b2d08ce7672270009b6fff1318679c236..1a4ba76c0e5a090c47d4e71bde0756d44f21f9ae 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js @@ -9,18 +9,18 @@ description: > accessor property without a get function on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return typeof val === "undefined"; + } + return false; +} - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); - var testResult = [,].map(callbackfn); +var testResult = [, ].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js index 41cff6af1b2ce75cf44581297a54d83b7b75d2a2..74fd1615f9e970df4f4cb4a684da0115ee11f3f9 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js @@ -10,18 +10,18 @@ description: > less than number of parameters) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 9; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 9; + } else { + return false; + } +} - var func = function (a, b) { - return Array.prototype.map.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.map.call(arguments, callbackfn); +}; - var testResult = func(9); +var testResult = func(9); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js index bf4e46b1de2f48048dae88f3cd53c5989c73ebe4..66bb2323393935ef5c202aef96ccf28295c6e6da 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js @@ -10,21 +10,21 @@ description: > number of parameters) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 9; - } else if (idx === 1) { - return val === 11; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 9; + } else if (idx === 1) { + return val === 11; + } else { + return false; + } +} - var func = function (a, b) { - return Array.prototype.map.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.map.call(arguments, callbackfn); +}; - var testResult = func(9, 11); +var testResult = func(9, 11); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js index 3140c2b3bc6216e5018e17202c07126bddf98a87..c47bd08c3dd0f724fe5c9c3cd8dcd7a32a4febd9 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js @@ -10,24 +10,24 @@ description: > greater than number of parameters) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 9; - } else if (idx === 1) { - return val === 11; - } else if (idx === 2) { - return val === 12; - } else { - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 9; + } else if (idx === 1) { + return val === 11; + } else if (idx === 2) { + return val === 12; + } else { + return false; + } - } +} - var func = function (a, b) { - return Array.prototype.map.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.map.call(arguments, callbackfn); +}; - var testResult = func(9, 11, 12); +var testResult = func(9, 11, 12); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js index ba96bfa5b997239bba00304b50819895a3dde8a3..142bcdd8d03463da7c587fadf77cff042e77576c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js @@ -9,39 +9,39 @@ description: > iterations is observed on an Array ---*/ - var preIterVisible = false; - var arr = []; +var preIterVisible = false; +var arr = []; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } else if (idx === 1) { - return val === 9; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } else if (idx === 1) { + return val === 9; + } else { + return false; + } +} - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 11; - } - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 11; + } + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js index 4e034ba2cc1aecffbae6832fee4262189ac21487..9d97893b818dd967460bb0b58be2e33913ae5b3a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js @@ -9,39 +9,41 @@ description: > iterations is observed on an Array-like object ---*/ - var preIterVisible = false; - var obj = { length: 2 }; +var preIterVisible = false; +var obj = { + length: 2 +}; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } else if (idx === 1) { - return val === 9; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } else if (idx === 1) { + return val === 9; + } else { + return false; + } +} - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 11; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 11; + } + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js index f3d9e7dd90b1b7ec95980ac6740fbe139b025f16..dac643e4e5cf16e5150566b74c55e4ec87a07d68 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js @@ -9,23 +9,26 @@ description: > that overrides an inherited data property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var proto = { 5: 12, length: 10 }; +var proto = { + 5: 12, + length: 10 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = kValue; +var child = new Con(); +child[5] = kValue; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[5], true, 'testResult[5]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js index d9cec7c6b899580f2a5fe4ba839ad20de65e7b6c..cae9865e2edd544c694112911fced1c27c4aaea2 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js @@ -9,30 +9,35 @@ description: > terminate iteration on an Array-like object ---*/ - var obj = { 0: 11, 5: 10, 10: 8, length: 20 }; - var accessed = false; +var obj = { + 0: 11, + 5: 10, + 10: 8, + length: 20 +}; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - } +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } +} - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - accessed = true; - return 100; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + accessed = true; + return 100; + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js index 6923f6d8f7abf0d56751878780eb99b4fddbabdb..094568212e9925a11a870eaf1a44ec1b779713af 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js @@ -9,33 +9,33 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - } +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } +} - var arr = []; - arr[5] = 10; - arr[10] = 100; +var arr = []; +arr[5] = 10; +arr[10] = 100; - Object.defineProperty(arr, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); - Object.defineProperty(arr, "2", { - get: function () { - accessed = true; - return 100; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + accessed = true; + return 100; + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.map(callbackfn); + arr.map(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js index 192dd3f4d5d56e3cfa2ab2e307257f1ee524d4a4..cf77e37961bed2c4974a19d72241499b31259575 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js @@ -9,17 +9,17 @@ description: > that overrides an inherited data property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - Array.prototype[0] = 11; +Array.prototype[0] = 11; - var testResult = [kValue].map(callbackfn); +var testResult = [kValue].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js index 70b85169b0e86ad66679e6dfab02aefdf47212d8..cf2c63c9b84d40ee29780d1df314f4d82cc6bf05 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js @@ -10,34 +10,34 @@ description: > object ---*/ - var kValue = "abc"; - - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } - - var proto = {}; - - Object.defineProperty(proto, "5", { - get: function () { - return 11; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 10; - Object.defineProperty(child, "5", { - value: kValue, - configurable: true - }); - - var testResult = Array.prototype.map.call(child, callbackfn); +var kValue = "abc"; + +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} + +var proto = {}; + +Object.defineProperty(proto, "5", { + get: function() { + return 11; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 10; +Object.defineProperty(child, "5", { + value: kValue, + configurable: true +}); + +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[5], true, 'testResult[5]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js index c7970fc48fea6d56fb93cd6e2d12a0943479ff13..4c9ae77760a5da1cd4f89b75f4f4cfe4c24aca86 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js @@ -9,22 +9,22 @@ description: > that overrides an inherited accessor property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 9; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 9; + }, + configurable: true +}); - var testResult = [kValue].map(callbackfn); +var testResult = [kValue].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js index 9a2b37c7b493ecee1a4cc6e086e0e4e39d63f39b..908e1e6b1c9e49df3230f5d5b4f444a0185ab358 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js @@ -9,22 +9,25 @@ description: > property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var proto = { 5: kValue, length: 10 }; +var proto = { + 5: kValue, + length: 10 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var newArr = Array.prototype.map.call(child, callbackfn); +var newArr = Array.prototype.map.call(child, callbackfn); assert.sameValue(newArr[5], true, 'newArr[5]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js index 45597f7ea25aedf49d0d728826cab19db1deda5c..03d312b30e376bd8a23da5d01d1b621ab0613419 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js @@ -9,15 +9,15 @@ description: > property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === 13; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === 13; + } + return false; +} - Array.prototype[1] = 13; +Array.prototype[1] = 13; - var newArr = [, , , ].map(callbackfn); +var newArr = [, , , ].map(callbackfn); assert.sameValue(newArr[1], true, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js index ac0a9750c334d9134cde7be8f905e1ad68bf8e60..2d58d345f75e3bff4c6268fa828d7e61b81b1075 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js @@ -9,24 +9,26 @@ description: > property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js index d5ad9c8f93f7993aa75743e462da1a29e09c5506..94a0fad1d34703ace7f11881c777c30314a6a579 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js @@ -7,18 +7,19 @@ es5id: 15.4.4.19-8-c-ii-1 description: Array.prototype.map - callbackfn called with correct parameters ---*/ - var bPar = true; - var bCalled = false; - function callbackfn(val, idx, obj) - { - bCalled = true; - if(obj[idx] !== val) - bPar = false; - } +var bPar = true; +var bCalled = false; - var srcArr = [0,1,true,null,new Object(),"five"]; - srcArr[999999] = -6.6; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (obj[idx] !== val) + bPar = false; +} + +var srcArr = [0, 1, true, null, new Object(), "five"]; +srcArr[999999] = -6.6; +var resArr = srcArr.map(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js index 2602ab100db2e81cab75a7d87b6f4ebc4054d1ad..546a841428d66e01677f3350b00f26cd3ef58f0c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-10 description: Array.prototype.map - callbackfn is called with 1 formal parameter ---*/ - function callbackfn(val) { - return val > 10; - } +function callbackfn(val) { + return val > 10; +} - var testResult = [11].map(callbackfn); +var testResult = [11].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js index 4bfbc76db26c52c211b8ceaef11f8287550ef5c0..503c65ad35a3c988b4726b6ca5611086683b0fdd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-11 description: Array.prototype.map - callbackfn is called with 2 formal parameters ---*/ - function callbackfn(val, idx) { - return (val > 10 && arguments[2][idx] === val); - } +function callbackfn(val, idx) { + return (val > 10 && arguments[2][idx] === val); +} - var testResult = [11].map(callbackfn); +var testResult = [11].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js index 8919089d12ff223c36e8f6f333a18283d66ee775..d97ab07072effb56624d6a0f8235f57dd0df16f8 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-12 description: Array.prototype.map - callbackfn is called with 3 formal parameters ---*/ - function callbackfn(val, idx, obj) { - return (val > 10 && obj[idx] === val); - } +function callbackfn(val, idx, obj) { + return (val > 10 && obj[idx] === val); +} - var testResult = [11].map(callbackfn); +var testResult = [11].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js index 35523402a3bfb438563a17a58d7ec786bb0ebc4b..cf89b225976b54858e5c136c0984fc504b99ff27 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js @@ -9,10 +9,10 @@ description: > parameter value ---*/ - function callbackfn() { - return arguments[2][arguments[1]] === arguments[0]; - } +function callbackfn() { + return arguments[2][arguments[1]] === arguments[0]; +} - var testResult = [11].map(callbackfn); +var testResult = [11].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js index be5f0d3c7381dddc82e18a2170d36a8d444be9d6..bc4d4dce5deb1fb6c7a447351724914a64e8bd51 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js @@ -9,12 +9,15 @@ description: > a boolean primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === false; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn, false); +var testResult = Array.prototype.map.call(obj, callbackfn, false); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js index dd16accb11daea472d1f15a02e5b2c42bcfcc113..e095ed03e5e3e3de1084298bcb583a6ce5c55f55 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js @@ -9,12 +9,15 @@ description: > a number) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === 5; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === 5; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn, 5); +var testResult = Array.prototype.map.call(obj, callbackfn, 5); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js index 2fbb0a5b1e2f61acadf2ceaac09cf9bce5228575..90501719bbcb0373990d7d3b909b13d9420ed9ac 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js @@ -9,12 +9,15 @@ description: > a string primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === "hello!"; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === "hello!"; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn, "hello!"); +var testResult = Array.prototype.map.call(obj, callbackfn, "hello!"); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js index 58f038dbcd6e698f3c4459ca9cf6f0bda8136bff..a638a3126252076efeb7ce639c24216ce6151bdd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js @@ -7,20 +7,24 @@ es5id: 15.4.4.19-8-c-ii-19 description: Array.prototype.map - non-indexed properties are not called. ---*/ - var called = 0; - var result = false; +var called = 0; +var result = false; - function callbackfn(val, idx, obj) { - called++; - if (val === 11) { - result = true; - } - return true; - } +function callbackfn(val, idx, obj) { + called++; + if (val === 11) { + result = true; + } + return true; +} - var obj = { 0: 9, non_index_property: 11, length: 20 }; +var obj = { + 0: 9, + non_index_property: 11, + length: 20 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(result, false, 'result'); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js index b405b41c5e32655cbda6c89cc74375ab2eb1d9f1..34a8c1a41167e0a53430048dab29543468b17151 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js @@ -7,17 +7,18 @@ es5id: 15.4.4.19-8-c-ii-2 description: Array.prototype.map - callbackfn takes 3 arguments ---*/ - var parCnt = 3; - var bCalled = false - function callbackfn(val, idx, obj) - { - bCalled = true; - if(arguments.length !== 3) - parCnt = arguments.length; //verify if callbackfn was called with 3 parameters - } +var parCnt = 3; +var bCalled = false - var srcArr = [0,1,2,3,4,5,6,7,8,9]; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (arguments.length !== 3) + parCnt = arguments.length; //verify if callbackfn was called with 3 parameters +} + +var srcArr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +var resArr = srcArr.map(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); assert.sameValue(parCnt, 3, 'parCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js index ddb58576265d2ef837743f7225d677acc352b741..96f50c481cf412db459b8a848bc82faac90d1e89 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js @@ -9,14 +9,20 @@ description: > (thisArg is correct) ---*/ - function callbackfn(val, idx, obj) { - return this.threshold === 10; - } +function callbackfn(val, idx, obj) { + return this.threshold === 10; +} - var thisArg = { threshold: 10 }; +var thisArg = { + threshold: 10 +}; - var obj = { 0: 11, 1: 9, length: 2 }; +var obj = { + 0: 11, + 1: 9, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn, thisArg); +var testResult = Array.prototype.map.call(obj, callbackfn, thisArg); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js index b4f908ac83189a90ff8260e8931e6bbb1421012a..50cd9a2cdd9f3d436cf68fdd67e4730ea10cb6f6 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js @@ -9,21 +9,25 @@ description: > (kValue is correct) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } - if (idx === 1) { - return val === 12; - } + if (idx === 1) { + return val === 12; + } - return false; - } + return false; +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js index 7da27f9ee1a7f3839e5903f51f6cc78e7eee50a5..a5a30861adc4442e14f8d770aff51ba755732b1d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js @@ -9,21 +9,25 @@ description: > (the index k is correct) ---*/ - function callbackfn(val, idx, obj) { - if (val === 11) { - return idx === 0; - } +function callbackfn(val, idx, obj) { + if (val === 11) { + return idx === 0; + } - if (val === 12) { - return idx === 1; - } + if (val === 12) { + return idx === 1; + } - return false; - } + return false; +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js index 78575602e7d909ba3fd123877f3807acfae05a66..fd14317056d1e47099a1df33f76ba14f7871708e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js @@ -9,12 +9,15 @@ description: > (this object O is correct) ---*/ - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - function callbackfn(val, idx, o) { - return obj === o; - } +function callbackfn(val, idx, o) { + return obj === o; +} - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js index b47ecdde1b671ba22b2d0a1b28a60614cc64408e..5fe857f9338641bfeb7d1216a3aa48fa7f6d800f 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js @@ -7,20 +7,21 @@ es5id: 15.4.4.19-8-c-ii-4 description: Array.prototype.map - k values are passed in acending numeric order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - var result = true; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - result = false; - } else { - lastIdx++; - } - } +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; +var result = true; - arr.map(callbackfn); +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + result = false; + } else { + lastIdx++; + } +} + +arr.map(callbackfn); assert(result, 'result !== true'); assert.sameValue(arr.length, called, 'arr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js index fa7136b47102663752f3b150329f3db889589954..d0d8859c6789a2f6a89baced33ebec8a783e9a8b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js @@ -9,24 +9,24 @@ description: > and not prior to starting the loop. ---*/ - var kIndex = []; +var kIndex = []; - //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. - function callbackfn(val, idx, obj) { - //Each position should be visited one time, which means k is accessed one time during iterations. - if (typeof kIndex[idx] === "undefined") { - //when current position is visited, its previous index should has been visited. - if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { - return true; - } - kIndex[idx] = 1; - return false; - } else { - return true; - } - } +//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. +function callbackfn(val, idx, obj) { + //Each position should be visited one time, which means k is accessed one time during iterations. + if (typeof kIndex[idx] === "undefined") { + //when current position is visited, its previous index should has been visited. + if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { + return true; + } + kIndex[idx] = 1; + return false; + } else { + return true; + } +} - var testResult = [11, 12, 13, 14].map(callbackfn); +var testResult = [11, 12, 13, 14].map(callbackfn); assert.sameValue(testResult.length, 4, 'testResult.length'); assert.sameValue(testResult[0], false, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js index 880856724b641a32bd3de719d3fd85b1c817cabf..7ac9796c3eb28a0f5771bf7f9853d78576c28bdd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js @@ -7,16 +7,19 @@ es5id: 15.4.4.19-8-c-ii-6 description: Array.prototype.map - arguments to callbackfn are self consistent. ---*/ - var obj = { 0: 11, length: 1 }; - var thisArg = {}; +var obj = { + 0: 11, + length: 1 +}; +var thisArg = {}; - function callbackfn() { - return this === thisArg && - arguments[0] === 11 && - arguments[1] === 0 && - arguments[2] === obj; - } +function callbackfn() { + return this === thisArg && + arguments[0] === 11 && + arguments[1] === 0 && + arguments[2] === obj; +} - var testResult = Array.prototype.map.call(obj, callbackfn, thisArg); +var testResult = Array.prototype.map.call(obj, callbackfn, thisArg); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js index 346adb6c95a62734a960a14ae364fed535116cbe..0ae5970fefc59e6ba15146e79cf559fdfff758d0 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js @@ -9,19 +9,24 @@ description: > terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - } +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js index 467f3589af86b598f78c03e37c3bc028ac13b863..e4e4d231da58494a04528032b1c35b2a0d59ea2c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js @@ -9,15 +9,19 @@ description: > iterations is observed ---*/ - var obj = { 0: 9, 1: 12, length: 2 }; +var obj = { + 0: 9, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - if (idx === 0) { - obj[idx + 1] = 8; - } - return val > 10; - } +function callbackfn(val, idx, o) { + if (idx === 0) { + obj[idx + 1] = 8; + } + return val > 10; +} - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js index 88f74819adb8dc2c7f9eab23723d05d134a898eb..3554ac85b51b7cd09b159d34258b7a3378b4de42 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js @@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-9 description: Array.prototype.map - callbackfn with 0 formal parameter ---*/ - function callbackfn() { - return true; - } +function callbackfn() { + return true; +} - var testResult = [11].map(callbackfn); +var testResult = [11].map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js index b3fa6ffcc294807b97d9052e76c0d82052347b5f..5f759befbe7ba287549adda478482f666e71c917 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js @@ -9,14 +9,14 @@ description: > returned array element ---*/ - function callbackfn(val, idx, obj){ - if(val % 2) - return (2 * val + 1); - else - return (val / 2); - } - var srcArr = [0,1,2,3,4]; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) { + if (val % 2) + return (2 * val + 1); + else + return (val / 2); +} +var srcArr = [0, 1, 2, 3, 4]; +var resArr = srcArr.map(callbackfn); assert(resArr.length > 0, 'resArr.length > 0'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js index 999460193cb4685ecb613f09dbcbf2a2317c8bae..6f5cbb81bb22ada2026e4aafb2238c2ca0cf4c51 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js @@ -9,12 +9,16 @@ description: > 'mappedValue' ---*/ - function callbackfn(val, idx, obj) { - return val; - } +function callbackfn(val, idx, obj) { + return val; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr[0], obj[0], 'newArr[0]'); assert.sameValue(newArr[1], obj[1], 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js index fed4c1424ea5d7b6d16810a8c5f1b5d1e8f15f4b..7525d1b0c0b98308440a352d5e768690f882ac9b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js @@ -9,14 +9,18 @@ description: > overwritten ---*/ - function callbackfn(val, idx, obj) { - return 11; - } +function callbackfn(val, idx, obj) { + return 11; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.map.call(obj, callbackfn); - var tempVal = newArr[1]; - newArr[1] += 1; +var tempVal = newArr[1]; +newArr[1] += 1; assert.notSameValue(newArr[1], tempVal, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js index f15aad4f1c80460b57c269b047d4e685d4c89814..4b918884d4f9bc244972bc9aeedbe249cb013ed2 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js @@ -9,21 +9,24 @@ description: > enumerated ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.map.call(obj, callbackfn); - var prop; - var enumerable = false; - for (prop in newArr) { - if (newArr.hasOwnProperty(prop)) { - if (prop === "0") { - enumerable = true; - } - } - } +var prop; +var enumerable = false; +for (prop in newArr) { + if (newArr.hasOwnProperty(prop)) { + if (prop === "0") { + enumerable = true; + } + } +} assert(enumerable, 'enumerable !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js index 4bb7b42ff04d4723747b9b43fae4288bf07834a7..44eaea59e1259f924f9189c013795b4b977982c6 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js @@ -9,15 +9,19 @@ description: > changed or deleted ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.map.call(obj, callbackfn); - var tempVal = newArr[1]; - delete newArr[1]; +var tempVal = newArr[1]; +delete newArr[1]; assert.notSameValue(tempVal, undefined, 'tempVal'); assert.sameValue(newArr[1], undefined, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js index daabdf4cbadfcb8acb53011b7db4ec317c642db9..a9cb1f51e8b2c4ef3defaef414cd4ba1549b692f 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js @@ -9,12 +9,12 @@ description: > on ---*/ - function callbackfn(val, idx, obj) - { - return true; - } - var srcArr = [1,2,3,4,5]; - srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + return true; +} +var srcArr = [1, 2, 3, 4, 5]; +srcArr.map(callbackfn); assert.sameValue(srcArr[0], 1, 'srcArr[0]'); assert.sameValue(srcArr[1], 2, 'srcArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js index 1b1854f44fe2ff5ec5338e2c921fadb82d7d8128..5407e1ee9e2e14e19eb0cac3464c914fcdfc4cfa 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js @@ -9,22 +9,22 @@ description: > (subclassed Array, length overridden with obj with valueOf) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var Foo = function () { }; - Foo.prototype = [1, 2, 3]; - var obj = new Foo(); - obj.length = { - valueOf: function () { - return 0; - } - }; +var Foo = function() {}; +Foo.prototype = [1, 2, 3]; +var obj = new Foo(); +obj.length = { + valueOf: function() { + return 0; + } +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js index f8c6a295f8e3fe03ce06f13c207f97265c48ddf6..aa0fd889123d4598d38d536c014be35881011c58 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js @@ -10,26 +10,26 @@ description: > (toString)) ---*/ - function Foo() { } - Foo.prototype = [1, 2, 3]; +function Foo() {} +Foo.prototype = [1, 2, 3]; - var f = new Foo(); +var f = new Foo(); - var o = { - toString: function () { - return '0'; - } - }; - f.length = o; +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. - function cb() { } - var a = Array.prototype.map.call(f, cb); +function cb() {} +var a = Array.prototype.map.call(f, cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); assert.sameValue(a.length, 0, 'a.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js index 41b4e362b5e281ecf28e8cf457b5963f07f992fa..9ae64cd57a7b5cac0ae134f61c6f75f1bcc3de9a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js @@ -9,28 +9,28 @@ description: > (subclassed Array, length overridden with []) ---*/ - function Foo() { } - Foo.prototype = [1, 2, 3]; - var f = new Foo(); +function Foo() {} +Foo.prototype = [1, 2, 3]; +var f = new Foo(); - f.length = []; +f.length = []; - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. - function cb() { } - var a = Array.prototype.map.call(f, cb); +function cb() {} +var a = Array.prototype.map.call(f, cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); assert.sameValue(a.length, 0, 'a.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js index d4c208ccdf11defa53c2869e97a4ff19452bd572..f84a937eecfaef3203101be7ed96f25c5a5c1dfb 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js @@ -9,16 +9,16 @@ description: > functions, O is unmodified ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val > 2; - } +function callbackfn(val, idx, obj) { + called++; + return val > 2; +} - var arr = [1, 2, 3, 4]; +var arr = [1, 2, 3, 4]; - arr.map(callbackfn); +arr.map(callbackfn); assert.sameValue(arr[0], 1, 'arr[0]'); assert.sameValue(arr[1], 2, 'arr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js index c876d7f0aab97bd2dc7c952552357201bed0e397..cc3657e87c4db5067e2f27dfcad71a50db44384c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js @@ -9,12 +9,12 @@ description: > and values the result of callbackfn ---*/ - function callbackfn(val, idx, obj) - { - return val + 10; - } - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + return val + 10; +} +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr[0], 11, 'resArr[0]'); assert.sameValue(resArr[1], 12, 'resArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js index f89f39c9c32f4f14ffcfb990153652a3ebd9448b..815868a4825cfb4e50c29146fc446ccbf7ce3bbd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js @@ -7,13 +7,14 @@ es5id: 15.4.4.19-9-3 description: Array.prototype.map - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 1; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.map(cb); +function foo() {} +var f = new foo(); +f.length = 1; + +function cb() {} +var a = f.map(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js index f27f93bf09adf5bc5468693555e2dd0ace520b2c..3c01de3d0a84b794594d27776d326542c829017b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js @@ -7,15 +7,16 @@ es5id: 15.4.4.19-9-4 description: Array.prototype.map doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - } - var srcArr = [1,2,3,4,5]; - srcArr["i"] = 10; - srcArr[true] = 11; +var callCnt = 0; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; +} +var srcArr = [1, 2, 3, 4, 5]; +srcArr["i"] = 10; +srcArr[true] = 11; + +var resArr = srcArr.map(callbackfn); assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js index 84ca53f1527ade27c109522b69c35eee59c68f18..6c04bb72e4b2f089233d0a7b5d3d538fd94a6b9d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js @@ -9,12 +9,16 @@ description: > (empty array) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 9, 1: 8, length: 0 }; +var obj = { + 0: 9, + 1: 8, + length: 0 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js index e2adc884c2736e3ad3e5993ae40d017ea3becbcf..a44859e171e33fb9f93bdbfe7404791203ec2802 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js @@ -9,15 +9,15 @@ description: > (subclassed Array, length overridden to null (type conversion)) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var Foo = function () { }; - Foo.prototype = [1, 2, 3]; - var obj = new Foo(); - obj.length = null; +var Foo = function() {}; +Foo.prototype = [1, 2, 3]; +var obj = new Foo(); +obj.length = null; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js index b6ebf35ee2bede0168a6baaad66c075bfcd1342e..3370cc36ca81906ce565bb2af4bd8a00af3c6e8a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js @@ -9,18 +9,18 @@ description: > (subclassed Array, length overridden to false (type conversion)) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var Foo = function () { }; - Foo.prototype = [1, 2, 3]; - var obj = new Foo(); - obj.length = false; +var Foo = function() {}; +Foo.prototype = [1, 2, 3]; +var obj = new Foo(); +obj.length = false; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js index fe1e1f5e4dad9767d4c185a57d51734d8adf6b03..9e08d61d392870a60cab8bc5bd3d02ab07e98b38 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js @@ -9,18 +9,18 @@ description: > (subclassed Array, length overridden to 0 (type conversion)) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var Foo = function () { }; - Foo.prototype = [1, 2, 3]; - var obj = new Foo(); - obj.length = 0; +var Foo = function() {}; +Foo.prototype = [1, 2, 3]; +var obj = new Foo(); +obj.length = 0; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js index 31d18a8079b439ccf090a99cbb053e507af35631..73425afa10baee37764e6e951c45b0fe97a0cce5 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js @@ -9,18 +9,18 @@ description: > (subclassed Array, length overridden to '0' (type conversion)) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var Foo = function () { }; - Foo.prototype = [1, 2, 3]; - var obj = new Foo(); - obj.length = '0'; +var Foo = function() {}; +Foo.prototype = [1, 2, 3]; +var obj = new Foo(); +obj.length = '0'; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/create-ctor-non-object.js b/test/built-ins/Array/prototype/map/create-ctor-non-object.js index b020704a2ae82f1a428b3d84f5c9ec8899b9d1aa..505b661cee16b612e19078ca0aae8932fcfc168d 100644 --- a/test/built-ins/Array/prototype/map/create-ctor-non-object.js +++ b/test/built-ins/Array/prototype/map/create-ctor-non-object.js @@ -20,7 +20,9 @@ info: | var a = []; var callCount = 0; -var cb = function() { callCount += 0; }; +var cb = function() { + callCount += 0; +}; a.constructor = null; assert.throws(TypeError, function() { diff --git a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js index f99c51bdd180dab8bd08e1c5f51dbfd63599f253..39318bb94e5093b0f45ba3561b2f1deb33fb98fc 100644 --- a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js +++ b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js @@ -17,7 +17,9 @@ info: | var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; Object.defineProperty(a, 'constructor', { get: function() { diff --git a/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js b/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js index 484b77e6f933c844a31ded2d5551ef9bd278adf4..125e50a38726db79df4655d4da0a7b5d2f2e4f13 100644 --- a/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js +++ b/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js @@ -22,7 +22,9 @@ info: | ---*/ var callCount = 0; -var obj = { length: Math.pow(2, 32) }; +var obj = { + length: Math.pow(2, 32) +}; var cb = function() { callCount += 1; }; diff --git a/test/built-ins/Array/prototype/map/create-non-array.js b/test/built-ins/Array/prototype/map/create-non-array.js index 05f315eba5a80e057e112ec55bc805d589f1fc40..077d421df9eb211e86115753cb299e7a80d18917 100644 --- a/test/built-ins/Array/prototype/map/create-non-array.js +++ b/test/built-ins/Array/prototype/map/create-non-array.js @@ -16,7 +16,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/map/create-revoked-proxy.js b/test/built-ins/Array/prototype/map/create-revoked-proxy.js index a725bc8778e475159f573ff0422a188b9d004f29..77967d256ea21360ae331fe01410630ef3e441dd 100644 --- a/test/built-ins/Array/prototype/map/create-revoked-proxy.js +++ b/test/built-ins/Array/prototype/map/create-revoked-proxy.js @@ -26,7 +26,9 @@ features: [Proxy] var o = Proxy.revocable([], {}); var ctorCount = 0; var cbCount = 0; -var cb = function() { cbCount += 1; }; +var cb = function() { + cbCount += 1; +}; Object.defineProperty(o.proxy, 'constructor', { get: function() { diff --git a/test/built-ins/Array/prototype/map/create-species-abrupt.js b/test/built-ins/Array/prototype/map/create-species-abrupt.js index dec04db2eb2de725fe603f6d418f61855649b0b3..5c6656f281ceb320aee19148af716bdd86b71fa5 100644 --- a/test/built-ins/Array/prototype/map/create-species-abrupt.js +++ b/test/built-ins/Array/prototype/map/create-species-abrupt.js @@ -26,7 +26,9 @@ var Ctor = function() { throw new Test262Error(); }; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; var a = []; a.constructor = {}; a.constructor[Symbol.species] = Ctor; diff --git a/test/built-ins/Array/prototype/map/create-species-non-ctor.js b/test/built-ins/Array/prototype/map/create-species-non-ctor.js index 50657fef70d0d36dc33c8d332c3f8d73e72b63ad..661894f6ff5a8f1bf680679b6136d57a98898299 100644 --- a/test/built-ins/Array/prototype/map/create-species-non-ctor.js +++ b/test/built-ins/Array/prototype/map/create-species-non-ctor.js @@ -25,7 +25,9 @@ features: [Symbol.species] var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; a.constructor = {}; a.constructor[Symbol.species] = parseInt; diff --git a/test/built-ins/Array/prototype/map/create-species-poisoned.js b/test/built-ins/Array/prototype/map/create-species-poisoned.js index 11fb340d32c95b71ad8011c7bc150884e62fdfd8..a232b6aa0d1e1f22b12c6c299bc593d8d0cf8a75 100644 --- a/test/built-ins/Array/prototype/map/create-species-poisoned.js +++ b/test/built-ins/Array/prototype/map/create-species-poisoned.js @@ -21,7 +21,9 @@ features: [Symbol.species] var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; a.constructor = {}; Object.defineProperty(a.constructor, Symbol.species, { diff --git a/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js b/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js index bcd89aadf3c6fd69b5a6041e7de43ee1d0650778..bcd781bca63a07a59f6288c6c69710bdcdce7e4e 100644 --- a/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js +++ b/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js @@ -32,7 +32,9 @@ var array = []; var maxLength = Math.pow(2, 32); var cbCount = 0; var setCount = 0; -var cb = function() { cbCount += 1; }; +var cb = function() { + cbCount += 1; +}; var proxy = new Proxy(array, { get: function(_, name) { if (name === 'length') { diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js index 7b729afbaf20926ec06dad06021042c9c4a89f2c..f0c867df5ef7cb5c54ab52f9650c817100d181ff 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js @@ -23,7 +23,7 @@ if (x.length !== 0) { } //CHECK#3 -var x = Array(1,2,3); +var x = Array(1, 2, 3); x.length = 0; var pop = x.pop(); if (pop !== undefined) { diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js index b12c14952ca1ae7f00e156a5f2ce1ca935b71a2f..0e0cf824a1151ce304494eb66074df35967a83b8 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js @@ -11,7 +11,7 @@ description: Checking this use new Array() and [] ---*/ //CHECK#1 -var x = new Array(0,1,2,3); +var x = new Array(0, 1, 2, 3); var pop = x.pop(); if (pop !== 3) { $ERROR('#1: x = new Array(0,1,2,3); x.pop() === 3. Actual: ' + (pop)); diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js index 32ce3b74c3c48746fa5620215ff227b8884c0243..0ab566a45dccf7b99b9f93c6eb167f629a1dd8c5 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js @@ -18,15 +18,15 @@ obj.pop = Array.prototype.pop; if (obj.length !== undefined) { $ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length)); } else { - //CHECK#1 - var pop = obj.pop(); -if (pop !== undefined) { - $ERROR('#1: var obj = {}; obj.pop = Array.prototype.pop; obj.pop() === undefined. Actual: ' + (pop)); - } - //CHECK#2 - if (obj.length !== 0) { - $ERROR('#2: var obj = {}; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length)); - } + //CHECK#1 + var pop = obj.pop(); + if (pop !== undefined) { + $ERROR('#1: var obj = {}; obj.pop = Array.prototype.pop; obj.pop() === undefined. Actual: ' + (pop)); + } + //CHECK#2 + if (obj.length !== 0) { + $ERROR('#2: var obj = {}; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length)); + } } //CHECK#3 diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js index ace9cd55596dceb7db2745620905960bde892ce3..3573d2a234e45ba5a81ba0b0f2290b47dc317e70 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js @@ -62,7 +62,7 @@ if (pop !== undefined) { if (obj.length !== 0) { $ERROR('#8: var obj = {}; obj.length = -0; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length)); } else { - if (1/obj.length !== Number.POSITIVE_INFINITY) { + if (1 / obj.length !== Number.POSITIVE_INFINITY) { $ERROR('#8: var obj = {}; obj.length = -0; obj.pop = Array.prototype.pop; obj.pop(); obj.length === +0. Actual: ' + (obj.length)); } } diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js index 43d1f76e1f032c8d804ea1a76939ac9f1bdd1319..d4dcd8184bea44573552a221579d9b753bb5175a 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js @@ -17,7 +17,11 @@ obj.pop = Array.prototype.pop; //CHECK#1 obj[0] = -1; -obj.length = {valueOf: function() {return 1}}; +obj.length = { + valueOf: function() { + return 1 + } +}; var pop = obj.pop(); if (pop !== -1) { $ERROR('#1: obj[0] = -1; obj.length = {valueOf: function() {return 1}} obj.pop() === -1. Actual: ' + (pop)); @@ -25,7 +29,14 @@ if (pop !== -1) { //CHECK#2 obj[0] = -1; -obj.length = {valueOf: function() {return 1}, toString: function() {return 0}}; +obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; var pop = obj.pop(); if (pop !== -1) { $ERROR('#0: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return 0}} obj.pop() === -1. Actual: ' + (pop)); @@ -33,7 +44,14 @@ if (pop !== -1) { //CHECK#3 obj[0] = -1; -obj.length = {valueOf: function() {return 1}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; var pop = obj.pop(); if (pop !== -1) { $ERROR('#3: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return {}}} obj.pop() === -1. Actual: ' + (pop)); @@ -42,9 +60,16 @@ if (pop !== -1) { //CHECK#4 try { obj[0] = -1; - obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; var pop = obj.pop(); -if (pop !== -1) { + if (pop !== -1) { $ERROR('#4.1: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; obj.pop() === ",". Actual: ' + (pop)); } } @@ -58,7 +83,11 @@ catch (e) { //CHECK#5 obj[0] = -1; -obj.length = {toString: function() {return 0}}; +obj.length = { + toString: function() { + return 0 + } +}; var pop = obj.pop(); if (pop !== undefined) { $ERROR('#5: obj[0] = -1; obj.length = {toString: function() {return 0}} obj.pop() === undefined. Actual: ' + (pop)); @@ -66,7 +95,14 @@ if (pop !== undefined) { //CHECK#6 obj[0] = -1; -obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 0 + } +} var pop = obj.pop(); if (pop !== undefined) { $ERROR('#6: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} obj.pop() === undefined. Actual: ' + (pop)); @@ -75,7 +111,14 @@ if (pop !== undefined) { //CHECK#7 try { obj[0] = -1; - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 0 + } + }; var pop = obj.pop(); $ERROR('#7.1: obj[0] = -1; obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; obj.pop() throw "error". Actual: ' + (pop)); } @@ -88,7 +131,14 @@ catch (e) { //CHECK#8 try { obj[0] = -1; - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var pop = obj.pop(); $ERROR('#8.1: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.pop() throw TypeError. Actual: ' + (pop)); } diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js index 2be2539f5a99a34f65a925e095064267d84a8ca0..424b9943c745bf551ebed99d34fd317b5d1576c2 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js @@ -27,10 +27,10 @@ if (obj.length !== 4294967295) { //CHECK#3 if (obj[0] !== "x") { - $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[0] === "x". Actual: ' + (obj[0])); + $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[0] === "x". Actual: ' + (obj[0])); } //CHECK#4 if (obj[4294967295] !== undefined) { - $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[4294967295] === undefined. Actual: ' + (obj[4294967295])); + $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[4294967295] === undefined. Actual: ' + (obj[4294967295])); } diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js index fdbbc28cfd5e186d78bfa17dc74986addbfd30bf..b309bc48ade8e1d1827578064a5f6d6fefcc6fb1 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js @@ -27,10 +27,10 @@ if (obj.length !== 4294967296) { //CHECK#3 if (obj[0] !== "x") { - $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[0] === "x". Actual: ' + (obj[0])); + $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[0] === "x". Actual: ' + (obj[0])); } //CHECK#4 if (obj[4294967296] !== undefined) { - $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[4294967296] === undefined. Actual: ' + (obj[4294967296])); + $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[4294967296] === undefined. Actual: ' + (obj[4294967296])); } diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js index 4b9c4020bc3b503d479c55cdcf6e117d40523935..56919c5557cd651d70c6bbe83db65c2e4d2ef861 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js @@ -26,5 +26,5 @@ if (obj.length !== 0) { //CHECK#3 if (obj[4294967294] !== "x") { - $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[4294967294] = "x"; obj.length = -1; obj.pop(); obj[4294967294] === "x". Actual: ' + (obj[4294967294])); + $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[4294967294] = "x"; obj.length = -1; obj.pop(); obj[4294967294] === "x". Actual: ' + (obj[4294967294])); } diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js index 45d5af8865d0d2d0f6079102e4f10eb73f6eca01..b5ebe7a12a52e00f45b82b39ffe3bba69d35974e 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js @@ -28,7 +28,9 @@ if (x[1] !== 1) { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.pop = Array.prototype.pop; -x = {0:0}; +x = { + 0: 0 +}; //CHECK#3 var pop = x.pop(); diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js index 7ef34c737e40600973181fb09f985f9e46543840..3592d7253278262563a37c0c2e85810faa56326a 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js @@ -11,7 +11,7 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; +var x = [0, 1]; x.length = 2; //CHECK#1 @@ -28,7 +28,10 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.pop = Array.prototype.pop; -x = {0:0,1:1}; +x = { + 0: 0, + 1: 1 +}; //CHECK#3 var pop = x.pop(); diff --git a/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js index 92adbd6ab6600ad2409c7bad9ac43cdeb0a1b5c9..0c5899a55eb420e0be0eba0e8936fb322e871da2 100644 --- a/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js +++ b/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js @@ -18,18 +18,18 @@ info: | var arrayLike = {}; -arrayLike.length = 2**53 - 1; +arrayLike.length = 2 ** 53 - 1; Array.prototype.pop.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53 - 1"); +assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53 - 1"); -arrayLike.length = 2**53; +arrayLike.length = 2 ** 53; Array.prototype.pop.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53"); +assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53"); -arrayLike.length = 2**53 + 2; +arrayLike.length = 2 ** 53 + 2; Array.prototype.pop.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53 + 2"); +assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53 + 2"); arrayLike.length = Infinity; Array.prototype.pop.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 2, "Length is Infinity"); +assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is Infinity"); diff --git a/test/built-ins/Array/prototype/pop/length-near-integer-limit.js b/test/built-ins/Array/prototype/pop/length-near-integer-limit.js index 7763b8f3c0b4fc7b74c5eb4aee7ce47304fbd64f..a480b9c6c87bba48e61ace1b721ad8fa6b1c5f7c 100644 --- a/test/built-ins/Array/prototype/pop/length-near-integer-limit.js +++ b/test/built-ins/Array/prototype/pop/length-near-integer-limit.js @@ -22,22 +22,22 @@ var arrayLike = { "9007199254740989": "9007199254740989", "9007199254740990": "9007199254740990", "9007199254740991": "9007199254740991", - length: 2**53 - 1 + length: 2 ** 53 - 1 }; var value = Array.prototype.pop.call(arrayLike); assert.sameValue(value, "9007199254740990", - "arrayLike['9007199254740990'] is returned from pop()"); + "arrayLike['9007199254740990'] is returned from pop()"); -assert.sameValue(arrayLike.length, 2**53 - 2, - "New arrayLike.length is 2**53 - 2"); +assert.sameValue(arrayLike.length, 2 ** 53 - 2, + "New arrayLike.length is 2**53 - 2"); assert.sameValue(arrayLike["9007199254740989"], "9007199254740989", - "arrayLike['9007199254740989'] is unchanged"); + "arrayLike['9007199254740989'] is unchanged"); assert.sameValue("9007199254740990" in arrayLike, false, - "arrayLike['9007199254740990'] is removed"); + "arrayLike['9007199254740990'] is removed"); assert.sameValue(arrayLike["9007199254740991"], "9007199254740991", - "arrayLike['9007199254740991'] is unchanged"); + "arrayLike['9007199254740991'] is unchanged"); diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js index 181e68ca0527f9b79b2b3f70c649346a11c638d7..8d2e84db963ea50aed3d38f0da47d86903be1aa9 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js @@ -19,19 +19,19 @@ obj.push = Array.prototype.push; if (obj.length !== undefined) { $ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length)); } else { - //CHECK#1 - var push = obj.push(-1); -if (push !== 1) { - $ERROR('#1: var obj = {}; obj.push = Array.prototype.push; obj.push(-1) === 1. Actual: ' + (push)); - } - //CHECK#2 - if (obj.length !== 1) { - $ERROR('#2: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj.length === 1. Actual: ' + (obj.length)); - } - //CHECK#3 - if (obj["0"] !== -1) { - $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj["0"] === -1. Actual: ' + (obj["0"])); - } + //CHECK#1 + var push = obj.push(-1); + if (push !== 1) { + $ERROR('#1: var obj = {}; obj.push = Array.prototype.push; obj.push(-1) === 1. Actual: ' + (push)); + } + //CHECK#2 + if (obj.length !== 1) { + $ERROR('#2: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj.length === 1. Actual: ' + (obj.length)); + } + //CHECK#3 + if (obj["0"] !== -1) { + $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj["0"] === -1. Actual: ' + (obj["0"])); + } } //CHECK#4 diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js index 04ab24c3c44e2bb6b544cc05d4e49eb59e46fefd..6c5c1c4adc69441114bc229b3fc8a39a248987d1 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js @@ -35,7 +35,9 @@ if (obj["0"] !== -1) { //CHECK#4 obj.length = Number.POSITIVE_INFINITY; -assert.throws(TypeError, function() { obj.push(-4); }); +assert.throws(TypeError, function() { + obj.push(-4); +}); //CHECK#5 if (obj.length !== Number.POSITIVE_INFINITY) { diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js index f92536cc6a20805b7d6cad23ef979e4021bc111c..32aa882169647fa7f6d5929f5fbc1b11d93d974a 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js @@ -16,21 +16,39 @@ var obj = {}; obj.push = Array.prototype.push; //CHECK#1 -obj.length = {valueOf: function() {return 3}}; +obj.length = { + valueOf: function() { + return 3 + } +}; var push = obj.push(); if (push !== 3) { $ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.push() === 3. Actual: ' + (push)); } //CHECK#2 -obj.length = {valueOf: function() {return 3}, toString: function() {return 1}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return 1 + } +}; var push = obj.push(); if (push !== 3) { $ERROR('#0: obj.length = {valueOf: function() {return 3}, toString: function() {return 1}} obj.push() === 3. Actual: ' + (push)); } //CHECK#3 -obj.length = {valueOf: function() {return 3}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return {} + } +}; var push = obj.push(); if (push !== 3) { $ERROR('#1: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.push() === 3. Actual: ' + (push)); @@ -39,9 +57,16 @@ if (push !== 3) { //CHECK#4 try { - obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + throw "error" + } + }; var push = obj.push(); -if (push !== 3) { + if (push !== 3) { $ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.push() === ",". Actual: ' + (push)); } } @@ -54,14 +79,25 @@ catch (e) { } //CHECK#5 -obj.length = {toString: function() {return 1}}; +obj.length = { + toString: function() { + return 1 + } +}; var push = obj.push(); if (push !== 1) { $ERROR('#5: obj.length = {toString: function() {return 1}} obj.push() === 1. Actual: ' + (push)); } //CHECK#6 -obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} var push = obj.push(); if (push !== 1) { $ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} obj.push() === 1. Actual: ' + (push)); @@ -70,7 +106,14 @@ if (push !== 1) { //CHECK#7 try { - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; var push = obj.push(); $ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; obj.push() throw "error". Actual: ' + (push)); } @@ -83,7 +126,14 @@ catch (e) { //CHECK#8 try { - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var push = obj.push(); $ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.push() throw TypeError. Actual: ' + (push)); } diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js index dd596aefd50969c2c2055ef2a339ff92da2b0504..d9b26a6e3402934657dacaa946374d4ef0c0a1de 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js @@ -21,7 +21,7 @@ if (push !== 4294967295) { try { x.push("x"); $ERROR('#2.1: x = []; x.length = 4294967295; x.push("x") throw RangeError. Actual: ' + (push)); -} catch(e) { +} catch (e) { if ((e instanceof RangeError) !== true) { $ERROR('#2.2: x = []; x.length = 4294967295; x.push("x") throw RangeError. Actual: ' + (e)); } @@ -29,10 +29,10 @@ try { //CHECK#3 if (x[4294967295] !== "x") { - $ERROR('#3: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x[4294967295] === "x". Actual: ' + (x[4294967295])); + $ERROR('#3: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x[4294967295] === "x". Actual: ' + (x[4294967295])); } //CHECK#4 if (x.length !== 4294967295) { - $ERROR('#4: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x.length === 4294967295. Actual: ' + (x.length)); + $ERROR('#4: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x.length === 4294967295. Actual: ' + (x.length)); } diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js index bc762776c5075b927087f5fda41980cc52ab78e1..90ed3ae4cf46b3d6fc0fb119ad8fd3d65e5b2524 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js @@ -25,32 +25,32 @@ if (obj.length !== 4294967299) { //CHECK#3 if (obj[0] !== undefined) { - $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[0] === undefined. Actual: ' + (obj[0])); + $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[0] === undefined. Actual: ' + (obj[0])); } //CHECK#4 if (obj[1] !== undefined) { - $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[1] === undefined. Actual: ' + (obj[1])); + $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[1] === undefined. Actual: ' + (obj[1])); } //CHECK#5 if (obj[2] !== undefined) { - $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[2] === undefined. Actual: ' + (obj[2])); + $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[2] === undefined. Actual: ' + (obj[2])); } //CHECK#6 if (obj[4294967296] !== "x") { - $ERROR('#6: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967296] === "x". Actual: ' + (obj[4294967296])); + $ERROR('#6: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967296] === "x". Actual: ' + (obj[4294967296])); } //CHECK#7 if (obj[4294967297] !== "y") { - $ERROR('#7: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967297] === "y". Actual: ' + (obj[4294967297])); + $ERROR('#7: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967297] === "y". Actual: ' + (obj[4294967297])); } //CHECK#8 if (obj[4294967298] !== "z") { - $ERROR('#8: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967298] === "z". Actual: ' + (obj[4294967298])); + $ERROR('#8: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967298] === "z". Actual: ' + (obj[4294967298])); } var obj = {}; diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js index 22a2c5b432b0c9debefe1c7b4f7dc74343467097..0ed4b027c45b18fdfad4f79713a0cb7cb7baa4ef 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js @@ -25,15 +25,15 @@ if (obj.length !== 4294967298) { //CHECK#3 if (obj[4294967295] !== "x") { - $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967295] === "x". Actual: ' + (obj[4294967295])); + $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967295] === "x". Actual: ' + (obj[4294967295])); } //CHECK#4 if (obj[4294967296] !== "y") { - $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967296] === "y". Actual: ' + (obj[4294967296])); + $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967296] === "y". Actual: ' + (obj[4294967296])); } //CHECK#5 if (obj[4294967297] !== "z") { - $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967297] === "z". Actual: ' + (obj[4294967297])); + $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967297] === "z". Actual: ' + (obj[4294967297])); } diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js index 464dcacca498e967ac87d9eeedee0cbd116c4d5f..afaf0b143dad067ae9c772722a720771cffd1719 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js @@ -25,30 +25,30 @@ if (obj.length !== 3) { //CHECK#3 if (obj[4294967295] !== undefined) { - $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967295] === undefined. Actual: ' + (obj[4294967295])); + $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967295] === undefined. Actual: ' + (obj[4294967295])); } //CHECK#4 if (obj[4294967296] !== undefined) { - $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967296] === undefined. Actual: ' + (obj[4294967296])); + $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967296] === undefined. Actual: ' + (obj[4294967296])); } //CHECK#5 if (obj[4294967297] !== undefined) { - $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967297] === undefined. Actual: ' + (obj[4294967297])); + $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967297] === undefined. Actual: ' + (obj[4294967297])); } //CHECK#6 if (obj[0] !== "x") { - $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0])); + $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0])); } //CHECK#7 if (obj[1] !== "y") { - $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1])); + $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1])); } //CHECK#8 if (obj[2] !== "z") { - $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2])); + $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2])); } diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js index 6cbf65e0745f3fb91f0f568d8666876e29ac51b6..70f1b41ac3ae789c20041a436d87e266e582e983 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js @@ -13,7 +13,9 @@ description: > Object.prototype[1] = -1; Object.prototype.length = 1; Object.prototype.push = Array.prototype.push; -var x = {0:0}; +var x = { + 0: 0 +}; //CHECK#1 var push = x.push(1); diff --git a/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js index d4100dd0c0506851563399cb68233f9dd2a0d0ac..9cfc323fc30137cb8bd9c51a95bd9a68d9fec057 100644 --- a/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js +++ b/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js @@ -18,18 +18,18 @@ info: | var arrayLike = {}; -arrayLike.length = 2**53 - 1; +arrayLike.length = 2 ** 53 - 1; Array.prototype.push.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1"); -arrayLike.length = 2**53; +arrayLike.length = 2 ** 53; Array.prototype.push.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53"); -arrayLike.length = 2**53 + 2; +arrayLike.length = 2 ** 53 + 2; Array.prototype.push.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2"); arrayLike.length = Infinity; Array.prototype.push.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity"); diff --git a/test/built-ins/Array/prototype/push/length-near-integer-limit.js b/test/built-ins/Array/prototype/push/length-near-integer-limit.js index b727b51157ccaf2dfdae422ab0351de33e796cb0..4c94e29873a07f7925f05a1a0729b66ac8cd9135 100644 --- a/test/built-ins/Array/prototype/push/length-near-integer-limit.js +++ b/test/built-ins/Array/prototype/push/length-near-integer-limit.js @@ -21,19 +21,19 @@ var arrayLike = { "9007199254740989": "9007199254740989", /* "9007199254740990": empty */ "9007199254740991": "9007199254740991", - length: 2**53 - 2 + length: 2 ** 53 - 2 }; Array.prototype.push.call(arrayLike, "new-value"); -assert.sameValue(arrayLike.length, 2**53 - 1, - "New arrayLike.length is 2**53 - 1"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, + "New arrayLike.length is 2**53 - 1"); assert.sameValue(arrayLike["9007199254740989"], "9007199254740989", - "arrayLike['9007199254740989'] is unchanged"); + "arrayLike['9007199254740989'] is unchanged"); assert.sameValue(arrayLike["9007199254740990"], "new-value", - "arrayLike['9007199254740990'] has new value"); + "arrayLike['9007199254740990'] has new value"); assert.sameValue(arrayLike["9007199254740991"], "9007199254740991", - "arrayLike['9007199254740991'] is unchanged"); + "arrayLike['9007199254740991'] is unchanged"); diff --git a/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js index 1542fd02569f990d40bdbe4b36435f922c5fc676..ae71cd417aecbe87082ff8ff9997a4d92364d2db 100644 --- a/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js +++ b/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js @@ -17,17 +17,17 @@ info: | var arrayLike = {}; -arrayLike.length = 2**53 - 1; +arrayLike.length = 2 ** 53 - 1; assert.throws(TypeError, function() { Array.prototype.push.call(arrayLike, null); }, "Length is 2**53 - 1"); -arrayLike.length = 2**53; +arrayLike.length = 2 ** 53; assert.throws(TypeError, function() { Array.prototype.push.call(arrayLike, null); }, "Length is 2**53"); -arrayLike.length = 2**53 + 2; +arrayLike.length = 2 ** 53 + 2; assert.throws(TypeError, function() { Array.prototype.push.call(arrayLike, null); }, "Length is 2**53 + 2"); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js index fdb550a91ab9da49bb13ae617e8747e0c5c54c1e..264cd7934a39883cc11a480cc47bf48d2f3d4b5c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js @@ -9,5 +9,5 @@ description: Array.prototype.reduce applied to undefined assert.throws(TypeError, function() { - Array.prototype.reduce.call(undefined); + Array.prototype.reduce.call(undefined); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js index d24e9841c1610adba02081751090cab228b88801..04bb5ee2a3f247517169a4bd21710126122ee6d2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js @@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-10 description: Array.prototype.reduce applied to the Math object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return ('[object Math]' === Object.prototype.toString.call(obj)); - } +function callbackfn(prevVal, curVal, idx, obj) { + return ('[object Math]' === Object.prototype.toString.call(obj)); +} - Math.length = 1; - Math[0] = 1; +Math.length = 1; +Math[0] = 1; assert(Array.prototype.reduce.call(Math, callbackfn, 1), 'Array.prototype.reduce.call(Math, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js index 4f4a9d6fd87cf807e25f31f5ce59b5697e881c4d..67534e33994fa6f7e4e0ca07863b8bf455a88b74 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js @@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-11 description: Array.prototype.reduce applied to Date object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof Date; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof Date; +} - var obj = new Date(); - obj.length = 1; - obj[0] = 1; +var obj = new Date(); +obj.length = 1; +obj[0] = 1; assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js index 7e9604d556d232570404276f1adab1fa525dee9e..ade27ade62e70f22ff726e9faf683092475326f3 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js @@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-12 description: Array.prototype.reduce applied to RegExp object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof RegExp; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof RegExp; +} - var obj = new RegExp(); - obj.length = 1; - obj[0] = 1; +var obj = new RegExp(); +obj.length = 1; +obj[0] = 1; assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js index 88633083943d5c933954b3ba946bc917b199484d..3bdd3e1723683793ee19962c5c2cb0cbec7e78c8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js @@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-13 description: Array.prototype.reduce applied to the JSON object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return ('[object JSON]' === Object.prototype.toString.call(obj)); - } +function callbackfn(prevVal, curVal, idx, obj) { + return ('[object JSON]' === Object.prototype.toString.call(obj)); +} - JSON.length = 1; - JSON[0] = 1; +JSON.length = 1; +JSON[0] = 1; assert(Array.prototype.reduce.call(JSON, callbackfn, 1), 'Array.prototype.reduce.call(JSON, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js index ae958b3d21afdd0b1228ae058c4598fd41874db0..424e1e69f2fdedb931d2d9d8f1350e5740f94dc5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js @@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-14 description: Array.prototype.reduce applied to Error object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof Error; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof Error; +} - var obj = new Error(); - obj.length = 1; - obj[0] = 1; +var obj = new Error(); +obj.length = 1; +obj[0] = 1; assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js index efa389f9db384631569335d7140dfa73d3ee395f..a5387f27805db5d0c8dc0202d1804e1bbc5a3c34 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js @@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-15 description: Array.prototype.reduce applied to the Arguments object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return ('[object Arguments]' === Object.prototype.toString.call(obj)); - } +function callbackfn(prevVal, curVal, idx, obj) { + return ('[object Arguments]' === Object.prototype.toString.call(obj)); +} - var obj = (function () { - return arguments; - }("a", "b")); +var obj = (function() { + return arguments; +}("a", "b")); assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js index 709021d9a782a62966f8daa6aaf1c10d3f82866f..b070b9ea19337b9e33321e08d5ea85c79d123813 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js @@ -9,5 +9,5 @@ description: Array.prototype.reduce applied to null assert.throws(TypeError, function() { - Array.prototype.reduce.call(null); + Array.prototype.reduce.call(null); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js index ae7e782149107e6bb0b5e10781fdc5034b2095b2..833762b496ff7d11e8125b08d59cdce9ea27c2d2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js @@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-3 description: Array.prototype.reduce applied to boolean primitive ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof Boolean; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof Boolean; +} - Boolean.prototype[0] = true; - Boolean.prototype.length = 1; +Boolean.prototype[0] = true; +Boolean.prototype.length = 1; assert(Array.prototype.reduce.call(false, callbackfn, 1), 'Array.prototype.reduce.call(false, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js index 33519f325ad4470c9cffd627c61f252d47981b17..c08a750771c1fe93a806f4c438f1535ee755e7fb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js @@ -7,13 +7,13 @@ es5id: 15.4.4.21-1-4 description: Array.prototype.reduce applied to Boolean object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof Boolean; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof Boolean; +} - var obj = new Boolean(true); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +var obj = new Boolean(true); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js index 20ca2f99f5441ec7cce97016ca657d311370b2cd..8314bea9bd989314680782c051c663a1e89cd39e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js @@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-5 description: Array.prototype.reduce applied to number primitive ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof Number; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof Number; +} - Number.prototype[0] = 1; - Number.prototype.length = 1; +Number.prototype[0] = 1; +Number.prototype.length = 1; assert(Array.prototype.reduce.call(2.5, callbackfn, 1), 'Array.prototype.reduce.call(2.5, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js index 55eba5ba35755a497f6476e1255f5ceb0b0c7703..4ab488dc4c0d4b1dcaed3359cdf858baca8d6d1e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js @@ -7,13 +7,13 @@ es5id: 15.4.4.21-1-6 description: Array.prototype.reduce applied to Number object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof Number; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof Number; +} - var obj = new Number(-128); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +var obj = new Number(-128); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js index ca99114882f18b72ee40495a4353f46e32e6c226..6869f90c099f9b65af742b7aba60ce4f1dca314d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js @@ -7,8 +7,8 @@ es5id: 15.4.4.21-1-7 description: Array.prototype.reduce applied to string primitive ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof String; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof String; +} assert(Array.prototype.reduce.call("abc", callbackfn, 1), 'Array.prototype.reduce.call("abc", callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js index 169467bb27539b8958031e064aca58fe4a1ab023..96635cee29a2ec68d5692369210dbde6f1768d67 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js @@ -7,10 +7,10 @@ es5id: 15.4.4.21-1-8 description: Array.prototype.reduce applied to String object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof String; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof String; +} - var obj = new String("abc"); +var obj = new String("abc"); assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js index dd00fe9bba10f28b8fe3ff0e3f512b15202c8d29..b2bd796bb75fc9293a8d859cda33e730080fb2e7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js @@ -7,14 +7,14 @@ es5id: 15.4.4.21-1-9 description: Array.prototype.reduce applied to Function object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return obj instanceof Function; - } +function callbackfn(prevVal, curVal, idx, obj) { + return obj instanceof Function; +} - var obj = function (a, b) { - return a + b; - }; - obj[0] = 11; - obj[1] = 9; +var obj = function(a, b) { + return a + b; +}; +obj[0] = 11; +obj[1] = 9; assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js index ae5680106eb88b08d634a2d2d45d69188b197f63..777c4d3f8a1ca0db8386ded9e785f301d5508419 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js @@ -9,12 +9,12 @@ description: > called on ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - return 1; - } - var srcArr = [1,2,3,4,5]; - srcArr.reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) +{ + return 1; +} +var srcArr = [1, 2, 3, 4, 5]; +srcArr.reduce(callbackfn); assert.sameValue(srcArr[0], 1, 'srcArr[0]'); assert.sameValue(srcArr[1], 2, 'srcArr[1]'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js index 57b27d794387849ad0532db89bf80405e87fc16f..a01a48c92cb91cc45035f0676ea7e12295be12dd 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js @@ -9,10 +9,10 @@ description: > indices ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - return prevVal + curVal; - } - var srcArr = ['1','2','3','4','5']; +function callbackfn(prevVal, curVal, idx, obj) +{ + return prevVal + curVal; +} +var srcArr = ['1', '2', '3', '4', '5']; assert.sameValue(srcArr.reduce(callbackfn), '12345', 'srcArr.reduce(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js index ee1cd1801cbfef7552ab31e5c3d576299321e161..5174a6300fc64f3683b2fad40baaf4f6bcc0e077 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js @@ -7,10 +7,11 @@ es5id: 15.4.4.21-10-3 description: Array.prototype.reduce - subclassed array of length 1 ---*/ - foo.prototype = [1]; - function foo() {} - var f = new foo(); +foo.prototype = [1]; - function cb(){} +function foo() {} +var f = new foo(); + +function cb() {} assert.sameValue(f.reduce(cb), 1, 'f.reduce(cb)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js index 5dcd159f6e1d90a88924a313b3b36eb623b75d9a..e84e53a710a48935aecc11502daf0dd9860862de 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js @@ -7,10 +7,13 @@ es5id: 15.4.4.21-10-4 description: Array.prototype.reduce - subclassed array with length more than 1 ---*/ - foo.prototype = new Array(1, 2, 3, 4); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3, 4); - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); + +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} assert.sameValue(f.reduce(cb), 10, 'f.reduce(cb)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js index f7778c537f53519f102cd42ac354377dcb6b42d6..82c843ecd4869f757445ddcb0644a629d3938ed9 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js @@ -9,10 +9,10 @@ description: > indices(initialvalue present) ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - return prevVal + curVal; - } - var srcArr = ['1','2','3','4','5']; +function callbackfn(prevVal, curVal, idx, obj) +{ + return prevVal + curVal; +} +var srcArr = ['1', '2', '3', '4', '5']; -assert.sameValue(srcArr.reduce(callbackfn,'0'), '012345', 'srcArr.reduce(callbackfn,"0")'); +assert.sameValue(srcArr.reduce(callbackfn, '0'), '012345', 'srcArr.reduce(callbackfn,"0")'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js index 5babbe757bc8ce6f44d392884e7b4971e9ffc9a6..35e50b1262dbfb04e0768a3d4dd1fcbd15b52421 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js @@ -9,10 +9,13 @@ description: > provided ---*/ - foo.prototype = [1,2,3,4]; - function foo() {} - var f = new foo(); +foo.prototype = [1, 2, 3, 4]; - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); -assert.sameValue(f.reduce(cb,-1), 9, 'f.reduce(cb,-1)'); +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} + +assert.sameValue(f.reduce(cb, -1), 9, 'f.reduce(cb,-1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js index e0cd77f6356b80a82ea6938bd6dbd217de76b3e0..1725c367ea54e420d30c356a84f87786c35bf35e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js @@ -9,10 +9,13 @@ description: > initialvalue provided ---*/ - foo.prototype = [1]; - function foo() {} - var f = new foo(); +foo.prototype = [1]; - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); -assert.sameValue(f.reduce(cb,-1), 0, 'f.reduce(cb,-1)'); +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} + +assert.sameValue(f.reduce(cb, -1), 0, 'f.reduce(cb,-1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js index abb4066ee7095cffba2068870efd975d41c8d9f7..3f1ffdcb4785e00204961efc394401626bb2bdd3 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js @@ -7,15 +7,16 @@ es5id: 15.4.4.21-10-8 description: Array.prototype.reduce doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return curVal; - } - var srcArr = ['1','2','3','4','5']; - srcArr["i"] = 10; - srcArr[true] = 11; - srcArr.reduce(callbackfn); +var callCnt = 0; + +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return curVal; +} +var srcArr = ['1', '2', '3', '4', '5']; +srcArr["i"] = 10; +srcArr[true] = 11; +srcArr.reduce(callbackfn); assert.sameValue(callCnt, 4, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js index 700961b96eee9be3d23a35e522a04ea826744b47..4e5e8bb973aad5143888b222f1bd31f382a85c6b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js @@ -9,15 +9,15 @@ description: > Array-like object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: 2 - }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js index 41de90c5c3e6b184c23e252acf9a5c97cadaacc0..18e09d6d32b4c7a64a9b7aee687731ff45709788 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js @@ -9,25 +9,25 @@ description: > an inherited accessor property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js index 25cf0e462f3f57e564dc2daa9036a99d31fd8f4e..9dd5748b689639c6be80c54a6d4278e0f10e70f7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js @@ -9,19 +9,20 @@ description: > an own accessor property without a get function ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +var accessed = false; - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} + +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js index 375fa552d67b5e612c2e775c8093529be6edf688..da2f2a6ac3b92edb329d1e08f31d35d83ff39cf7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js @@ -10,23 +10,27 @@ description: > Array ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +var accessed = false; - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 12, 1: 11 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); + +var obj = { + 0: 12, + 1: 11 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js index 2be60731593b85001aa9725dcfd8dfc679f4bd8d..7f125029277cc3fc7763e6b598c1a80a77adce4b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js @@ -9,24 +9,24 @@ description: > is inherited accessor property without a get function ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 11; - child[1] = 12; +var child = new Con(); +child[0] = 11; +child[1] = 12; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), 1, 'Array.prototype.reduce.call(child, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js index 3ed0c858f5add1a763c76e8bbab575eece3e64d0..f21ee41e7191c4e8c2ac518b11f2dedbec62f9d1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js @@ -9,13 +9,16 @@ description: > 'length' property doesn't exist ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js index 2d0636319810ffec74f54484964e6085c271718f..c53ac5820dd1c6eb7ee2677909ab02ebc717604f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js @@ -9,13 +9,13 @@ description: > implements its own property get method ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var func = function (a, b) { - arguments[2] = 9; - return Array.prototype.reduce.call(arguments, callbackfn, 1); - }; +var func = function(a, b) { + arguments[2] = 9; + return Array.prototype.reduce.call(arguments, callbackfn, 1); +}; assert.sameValue(func(12, 11), true, 'func(12, 11)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js index 6e50eadc58632a16bd73ef3d0f2fdb5016a52b86..43c4f960d126b9e6369c227c52de1c45c6396cd6 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js @@ -9,10 +9,10 @@ description: > its own property get method ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 3); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 3); +} - var str = new String("012"); +var str = new String("012"); assert.sameValue(Array.prototype.reduce.call(str, callbackfn, 1), true, 'Array.prototype.reduce.call(str, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js index 5b9a2c1c8dc30343a75fa67a472f2ff4cc066189..02eaafd2be782214d22c630bb62b2a530e7ee48c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js @@ -9,15 +9,15 @@ description: > implements its own property get method ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var fun = function (a, b) { - return a + b; - }; - fun[0] = 12; - fun[1] = 11; - fun[2] = 9; +var fun = function(a, b) { + return a + b; +}; +fun[0] = 12; +fun[1] = 11; +fun[2] = 9; assert.sameValue(Array.prototype.reduce.call(fun, callbackfn, 1), true, 'Array.prototype.reduce.call(fun, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js index 0770dea2b9a363df98b14046c90424b32f979db5..6b63af80a9b10afef707c609e48d4466ea813364 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js @@ -7,8 +7,8 @@ es5id: 15.4.4.21-2-2 description: Array.prototype.reduce - 'length' is own data property on an Array ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} assert.sameValue([12, 11].reduce(callbackfn, 1), true, '[12, 11].reduce(callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js index 7abfa8846f81a9c4362399847e6ddcd6f36469a5..ae2642759dc584f3bb7031469637ee09b312afa7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js @@ -9,19 +9,21 @@ description: > overrides an inherited data property on an Array-like object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js index f1acd1884a6ce4cff90e01a68aa50d9c58f0541f..a2666931e990d83dc54dd765921295d4f1e65bdb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js @@ -9,13 +9,13 @@ description: > overrides an inherited data property on an Array ---*/ - var storeProtoLength; +var storeProtoLength; - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - storeProtoLength = Array.prototype.length; - Array.prototype.length = 0; +storeProtoLength = Array.prototype.length; +Array.prototype.length = 0; assert.sameValue([12, 11].reduce(callbackfn, 1), true, '[12, 11].reduce(callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js index 2b000ba6a3cf9c24fc622dfdc327a53351f2fd3b..5e826cf7415801f43327a3eac74b34e387c30c8f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js @@ -9,29 +9,29 @@ description: > an own data property that overrides an inherited accessor property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js index 9385b2243365d99208dc855e79d9247dd15a419b..9088ded910abbe3747f2af684047a709cb4d6e72 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js @@ -9,18 +9,20 @@ description: > an inherited data property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js index 1adfa3c8b063fdb5fb8928a549079ab7f041c100..2aea682c728d06f18541954e64b2c380c89e94d0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js @@ -9,21 +9,21 @@ description: > an own accessor property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); - obj[0] = 12; - obj[1] = 11; - obj[2] = 9; +obj[0] = 12; +obj[1] = 11; +obj[2] = 9; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js index 2e76fa739282df731688a9fa9f9dd7ccdad6a9f7..6d9537535608a217d038e92c70b930adbba1a26d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js @@ -9,26 +9,28 @@ description: > an own accessor property that overrides an inherited data property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js index 08ef5140b97a734684fcce9c9f4cf473420dc733..34b6ca18d1ceed4a3be58226531f5f4016b7d6ed 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js @@ -10,33 +10,33 @@ description: > property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } - - var proto = {}; - - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); - - child[0] = 12; - child[1] = 11; - child[2] = 9; +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} + +var proto = {}; + +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); + +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js index a7b0582268236c68ba4c69234785fbc79153642d..1cd10992a6a7950ca903dae7411e16686c3a382b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js @@ -7,14 +7,18 @@ es5id: 15.4.4.21-3-1 description: Array.prototype.reduce - value of 'length' is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 0, 1: 1, length: undefined }; +var obj = { + 0: 0, + 1: 1, + length: undefined +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js index a2c41a303551e843295e1853140d2cf120525c69..982fd8965eeee9996f67d9de4e660e7406d26124 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js @@ -9,14 +9,17 @@ description: > (value is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js index a5bbcd485d180bba49d3c21801f8b7a211fd4242..01185212a190e0869d617a53f2d03dd1e2b20996 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js @@ -9,10 +9,14 @@ description: > positive number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "2" }; +var obj = { + 1: 11, + 2: 9, + length: "2" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js index ca3bbd9810c13cc6ab739e43c56204a13fdc7d38..c1610fdf107d73902475231a854e3e08c411ae4f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js @@ -9,10 +9,14 @@ description: > negative number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "-4294967294" }; +var obj = { + 1: 11, + 2: 9, + length: "-4294967294" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js index 4ab83fe8e0ab8b7a56e29e88361e5fa4eff4a77a..77c594df4888880fa996becc1e373da86cc93b09 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js @@ -9,10 +9,14 @@ description: > number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "2.5" }; +var obj = { + 1: 11, + 2: 9, + length: "2.5" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js index 8feeae4a83e2bf72273f6b426268306ba45f77da..26bf70c04fdce50e1d90e567c99c929a655807ed 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js @@ -7,14 +7,17 @@ es5id: 15.4.4.21-3-14 description: Array.prototype.reduce - 'length' is a string containing -Infinity ---*/ - var accessed2 = false; +var accessed2 = false; - function callbackfn2(prevVal, curVal, idx, obj) { - accessed2 = true; - return 2; - } +function callbackfn2(prevVal, curVal, idx, obj) { + accessed2 = true; + return 2; +} - var obj2 = { 0: 9, length: "-Infinity" }; +var obj2 = { + 0: 9, + length: "-Infinity" +}; assert.sameValue(Array.prototype.reduce.call(obj2, callbackfn2, 1), 1, 'Array.prototype.reduce.call(obj2, callbackfn2, 1)'); assert.sameValue(accessed2, false, 'accessed2'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js index e17fd3d9e79dec9ffec5db1a47a97355a08ca355..a467d5ba461426aa6201ddb14e48bd7eaf204fcb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js @@ -9,10 +9,14 @@ description: > exponential number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "2E0" }; +var obj = { + 1: 11, + 2: 9, + length: "2E0" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js index ac8545db7b977589077c26162c044f10dab6760a..c1e8c7a11d5153ab155570efdbd9c0a21b8cb835 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js @@ -9,10 +9,14 @@ description: > number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "0x0002" }; +var obj = { + 1: 11, + 2: 9, + length: "0x0002" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js index 8671845291e9ff3dca864c501e17d882d2bf4d60..683e3d900fbd5b38a1f34d850f5f85b477debc00 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js @@ -9,10 +9,14 @@ description: > with leading zeros ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 1: 11, + 2: 9, + length: "0002.00" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js index d5705664f11e48d0957424e5a5cfb79a8df6bf86..4b797136b212c17a0a84b846fba05c1e365bcb68 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js @@ -9,13 +9,17 @@ description: > convert to a number ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +var accessed = false; - var obj = { 0: 9, length: "asdf!_" }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} + +var obj = { + 0: 9, + length: "asdf!_" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js index 3cc7aac5eefa9d077864de14ac499f1f0200ac2a..7d168f5e06e223f5bcd0e1b0882b3dac36fb107d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js @@ -9,18 +9,18 @@ description: > an own toString method ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { - 1: 11, - 2: 9, - length: { - toString: function () { - return '2'; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + toString: function() { + return '2'; + } + } +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js index f4fc199e4425a9532e5006959f8092904c50766b..32492611fd0ff6a9105d49892325b90006151f9d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js @@ -9,10 +9,14 @@ description: > true) ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 0); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 0); +} - var obj = { 0: 11, 1: 9, length: true }; +var obj = { + 0: 11, + 1: 9, + length: true +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js index b15ff9a1d0823d74f5820970c4e99467f5b5481e..32f5200bcd3f16235572ba5fcdd724ce1e130045 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js @@ -9,18 +9,18 @@ description: > an own valueOf method ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { - 1: 11, - 2: 9, - length: { - valueOf: function () { - return 2; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + valueOf: function() { + return 2; + } + } +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js index 1188ac3efd21389ad96a2e5b5faf0579e03b158b..9470d767963bd1eb4d6654e05d2c4a528e1068df 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js @@ -10,27 +10,27 @@ description: > returns a string ---*/ - var valueOfOccured = false; - var toStringOccured = false; +var valueOfOccured = false; +var toStringOccured = false; - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { - 1: 11, - 2: 9, - length: { - valueOf: function () { - valueOfOccured = true; - return {}; - }, - toString: function () { - toStringOccured = true; - return '2'; - } - } - }; +var obj = { + 1: 11, + 2: 9, + length: { + valueOf: function() { + valueOfOccured = true; + return {}; + }, + toString: function() { + toStringOccured = true; + return '2'; + } + } +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert(valueOfOccured, 'valueOfOccured !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js index 63fca1bd38c1f5237f39f309b0e89e700aee5f1e..b7d4a852c0922a2ff138929d48e633b284068e84 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js @@ -10,32 +10,32 @@ description: > primitive values ---*/ - var accessed = false; - var valueOfAccessed = false; - var toStringAccessed = false; +var accessed = false; +var valueOfAccessed = false; +var toStringAccessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return true; +} - var obj = { - 1: 11, - 2: 12, +var obj = { + 1: 11, + 2: 12, - length: { - valueOf: function () { - valueOfAccessed = true; - return {}; - }, - toString: function () { - toStringAccessed = true; - return {}; - } - } - }; + length: { + valueOf: function() { + valueOfAccessed = true; + return {}; + }, + toString: function() { + toStringAccessed = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, callbackfn, 1); + Array.prototype.reduce.call(obj, callbackfn, 1); }); assert.sameValue(accessed, false, 'accessed'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js index d48e58c90908f9a14a4065706dcc967b4cdce442..c281ba361e44b8e5165b5e5519044ca1711dba87 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js @@ -9,35 +9,35 @@ description: > an object with an own toString and inherited valueOf methods ---*/ - var valueOfAccessed = false; - var toStringAccessed = false; - - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } - - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - - child.toString = function () { - toStringAccessed = true; - return '1'; - }; - - var obj = { - 1: 11, - 2: 9, - length: child - }; +var valueOfAccessed = false; +var toStringAccessed = false; + +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} + +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +child.toString = function() { + toStringAccessed = true; + return '1'; +}; + +var obj = { + 1: 11, + 2: 9, + length: child +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js index 48c4ede3ca2e0eb7c44a40954b731ad7e1d881f8..c3e969f575b2f62c4458f05fe87a3ec18ff6e026 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js @@ -9,14 +9,14 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { - 1: 11, - 2: 9, - length: 2.685 - }; +var obj = { + 1: 11, + 2: 9, + length: 2.685 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js index 352c988a0a738f37ff9ea805dae4f3884c75bee6..5a8f54239c4e6a6d08e5c1708f9a6888348a2756 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js @@ -9,14 +9,14 @@ description: > non-integer ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { - 1: 11, - 2: 9, - length: -4294967294.5 - }; +var obj = { + 1: 11, + 2: 9, + length: -4294967294.5 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js index 89231153da8eb93589dc948fcfed991940fdaa5d..0fe83bd714bfbd5089497f5f82b3e179c293ebab 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js @@ -7,14 +7,18 @@ es5id: 15.4.4.21-3-3 description: Array.prototype.reduce - value of 'length' is a number (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 1, 1: 1, length: 0 }; +var obj = { + 0: 1, + 1: 1, + length: 0 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js index 1c6e0d988a965107519b4d71752e826243906978..864a0c1e5269c0f4613d983544b2ba7396511137 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js @@ -9,14 +9,17 @@ description: > +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 11, length: +0 }; +var obj = { + 0: 11, + length: +0 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js index da3f4cf5f34052e49fff851f8552502794af93e7..0a22d02a3e683effaba0adab91527b8673875102 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js @@ -9,14 +9,17 @@ description: > -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 11, length: -0 }; +var obj = { + 0: 11, + length: -0 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js index 1617a74935b53e7beeaa96e99a27109f91315825..fbee22d4254b11cf2612f7dc939d8ed4bf8a86f2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js @@ -9,10 +9,14 @@ description: > positive) ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: 2 }; +var obj = { + 1: 11, + 2: 9, + length: 2 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js index b8eb598714fa946ce9ba242fc0dbaa6f29ee5520..b171abfd20f7f15d98f0eb1068a0cd64870105e5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js @@ -9,10 +9,14 @@ description: > negative) ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: -4294967294 }; +var obj = { + 1: 11, + 2: 9, + length: -4294967294 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js index dc8cbfd8d64bd941b063015c2a6b06cc7fcd0a98..33c8a72d3270c63796bbd51d9f83e86a3877515b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js @@ -9,13 +9,16 @@ description: > -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js index 565eec8bfdcb0f927e4e77577b69986388e240cf..ffc66baacf394a1c54056ad56d6faf5168421032 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-1 description: Array.prototype.reduce throws TypeError if callbackfn is undefined ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduce(); + arr.reduce(); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js index b37a75ea8029d03c091da41b7986b620bec64646..5592d22dc8e1e04280993b7ac7047b6c202893c2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, undefined); + Array.prototype.reduce.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js index c3a43989882bd474b18e279e3af78a6995b724c4..a9993c23952c9d17aa3c8a03136ac5382341b5fd 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, undefined); + Array.prototype.reduce.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js index 087ba33ec49e801d98d4d4f4ccdf45cb39d32473..391122864646e2b1b9ba5f23da76f303adac4fcb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js @@ -7,11 +7,12 @@ es5id: 15.4.4.21-4-12 description: Array.prototype.reduce - 'callbackfn' is a function ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return curVal > 10; - } +var accessed = false; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return curVal > 10; +} assert.sameValue([11, 9].reduce(callbackfn, 1), false, '[11, 9].reduce(callbackfn, 1)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js index 509aeb6182cc88f64ea2703c9f888991d5c6dd0d..7072a1d2c056b4c83bf252c7d70160cd5a3f9a6f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js @@ -9,27 +9,29 @@ description: > passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj); + Array.prototype.reduce.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js index bc24e2d621ffe09de7005d67ff20b2772fcf1b08..a510f11e1a3e74ee63263c8ef1edc39b32c0f47e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js @@ -9,7 +9,7 @@ description: > unreferenced ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(ReferenceError, function() { - arr.reduce(foo); + arr.reduce(foo); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js index 8f1bbae3a40355ab984f8acd6d332438661efe44..c980003a34f2c2050a8bdf227fbb4b29cae486cf 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-3 description: Array.prototype.reduce throws TypeError if callbackfn is null ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduce(null); + arr.reduce(null); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js index f562ac79ffffc983f15c9c5d7d7cc78b5acf2f0d..f86249342b18cb3a4bccabbc0bf6b54c0d1a60c5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js @@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-4 description: Array.prototype.reduce throws TypeError if callbackfn is boolean ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduce(true); + arr.reduce(true); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js index a17c110efd9ad6255a9f7cd3ecd5b4cb3a4638f1..19ea080d09eb549404fb5428cc4e469c8b2a5361 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js @@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-5 description: Array.prototype.reduce throws TypeError if callbackfn is number ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduce(5); + arr.reduce(5); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js index 7a815eddc29343c57bf1a834c3f868946d853287..10d80e6651bd3a01a3a25180282532b630e0a926 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js @@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-6 description: Array.prototype.reduce throws TypeError if callbackfn is string ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduce("abc"); + arr.reduce("abc"); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js index 57281c17c9da2f51740165be92627750ceed1bb0..5f5bb65167ef16a3e726739c25e9d6483252cb7e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js @@ -9,7 +9,7 @@ description: > without [[Call]] internal method ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduce(new Object()); + arr.reduce(new Object()); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js index 07e01936b10eb453bb92cc353b6e620d6eefbfa1..da9ba950c695a3de00ff55cea774710ea69f2f46 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, null); + Array.prototype.reduce.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js index 31738344a2e20749a557044af1ae1fd21500d95a..b0e48b6282ba908753a4ce80fa0f4c83a386f2e8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, null); + Array.prototype.reduce.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js index ebf1d03649bf535c1032fa7f37463cbe56ad3104..ca6c5403463595bf5e59339fd6fc326a4f45508e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js @@ -9,7 +9,7 @@ description: > array), no initVal ---*/ - function cb(){} +function cb() {} assert.throws(TypeError, function() { - [].reduce(cb); + [].reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js index 457d6114db99ad69d46e581ffea831a10181993c..2d392481cef9e64f51478154753c3c63a6dce471 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js @@ -9,22 +9,25 @@ description: > side-effects that might be produced by step 2 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal > 10); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal > 10); +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 0; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js index 604a91c147df33010681114c6f4d342f7a9cdd78..8b63d3e3e12bc1d3e24942049293b89e320560a4 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js @@ -9,26 +9,29 @@ description: > any side-effects that might be produced by step 3 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal > 10); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal > 10); +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "0"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "0"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js index 57209d338e163f5d33b7335fcf12d2bc9043ff89..8cdeb3b4c80c8c3460ed8a2a397737459c12fddf 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js @@ -9,19 +9,22 @@ description: > was thrown by step 2 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal > 10); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal > 10); +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js index 297d0d481cb49c6e2d723e277765a0007cc77b2c..3285912c3c1ed3e41acd4309c347c924a456e801 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js @@ -9,23 +9,26 @@ description: > was thrown by step 3 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal > 10); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal > 10); +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js index c3ff294e2fc9d3bbfafe171338131621b43ba586..ac61503048fa76f23f8e21c015e709d7651126f9 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js @@ -10,12 +10,13 @@ description: > no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js index b0b9d0060221c3540e40cc614ea759f6aa110fb2..1fb61ac829b8e3e89af338a2f8af31d9869b0e82 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js @@ -10,12 +10,13 @@ description: > no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js index c452e0f55ba592e437eab981047e8816c9b2aa89..a68dd493432ef073f9b3905e973cca15217bd478 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js @@ -10,12 +10,13 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js index 287cae36096e8653721beeccdecbe4aa13f107f9..0717a9eddc9025545d0fb581cf68a2539a12daa4 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js @@ -10,12 +10,13 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js index aba39d0b1aec6b9688ec170e8e57008380bacd03..4a935d9a756c9eba212376708d2810c7418e5639 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js @@ -10,14 +10,19 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js index 13e218f2c2fc0df730054ec11cd3181d307bc183..faede22226061f824cc78e6f16a5d29b37e61fec 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js @@ -10,20 +10,25 @@ description: > (toString)), no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js index 9d932b3710738b1486e2595c6b0bc3394eec5f89..ddf3cbf52449c15e8502dcfbbe1b864ec14d5bcb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js @@ -9,27 +9,28 @@ description: > (subclassed Array, length overridden with []), no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = []; - function cb(){} +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js index edbcb465fae13255e8697217ef4658136ad4458f..8df0ed8c93176819e3db940b2617596cf9004ed3 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js @@ -9,10 +9,11 @@ description: > and 'initialValue' is present ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +var accessed = false; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} assert.sameValue([].reduce(callbackfn, 3), 3, '[].reduce(callbackfn, 3)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js index db603f9524f2438988dc3eaed130616688d5057f..785c4e32f937baa9ff9a5eaee26095138e8d930d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js @@ -9,5 +9,5 @@ description: > initialValue is present (empty array) ---*/ - function cb(){} -assert.sameValue([].reduce(cb,1), 1, '[].reduce(cb,1)'); +function cb() {} +assert.sameValue([].reduce(cb, 1), 1, '[].reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js index f86e9806f9e609f937ebb80f0cd070072855be0a..a03752192de425ad573d4eb4e9f2fa291efcb607 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js @@ -7,6 +7,6 @@ es5id: 15.4.4.21-7-10 description: Array.prototype.reduce - 'initialValue' is present ---*/ - var str = "initialValue is present"; +var str = "initialValue is present"; -assert.sameValue([].reduce(function () { }, str), str, '[].reduce(function () { }, str)'); +assert.sameValue([].reduce(function() {}, str), str, '[].reduce(function () { }, str)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js index 619bb2d271eaf6b8d6239c9e47a195540179c546..7c2dd91ff320e895daec66d6463d991f9fccdd11 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js @@ -7,6 +7,6 @@ es5id: 15.4.4.21-7-11 description: Array.prototype.reduce - 'initialValue' is not present ---*/ - var str = "initialValue is not present"; +var str = "initialValue is not present"; -assert.sameValue([str].reduce(function () { }), str, '[str].reduce(function () { })'); +assert.sameValue([str].reduce(function() {}), str, '[str].reduce(function () { })'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js index 27ddd16b043463fc5ccc2476b9f5de9cc71c4fee..7c227878cec1348eb35cfa04eeae929f4260c0b8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js @@ -10,10 +10,11 @@ description: > null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js index eed2c040f4785da7fe90e034f0c6b0811daa73d3..525f769e3e751c561c6cf2199f4ef0765bddb0b5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js @@ -10,10 +10,11 @@ description: > false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js index 4fb6146f13dd20486a12e9fffeda64bc1f16d2a2..fed398c8e1cf9a9ee41d6b6ef520606a1755e05e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js @@ -10,10 +10,11 @@ description: > (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js index 4a6d8d59e4044861ac6c217614049f288b422f27..8634d03a640e0b98dbeec6b6ed7c19e352c81a0f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js @@ -10,10 +10,11 @@ description: > '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js index 2c2174482f812c1e9f2319ab78d16431fcfcf8db..33c22e6e73cf8e168c3cdfc9de9fbe9ab4abdc3c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js @@ -10,12 +10,17 @@ description: > obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js index 3d7783369aeeddeb488bde60ab469e5818560f3f..db7132e8a839ada125bd35880fd7edf39cb95bc0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js @@ -10,18 +10,23 @@ description: > obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js index 430c58cd158ab0abcddf218625a4ce9b00768ed9..8ddc5cd6f25e14a27f696f3e065f62fc3d685629 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js @@ -10,25 +10,26 @@ description: > []) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = []; - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js index 744659f51c619bc7b190ec42ad6dd8e1eb0e49c7..4f9f86265aaae0bb296977ebfc3a8ac65559a87c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js @@ -10,25 +10,26 @@ description: > [0]) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = [0]; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = [0]; - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js index d0650cfc47ced25496253adaf394f21dc50e79c1..af872fd9257c5fdd8598b50cd549e50b90bff8cb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js @@ -7,20 +7,22 @@ es5id: 15.4.4.21-8-b-1 description: Array.prototype.reduce - no observable effects occur if 'len' is 0 ---*/ - var accessed = false; +var accessed = false; - var obj = { length: 0 }; +var obj = { + length: 0 +}; - Object.defineProperty(obj, "0", { - get: function () { - accessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + accessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, function () { }); + Array.prototype.reduce.call(obj, function() {}); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js index 84a6d4181a1b74e963a57ac0847fbffd86022b76..a3796550a8f5708a830b789e3f3641e94e277c1d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js @@ -9,18 +9,22 @@ description: > number of iterations in step 9 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return idx; - } +function callbackfn(prevVal, curVal, idx, obj) { + return idx; +} - var obj = { 3: 12, 4: 9, length: 4 }; +var obj = { + 3: 12, + 4: 9, + length: 4 +}; - Object.defineProperty(obj, "2", { - get: function () { - obj.length = 10; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + obj.length = 10; + return 11; + }, + configurable: true +}); assert.sameValue(Array.prototype.reduce.call(obj, callbackfn), 3, 'Array.prototype.reduce.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js index 95062f4621cc5dd1b5395f6fb5a7f5c8d67a5ddc..03fd27c09dbfc42558b1dd5e007ec2fe87fc0848 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js @@ -7,37 +7,37 @@ es5id: 15.4.4.21-8-b-3 description: Array.prototype.reduce - loop is broken once 'kPresent' is true ---*/ - var called = 0; - var testResult = false; - var firstCalled = 0; - var secondCalled = 0; - - function callbackfn(prevVal, val, idx, obj) { - if (called === 0) { - testResult = (idx === 1); - } - called++; - } - - var arr = [, , ]; - - Object.defineProperty(arr, "0", { - get: function () { - firstCalled++; - return 11; - }, - configurable: true - }); - - Object.defineProperty(arr, "1", { - get: function () { - secondCalled++; - return 9; - }, - configurable: true - }); - - arr.reduce(callbackfn); +var called = 0; +var testResult = false; +var firstCalled = 0; +var secondCalled = 0; + +function callbackfn(prevVal, val, idx, obj) { + if (called === 0) { + testResult = (idx === 1); + } + called++; +} + +var arr = [, , ]; + +Object.defineProperty(arr, "0", { + get: function() { + firstCalled++; + return 11; + }, + configurable: true +}); + +Object.defineProperty(arr, "1", { + get: function() { + secondCalled++; + return 9; + }, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); assert.sameValue(firstCalled, 1, 'firstCalled'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js index f2369b4321c0ccb63c7ddead3a42bf07b96813ff..15b0dc2a04e2c38caa6d87746204c2e244e6d658 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js @@ -9,14 +9,14 @@ description: > here ---*/ - var obj = { }; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - obj[1] = "accumulator"; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + obj[1] = "accumulator"; + return 3; + }, + configurable: true +}); -assert.sameValue(Array.prototype.reduce.call(obj, function () { }), "accumulator", 'Array.prototype.reduce.call(obj, function () { })'); +assert.sameValue(Array.prototype.reduce.call(obj, function() {}), "accumulator", 'Array.prototype.reduce.call(obj, function () { })'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js index 12c5e2fddf57c81615813769cfd7744b193c8831..9c51a152a76f6a5d4183fc922159c37cf0548668 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js @@ -9,14 +9,17 @@ description: > here ---*/ - var obj = { 1: "accumulator", 2: "another" }; +var obj = { + 1: "accumulator", + 2: "another" +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[1]; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[1]; + return 3; + }, + configurable: true +}); -assert.notSameValue(Array.prototype.reduce.call(obj, function () { }), "accumulator", 'Array.prototype.reduce.call(obj, function () { })'); +assert.notSameValue(Array.prototype.reduce.call(obj, function() {}), "accumulator", 'Array.prototype.reduce.call(obj, function () { })'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js index fbba69c12cbd66188d2821ad06cb1000a5b7c757..eff2f84cf7fcc5a16294a6acbe6061c29f89cd57 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js @@ -9,14 +9,20 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, 2: 2, length: 2 }; - Array.prototype.reduce.call(obj, callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} + +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js index 67b7b3f57ba51bd1ae5636da512e18cf0e66c632..c3e9f4b4b484b5471d9c311f06e30cce21ba6704 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js @@ -9,23 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - var arr = [, 1, 2]; +var arr = [, 1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js index e1f08e697ddd8359befe91d0fbb0bfc3a319a62c..e5c7a7b9774f816bbb20b808cedda4c672adbf5a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js @@ -10,28 +10,33 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } - - var proto = { 0: 0, 1: 1, 2: 2 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "0", { - get: function () { - return "9"; - }, - configurable: true - }); - - Array.prototype.reduce.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} + +var proto = { + 0: 0, + 1: 1, + 2: 2 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "0", { + get: function() { + return "9"; + }, + configurable: true +}); + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js index 9d9b802d0964396a1ccad52af4ffe8a3f5cbb2b5..79eba4945157f7241d23465836a14b2ac1f09013 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js @@ -9,24 +9,24 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} - Array.prototype[0] = 0; - var arr = [, 1, 2]; +Array.prototype[0] = 0; +var arr = [, 1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - return "9"; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return "9"; + }, + configurable: true +}); - arr.reduce(callbackfn); +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js index 00f0210ab2070ebd3527e0661c2b7cf3a7b4b477..62d5da4b47563d3cc44d7ce41d364233c18b69a2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js @@ -10,36 +10,39 @@ description: > Array-like object ---*/ - var testResult = false; - - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } - - var proto = { 1: 1, 2: 2}; - - Object.defineProperty(proto, "0", { - get: function () { - return 0; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "0", { - get: function () { - return "9"; - }, - configurable: true - }); - - Array.prototype.reduce.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} + +var proto = { + 1: 1, + 2: 2 +}; + +Object.defineProperty(proto, "0", { + get: function() { + return 0; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "0", { + get: function() { + return "9"; + }, + configurable: true +}); + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js index 77a1084be6c1857b3af7140f595c5aa2c7017445..0b1781550f3234df82d45f1756a02a4f2a10cbf1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js @@ -9,28 +9,29 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 0; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} - var arr = [, 1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - return "9"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +var arr = [, 1, 2]; +Object.defineProperty(arr, "0", { + get: function() { + return "9"; + }, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js index 5344feebd4853247e911c29f39b80ebc8743d828..6e2cc64b9d17fc568345d3d0dc86681bd25eae2c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js @@ -9,28 +9,32 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var proto = { 1: 1, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - Object.defineProperty(proto, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var proto = { + 1: 1, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "0", { + get: function() { + return 0; + }, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js index c941e4581ffe8d0c20ee10d83394aab89a82315b..2bfc2d804b196cb6c8415435138304f6a8733fcb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 0; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - var arr = [, 1, 2]; +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +var arr = [, 1, 2]; + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js index a411f9467e720467e33e6f8e3b8b308ff3bec11b..735d1c856e29c94d65eb9138693d575e9962412e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js @@ -9,20 +9,25 @@ description: > property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - var obj = { 1: 1, 2: 2, length: 3 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +var obj = { + 1: 1, + 2: 2, + length: 3 +}; - Array.prototype.reduce.call(obj, callbackfn); +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js index fbdfb97c81472c6576626e1ce9387c1657aa5ecd..5b2a3b2f78c8369d1ad8c389366a44a0b4f01b34 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js @@ -9,20 +9,21 @@ description: > property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - var arr = [, 1, 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +var arr = [, 1, 2]; - arr.reduce(callbackfn); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js index 1611043a21ac237250f4b012c67cdb8c5c096a91..9178b85feb2fe9f38e56a36eead61c3b713d7f29 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js @@ -10,22 +10,27 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - Object.prototype[0] = 0; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - var obj = { 1: 1, 2: 2, length: 3 }; +Object.prototype[0] = 0; - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +var obj = { + 1: 1, + 2: 2, + length: 3 +}; - Array.prototype.reduce.call(obj, callbackfn); +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js index 06d593f567d3486badfbfa9f3bf119094fe3738d..f8ca72b6a010af7cb6d024ff0c124a607d6cd41f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js @@ -9,14 +9,15 @@ description: > property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var arr = [0, 1, 2]; - arr.reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} + +var arr = [0, 1, 2]; +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js index 2a313d786c889fd2bb0bf8e1a05df7399953d1c8..e4793560e26562e198d130f8c163b1065bf4c3a6 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js @@ -10,20 +10,21 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - Array.prototype[0] = 0; - var arr = [, 1, 2]; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - arr.reduce(callbackfn); +Array.prototype[0] = 0; +var arr = [, 1, 2]; +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js index d057b59b2714d29fca79a8ce50bc158dd552d6a4..47a9a843b8bd19e8e68c2fd8fd6c0164aa4423da 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js @@ -9,26 +9,30 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - var proto = { 1: 1, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - Object.defineProperty(proto, "0", { - set: function () { }, - configurable: true - }); +var proto = { + 1: 1, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "0", { + set: function() {}, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js index f7d6f961cd58b4b5227c46c5660261dc1f4d410b..dc05e78606ce1580a170874b07f130fb807c6ccc 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - var arr = [, 1, 2]; +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); - arr.reduce(callbackfn); +var arr = [, 1, 2]; + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js index 20223664507055f381d510deb19f3cb8d0d62ce8..451955fccd9084e9b2e574e2ea08c86684f19e58 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js @@ -10,17 +10,18 @@ description: > less than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduce.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - func(0, 1); +var func = function(a, b, c) { + Array.prototype.reduce.call(arguments, callbackfn); +}; + +func(0, 1); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js index 887f2631538e4851fd004bfa47ec6d6011393f70..eef4cdd6eee2022bf6eb342f54e7d143d0f51384 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js @@ -10,18 +10,19 @@ description: > number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (prevVal === 1); - } - } +var testResult = false; - var func = function (a, b, c) { - delete arguments[0]; - Array.prototype.reduce.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (prevVal === 1); + } +} - func(0, 1, 2); +var func = function(a, b, c) { + delete arguments[0]; + Array.prototype.reduce.call(arguments, callbackfn); +}; + +func(0, 1, 2); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js index 3f591f26ec26f97468b2b1589480e04cfd28ea2d..fc4013d2dbf90940bcd3e57925cbac80995d4f13 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js @@ -10,19 +10,20 @@ description: > greater than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 3) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var func = function (a, b, c) { - delete arguments[0]; - delete arguments[1]; - Array.prototype.reduce.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 3) { + testResult = (prevVal === 2); + } +} - func(0, 1, 2, 3); +var func = function(a, b, c) { + delete arguments[0]; + delete arguments[1]; + Array.prototype.reduce.call(arguments, callbackfn); +}; + +func(0, 1, 2, 3); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js index 2a96496aa55862bedba187e20ec8d3e23d60b606..1c429e4c7b50c3c669593c12dfcaf1aa153189c1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js @@ -9,14 +9,15 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "0"); - } - } +var testResult = false; - var str = new String("012"); - Array.prototype.reduce.call(str, callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "0"); + } +} + +var str = new String("012"); +Array.prototype.reduce.call(str, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js index 8f5e18db73083a410db8a7ac41b6b8eaf56ba1f1..0fe7328fee19368195e56632aace3fb183e625a0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js @@ -9,21 +9,22 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var obj = function (a, b, c) { - return a + b + c; - }; - obj[0] = 0; - obj[1] = 1; - obj[2] = 2; - obj[3] = 3; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - Array.prototype.reduce.call(obj, callbackfn); +var obj = function(a, b, c) { + return a + b + c; +}; +obj[0] = 0; +obj[1] = 1; +obj[2] = 2; +obj[3] = 3; + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js index d77985dd3f9c94e19cdfe11b98d490a947324037..15298bc3efa3ede3289cd61d637fa140cfdca2cc 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js @@ -10,22 +10,28 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2, length: 3 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} - var child = new Con(); - child[0] = "9"; - child[1] = "1"; - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn); +var child = new Con(); +child[0] = "9"; +child[1] = "1"; +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js index c307ddda90603355de44ce66ffc7ad5bea1c6344..45f396f05c00f44d19425ad4f26eab410ad1c1d5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js @@ -9,35 +9,36 @@ description: > iterations is observed in subsequent iterations on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var arr = [, , 2]; - var preIterVisible = false; - - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return 100; - } - }, - configurable: true - }); - - arr.reduce(callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [, , 2]; +var preIterVisible = false; + +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return 100; + } + }, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js index e035ae8e4afc3324c193521477bf37828cbfd98c..70282ce37e17f45e5a076bf844a1744c8495e2a0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js @@ -10,35 +10,38 @@ description: > object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var obj = { length: 2 }; - var preIterVisible = false; - - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return 100; - } - }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var obj = { + length: 2 +}; +var preIterVisible = false; + +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return 100; + } + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js index 1324085437bdb07276e51f9f3e6d7f5b7ce9f66e..50002a64e32b724c6f606c720eef8ffba05cbd61 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js @@ -9,24 +9,29 @@ description: > on an Array-like object ---*/ - var accessed = false; - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx >= 1) { - accessed = true; - testResult = (prevVal === 0); - } - } +var accessed = false; +var testResult = false; - var obj = { 2: 2, 1: 1, length: 3 }; - Object.defineProperty(obj, "0", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx >= 1) { + accessed = true; + testResult = (prevVal === 0); + } +} + +var obj = { + 2: 2, + 1: 1, + length: 3 +}; +Object.defineProperty(obj, "0", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js index be7c29e8be4264eebda3901d85e03923d5909a74..9f00cb900ff38b50a032c48c0bad51fd7a3b6500 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js @@ -9,25 +9,26 @@ description: > on an Array ---*/ - var accessed = false; - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx >= 1) { - accessed = true; - testResult = (prevVal === 0); - } - } +var accessed = false; +var testResult = false; - var arr = [, 1, 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx >= 1) { + accessed = true; + testResult = (prevVal === 0); + } +} - Object.defineProperty(arr, "0", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = [, 1, 2]; + +Object.defineProperty(arr, "0", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.reduce(callbackfn); + arr.reduce(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js index 26118b58f1a2d385577fded07e0179ff8dac67be..72a46d6c81adde9e5c0746f946bae94f55b34502 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js @@ -9,14 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - Array.prototype[0] = "9"; - [0, 1, 2].reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} + +Array.prototype[0] = "9"; +[0, 1, 2].reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js index 0c9aeb7b8aff0d00d0ce7452e7dd33dca0d656e5..17c7e51c65aa7fdcb8f998b144299ced91a4d38b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js @@ -10,33 +10,34 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } - - var proto = {}; - - Object.defineProperty(proto, "0", { - get: function () { - return 0; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 2; - Object.defineProperty(child, "0", { - value: "9", - configurable: true - }); - child[1] = "1"; - - Array.prototype.reduce.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} + +var proto = {}; + +Object.defineProperty(proto, "0", { + get: function() { + return 0; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 2; +Object.defineProperty(child, "0", { + value: "9", + configurable: true +}); +child[1] = "1"; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js index 22b4af3ec58c9f1aa1962d300af4ff98fd53d9a7..2b0f847da4eb4619f89f470f74a4a590083f5544 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js @@ -9,20 +9,21 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return "5"; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - [0, 1, 2].reduce(callbackfn); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return "5"; + }, + configurable: true +}); + +[0, 1, 2].reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js index 6eaf1bac1849cbfbd014096b147bf03c58ca37cf..24fa5654ce373b03892f390e234c70416224e3a1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js @@ -9,20 +9,26 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2, length: 3 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - var child = new Con(); - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js index 48166b7ee40d4da835cb953eb9ad306287d20a18..0eed56363544cbc6f70c5e4d2ddf54427a4b7eca 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js @@ -9,16 +9,17 @@ description: > property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - Array.prototype[0] = 0; - Array.prototype[1] = 1; - Array.prototype[2] = 2; - [, , ,].reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} + +Array.prototype[0] = 0; +Array.prototype[1] = 1; +Array.prototype[2] = 2; +[, , , ].reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js index 82a348b81ee2f6c62a09c6d4015c971f8fe94334..d61c61aea2c9a5ca7f26661a3d375a0d4098e25c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js @@ -9,21 +9,26 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var obj = { 1: 1, 2: 2, length: 3 }; - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - Array.prototype.reduce.call(obj, callbackfn); +var obj = { + 1: 1, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js index 9fb6bc97cad6267cc92b4d447bf26f7b9be2ccd1..bd6232342c22756a5197236607f3a3d53eea1132 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js @@ -9,11 +9,10 @@ description: > initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduce(callbackfn); + arr.reduce(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js index ae73a9a86280d0ad26c8e691af7bf344e71b0a50..f30f014b99a43b4e7786f2d008f2618fc6ecda8b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js @@ -10,13 +10,12 @@ description: > not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); - arr[9] = 1; - arr.length = 5; +var arr = new Array(10); +arr[9] = 1; +arr.length = 5; assert.throws(TypeError, function() { - arr.reduce(callbackfn); + arr.reduce(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js index f4e87f5e0ba2406eacb108f187a72cceb02696bc..15d80dfa2aa64dfa20eef12296e355fbeadf2292 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js @@ -9,16 +9,15 @@ description: > values are deleted and initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = [1,2,3,4,5]; - delete arr[0]; - delete arr[1]; - delete arr[2]; - delete arr[3]; - delete arr[4]; +var arr = [1, 2, 3, 4, 5]; +delete arr[0]; +delete arr[1]; +delete arr[2]; +delete arr[3]; +delete arr[4]; assert.throws(TypeError, function() { - arr.reduce(callbackfn); + arr.reduce(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js index 3e712b86dac613a60599b09f9a1f84693e5a1e3c..db9f7aebab19f60edfa8c6dbefb67a6db840c63c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js @@ -9,11 +9,11 @@ description: > properties but prototype contains a single property ---*/ - var arr = [, , , ]; +var arr = [, , , ]; - try { - Array.prototype[1] = "prototype"; - arr.reduce(function () { }); - } finally { - delete Array.prototype[1]; - } +try { + Array.prototype[1] = "prototype"; + arr.reduce(function() {}); +} finally { + delete Array.prototype[1]; +} diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js index 756a4e93d36f1ef8cc90b5e0ae0a263d90d28ae4..d04354342bd6389758f612ad3ba7cd2e34730158 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js @@ -9,18 +9,18 @@ description: > side-effects that might be produced by step 2 ---*/ - var obj = { }; +var obj = {}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, function () { }); + Array.prototype.reduce.call(obj, function() {}); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js index af901dc8ef34e79b9a7e07a6a3571fa83207f6d3..687736c2bc6ae455b25456ec49927f09914f1eab 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js @@ -9,22 +9,22 @@ description: > side-effects that might be produced by step 3 ---*/ - var obj = {}; +var obj = {}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, function () { }); + Array.prototype.reduce.call(obj, function() {}); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js index adbdc526a8873c684811994055357a82484ea00e..178c34c70406e82291867ed507efa7ee0b897a7f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js @@ -9,15 +9,15 @@ description: > was thrown by step 2 ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, function () { }); + Array.prototype.reduce.call(obj, function() {}); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js index cd677383a66fa3547a11ba2b0a84046772e29e6d..64f4b8f793fc87aedd59b2ac80908085cfb20b39 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js @@ -9,19 +9,19 @@ description: > was thrown by step 3 ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, function () { }); + Array.prototype.reduce.call(obj, function() {}); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js index 6076c9b1011141b4b2da74b89a09dbd999572e79..2ac5c2e7372ff4b21f7fdd8ecd9ef9d5a2a6bda8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js @@ -9,12 +9,12 @@ description: > array after it is called ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - arr[5] = 6; - arr[2] = 3; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + arr[5] = 6; + arr[2] = 3; + return prevVal + curVal; +} - var arr = [1, 2, , 4, '5']; +var arr = [1, 2, , 4, '5']; assert.sameValue(arr.reduce(callbackfn), "105", 'arr.reduce(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js index 10a0e43683d4217bf88ec0133a8c80e4d852e219..fec5a6b8d9ef66af97effa16d41880c64b516f65 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js @@ -9,12 +9,12 @@ description: > consider new elements added to array after it is called ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - arr[5] = 6; - arr[2] = 3; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + arr[5] = 6; + arr[2] = 3; + return prevVal + curVal; +} - var arr = [1,2,,4,'5']; +var arr = [1, 2, , 4, '5']; assert.sameValue(arr.reduce(callbackfn, ""), "12345", 'arr.reduce(callbackfn, "")'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js index 2e74efa53b3dfb9afadfa2aa48c3b27754f3b4b4..0db97121047da8a35eb17795fff22bac251f6744 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js @@ -9,13 +9,13 @@ description: > after it is called ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - arr[3] = -2; - arr[4] = -1; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + arr[3] = -2; + arr[4] = -1; + return prevVal + curVal; +} - var arr = [1,2,3,4,5]; +var arr = [1, 2, 3, 4, 5]; assert.sameValue(arr.reduce(callbackfn), 3, 'arr.reduce(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js index e5942de1a09d0ed7adb7a3378874e40e8b5951cc..514951a74806fae3b3dff4606d39b6062a42cf41 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js @@ -9,14 +9,14 @@ description: > after the call ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - delete arr[3]; - delete arr[4]; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + delete arr[3]; + delete arr[4]; + return prevVal + curVal; +} - var arr = ['1',2,3,4,5]; +var arr = ['1', 2, 3, 4, 5]; // two elements deleted assert.sameValue(arr.reduce(callbackfn), "123", 'arr.reduce(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js index e1d2f69fb4a67138da57b4d9db56a12fca6d4e31..6b9f7ca0366d3ba4b3e653b8cad04daa84726001 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js @@ -9,12 +9,12 @@ description: > Array.length is decreased ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - arr.length = 2; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + arr.length = 2; + return prevVal + curVal; +} - var arr = [1,2,3,4,5]; +var arr = [1, 2, 3, 4, 5]; assert.sameValue(arr.reduce(callbackfn), 3, 'arr.reduce(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js index b07ae902000fea35d9e8690729c8d3e79b79d542..4fc56efeadee5bf97b993f4ac7d863229afe3ea1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js @@ -9,14 +9,15 @@ description: > element ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return 2; - } +var callCnt = 0; - var arr = [1]; +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return 2; +} + +var arr = [1]; assert.sameValue(arr.reduce(callbackfn), 1, 'arr.reduce(callbackfn)'); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js index a31d59a240788aea8cea588ec15a9a07a71f847b..2d05468ef256fd05789fb482372c78a7389e5a77 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js @@ -9,17 +9,17 @@ description: > call when same index is also present in prototype ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - delete arr[3]; - delete arr[4]; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + delete arr[3]; + delete arr[4]; + return prevVal + curVal; +} - Array.prototype[4] = 5; - var arr = ['1',2,3,4,5]; - var res = arr.reduce(callbackfn); - delete Array.prototype[4]; +Array.prototype[4] = 5; +var arr = ['1', 2, 3, 4, 5]; +var res = arr.reduce(callbackfn); +delete Array.prototype[4]; //one element acually deleted assert.sameValue(res, "1235", 'res'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js index 67e99779fa7b0744b33aac5d4896ea7a9be5c55c..f8c3a4b71108a21609401962e8987eaa9c14d0de 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js @@ -9,13 +9,13 @@ description: > deleted during the call ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - delete o.arr; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + delete o.arr; + return prevVal + curVal; +} - var o = new Object(); - o.arr = ['1', 2, 3, 4, 5]; +var o = new Object(); +o.arr = ['1', 2, 3, 4, 5]; assert.sameValue(o.arr.reduce(callbackfn), "12345", 'o.arr.reduce(callbackfn)'); assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js index beceef98c6bbb46187515c8188f5260fead74a3a..6feccfcb357b9e2f6e023e211e1499c1230d8c74 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js @@ -7,23 +7,26 @@ es5id: 15.4.4.21-9-8 description: Array.prototype.reduce - no observable effects occur if 'len' is 0 ---*/ - var accessed = false; - var callbackAccessed = false; - function callbackfn() { - callbackAccessed = true; - } +var accessed = false; +var callbackAccessed = false; - var obj = { length: 0 }; +function callbackfn() { + callbackAccessed = true; +} - Object.defineProperty(obj, "0", { - get: function () { - accessed = true; - return 10; - }, - configurable: true - }); +var obj = { + length: 0 +}; - Array.prototype.reduce.call(obj, function () { }, "initialValue"); +Object.defineProperty(obj, "0", { + get: function() { + accessed = true; + return 10; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, function() {}, "initialValue"); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(callbackAccessed, false, 'callbackAccessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js index aa867346f27abb4b8d12b84ab494afd8a8f79495..0a6ba82e409c433d60b2406c8118582bbd0786ab 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js @@ -9,22 +9,23 @@ description: > number of iterations in step 9 ---*/ - var called = 0; - function callbackfn(accum, val, idx, obj) { - called++; - return accum + val; - } +var called = 0; - var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 2; - return 0; - }, - configurable: true - }); +function callbackfn(accum, val, idx, obj) { + called++; + return accum + val; +} - var newAccum = arr.reduce(callbackfn, "initialValue"); +var arr = [0, 1, 2, 3]; +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 2; + return 0; + }, + configurable: true +}); + +var newAccum = arr.reduce(callbackfn, "initialValue"); assert.sameValue(newAccum, "initialValue01", 'newAccum'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js index e7f18d3bdcc76ea08807c09819e62c8a67e796e4..274f1bb6eedde3040cfa83278ca7ca4c96a31d6d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js @@ -9,10 +9,9 @@ description: > and initialValue is present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); +var arr = new Array(10); -assert.sameValue(arr.reduce(callbackfn,5), 5, 'arr.reduce(callbackfn,5)'); +assert.sameValue(arr.reduce(callbackfn, 5), 5, 'arr.reduce(callbackfn,5)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js index 4adec3c10310dfd11948e727435803cb745f3e64..bf0d29423d004a57362d7d2886f4436a8d58c2b5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js @@ -10,28 +10,31 @@ description: > Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[3]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[3]; + return 0; + }, + configurable: true +}); - Object.prototype[3] = 1; - Array.prototype.reduce.call(obj, callbackfn); +Object.prototype[3] = 1; +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js index b2f71de95f25d7632488d1e7372d5ef5fd5bba6e..4636bd54a21d6ec5d2ad47e61d6e851358b985db 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js @@ -9,27 +9,27 @@ description: > causes deleted index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} - var arr = [, , , 3]; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +var arr = [, , , 3]; +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.reduce(callbackfn); +Array.prototype[1] = 1; +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js index c82150f241e816667898ac9dc6f6b563048c3379..7605c7ebee80bd86b2a8e05a102383c1a933b8e9 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js @@ -10,25 +10,30 @@ description: > on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, 4: 10, length: 10 }; +var obj = { + 0: 0, + 1: 111, + 4: 10, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.reduce.call(obj, callbackfn); +Object.prototype[1] = 1; +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js index fa7a8f54d975cb86e9ca2d9a13cbc61890e5c007..4960d60e65f8c6859377efe3c7cd75234ec62490 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js @@ -10,24 +10,24 @@ description: > on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } - var arr = [0, 111]; +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} +var arr = [0, 111]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.reduce(callbackfn); +Array.prototype[1] = 1; +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js index 590122b87ed2a7375f8195adb302ba36c1d4609b..0d00a323168ef8d22ede06b713e8011c3cdba864 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js @@ -9,27 +9,27 @@ description: > causes deleted index property not to be visited ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 2) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 2) { + testResult = false; + } +} - var arr = [0, 1, 2, 3]; +var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 2; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 2; + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js index 18cc65818682a7a6447badd43ff7244aca19bf3b..4d42c2ca7865f02d092580550a99dd4b46eae74b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js @@ -9,30 +9,30 @@ description: > property in step 8 causes prototype index property to be visited ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 2 && val === "prototype") { - testResult = true; - } - } - var arr = [0, 1, 2, 3]; +function callbackfn(accum, val, idx, obj) { + if (idx === 2 && val === "prototype") { + testResult = true; + } +} +var arr = [0, 1, 2, 3]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - arr.reduce(callbackfn); +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js index 29c1d4f8e8020a760d569b85f050ab7b9269f3b4..047fc4db91c74c7d9d0374c1c3da363d12a27db6 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js @@ -10,31 +10,31 @@ description: > flags: [noStrict] ---*/ - var testResult = false; - - function callbackfn(accum, val, idx, obj) { - if (idx === 2 && val === "unconfigurable") { - testResult = true; - } - } - - var arr = [0, 1, 2, 3]; - - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); - - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); - - arr.reduce(callbackfn); +var testResult = false; + +function callbackfn(accum, val, idx, obj) { + if (idx === 2 && val === "unconfigurable") { + testResult = true; + } +} + +var arr = [0, 1, 2, 3]; + +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); + +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js index 34cbe86514a2aa3ba6994e371d21cc450dd6b46d..2364819b98f331abb34b263ec334974da52541b8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js @@ -9,29 +9,31 @@ description: > visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 3 && val === 3) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 3 && val === 3) { + testResult = true; + } +} - var obj = { length: 5 }; +var obj = { + length: 5 +}; - Object.defineProperty(obj, "1", { - get: function () { - Object.defineProperty(obj, "3", { - get: function () { - return 3; - }, - configurable: true - }); - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + Object.defineProperty(obj, "3", { + get: function() { + return 3; + }, + configurable: true + }); + return 1; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js index 9cede28d0738611620d85b6f6990d723c0f289da..94cdebfc31ad860680f85a966b6fca295f5ad81e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js @@ -9,29 +9,29 @@ description: > visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn, "initialValue"); +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js index 76fb7a81765ea0d8e22830e339b90ac4eaf47917..719447c92e0c1d0d20cfcb75e86abd26fd6a75ea 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js @@ -9,29 +9,31 @@ description: > on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var obj = { length: 6 }; +var obj = { + length: 6 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js index 42f76e8faea417906ee7b1fe1f654a85b7754bf8..eabeeb5eb14845777c8b66dea31b8e09afe5a91b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js @@ -9,24 +9,24 @@ description: > here ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 2 && val === "2") { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 2 && val === "2") { + testResult = true; + } +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - obj[2] = "2"; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + obj[2] = "2"; + return 3; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js index 2d52994db6ef1248573bd5d92f64c4ce71263af2..935e8ca3108ee9518f793f05ee6c3ed197d02b9a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js @@ -9,29 +9,29 @@ description: > visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn, "initialValue"); +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js index f5ae4f380e97d57054cb9814d378d2bbabeba2e5..200ac1c68e1d6c3340aab418135e69bc48f9c30a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js @@ -9,34 +9,37 @@ description: > index property not to be visited on an Array-like object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { 5: 10, length: 10 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +var accessed = false; +var testResult = true; + +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + 5: 10, + length: 10 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js index f824832cb269e3cf5dad25c3a73e2de3e4b7770e..64402e07c937cbad2deae480aa613f22ad0c0567 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js @@ -9,34 +9,34 @@ description: > index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var arr = [1, 2, 4]; - - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); - - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); - - arr.reduce(callbackfn, "initialValue"); +var accessed = false; +var testResult = true; + +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var arr = [1, 2, 4]; + +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); + +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js index 3ee4365ed61d4924d72ba57e5b96848f8475bd0a..236167f7ed350cd02eb6572593976f3f317e3aed 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js @@ -9,28 +9,31 @@ description: > deleted index property not to be visited on an Array-like Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[3]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[3]; + return 0; + }, + configurable: true +}); - Object.prototype[3] = 1; - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Object.prototype[3] = 1; +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js index 18d1e20694253831afe36a87c3e43286860d619c..7a2cbcd165b3b0840b064cc6520bd496c9eab342 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js @@ -9,27 +9,27 @@ description: > deleted index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} - var arr = [0, , , 3]; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +var arr = [0, , , 3]; +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.reduce(callbackfn, "initialValue"); +Array.prototype[1] = 1; +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js index 83c1b449e9f6fc654afb8321d1fc90916c6c42df..311f9f21f0bda2d32069b9210ddcb4ed2bfde46c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js @@ -10,25 +10,30 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, 4: 10, length: 10 }; +var obj = { + 0: 0, + 1: 111, + 4: 10, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Object.prototype[1] = 1; +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js index c5b22131b127d87e83a5ed3e68dc307aef3dcf58..8a570c25eea5261d6d378e015d247363e85ee990 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js @@ -9,24 +9,24 @@ description: > property causes prototype index property to be visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } - var arr = [0, 111]; +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} +var arr = [0, 111]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.reduce(callbackfn, "initialValue"); +Array.prototype[1] = 1; +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js index a20faec87f6f3caf3a3a5ca700193e7ac3930317..bfbf66fbf4298b9a1920043d3ad0d58f7c67921d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js @@ -9,27 +9,27 @@ description: > index property not to be visited ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 2) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 2) { + testResult = false; + } +} - var arr = [0, 1, 2, 3]; +var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 2; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 2; + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn, "initialValue"); +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js index 44bdb414cf9f3694c771b6d586ddcc0397236295..ba16dafa85b5b2f53386cd910ffee32875b63f66 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js @@ -9,30 +9,30 @@ description: > property causes prototype index property to be visited ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 2 && val === "prototype") { - testResult = true; - } - } - var arr = [0, 1, 2, 3]; +function callbackfn(accum, val, idx, obj) { + if (idx === 2 && val === "prototype") { + testResult = true; + } +} +var arr = [0, 1, 2, 3]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - arr.reduce(callbackfn, "initialValue"); +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js index a4f5167437b1843cc105f2208ffff37049f094cf..1c872c518c81123c77eb61977ad4504a3274d4cb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js @@ -10,31 +10,31 @@ description: > flags: [noStrict] ---*/ - var testResult = false; - - function callbackfn(accum, val, idx, obj) { - if (idx === 2 && val === "unconfigurable") { - testResult = true; - } - } - - var arr = [0, 1, 2, 3]; - - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); - - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); - - arr.reduce(callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(accum, val, idx, obj) { + if (idx === 2 && val === "unconfigurable") { + testResult = true; + } +} + +var arr = [0, 1, 2, 3]; + +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); + +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); + +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js index 8f8382931eb071cb83c74ddc3f8f444fb8eaece2..2f72b891a42faa5e57ce1df299e7ec23a52124e5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js @@ -9,27 +9,30 @@ description: > here ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 2) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 2) { + testResult = false; + } +} - var obj = { 2: "2", 3: 10 }; +var obj = { + 2: "2", + 3: 10 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 5; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 5; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(accessed, 'accessed !== true'); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js index 249f49a291b1d7ddceb2bab201424ddfd491479e..208fd04f221621ef06b0a35d26c7dfc7a3ef9333 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js @@ -9,29 +9,31 @@ description: > 8 are visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 3 && val === 3) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 3 && val === 3) { + testResult = true; + } +} - var obj = { length: 5 }; +var obj = { + length: 5 +}; - Object.defineProperty(obj, "1", { - get: function () { - Object.defineProperty(obj, "3", { - get: function () { - return 3; - }, - configurable: true - }); - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + Object.defineProperty(obj, "3", { + get: function() { + return 3; + }, + configurable: true + }); + return 1; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn); +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js index 43b8766cd20675a0d7cd8ca04985b5793699f748..872321367ddf90348b1072a4a956fc3f8b95de6d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js @@ -9,29 +9,29 @@ description: > 8 are visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js index 85e075d8525e102566102c27863e543694211da3..6002cbd912cdd966cff7ddadc0c366cd5c5d876e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js @@ -9,29 +9,31 @@ description: > are visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var obj = { length: 6 }; +var obj = { + length: 6 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn); +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js index 67e1fc135d2febde3a4e64b31fc2c8db0ceb1ec7..b41a6c1378aa04080e3d2eaf09f0065c54dfa4fa 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js @@ -9,29 +9,29 @@ description: > are visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js index 219d2df5605d3110fe549b245e8a87d59a9419c4..4386fa4a4834ca9f376713986cec7d26f6ec84d8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js @@ -9,34 +9,37 @@ description: > deleted index property not to be visited on an Array-like object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { 5: 10, length: 10 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn); +var accessed = false; +var testResult = true; + +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + 5: 10, + length: 10 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js index ab402f336741e0f3b5d0a926b85033a2398864f7..2f9739a3d16d6a373fa768597298c865bb179470 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js @@ -9,27 +9,27 @@ description: > deleted index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} - var arr = [1, 2, 4]; +var arr = [1, 2, 4]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js index 9f22078b8b5df90bd4ce21312e63d7d0e5bab7d1..82bb1fd5fddc5c8e2da8562a5ef14ed394a5b0a4 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js @@ -9,15 +9,16 @@ description: > been assigned values ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return curVal; - } +var callCnt = 0; - var arr = new Array(10); - arr[0] = arr[1] = undefined; //explicitly assigning a value +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return curVal; +} + +var arr = new Array(10); +arr[0] = arr[1] = undefined; //explicitly assigning a value assert.sameValue(arr.reduce(callbackfn), undefined, 'arr.reduce(callbackfn)'); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js index 8e4385ae23ae861531b7eeb0673b330a1b87b924..83910eb3550540e16fd7d298e229279f829ba79f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js @@ -9,15 +9,21 @@ description: > property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var obj = { 0: 0, 1: 1, 2: 2, length: 2 }; - Array.prototype.reduce.call(obj, callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js index 35db68b11f84fd1f12cf8f7ca000b9b40a17b4c4..a297b03616b170666d11634b98d54071c53d4a73 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js @@ -9,23 +9,24 @@ description: > property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); +var arr = [0, , 2]; - arr.reduce(callbackfn, initialValue); +Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js index 3468f85edc188475a0830b1461ae3293b5ecf319..b5cc2ad9b2056f970bf0d5b1ec0346a3bb3c84ff 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js @@ -10,29 +10,34 @@ description: > Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } - - var proto = { 0: 0, 1: 1, 2: 2 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "1", { - get: function () { - return "11"; - }, - configurable: true - }); - - Array.prototype.reduce.call(child, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} + +var proto = { + 0: 0, + 1: 1, + 2: 2 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "1", { + get: function() { + return "11"; + }, + configurable: true +}); + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js index 85072151e39c57c8b0954a04f0a38fbbe8eb1076..de4c3f77b59218143573d2e0adc946a5541ba088 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js @@ -9,24 +9,25 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } +var testResult = false; +var initialValue = 0; - Array.prototype[1] = 1; - var arr = [0, ,2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} - Object.defineProperty(arr, "1", { - get: function () { - return "11"; - }, - configurable: true - }); +Array.prototype[1] = 1; +var arr = [0, , 2]; - arr.reduce(callbackfn, initialValue); +Object.defineProperty(arr, "1", { + get: function() { + return "11"; + }, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js index 49d727d7a5107acc68faf20223e3cb23d32e7292..c29ed6061a2d168f3fa791f1fa1bb1842c849af5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js @@ -10,36 +10,40 @@ description: > Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } - - var proto = { 0: 0, 2: 2}; - - Object.defineProperty(proto, "1", { - get: function () { - return 1; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "1", { - get: function () { - return "11"; - }, - configurable: true - }); - - Array.prototype.reduce.call(child, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} + +var proto = { + 0: 0, + 2: 2 +}; + +Object.defineProperty(proto, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "1", { + get: function() { + return "11"; + }, + configurable: true +}); + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js index 439002290c9a808257ce33dad1710b7cde59cfaf..5d2ea3e9cc2b2c97c0f67ff829cc08216464ce58 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js @@ -9,29 +9,30 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} - var arr = [0, ,2]; +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 1; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - return "11"; - }, - configurable: true - }); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2]; + +Object.defineProperty(arr, "1", { + get: function() { + return "11"; + }, + configurable: true +}); +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js index 8a48197782b3a285c33e1e02215b979ee81e62ac..fb6f4b4307ac239985a2e1f727f531a5944f8056 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js @@ -9,29 +9,33 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var proto = { 0: 0, 2: 2 }; - - Object.defineProperty(proto, "1", { - get: function () { - return 1; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Array.prototype.reduce.call(child, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var proto = { + 0: 0, + 2: 2 +}; + +Object.defineProperty(proto, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js index 0b26a82315cfc018bc3b16239da91644f7ae3ea7..ea5b70bf7eab4e4c34189e296586deaa5d730c04 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js @@ -9,23 +9,24 @@ description: > accessor property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - var arr = [0, , 2, ]; +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 1; + }, + configurable: true +}); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2, ]; + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js index 72e9c9c3e12ccbd85b7b8104880c8b84123b943d..2612938851a4a4aa93fb2a38a22128052fa7389f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js @@ -9,21 +9,26 @@ description: > property without a get function on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - var obj = { 0: 0, 2: 2, length: 3 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; - Array.prototype.reduce.call(obj, callbackfn, initialValue); +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js index e5e1c98e3e383db2580352606a9e7d23ab43d05f..8b1b27917f6049ab17de5c1357123c197bcd475a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js @@ -9,21 +9,22 @@ description: > property without a get function on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +var arr = [0, , 2]; - arr.reduce(callbackfn, initialValue); +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js index a8ab13f94b3eec3e5b05eb9d072628c3c5e729a7..d385edd5831b3ce023e6a4ea82687f6b34c6748a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js @@ -10,28 +10,33 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } - - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 1; - }, - configurable: true - }); - - var obj = { 0: 0, 2: 2, length: 3 }; - - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} + +Object.defineProperty(Object.prototype, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +var obj = { + 0: 0, + 2: 2, + length: 3 +}; + +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js index cbabbcf459daa28ae749325ffd1077a124fe7263..bec49675d69d8ce703479fea426d60ac2ebe033f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js @@ -9,15 +9,16 @@ description: > property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var arr = [0, 1]; - arr.reduce(callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [0, 1]; +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js index 5596e002fc274f023ba125a00aa05a95aa6197bf..96d6089f473799da94b5b9867f6ded53792e650b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js @@ -10,27 +10,28 @@ description: > accessor property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 11; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - var arr = [0, , 2]; - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 11; + }, + configurable: true +}); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2]; +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js index 160a4ea8e13cb29e7a70cae73e99907f70b67465..4994164fdd4e8fdcb6a1c675f9923fe8c8704e82 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js @@ -9,27 +9,31 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - var proto = { 0: 0, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - Object.defineProperty(proto, "1", { - set: function () { }, - configurable: true - }); +var proto = { + 0: 0, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "1", { + set: function() {}, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn, initialValue); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js index e6a171d69368e423719a9ab9470a6fc5342d1f33..b906e19e77cd54afd357bdc4f771c0645e9ad1d8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js @@ -9,21 +9,22 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - var arr = [0, , 2]; +Object.defineProperty(Array.prototype, "1", { + set: function() {}, + configurable: true +}); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2]; + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js index dc5a6a969b4b177efaa49b4574b837a3ab82a05a..08713388f0ee1a328e37eca2faf3774e3f394a7e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js @@ -10,18 +10,19 @@ description: > less than number of parameters) ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var func = function (a, b, c) { - Array.prototype.reduce.call(arguments, callbackfn, initialValue); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - func(0, 1); +var func = function(a, b, c) { + Array.prototype.reduce.call(arguments, callbackfn, initialValue); +}; + +func(0, 1); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js index a941dc65f60d9c80c88711bcf3066d6035cb9c92..d8ce4350b2d430d243c5c5d003c312e423080399 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js @@ -10,18 +10,19 @@ description: > number of parameters) ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (curVal === 2); - } - } +var testResult = false; +var initialValue = 0; - var func = function (a, b, c) { - Array.prototype.reduce.call(arguments, callbackfn, initialValue); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (curVal === 2); + } +} - func(0, 1, 2); +var func = function(a, b, c) { + Array.prototype.reduce.call(arguments, callbackfn, initialValue); +}; + +func(0, 1, 2); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js index 2907f2210f7240b9c8132f6d552d2b862ac473ee..40b63f98772a6fb2cabe18d13291eee600dc7e80 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js @@ -10,18 +10,19 @@ description: > greater than number of parameters) ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 3) { - testResult = (curVal === 3); - } - } +var testResult = false; +var initialValue = 0; - var func = function (a, b, c) { - Array.prototype.reduce.call(arguments, callbackfn, initialValue); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 3) { + testResult = (curVal === 3); + } +} - func(0, 1, 2, 3); +var func = function(a, b, c) { + Array.prototype.reduce.call(arguments, callbackfn, initialValue); +}; + +func(0, 1, 2, 3); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js index 9422c48fcd19914249c1b7b1ef5eeed478acfa6d..92981a4a9fffe5b053cba4bedf4a6fa274b543a4 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js @@ -9,16 +9,17 @@ description: > implements its own property get method ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; +var initialValue = 0; - var str = new String("012"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} - Array.prototype.reduce.call(str, callbackfn, initialValue); +var str = new String("012"); + +Array.prototype.reduce.call(str, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js index 9003db41a2dec10ac30c30650913c46c68e02d2e..270742aa9c4eb8dbaf45f598eb847586eff6a3ae 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js @@ -9,22 +9,23 @@ description: > implements its own property get method ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var obj = function (a, b, c) { - return a + b + c; - }; - obj[0] = 0; - obj[1] = 1; - obj[2] = 2; - obj[3] = 3; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Array.prototype.reduce.call(obj, callbackfn, initialValue); +var obj = function(a, b, c) { + return a + b + c; +}; +obj[0] = 0; +obj[1] = 1; +obj[2] = 2; +obj[3] = 3; + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js index 19a4e19a09c66f9c258a0799a098d2d7affd0cca..0a23d5c010c011c256d14b1dcf0259bb9552f4ca 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js @@ -10,23 +10,29 @@ description: > Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } +var testResult = false; +var initialValue = 0; - var proto = { 0: 0, 1: 1, 2: 2, length: 2 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} - var child = new Con(); - child[1] = "11"; - child[2] = "22"; - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn, initialValue); +var child = new Con(); +child[1] = "11"; +child[2] = "22"; +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js index 49c26b0e6fdf5fd794d45115f6abf978033ddd1e..46dfa9febf251e383c985353122322783eb9e3c8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js @@ -9,36 +9,37 @@ description: > iterations is observed on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var arr = [, , 2]; - var preIterVisible = false; - - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return 100; - } - }, - configurable: true - }); - - arr.reduce(callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [, , 2]; +var preIterVisible = false; + +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return 100; + } + }, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js index f948d29786ea02f1a6287d9ff6a4a4435796215b..db862cce1758b9c1af9236b6ada4d6a511db50bd 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js @@ -9,36 +9,40 @@ description: > iterations is observed on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var obj = { 2: 2, length: 3 }; - var preIterVisible = false; - - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "11"; - } - }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var obj = { + 2: 2, + length: 3 +}; +var preIterVisible = false; + +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "11"; + } + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js index 3654543c5ec4526da8163507cc558a69143174f3..787d0261c9cd829faaccc0a08575e1493cb92334 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js @@ -9,25 +9,30 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx >= 1) { - accessed = true; - testResult = (curVal >= 1); - } - } +var accessed = false; +var testResult = false; +var initialValue = 0; - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx >= 1) { + accessed = true; + testResult = (curVal >= 1); + } +} + +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.reduce.call(obj, callbackfn, initialValue); + Array.prototype.reduce.call(obj, callbackfn, initialValue); }); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js index 45c8487f924a58978be75623885ca001868117bc..eb596116ae30cd8cf309631c0a228c18c08ad825 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js @@ -9,26 +9,27 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx >= 1) { - accessed = true; - testResult = (curVal >= 1); - } - } +var accessed = false; +var testResult = false; +var initialValue = 0; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx >= 1) { + accessed = true; + testResult = (curVal >= 1); + } +} - Object.defineProperty(arr, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = [0, , 2]; + +Object.defineProperty(arr, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.reduce(callbackfn, initialValue); + arr.reduce(callbackfn, initialValue); }); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js index 5be0e63fc6dfbefae9613b7846f2f4474c25da63..0f26cabfefee3748b53a2abddae6928bc0d19021 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js @@ -9,15 +9,16 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - Array.prototype[1] = "3"; - [0, 1, 2].reduce(callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Array.prototype[1] = "3"; +[0, 1, 2].reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js index fc93b44d16a904017a13c4f1aef525cd757e1b8a..44cb554c708be3e676e0ea9eea35b6e8b9be6dde 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js @@ -10,36 +10,37 @@ description: > Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (curVal === "9"); - } - } +var testResult = false; +var initialValue = 0; - var proto = {}; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (curVal === "9"); + } +} - Object.defineProperty(proto, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var proto = {}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "0", { + get: function() { + return 0; + }, + configurable: true +}); - var child = new Con(); - child.length = 2; +var Con = function() {}; +Con.prototype = proto; - Object.defineProperty(child, "0", { - value: "9", - configurable: true - }); +var child = new Con(); +child.length = 2; - child[1] = "1"; +Object.defineProperty(child, "0", { + value: "9", + configurable: true +}); - Array.prototype.reduce.call(child, callbackfn, initialValue); +child[1] = "1"; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js index ee27f62425f09e2256a05dd6163ccbfd6eda46d9..d3aca565c0e71946080c2ab75e00864fc2b381df 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js @@ -9,20 +9,21 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return "9"; - }, - configurable: true - }); - [0, 1, 2].reduce(callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Object.defineProperty(Array.prototype, "1", { + get: function() { + return "9"; + }, + configurable: true +}); +[0, 1, 2].reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js index b20d880b3b2f055c22556dae81d91d9456f21c17..49844b47d87433e8662b32ec7a5a61e6d5a4be64 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js @@ -9,21 +9,27 @@ description: > property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var proto = { 0: 0, 1: 1, 2: 2, length: 3 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - var child = new Con(); - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn, initialValue); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js index 5906f0d472a4fc7c16396c975c578d3753d70039..08a408abd6676b494fcdecac695e6d82b886b156 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js @@ -9,17 +9,18 @@ description: > property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - Array.prototype[0] = 0; - Array.prototype[1] = 1; - Array.prototype[2] = 2; - [, , , ].reduce(callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Array.prototype[0] = 0; +Array.prototype[1] = 1; +Array.prototype[2] = 2; +[, , , ].reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js index 8dcce90a16a457714f3372caf9c5743165df7d67..5188213e3e4e5a4307e0d67e8ed6ac7840e103f7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js @@ -9,22 +9,27 @@ description: > property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Array.prototype.reduce.call(obj, callbackfn, initialValue); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js index 0b5a92f7636985e35f3586e809ee27b07b158fe5..af3c3074e985bbbbe8dbcb30b9bdbf7b4b37e707 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js @@ -9,14 +9,14 @@ description: > (initialvalue not passed) ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - if(idx > 0 && obj[idx] === curVal && obj[idx-1] === prevVal) - return curVal; - else - return false; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + if (idx > 0 && obj[idx] === curVal && obj[idx - 1] === prevVal) + return curVal; + else + return false; +} - var arr = [0,1,true,null,new Object(),"five"]; +var arr = [0, 1, true, null, new Object(), "five"]; assert.sameValue(arr.reduce(callbackfn), "five", 'arr.reduce(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js index 6492c1d4b6882f6738df00e5dd5eab4e8b3b4c66..9a9a5567d5ebbe8bbd576242a100114c9424ba90 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(prevVal) { - result = (prevVal === 1); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn(prevVal) { + result = (prevVal === 1); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js index fe374ad09af090382d7eb8ffd6e5271df1a3a8ed..503028a433bef3f43f0c9821cecdd74e287200fb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(prevVal, curVal) { - result = (curVal > 10 && 1 === prevVal); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn(prevVal, curVal) { + result = (curVal > 10 && 1 === prevVal); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js index 282d5ccc55d51eab6731e89a4829fffe3ceffcd2..58b12b3d205bcd4a409a8204fb61c329ff5ce979 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(prevVal, curVal, idx) { - result = (prevVal === 1 && arguments[3][idx] === curVal); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn(prevVal, curVal, idx) { + result = (prevVal === 1 && arguments[3][idx] === curVal); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js index 24cb3df068491821196bc789d612ffbf5cb440d3..170366208a05595bdc66721ce2de6e313fc71197 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(prevVal, curVal, idx, obj) { - result = (prevVal === 1 && obj[idx] === curVal); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn(prevVal, curVal, idx, obj) { + result = (prevVal === 1 && obj[idx] === curVal); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js index 170de856dc32a95d4aa9a132ccde48b308e5db2f..12cf2c4288ef966099d0b9f9452ba7c0f5824725 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js @@ -7,11 +7,12 @@ es5id: 15.4.4.21-9-c-ii-14 description: Array.prototype.reduce - callbackfn that uses arguments ---*/ - var result = false; - function callbackfn() { - result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn() { + result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js index 3dcd208df089d4356ad3e2f4aed45af126e43dec..976b1a2696e45879f31081c91cf2d8af76408db5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js @@ -7,24 +7,29 @@ es5id: 15.4.4.21-9-c-ii-16 description: Array.prototype.reduce - non-indexed properties are not called ---*/ - var accessed = false; - var result1 = true; - var result2 = true; +var accessed = false; +var result1 = true; +var result2 = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (curVal === 8) { - result1 = false; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (curVal === 8) { + result1 = false; + } - if (prevVal === 8) { - result2 = false; - } - } + if (prevVal === 8) { + result2 = false; + } +} - var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 }; +var obj = { + 0: 11, + 10: 12, + non_index_property: 8, + length: 20 +}; - Array.prototype.reduce.call(obj, callbackfn, 1); +Array.prototype.reduce.call(obj, callbackfn, 1); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js index 0c97041580800fb48b9b7a82112c43914064b701..1179c4e145bb15b8d61ce3ffeffd743aa4a774d0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js @@ -9,19 +9,20 @@ description: > is the result of previous iteration on an Array ---*/ - var result = true; - var accessed = false; - var preIteration = 1; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (preIteration !== prevVal) { - result = false; - } - preIteration = curVal; - return curVal; - } +var result = true; +var accessed = false; +var preIteration = 1; - [11, 12, 13].reduce(callbackfn, 1); +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (preIteration !== prevVal) { + result = false; + } + preIteration = curVal; + return curVal; +} + +[11, 12, 13].reduce(callbackfn, 1); assert(result, 'result !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js index 52d3f41d393939d62d1a97869042a3a121e1b9d4..acb90c345ae33026ccd33ed5af646c1aaec59135 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js @@ -10,15 +10,20 @@ description: > Array-like object ---*/ - var result = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - result = (arguments[0] === 1); - } - } +var result = false; - var obj = { 0: 11, 1: 9, length: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + result = (arguments[0] === 1); + } +} - Array.prototype.reduce.call(obj, callbackfn, 1); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; + +Array.prototype.reduce.call(obj, callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js index b423857024af0d6d183c69340762deec6a85fcb8..9f6c78aef47443f087168435a8252de7cb00e894 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js @@ -10,16 +10,17 @@ description: > undefined when 'initialValue' is not present on an Array ---*/ - var called = 0; - var result = false; - function callbackfn(prevVal, curVal, idx, obj) { - called++; - if (idx === 1) { - result = (prevVal === 11) && curVal === 9; - } - } +var called = 0; +var result = false; - [11, 9].reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + called++; + if (idx === 1) { + result = (prevVal === 11) && curVal === 9; + } +} + +[11, 9].reduce(callbackfn); assert(result, 'result !== true'); assert.sameValue(called, 1, 'called'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js index 88c46fffc7ce4a8566ed69199cf0a91aa087ba25..024016564ad20c773a56823d92c95e9abfa9d5dc 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js @@ -9,18 +9,19 @@ description: > (initialvalue passed) ---*/ - var bParCorrect = false; - function callbackfn(prevVal, curVal, idx, obj) - { - if(idx === 0 && obj[idx] === curVal && prevVal === initialValue) - return curVal; - else if(idx > 0 && obj[idx] === curVal && obj[idx-1] === prevVal) - return curVal; - else - return false; - } +var bParCorrect = false; - var arr = [0,1,true,null,new Object(),"five"]; - var initialValue = 5.5; +function callbackfn(prevVal, curVal, idx, obj) +{ + if (idx === 0 && obj[idx] === curVal && prevVal === initialValue) + return curVal; + else if (idx > 0 && obj[idx] === curVal && obj[idx - 1] === prevVal) + return curVal; + else + return false; +} -assert.sameValue(arr.reduce(callbackfn,initialValue), "five", 'arr.reduce(callbackfn,initialValue)'); +var arr = [0, 1, true, null, new Object(), "five"]; +var initialValue = 5.5; + +assert.sameValue(arr.reduce(callbackfn, initialValue), "five", 'arr.reduce(callbackfn,initialValue)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js index 7b7cffb199ec7c77ed80028c3f8fa5e67ec91022..2e75523561c4e8846aa02cf3485c9ac8925c8b84 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js @@ -7,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-20 description: Array.prototype.reduce - undefined can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return typeof prevVal === "undefined"; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return typeof prevVal === "undefined"; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, undefined), true, 'Array.prototype.reduce.call(obj, callbackfn, undefined)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js index 1b2799701857be6a0cccd4fc2daf5ee717c4ffe1..1864d08fac2b25eac4988e81e6837e00d0b07dfc 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js @@ -7,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-21 description: Array.prototype.reduce - null can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === null; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === null; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, null), true, 'Array.prototype.reduce.call(obj, callbackfn, null)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js index 7a7f286fc07ff85941bb6cfad04663d9166bfc61..272db1b9676e633d1c4ef5c6b3838d113f0a73c0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === false; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === false; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, false), true, 'Array.prototype.reduce.call(obj, callbackfn, false)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js index 0ccff0d30986814842614a3089e36b7ad9e87d98..41fbfeb16867065e611ae80326d6fb18c845bf08 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === 12; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === 12; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 12), true, 'Array.prototype.reduce.call(obj, callbackfn, 12)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js index 5c3b4c73d74496e64e2b1aede7c28477195f1f82..64fbb4eb37beab16a0f6e3942c10b57198d902be 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === "hello_"; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === "hello_"; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, "hello_"), true, 'Array.prototype.reduce.call(obj, callbackfn, "hello_")'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js index fe4c9a0a0caa66d13ba4b34e1b895b535d5af33f..7a20725f1f627933a93a77eb994a0b70502483b7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-25 description: Array.prototype.reduce - Function object can be used as accumulator ---*/ - var objFunction = function () { }; +var objFunction = function() {}; - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objFunction; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objFunction; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objFunction), true, 'Array.prototype.reduce.call(obj, callbackfn, objFunction)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js index 8402e82fa6eedfa0742b9f55a3cf8645ad5ea893..44cd75abd683f26ea6fae42bab1f7bcccc6acdc1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-26 description: Array.prototype.reduce - Array object can be used as accumulator ---*/ - var objArray = new Array(10); +var objArray = new Array(10); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objArray; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objArray; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objArray), true, 'Array.prototype.reduce.call(obj, callbackfn, objArray)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js index 951df7bd95cfe6153225ae2263eb170cf0b87662..decc22588bc45cd4e5b97ab3cd862b9ad8b3f380 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-27 description: Array.prototype.reduce - String object can be used as accumulator ---*/ - var objString = new String(); +var objString = new String(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objString; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objString; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objString), true, 'Array.prototype.reduce.call(obj, callbackfn, objString)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js index ca6c358b3558da2bae6a7483d123ae67df3eff21..2eca0b849d9b1677981cae8ec4ab38122bd71204 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-28 description: Array.prototype.reduce - Boolean object can be used as accumulator ---*/ - var objBoolean = new Boolean(); +var objBoolean = new Boolean(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objBoolean; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objBoolean; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objBoolean), true, 'Array.prototype.reduce.call(obj, callbackfn, objBoolean)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js index 251e405a9ba74e4e60bb895348ce8d210f126e4c..03ed7c189f71948dd4f3c292595cb06d62abf904 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-29 description: Array.prototype.reduce - Number object can be used as accumulator ---*/ - var objNumber = new Number(); +var objNumber = new Number(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objNumber; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objNumber; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objNumber), true, 'Array.prototype.reduce.call(obj, callbackfn, objNumber)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js index 1f93af90c5f5d090a5c9232035ab041c70007adc..dfd7391271511773bf2d7a8632ec60231f4e2d84 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js @@ -7,16 +7,17 @@ es5id: 15.4.4.21-9-c-ii-3 description: Array.prototype.reduce - callbackfn takes 4 arguments ---*/ - var bCalled = false; - function callbackfn(prevVal, curVal, idx, obj) - { - bCalled = true; - if(prevVal === true && arguments.length === 4) - return true; - else - return false; - } - var arr = [0,1,2,3,4,5,6,7,8,9]; +var bCalled = false; -assert.sameValue(arr.reduce(callbackfn,true), true, 'arr.reduce(callbackfn,true)'); +function callbackfn(prevVal, curVal, idx, obj) +{ + bCalled = true; + if (prevVal === true && arguments.length === 4) + return true; + else + return false; +} +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + +assert.sameValue(arr.reduce(callbackfn, true), true, 'arr.reduce(callbackfn,true)'); assert.sameValue(bCalled, true, 'bCalled'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js index 0b3202e74811db2a2895414d622f371d01d5cc9c..2cc426a8d2e250d521cf9a9b3b874eedd6a2975b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js @@ -7,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-30 description: Array.prototype.reduce - the Math object can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === Math; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === Math; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, Math), true, 'Array.prototype.reduce.call(obj, callbackfn, Math)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js index 6e4c92b939b5e42b81b39ed8b3d689e233509dc0..4bf720831faf6add603616380ab88f2f1fdb7591 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-31 description: Array.prototype.reduce - Date object can be used as accumulator ---*/ - var objDate = new Date(); +var objDate = new Date(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objDate; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objDate; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objDate), true, 'Array.prototype.reduce.call(obj, callbackfn, objDate)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js index 8a0f61496f771851324584f1951ac38b7ac8caf6..de51b59f3ef376e43e106f97d7257eb5f1dbe801 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-32 description: Array.prototype.reduce - RegExp object can be used as accumulator ---*/ - var objRegExp = new RegExp(); +var objRegExp = new RegExp(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objRegExp; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objRegExp; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objRegExp), true, 'Array.prototype.reduce.call(obj, callbackfn, objRegExp)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js index c010c39ff1f8de6d2b0b2324e754efbc92c47256..b5cdc3cc8694bb93c642466a3096fdefe112033b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js @@ -7,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-33 description: Array.prototype.reduce - the JSON can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === JSON; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === JSON; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, JSON), true, 'Array.prototype.reduce.call(obj, callbackfn, JSON)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js index 8f6dbd88857cabb0636783abbccb4c71aba816b5..9df298c155a3a91dcab360458a8942fc311c96fe 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-34 description: Array.prototype.reduce - Error object can be used as accumulator ---*/ - var objError = new RangeError(); +var objError = new RangeError(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objError; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objError; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objError), true, 'Array.prototype.reduce.call(obj, callbackfn, objError)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js index 30daec0a866f5c58f993b420ba84cd92aa479923..8d01e4e831cea7e02c0621ad576c3b4122cdf0e2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js @@ -9,19 +9,22 @@ description: > accumulator ---*/ - var accessed = false; - var arg; +var accessed = false; +var arg; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === arg; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === arg; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - (function fun() { - arg = arguments; - }(10, 11, 12, 13)); +(function fun() { + arg = arguments; +}(10, 11, 12, 13)); assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, arg), true, 'Array.prototype.reduce.call(obj, callbackfn, arg)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js index a0a46fa90b2e9abf0409c3af3c1d5f9ac5e96eb9..bb97f5f54bf46e4d3cf2978198154bb0a4a5b539 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js @@ -10,13 +10,17 @@ description: > ---*/ var global = this; - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === global; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === global; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, this), true, 'Array.prototype.reduce.call(obj, callbackfn, this)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js index 1d1517917c1414e73a029064f09c340a93479072..89872b12790579a1f1dc3d3241cbc297ea771c9c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js @@ -10,13 +10,14 @@ description: > flags: [noStrict] ---*/ - var innerThisCorrect = false; - function callbackfn(prevVal, curVal, idx, obj) - { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } - [0].reduce(callbackfn,true); +var innerThisCorrect = false; + +function callbackfn(prevVal, curVal, idx, obj) +{ + "use strict"; + innerThisCorrect = this === undefined; + return true; +} +[0].reduce(callbackfn, true); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js index 5b70ba2204e95fc258358b86c5a36b88edf65153..f0982335e1c968b33fb1392ddc0f47a307c71593 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js @@ -9,21 +9,21 @@ description: > order on an Array ---*/ - var arr = [0, 1, 2]; - var lastIdx = 0; - var result = true; - var accessed = false; +var arr = [0, 1, 2]; +var lastIdx = 0; +var result = true; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (lastIdx !== idx) { - result = false; - } else { - lastIdx++; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (lastIdx !== idx) { + result = false; + } else { + lastIdx++; + } +} - arr.reduce(callbackfn, 11); +arr.reduce(callbackfn, 11); assert(result, 'result !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js index 4476ea3d032e3882f7bcd02b950309cf0ce1355d..2a7ad3a6a83b87c3c0b8e78f02203d931fac80e4 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js @@ -9,26 +9,26 @@ description: > iteration and not prior to starting the loop on an Array ---*/ - var result = true; - var kIndex = []; - var called = 0; +var result = true; +var kIndex = []; +var called = 0; - //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. - function callbackfn(prevVal, curVal, idx, obj) { - //Each position should be visited one time, which means k is accessed one time during iterations. - called++; - if (typeof kIndex[idx] === "undefined") { - //when current position is visited, its previous index should has been visited. - if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { - result = false; - } - kIndex[idx] = 1; - } else { - result = false; - } - } +//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. +function callbackfn(prevVal, curVal, idx, obj) { + //Each position should be visited one time, which means k is accessed one time during iterations. + called++; + if (typeof kIndex[idx] === "undefined") { + //when current position is visited, its previous index should has been visited. + if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { + result = false; + } + kIndex[idx] = 1; + } else { + result = false; + } +} - [11, 12, 13, 14].reduce(callbackfn, 1); +[11, 12, 13, 14].reduce(callbackfn, 1); assert(result, 'result !== true'); assert.sameValue(called, 4, 'called'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js index 9f76afad69293789ae8707a3bb64a7cb6286a9e4..31c3a8c588faaca4d100d5338ec00b47a8279e4b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js @@ -9,19 +9,24 @@ description: > callbackfn terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.reduce.call(obj, callbackfn, 1); + Array.prototype.reduce.call(obj, callbackfn, 1); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js index b3395afcceaaeb9c0a8e2e015e1dd412a91308af..e3ed219e68be198afe2e90229c1de1fa41b74af7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js @@ -9,19 +9,24 @@ description: > iterations is observed ---*/ - var result = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - obj[idx + 1] = 8; - } +var result = false; - if (idx === 1) { - result = (curVal === 8); - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + obj[idx + 1] = 8; + } - var obj = { 0: 11, 1: 12, length: 2 }; + if (idx === 1) { + result = (curVal === 8); + } +} - Array.prototype.reduce.call(obj, callbackfn, 1); +var obj = { + 0: 11, + 1: 12, + length: 2 +}; + +Array.prototype.reduce.call(obj, callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js index a8f5758d3f8f45572f6a8470556e43b510b1b38c..c9d0ae895b8498b9c92bc363b8f74413f8acc78d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var called = 0; - function callbackfn() { - called++; - } +var called = 0; - [11, 12].reduce(callbackfn, 1); +function callbackfn() { + called++; +} + +[11, 12].reduce(callbackfn, 1); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js index 7650b6531b9e8ec65e45aa5c875fadc10cc996b4..5a64f1472eb7d7ff03d633b987f74801a61dcf42 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js @@ -9,5 +9,5 @@ description: Array.prototype.reduceRight applied to undefined throws a TypeError assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(undefined); + Array.prototype.reduceRight.call(undefined); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js index 341dac72957ae900fbc1a6d784c97959eeeaeff7..fb0a1f9f89e7d88120162e98e71131d59e8c3f06 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js @@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-10 description: Array.prototype.reduceRight applied to the Math object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return '[object Math]' === Object.prototype.toString.call(obj); - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return '[object Math]' === Object.prototype.toString.call(obj); +} - Math.length = 1; - Math[0] = 1; +Math.length = 1; +Math[0] = 1; assert(Array.prototype.reduceRight.call(Math, callbackfn, 1), 'Array.prototype.reduceRight.call(Math, callbackfn, 1) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js index 447771e6edb10f719e883371d3a124b40b017a42..610b41291261829e88859666f71c74a6ca7ddeac 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js @@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-11 description: Array.prototype.reduceRight applied to Date object ---*/ - var obj = new Date(); - obj.length = 1; - obj[0] = 1; - var accessed = false; +var obj = new Date(); +obj.length = 1; +obj[0] = 1; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj instanceof Date; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj instanceof Date; +} assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js index 06834d39e4e48603b5d99c164849c30ef0d56b25..efc9fa2e3a2eb89adfd7884992ad469199f0dcd4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js @@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-12 description: Array.prototype.reduceRight applied to RegExp object ---*/ - var obj = new RegExp(); - obj.length = 1; - obj[0] = 1; - var accessed = false; +var obj = new RegExp(); +obj.length = 1; +obj[0] = 1; +var accessed = false; - function callbackfn(prevVal, curVal, idx, o) { - accessed = true; - return o instanceof RegExp; - } +function callbackfn(prevVal, curVal, idx, o) { + accessed = true; + return o instanceof RegExp; +} assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js index 9d6b8f83cb8b7352c687976a2d12463be1339140..822d57425df9d19797a960869aed163e64a09af9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js @@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-13 description: Array.prototype.reduceRight applied to the JSON object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return ('[object JSON]' === Object.prototype.toString.call(obj)); - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return ('[object JSON]' === Object.prototype.toString.call(obj)); +} - JSON.length = 1; - JSON[0] = 1; +JSON.length = 1; +JSON[0] = 1; assert(Array.prototype.reduceRight.call(JSON, callbackfn, 1), 'Array.prototype.reduceRight.call(JSON, callbackfn, 1) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js index 6b7e76ea42f565646fed706417ba1cd55592c251..4d8557c59b7e644bd5457759113a4b49e867a129 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js @@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-14 description: Array.prototype.reduceRight applied to Error object ---*/ - var obj = new Error(); - obj.length = 1; - obj[0] = 1; - var accessed = false; +var obj = new Error(); +obj.length = 1; +obj[0] = 1; +var accessed = false; - function callbackfn(prevVal, curVal, idx, o) { - accessed = true; - return o instanceof Error; - } +function callbackfn(prevVal, curVal, idx, o) { + accessed = true; + return o instanceof Error; +} assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js index 8e739dfaba0100cf6c1a5daccd1f5c8436d0403d..a2bb8a9ffcd1b75cc55ff476fec990ef54208903 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js @@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-15 description: Array.prototype.reduceRight applied to the Arguments object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return '[object Arguments]' === Object.prototype.toString.call(obj); - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return '[object Arguments]' === Object.prototype.toString.call(obj); +} - var obj = (function () { - return arguments; - }("a", "b")); +var obj = (function() { + return arguments; +}("a", "b")); assert(Array.prototype.reduceRight.call(obj, callbackfn, "a"), 'Array.prototype.reduceRight.call(obj, callbackfn, "a") !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js index 602cef5da838e0e3c1b7af840f99c6826bc216f4..cf08c68a5a4a1a0eb9534450b98a5b329dd12502 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js @@ -9,5 +9,5 @@ description: Array.prototype.reduceRight applied to null throws a TypeError assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(null); + Array.prototype.reduceRight.call(null); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js index 54f2c207a66abcb307ef5bfb02585e987cbdd2e5..6fca6c30406d6435a6b80bda2c5e2170bc999b14 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js @@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-3 description: Array.prototype.reduceRight applied to boolean primitive ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj instanceof Boolean; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj instanceof Boolean; +} - Boolean.prototype[0] = 1; - Boolean.prototype.length = 1; +Boolean.prototype[0] = 1; +Boolean.prototype.length = 1; assert(Array.prototype.reduceRight.call(false, callbackfn, 1), 'Array.prototype.reduceRight.call(false, callbackfn, 1) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js index 77427f29cdd1fae1c1e61cf60b5fce4234fb07c2..d782446858d46a56fe102d4fcdd4da0f874f6a5c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js @@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-4 description: Array.prototype.reduceRight applied to Boolean object ---*/ - var obj = new Boolean(true); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; - var accessed = false; +var obj = new Boolean(true); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj instanceof Boolean; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj instanceof Boolean; +} assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js index 59244bbe9093237ce0284e0fa99bcf1a038403e3..c83b156f044079e82aa80d5ec27b6d9fa730abad 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js @@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-5 description: Array.prototype.reduceRight applied to number primitive ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj instanceof Number; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj instanceof Number; +} - Number.prototype[0] = 1; - Number.prototype.length = 1; +Number.prototype[0] = 1; +Number.prototype.length = 1; assert(Array.prototype.reduceRight.call(2.5, callbackfn, 1), 'Array.prototype.reduceRight.call(2.5, callbackfn, 1) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js index a0c2df0e81d1ab2c0b5f7cb780238d162f524881..9d1c2792a39cf02461142a6bfda39c241f24645b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js @@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-6 description: Array.prototype.reduceRight applied to Number object ---*/ - var obj = new Number(-128); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; - var accessed = false; +var obj = new Number(-128); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; +var accessed = false; - function callbackfn(prevVal, curVal, idx, o) { - accessed = true; - return o instanceof Number; - } +function callbackfn(prevVal, curVal, idx, o) { + accessed = true; + return o instanceof Number; +} assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js index 6e368cfffd3a6d1e132e66ef574b5f3fe32a876d..7c3dabefe406fa91b7f90b9e5b68d52a44ff571c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js @@ -7,12 +7,12 @@ es5id: 15.4.4.22-1-7 description: Array.prototype.reduceRight applied to string primitive ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj instanceof String; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj instanceof String; +} assert(Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h"), 'Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h") !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js index d034b48b39b7589c46bc9c4c758f2047655fe6fa..9f6ee35dbc3b12684402f6888bcd90afcd309f47 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js @@ -7,13 +7,13 @@ es5id: 15.4.4.22-1-8 description: Array.prototype.reduceRight applied to String object ---*/ - var obj = new String("hello\nworld\\!"); - var accessed = false; +var obj = new String("hello\nworld\\!"); +var accessed = false; - function callbackfn(prevVal, curVal, idx, o) { - accessed = true; - return o instanceof String; - } +function callbackfn(prevVal, curVal, idx, o) { + accessed = true; + return o instanceof String; +} assert(Array.prototype.reduceRight.call(obj, callbackfn, "h"), 'Array.prototype.reduceRight.call(obj, callbackfn, "h") !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js index 1820f546c1b4360eddb8fd62f6e1868685a08807..42e6c8ca6b1ba1531fca74e63260f94d56ed77e1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js @@ -7,17 +7,17 @@ es5id: 15.4.4.22-1-9 description: Array.prototype.reduceRight applied to Function object ---*/ - var obj = function (a, b) { - return a + b; - }; - obj[0] = 11; - obj[1] = 9; - var accessed = false; +var obj = function(a, b) { + return a + b; +}; +obj[0] = 11; +obj[1] = 9; +var accessed = false; - function callbackfn(prevVal, curVal, idx, o) { - accessed = true; - return o instanceof Function; - } +function callbackfn(prevVal, curVal, idx, o) { + accessed = true; + return o instanceof Function; +} assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js index d9b0c874d842ea03bb391576e21d87fad16ae2a4..eaaca4897c1e5b9c20d1034607a49085d7094b37 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js @@ -9,12 +9,12 @@ description: > is called on ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - return 1; - } - var srcArr = [1,2,3,4,5]; - srcArr.reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) +{ + return 1; +} +var srcArr = [1, 2, 3, 4, 5]; +srcArr.reduceRight(callbackfn); assert.sameValue(srcArr[0], 1, 'srcArr[0]'); assert.sameValue(srcArr[1], 2, 'srcArr[1]'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js index 1b34162cfacea546931fe2b626914a181b22e2cc..cffd5e08e18eca6b502bd12798047f3358012890 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js @@ -9,10 +9,10 @@ description: > indices ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - return prevVal + curVal; - } - var srcArr = ['1','2','3','4','5']; +function callbackfn(prevVal, curVal, idx, obj) +{ + return prevVal + curVal; +} +var srcArr = ['1', '2', '3', '4', '5']; assert.sameValue(srcArr.reduceRight(callbackfn), '54321', 'srcArr.reduceRight(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js index 6e47fd87154c6f164595676afce7bc55ecc6a83b..de4a59b0c2c78c2d88cbfb145c00e6098f6b9c16 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js @@ -7,10 +7,11 @@ es5id: 15.4.4.22-10-3 description: Array.prototype.reduceRight - subclassed array with length 1 ---*/ - foo.prototype = [1]; - function foo() {} - var f = new foo(); +foo.prototype = [1]; - function cb(){} +function foo() {} +var f = new foo(); + +function cb() {} assert.sameValue(f.reduceRight(cb), 1, 'f.reduceRight(cb)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js index 76afe602969398aaecc66b6147aad581465208e5..7726d9fde8d0b6c09dafe84233be7e37a03fd154 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js @@ -9,10 +9,13 @@ description: > than 1 ---*/ - foo.prototype = new Array(0, 1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(0, 1, 2, 3); - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); + +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} assert.sameValue(f.reduceRight(cb), 6, 'f.reduceRight(cb)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js index 78e6d744fa5c7454d170d7ab30824c2d1bd17811..c5c29eb025632fed96b59c4343ea83ce48fc8de1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js @@ -9,10 +9,10 @@ description: > indices(initialvalue present) ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - return prevVal + curVal; - } - var srcArr = ['1','2','3','4','5']; +function callbackfn(prevVal, curVal, idx, obj) +{ + return prevVal + curVal; +} +var srcArr = ['1', '2', '3', '4', '5']; -assert.sameValue(srcArr.reduceRight(callbackfn,'6'), '654321', 'srcArr.reduceRight(callbackfn,"6")'); +assert.sameValue(srcArr.reduceRight(callbackfn, '6'), '654321', 'srcArr.reduceRight(callbackfn,"6")'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js index 1ce24519cafa6afaca0b851f733545e893637181..37cb4705e41569b8b8f014c49179998218b1daf1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js @@ -9,10 +9,13 @@ description: > provided ---*/ - foo.prototype = new Array(0, 1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(0, 1, 2, 3); - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); -assert.sameValue(f.reduceRight(cb,"4"), "43210", 'f.reduceRight(cb,"4")'); +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} + +assert.sameValue(f.reduceRight(cb, "4"), "43210", 'f.reduceRight(cb,"4")'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js index 27be976b4b910bd9c0a0c67e79e535002443ad5c..813179ec751c6796154210d59d48681adbf5b372 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js @@ -9,10 +9,13 @@ description: > and initialvalue provided ---*/ - foo.prototype = [1]; - function foo() {} - var f = new foo(); +foo.prototype = [1]; - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); -assert.sameValue(f.reduceRight(cb,"4"), "41", 'f.reduceRight(cb,"4")'); +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} + +assert.sameValue(f.reduceRight(cb, "4"), "41", 'f.reduceRight(cb,"4")'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js index 8a9eb81650872fa25385e2e50251828f46228328..a9aa6974077a5b61911281284b226deaa17e499b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js @@ -7,15 +7,16 @@ es5id: 15.4.4.22-10-8 description: Array.prototype.reduceRight doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - } - var srcArr = ['1','2','3','4','5']; - srcArr["i"] = 10; - srcArr[true] = 11; +var callCnt = 0; - srcArr.reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; +} +var srcArr = ['1', '2', '3', '4', '5']; +srcArr["i"] = 10; +srcArr[true] = 11; + +srcArr.reduceRight(callbackfn); assert.sameValue(callCnt, 4, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js index 5da45ad9da4e7e3bcf80b3c6f0a4c0ba5eecc266..5a7a0af52767c8649025caa446e5c466d2614037 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js @@ -9,18 +9,18 @@ description: > is an own data property ---*/ - var accessed = false; - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: 2 - }; +var accessed = false; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 +}; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js index ad204a77ba14286fec6a08520464e6237fb509fb..035cc1c822cb3451e2cb69012f357963fabff25d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js @@ -9,30 +9,30 @@ description: > is an inherited accessor property ---*/ - var accessed = false; - var Con = function () { }; +var accessed = false; +var Con = function() {}; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Con.prototype = proto; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; assert(Array.prototype.reduceRight.call(child, callbackfn, 11), 'Array.prototype.reduceRight.call(child, callbackfn, 11) !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js index dc8d017bd677a5f23f5db40e547dfef0c7aed269..ffd66953e464d483bec2599757c6bbe45fe04a6d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js @@ -9,21 +9,21 @@ description: > is an own accessor property without a get function ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return typeof obj.length === "undefined"; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return typeof obj.length === "undefined"; +} - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(obj, callbackfn, 111)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js index c162760d000d5c8bbaf0f29dce1c45a7dda78414..b685810f9a18a0ab89439393a5c17d1093448b22 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js @@ -10,25 +10,28 @@ description: > property ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return typeof obj.length === "undefined"; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return typeof obj.length === "undefined"; +} - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var obj = { 0: 12, 1: 13 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 12, + 1: 13 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 11), 11, 'Array.prototype.reduceRight.call(obj, callbackfn, 11)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js index 56f37873fa2b87bc3cb12b58d6c453e502686910..7cdaf568c685046d0e5a3f9c0ec48740827a2ba4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js @@ -9,25 +9,25 @@ description: > 'length' is inherited accessor property without a get function ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return curVal > 10; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return curVal > 10; +} - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 11; - child[1] = 12; +var child = new Con(); +child[0] = 11; +child[1] = 12; assert.sameValue(Array.prototype.reduceRight.call(child, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(child, callbackfn, 111)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js index 26f6a9d37db935b8c9978ac453b155c6cccaf53a..75d312923bb7b015d3f5cf1dfbf6576e3941e499 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js @@ -9,13 +9,16 @@ description: > 'length' property doesn't exist ---*/ - var obj = { 0: 11, 1: 12 }; - var accessed = false; +var obj = { + 0: 11, + 1: 12 +}; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return curVal > 10; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return curVal > 10; +} assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(obj, callbackfn, 111)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js index 41f7352af62ddc9a0524f34ad47754f578f5a872..b888b562e2e2a4d310016e97bee7c54e4d7a5609 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js @@ -9,18 +9,18 @@ description: > implements its own property get method ---*/ - var arg; - var accessed = false; +var arg; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - var func = function (a, b) { - arg = arguments; - return Array.prototype.reduceRight.call(arguments, callbackfn, 11); - }; +var func = function(a, b) { + arg = arguments; + return Array.prototype.reduceRight.call(arguments, callbackfn, 11); +}; assert(func(12, 11), 'func(12, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js index 89f7a89fa6967514eb5dc00f7f7290e552454c63..bc036bf4888cbf35b69b371f194b1ec2580e99cc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js @@ -9,15 +9,15 @@ description: > implements its own property get method ---*/ - var accessed = false; - var str = new String("432"); +var accessed = false; +var str = new String("432"); - function callbackfn(preVal, curVal, idx, obj) { - accessed = true; - return obj.length === 3; - } +function callbackfn(preVal, curVal, idx, obj) { + accessed = true; + return obj.length === 3; +} - String.prototype[3] = "1"; +String.prototype[3] = "1"; assert(Array.prototype.reduceRight.call(str, callbackfn, 111), 'Array.prototype.reduceRight.call(str, callbackfn, 111) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js index 08bdd46df1b0e278b985ef8b71103a266532c447..f76fdf22398e9a22e5709f4024150c58f96ca677 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js @@ -9,18 +9,18 @@ description: > implements its own property get method ---*/ - var accessed = false; - var fun = function (a, b) { - return a + b; - }; - fun[0] = 12; - fun[1] = 11; - fun[2] = 9; +var accessed = false; +var fun = function(a, b) { + return a + b; +}; +fun[0] = 12; +fun[1] = 11; +fun[2] = 9; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} assert(Array.prototype.reduceRight.call(fun, callbackfn, 11), 'Array.prototype.reduceRight.call(fun, callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js index c56d545b43bad3e01379172c4f40cbadc9abf45a..b2b8335e1c99a84b72cf7d193dd298608e4e81c4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js @@ -9,12 +9,12 @@ description: > Array ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} assert([12, 11].reduceRight(callbackfn, 11), '[12, 11].reduceRight(callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js index feff6998df3e59148892f94711e001af373c9aa5..ef1d83a5d7956e4a0adde264326f0782b3d46654 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js @@ -9,23 +9,25 @@ description: > is an own data property that overrides an inherited data property ---*/ - var accessed = true; +var accessed = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; assert(Array.prototype.reduceRight.call(child, callbackfn), 'Array.prototype.reduceRight.call(child, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js index 0a1b81254bb4db6d40c335b2b8e318bc8cf748f2..4335394fa0b60d300553fdc776bc291a6c1a5e20 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js @@ -9,15 +9,16 @@ description: > overrides an inherited data property on an Array ---*/ - var accessed = false; - var arrProtoLen; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +var accessed = false; +var arrProtoLen; - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} + +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; assert([12, 11].reduceRight(callbackfn, 11), '[12, 11].reduceRight(callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js index 3fcf425de90171bc7ed0dcc94c3b718da2e91999..50e35c3b48e394d6ff658303f2974dd49e6b166a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js @@ -10,32 +10,32 @@ description: > property ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); +child[0] = 12; +child[1] = 11; +child[2] = 9; assert(Array.prototype.reduceRight.call(child, callbackfn), 'Array.prototype.reduceRight.call(child, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js index b31b796cbdecda7c23f05f94ed0dcd815cc0f7f5..d41b9630ae28af3d13fa99ba7856cf2aa05e8b3a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js @@ -9,20 +9,22 @@ description: > is an inherited data property ---*/ - var accessed = false; - var proto = { length: 2 }; - var Con = function () { }; - Con.prototype = proto; +var accessed = false; +var proto = { + length: 2 +}; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; - function callbackfn1(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn1(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} assert(Array.prototype.reduceRight.call(child, callbackfn1, 11), 'Array.prototype.reduceRight.call(child, callbackfn1, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js index 1400c9e8eb1721baf71181d720cb332faa8cf17b..836ed95e1f0cd8d74cb2f833ea4cf56b51d063a7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js @@ -9,23 +9,23 @@ description: > is an own accessor property ---*/ - var accessed = true; - var obj = {}; - obj[0] = 12; - obj[1] = 11; - obj[2] = 9; +var accessed = true; +var obj = {}; +obj[0] = 12; +obj[1] = 11; +obj[2] = 9; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js index 85912235a34200a1e90c905915c150fc37dc4d4b..f867632c02e84ecaf68dcc9353d423ba3618a2f9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js @@ -10,30 +10,32 @@ description: > property ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; assert(Array.prototype.reduceRight.call(child, callbackfn, 11), 'Array.prototype.reduceRight.call(child, callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js index 139b4d17515e69e1f271d8b099dcb3e5edf4c412..d47f6150fb9692ef7f7d30df49205ec3b28a6363 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js @@ -10,34 +10,34 @@ description: > property ---*/ - var accessed = false; +var accessed = false; - function callbackfn1(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn1(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - var proto = {}; - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); +child[0] = 12; +child[1] = 11; +child[2] = 9; assert(Array.prototype.reduceRight.call(child, callbackfn1, 111), 'Array.prototype.reduceRight.call(child, callbackfn1, 111) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js index d309b78ac3e9f31d99a42517d8816a90a6cdcdc5..7ce837aeb6904a8d34fec1f7d180b8f8f67048e0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js @@ -7,13 +7,16 @@ es5id: 15.4.4.22-3-1 description: Array.prototype.reduceRight - value of 'length' is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: undefined }; +var obj = { + 0: 9, + length: undefined +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js index be485e4db8ec4263d5ea224396e713f9be30909d..938371d98659f4d85be61fcc37293f7b82bf943b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js @@ -9,13 +9,16 @@ description: > is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js index c5d9cb5abc7a1955cbb7d028286b0ca0b0736751..63f6e5712192f6ef6a467eb28df3c85a9c023b22 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js @@ -9,22 +9,28 @@ description: > containing a positive number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "2" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js index f81ce7b4c972bb963f3159d9a12eaca7cd4417d4..3a209ff400ce6ee94f60b727ed00533ac1f84a05 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js @@ -9,22 +9,28 @@ description: > containing a negative number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 11, + 1: 12, + 2: 9, + length: "-4294967294" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert.sameValue(testResult2, false, 'testResult2'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js index 054d4cf94c314986cdfe62f4fc5115b9ee49ebcf..6fb47ffde728c9fd4855556c63a95972a798cc63 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js @@ -9,22 +9,28 @@ description: > containing a decimal number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2.5" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js index 8f7aeeb38202cdc81a0edbe621499e8c7246c5d5..8fc2ef112aa3c4ec252d61b2a832f32473794d95 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js @@ -9,13 +9,16 @@ description: > containing -Infinity ---*/ - var accessed2 = false; +var accessed2 = false; - function callbackfn2(prevVal, curVal, idx, obj) { - accessed2 = true; - } +function callbackfn2(prevVal, curVal, idx, obj) { + accessed2 = true; +} - var obj2 = { 0: 9, length: "-Infinity" }; +var obj2 = { + 0: 9, + length: "-Infinity" +}; assert.sameValue(Array.prototype.reduceRight.call(obj2, callbackfn2, 2), 2, 'Array.prototype.reduceRight.call(obj2, callbackfn2, 2)'); assert.sameValue(accessed2, false, 'accessed2'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js index a77e817bd37b647fccda4bbac00f6fe58970a3e3..dc7937f7762b9beef3468c645ad1340328ce5aa2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js @@ -9,22 +9,28 @@ description: > containing an exponential number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2E0" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js index 6d75ccf2e61f6498eaebd4b50872660cda194a87..ac8deb3c9052d98be8421c25823b0ec92a7dc015 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js @@ -9,22 +9,28 @@ description: > containing a hex number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "0x0002" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js index ace3561654ae968124d000de4c568e89feb8c7cf..5da8f8d4faff6e1e25b997b4959fc63c0265e0ce 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js @@ -9,22 +9,28 @@ description: > containing a number with leading zeros ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "0002.00" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js index 1ae0c97f9a07815b7485ac7917faf99f36376344..bd2586f98929c618e25af015f824880c3d922bc6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js @@ -9,13 +9,17 @@ description: > can't convert to a number ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, 1: 8, length: "two" }; +var obj = { + 0: 9, + 1: 8, + length: "two" +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 11), 11, 'Array.prototype.reduceRight.call(obj, callbackfn, 11)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js index 4f314ad517aefd09b8ff8bce5dd9b5d6aeb38e83..1e2f2e395bccfaa3ccea9f54b7dbe45df3ec06f6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js @@ -9,39 +9,40 @@ description: > has an own toString method ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } - - if (idx === 1) { - testResult2 = true; - } - return false; - } - - var toStringAccessed = false; - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: { - toString: function () { - toStringAccessed = true; - return '2'; - } - } - }; - - // objects inherit the default valueOf() method from Object - // that simply returns itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var testResult1 = true; +var testResult2 = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } + + if (idx === 1) { + testResult2 = true; + } + return false; +} + +var toStringAccessed = false; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: { + toString: function() { + toStringAccessed = true; + return '2'; + } + } +}; + +// objects inherit the default valueOf() method from Object +// that simply returns itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js index 80ddaeaa9c40881d2917bad515f1f101f24d5ee9..77c0abd1b4a0bf5d00378b7620622a28efbd62ab 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js @@ -9,13 +9,16 @@ description: > 'length' is 0 (length overridden to false(type conversion)) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(preVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(preVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: false }; +var obj = { + 0: 9, + length: false +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js index f277c7fa84e1b20f6ae601becfb63ef1b284bea9..5b8cf1cbd6ec342631678ede1505ee4dcd7f5f40 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js @@ -9,34 +9,35 @@ description: > has an own valueOf method ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } - - if (idx === 1) { - testResult2 = true; - } - return false; - } - - var valueOfAccessed = false; - - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - } - }; - - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var testResult1 = true; +var testResult2 = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } + + if (idx === 1) { + testResult2 = true; + } + return false; +} + +var valueOfAccessed = false; + +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: { + valueOf: function() { + valueOfAccessed = true; + return 2; + } + } +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js index 1f7f478cd64ce4c0a94229017efaebdba9ad8231..31024633a681f37f75282626b20d7e5270cda216 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js @@ -10,39 +10,40 @@ description: > returns a string ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } - - if (idx === 1) { - testResult2 = true; - } - return false; - } - - var toStringAccessed = false; - var valueOfAccessed = false; - - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: { - valueOf: function () { - valueOfAccessed = true; - return {}; - }, - toString: function () { - toStringAccessed = true; - return '2'; - } - } - }; - - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var testResult1 = true; +var testResult2 = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } + + if (idx === 1) { + testResult2 = true; + } + return false; +} + +var toStringAccessed = false; +var valueOfAccessed = false; + +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: { + valueOf: function() { + valueOfAccessed = true; + return {}; + }, + toString: function() { + toStringAccessed = true; + return '2'; + } + } +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js index 717f2c2db1f4f0195c5188084672151c25f17ec9..488f1808f2f335a0a48bc197969249f00f23709f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js @@ -10,31 +10,31 @@ description: > return primitive values ---*/ - var accessed = false; - var toStringAccessed = false; - var valueOfAccessed = false; +var accessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { - 0: 11, - 1: 12, +var obj = { + 0: 11, + 1: 12, - length: { - valueOf: function () { - valueOfAccessed = true; - return {}; - }, - toString: function () { - toStringAccessed = true; - return {}; - } - } - }; + length: { + valueOf: function() { + valueOfAccessed = true; + return {}; + }, + toString: function() { + toStringAccessed = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, callbackfn, 1); + Array.prototype.reduceRight.call(obj, callbackfn, 1); }); assert(toStringAccessed, 'toStringAccessed !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js index 4a3951bcfc758706f9b40582f8809ac56008c47b..f9f5fa105dff257535d284cc5c0510afc854cfb6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js @@ -10,45 +10,45 @@ description: > methods ---*/ - var testResult1 = true; - var testResult2 = false; - var valueOfAccessed = false; - var toStringAccessed = false; - - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; - var Con = function () { }; - Con.prototype = proto; - var child = new Con(); - - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } - - if (idx === 1) { - testResult2 = true; - } - return false; - } - - child.toString = function () { - toStringAccessed = true; - return '1'; - }; - - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: child - }; - - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var testResult1 = true; +var testResult2 = false; +var valueOfAccessed = false; +var toStringAccessed = false; + +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; +var Con = function() {}; +Con.prototype = proto; +var child = new Con(); + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } + + if (idx === 1) { + testResult2 = true; + } + return false; +} + +child.toString = function() { + toStringAccessed = true; + return '1'; +}; + +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: child +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js index 33ffe0951aeababcb3d3502f33f702de44df639f..db317c993b3ea98be547b89bb377522a0e347af6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js @@ -9,22 +9,28 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2.685 +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js index 4895baa710780266c507affe071f0d4a15d195c0..eb311aa6fdc796c80468f615cbe27d9be1dc970c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js @@ -9,27 +9,28 @@ description: > non-integer ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: -4294967294.5 - }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: -4294967294.5 +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert.sameValue(testResult2, false, 'testResult2'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js index 5eb75122181d33c7c5f6ab9a9be82a2042295a8e..b651dc45ecc5964296120e4ce6ef21a0bc024484 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js @@ -9,13 +9,16 @@ description: > is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: 0 }; +var obj = { + 0: 9, + length: 0 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js index 8317bd611c550aef0590bdf5b800128b5e3d90e4..9b7f07bd4856d412ca1bffb1ac6e8fef6df92bde 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js @@ -9,13 +9,16 @@ description: > is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: +0 }; +var obj = { + 0: 9, + length: +0 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js index d41f2f0db0803a953546684f080cf2e047ab74bb..9a8919e54fb9ad4dc4d9fb36ad91d241e9db0207 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js @@ -9,13 +9,16 @@ description: > is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(preVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(preVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: -0 }; +var obj = { + 0: 9, + length: -0 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js index 4caab36e8a1318ddf7d5bad02a023de7be409fb6..69ed877c29e1c80513f80a91650a8501b2cb484b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js @@ -9,22 +9,27 @@ description: > is positive) ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 1: 11, 2: 9, length: 2 }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 1: 11, + 2: 9, + length: 2 +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js index 53556d6bdd1de6b23056349a6f7c277eb81db091..a8da6c075f61bfb190c7b7b8601aacc410a54ef2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js @@ -9,22 +9,27 @@ description: > is negative) ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 1: 11, 2: 9, length: -4294967294 }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 1: 11, + 2: 9, + length: -4294967294 +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert.sameValue(testResult2, false, 'testResult2'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js index b9a895999b5173f7def76f46c51ce90e6c652d5a..7ecc600aab4685e52d4f10d5e92a8ef79c9b9ae0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js @@ -9,13 +9,16 @@ description: > is -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js index dc3e1659103a117eaece23c80b8d3629fcc17f50..04017e990ab0f67e3021e64c7b7b528bf25549bc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js @@ -9,7 +9,7 @@ description: > undefined ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduceRight(); + arr.reduceRight(); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js index 78a88e9b867749868af4080a5de3c6b684902063..b6a599910a51c3a98c8f53a128ddb76858606d55 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js @@ -9,15 +9,18 @@ description: > exception was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, undefined); + Array.prototype.reduceRight.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js index cfb99f9c3b60547a98a1d3d88e3db3cd7e49e4e2..34885bde341b3d61ff046d5767f28787c45a5eb0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js @@ -9,19 +9,22 @@ description: > exception was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, undefined); + Array.prototype.reduceRight.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js index 8f83394758aadf68312cf607c8ccc33e22d4eb4a..f4e76497f7568082c9996ec53209d5c6f73cb660 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js @@ -7,10 +7,11 @@ es5id: 15.4.4.22-4-12 description: Array.prototype.reduceRight - 'callbackfn' is a function ---*/ - var initialValue = 0; - function callbackfn(accum, val, idx, obj) { - accum += val; - return accum; - } +var initialValue = 0; + +function callbackfn(accum, val, idx, obj) { + accum += val; + return accum; +} assert.sameValue([11, 9].reduceRight(callbackfn, initialValue), 20, '[11, 9].reduceRight(callbackfn, initialValue)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js index 38d8e3f06e6eb7ced3ce513c2b4ea75d0c9bb343..cdef077c69bd25e43ed898dbf1fc67804d18f8d6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js @@ -9,26 +9,28 @@ description: > same as passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, undefined); + Array.prototype.reduceRight.call(obj, undefined); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js index 51c148dce6bfd39d560c3a902a5919c66e7da18b..40ea5d53ca84554e47ee2db5ce769b7a8238211b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js @@ -9,7 +9,7 @@ description: > unreferenced ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(ReferenceError, function() { - arr.reduceRight(foo); + arr.reduceRight(foo); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js index 129cfc44ce2bb2bd72b02a7d6c195b6fb1305396..76b084c2badaef3c80afac4a8412e39d32fdbd1a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.22-4-3 description: Array.prototype.reduceRight throws TypeError if callbackfn is null ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduceRight(null); + arr.reduceRight(null); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js index d4dc6d1f2d8f232a30b3a8dad91baef21f491615..9f0043f12a938cf404f303994bedcbba0d451a91 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js @@ -9,7 +9,7 @@ description: > boolean ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduceRight(true); + arr.reduceRight(true); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js index a20e6ccb38f685ce0a3426dfcda3e05c075db081..e22ed218356a35674476d8b1c1a8ef2072801a24 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js @@ -9,7 +9,7 @@ description: > number ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduceRight(5); + arr.reduceRight(5); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js index f32324399446545a570397bcf4f65b93c6e6971a..e6437a1b334789e9ca837e2ccbdc53ef9faf3db8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js @@ -9,7 +9,7 @@ description: > string ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduceRight("abc"); + arr.reduceRight("abc"); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js index 86a86b8c97095994e99c5ba265fd92079a2437f1..c6104250dab1083fb7b856656eccf8d2e6c280e2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js @@ -9,7 +9,7 @@ description: > Object without [[Call]] internal method ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduceRight(new Object()); + arr.reduceRight(new Object()); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js index 2b7468f541ba5b926323491c94e011afecb84144..d76239982f5bb7a5d9c591db0182e00138ac55d2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, null); + Array.prototype.reduceRight.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js index dac9e41fa3bff21535e17c80094d4dad7ce31170..0da73eb44d3d7d9412a0f637cee7ee913ed5be6f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, null); + Array.prototype.reduceRight.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js index 7aca869816ad907800a2229a25bd63cd87fb9942..562903de4251ace1958e3c48c0cab782be0dd890 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js @@ -9,7 +9,7 @@ description: > (empty array), no initVal ---*/ - function cb(){} +function cb() {} assert.throws(TypeError, function() { - [].reduceRight(cb); + [].reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js index ede41e29f6d7e2b264b37e5bb04a356d8fd9c01f..f70a3062d04a0d8e102fae3905a5194219118ae6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js @@ -9,18 +9,21 @@ description: > an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 0; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js index 627bebe3000bbcb7c1afa491543e62f9e387b0f7..a0d148aacf14eb88fb491d0e1740498007988b3e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js @@ -9,22 +9,25 @@ description: > an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "0"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "0"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js index 7115439f2734a710b49640bc92f1ee0edd9d936f..5a8f4909671d3956ddb62aa7889701d9957410df 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js @@ -9,15 +9,18 @@ description: > exception was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js index 8ff17da58e39e55d4a37c441a4048e5fd3fedc8f..f3a658dbdf7329232da94dcd7cfd0227641544ce 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js @@ -9,19 +9,22 @@ description: > exception was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js index 4f74f4fb56efbb0666ac600d0d1bce0d1ab1bc6b..e2ea6c0a1d3f6da9c5052b451d1b7e601d08c3ba 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js @@ -10,12 +10,13 @@ description: > no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js index a19e73e2b10d19e24cf11b8b57ee02dd3a0acb1b..1256ed66879d88b032e291dc18d5a657919c6cc9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js @@ -10,12 +10,13 @@ description: > no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js index 31a202f5ecff0c0769a5b490e5b0088465d4440f..ec024658ff36d890283e69ea74f98eec79cb8a4f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js @@ -10,12 +10,13 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js index db633c21424bebe2709543df3d67ea3570ac69f1..ddf90e92e9d35b824ebd17e21ca913262583ff99 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js @@ -10,12 +10,13 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js index cea6793e0bb10bdb30f7f546b32776b662778d53..76d34aed035fea9c5924ebb11e5c32c8413266b5 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js @@ -10,14 +10,19 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js index 6fac3bfd8dc8aba8151140bcab32da657fc0b0b7..bd392b80038d43145d43ddc1ed6dd09e71a49e61 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js @@ -10,20 +10,25 @@ description: > (toString)), no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js index 10631cf823d7230f24887c18d77fbad20783a07b..93ce902f0ba6e4b0e4feeb0fefbdb599c93ae2dc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js @@ -9,27 +9,28 @@ description: > (subclassed Array, length overridden with []), no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = []; - function cb(){} +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js index ce3fe68446dccd28da74569c655b198b3986b253..8c9053cdb44a4ae0b717d5a5f70130a32a8f363c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js @@ -9,6 +9,6 @@ description: > is 0 and 'initialValue' is present ---*/ - var initialValue = 10; +var initialValue = 10; -assert.sameValue([].reduceRight(function () { }, initialValue), initialValue, '[].reduceRight(function () { }, initialValue)'); +assert.sameValue([].reduceRight(function() {}, initialValue), initialValue, '[].reduceRight(function () { }, initialValue)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js index cd191ee0eaf5d27821667a475b07a06e1af9cf2a..76cec3316eb3f3c8d7493cef1fdc21f446ac6041 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js @@ -9,5 +9,5 @@ description: > and initialValue is present (empty array) ---*/ - function cb(){} -assert.sameValue([].reduceRight(cb,1), 1, '[].reduceRight(cb,1)'); +function cb() {} +assert.sameValue([].reduceRight(cb, 1), 1, '[].reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js index ca80beabf5c1674792f0c9450be86fe8cb784d93..c50c734da44f66e29dd782b19ff44513c7284f49 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js @@ -7,6 +7,6 @@ es5id: 15.4.4.22-7-10 description: Array.prototype.reduceRight - 'initialValue' is present ---*/ - var str = "initialValue is present"; +var str = "initialValue is present"; -assert.sameValue([].reduceRight(function () { }, str), str, '[].reduceRight(function () { }, str)'); +assert.sameValue([].reduceRight(function() {}, str), str, '[].reduceRight(function () { }, str)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js index c7c2a92a6ddad3515dc4a5d8e8a134c1296799f1..466105ad620b20350109204452d8c7b23244d439 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js @@ -7,6 +7,6 @@ es5id: 15.4.4.22-7-11 description: Array.prototype.reduceRight - 'initialValue' is not present ---*/ - var str = "initialValue is not present"; +var str = "initialValue is not present"; -assert.sameValue([str].reduceRight(function () { }), str, '[str].reduceRight(function () { })'); +assert.sameValue([str].reduceRight(function() {}), str, '[str].reduceRight(function () { })'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js index d6bbe8e4db337ee0df041110ec681bd7e02cedec..226fe2e53b94e35486d2ef80a4fbf575dbcb1fb0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js @@ -10,10 +10,11 @@ description: > to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js index f06d61ae53b2a09a9c0bd6ce29485cd3dadc0156..07b39a3cce8d929d1e4b9fb988837c66b7dbe30a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js @@ -10,10 +10,11 @@ description: > to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js index 5cc4058fe4001e9fc9ec80305a1d34cf1b3f1ffe..6006a08c351e147025545587e8c123a096cfebf1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js @@ -10,10 +10,11 @@ description: > to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js index 1a7b538fdc90d28adbd5c11a96c710aadcdfe45d..e91ba162767488c32417c0696ee2db5421805802 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js @@ -10,10 +10,11 @@ description: > to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js index 7d7f0356d04a4332683a4946085423215d35754e..5fda998754d12087c34e5e2c9c2c3f6516d6a5bd 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js @@ -10,12 +10,17 @@ description: > with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js index a2fdb76eb079cf51313f6bd6c3a9e02fcab24543..80819a2b4c03c2b72b1d677af34cfcbac766125e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js @@ -10,18 +10,23 @@ description: > with obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js index 88fd551cf1ca0186ac617f25e9daaf985b79e3fb..d2db08ed909c648361114853501799b675ff7f0a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js @@ -10,25 +10,26 @@ description: > with []) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = []; - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js index b7d1567e270ad226987c12962720706f62be9d82..9903f299bfb04a51ecd5bcf982f097a429987e3f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js @@ -10,25 +10,26 @@ description: > with [0]) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = [0]; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = [0]; - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js index 2763dde2e588bea595f8a9419f67f83ec98b494f..de85b84e2c403823a302338ca0242ea27a9915b7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js @@ -9,20 +9,22 @@ description: > is 0 ---*/ - var accessed = false; +var accessed = false; - var obj = { length: 0 }; +var obj = { + length: 0 +}; - Object.defineProperty(obj, "0", { - get: function () { - accessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + accessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js index c2c0b4e857058fb8cdda1dfa9a76561c00691a54..96e4d9109a8acad7dcdac525ecd40a4778e9c8a3 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js @@ -9,22 +9,23 @@ description: > number of iterations in step 9 ---*/ - var called = 0; - function callbackfn(prevVal, curVal, idx, obj) { - called++; - return prevVal + curVal; - } +var called = 0; - var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "4", { - get: function () { - arr.length = 2; - return 10; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + called++; + return prevVal + curVal; +} - var preVal = arr.reduceRight(callbackfn); +var arr = [0, 1, 2, 3]; +Object.defineProperty(arr, "4", { + get: function() { + arr.length = 2; + return 10; + }, + configurable: true +}); + +var preVal = arr.reduceRight(callbackfn); assert.sameValue(preVal, 11, 'preVal'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js index cfa839663c63e916e52a1ae9d75fe1bf8e95198d..0c9292f9760409487c6775a5e03253bf56a727af 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js @@ -9,37 +9,37 @@ description: > 'kPresent' is true ---*/ - var called = 0; - var testResult = false; - var firstCalled = 0; - var secondCalled = 0; - - function callbackfn(prevVal, val, idx, obj) { - if (called === 0) { - testResult = (idx === 1); - } - called++; - } - - var arr = [, , , ]; - - Object.defineProperty(arr, "1", { - get: function () { - firstCalled++; - return 9; - }, - configurable: true - }); - - Object.defineProperty(arr, "2", { - get: function () { - secondCalled++; - return 11; - }, - configurable: true - }); - - arr.reduceRight(callbackfn); +var called = 0; +var testResult = false; +var firstCalled = 0; +var secondCalled = 0; + +function callbackfn(prevVal, val, idx, obj) { + if (called === 0) { + testResult = (idx === 1); + } + called++; +} + +var arr = [, , , ]; + +Object.defineProperty(arr, "1", { + get: function() { + firstCalled++; + return 9; + }, + configurable: true +}); + +Object.defineProperty(arr, "2", { + get: function() { + secondCalled++; + return 11; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); assert.sameValue(firstCalled, 1, 'firstCalled'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js index 41ea823dc7e60d431d1cdedfb253cff9d6317291..cbd57020ed9f2d41f0089a1819b19b56762bf1e0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js @@ -9,16 +9,16 @@ description: > visible here ---*/ - var obj = {}; +var obj = {}; - function callbackfn(prevVal, curVal, idx, obj) { } +function callbackfn(prevVal, curVal, idx, obj) {} - Object.defineProperty(obj, "length", { - get: function () { - obj[2] = "accumulator"; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + obj[2] = "accumulator"; + return 3; + }, + configurable: true +}); assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn), "accumulator", 'Array.prototype.reduceRight.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js index 4afeb3bb757bb4c39bbdfc80f6c2105cbedcd1ec..8da273e0c227ee8c13d8d014f613f0d48fd45163 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js @@ -9,14 +9,17 @@ description: > visible here ---*/ - var obj = { 2: "accumulator", 3: "another" }; +var obj = { + 2: "accumulator", + 3: "another" +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 5; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 5; + }, + configurable: true +}); -assert.notSameValue(Array.prototype.reduceRight.call(obj, function () { }), "accumulator", 'Array.prototype.reduceRight.call(obj, function () { })'); +assert.notSameValue(Array.prototype.reduceRight.call(obj, function() {}), "accumulator", 'Array.prototype.reduceRight.call(obj, function () { })'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js index d3421ebb5c5a06467d06e7ea3f8d6d2db61fb6dd..3edc44785362d676f9701b64f4db47c50cdab2fc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js @@ -9,15 +9,20 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (prevVal === 1); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, length: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (prevVal === 1); + } +} - Array.prototype.reduceRight.call(obj, callbackfn); +var obj = { + 0: 0, + 1: 1, + length: 2 +}; + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js index 2f82c12890537e62fa62ac156c34a5d2fb1247d9..d76cbfc0264fee3618565113548a0643fe8b9465 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (curVal === 2); - } - } +var testResult = false; - var arr = [0, 1, , 3]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (curVal === 2); + } +} - Object.defineProperty(arr, "2", { - get: function () { - return 2; - }, - configurable: true - }); +var arr = [0, 1, , 3]; - arr.reduceRight(callbackfn); +Object.defineProperty(arr, "2", { + get: function() { + return 2; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js index 62c9245a9a908109fd448b7f7cb0988e8e9f8145..98aea64ef52c4d75fb20041cf9f867e2a80bd5a7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js @@ -10,28 +10,33 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } - - var proto = { 0: 0, 1: 1, 2: 2 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "2", { - get: function () { - return "20"; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} + +var proto = { + 0: 0, + 1: 1, + 2: 2 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "2", { + get: function() { + return "20"; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js index ee042baaecb930c409b61d07a23c595f508d443e..d322bc64d9e6dd0c446c76a651a5ea0e58a66dad 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js @@ -10,23 +10,24 @@ description: > Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } +var testResult = false; - Array.prototype[2] = 2; - var arr = [0, 1]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} - Object.defineProperty(arr, "2", { - get: function () { - return "20"; - }, - configurable: true - }); +Array.prototype[2] = 2; +var arr = [0, 1]; - arr.reduceRight(callbackfn); +Object.defineProperty(arr, "2", { + get: function() { + return "20"; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js index 0d3c40e0ab86d281c97eea790257c1f45526a58a..f2e27dc4edc6c4e81bc421e5df2d227c835eae23 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js @@ -10,35 +10,39 @@ description: > an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } - - var proto = { 0: 0, 1: 1 }; - - Object.defineProperty(proto, "2", { - get: function () { - return 2; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "2", { - get: function () { - return "20"; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} + +var proto = { + 0: 0, + 1: 1 +}; + +Object.defineProperty(proto, "2", { + get: function() { + return 2; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "2", { + get: function() { + return "20"; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js index 3973a35930171e2314431b3d7c77f6a7d0e449a6..74613a0782c6df19e573a04a708fcb7163e71b11 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js @@ -10,29 +10,30 @@ description: > an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } - - Object.defineProperty(Array.prototype, "2", { - get: function () { - return 2; - }, - configurable: true - }); - - var arr = [0, 1, , ]; - - Object.defineProperty(arr, "2", { - get: function () { - return "20"; - }, - configurable: true - }); - - arr.reduceRight(callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} + +Object.defineProperty(Array.prototype, "2", { + get: function() { + return 2; + }, + configurable: true +}); + +var arr = [0, 1, , ]; + +Object.defineProperty(arr, "2", { + get: function() { + return "20"; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js index 5ed456fb15b675bf1c5318f9df21520033a65b33..4a484444e301c70eb598e432451c27f1e857702e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js @@ -9,28 +9,32 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - Object.defineProperty(proto, "2", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = { + 0: 0, + 1: 1 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "2", { + get: function() { + return 2; + }, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js index b2cc5cbb2fcfd09e6638aa65d71f20ff12cad411..8d473225bef1d2e3efce545d2621184d142b17f3 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - var arr = [0, 1, , ]; +Object.defineProperty(Array.prototype, "2", { + get: function() { + return 2; + }, + configurable: true +}); - arr.reduceRight(callbackfn); +var arr = [0, 1, , ]; + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js index 754f25206eadbb242549f656114769a6b947d3c0..00cb060697f6848bfd265cfb45fffbe4d951705a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js @@ -9,20 +9,25 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, length: 3 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - Object.defineProperty(obj, "2", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 0, + 1: 1, + length: 3 +}; - Array.prototype.reduceRight.call(obj, callbackfn); +Object.defineProperty(obj, "2", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js index 7413e3140f4f9b1cfb4a17f696cd978fe13279c4..4be07578a852774562a0358057c47e180c91ecd0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - var arr = [0, 1]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - Object.defineProperty(arr, "2", { - set: function () { }, - configurable: true - }); +var arr = [0, 1]; - arr.reduceRight(callbackfn); +Object.defineProperty(arr, "2", { + set: function() {}, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js index 55df142cb210190b91fe910fdefcd31b6cf74180..65b0ec395f1dd7715504b0973a2a0fa42c9611e7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js @@ -10,21 +10,26 @@ description: > inherited accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - Object.prototype[2] = 2; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - var obj = { 0: 0, 1: 1, length: 3 }; - Object.defineProperty(obj, "2", { - set: function () { }, - configurable: true - }); +Object.prototype[2] = 2; - Array.prototype.reduceRight.call(obj, callbackfn); +var obj = { + 0: 0, + 1: 1, + length: 3 +}; +Object.defineProperty(obj, "2", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js index e7dfce50ce87e96a52203d6c36021b708226c560..6b68c4259f7854c4af1010b94e0ec608e78eff80 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js @@ -9,15 +9,16 @@ description: > property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var arr = [0, 1, 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - arr.reduceRight(callbackfn); +var arr = [0, 1, 2]; + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js index 7c0d2b3d55d7c1ad69a7f4d0c3a5721d65f7e1db..f42f77de414e6c405ff04944a524461e64912950 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js @@ -10,20 +10,21 @@ description: > inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - Array.prototype[2] = 2; - var arr = [0, 1]; - Object.defineProperty(arr, "2", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - arr.reduceRight(callbackfn); +Array.prototype[2] = 2; +var arr = [0, 1]; +Object.defineProperty(arr, "2", { + set: function() {}, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js index c2586e35a0efe3631d37f05db971a0034603d24a..234438eb9e5aebde098864f654a604cf4a54a096 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js @@ -9,26 +9,30 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - Object.defineProperty(proto, "2", { - set: function () { }, - configurable: true - }); +var proto = { + 0: 0, + 1: 1 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "2", { + set: function() {}, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js index 0c3321dcecddfc92873dfdfa36bae20eb91b0240..80141700405fb948bb3ef3cde18dba35b37fba54 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "2", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - var arr = [0, 1, , ]; +Object.defineProperty(Array.prototype, "2", { + set: function() {}, + configurable: true +}); - arr.reduceRight(callbackfn); +var arr = [0, 1, , ]; + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js index ed00735cb01e18cea2c8469d0b2722d26def2a08..a00761e4bc4edd4d9c8664845e07a17ac4a2f332 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js @@ -10,17 +10,18 @@ description: > is less than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (prevVal === 1); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (prevVal === 1); + } +} - func(0, 1); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn); +}; + +func(0, 1); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js index fa3c52c43aaf32e591eab92532d852f98b748d56..5024b8159fe3c47f3981453e33c57eb036b902f9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js @@ -10,17 +10,18 @@ description: > equals number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - func(0, 1, 2); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn); +}; + +func(0, 1, 2); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js index c6cfe25cde0913a1fd343f9f751d50500282fd79..4b716884f96380e4a5a92149ee3579b23d68e566 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js @@ -10,17 +10,18 @@ description: > is greater than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (prevVal === 3); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (prevVal === 3); + } +} - func(0, 1, 2, 3); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn); +}; + +func(0, 1, 2, 3); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js index 892cfdc56cc86677a54ef287421109ffe4c12db1..296ac59cd48edb6a2c33e33fe407f00be2a52bbc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js @@ -9,15 +9,16 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "2"); - } - } +var testResult = false; - var str = new String("012"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "2"); + } +} - Array.prototype.reduceRight.call(str, callbackfn); +var str = new String("012"); + +Array.prototype.reduceRight.call(str, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js index acb274e17550025abdb27340b52390fc762bcf98..e7c88ee8fcdb33fa645ff80f1d3240a76297bf90 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js @@ -9,21 +9,22 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var obj = function (a, b, c) { - return a + b + c; - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - obj[0] = 0; - obj[1] = 1; - obj[2] = 2; +var obj = function(a, b, c) { + return a + b + c; +}; - Array.prototype.reduceRight.call(obj, callbackfn); +obj[0] = 0; +obj[1] = 1; +obj[2] = 2; + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js index 062f12ba1c81765c46add0fa6c319859d4b8e2ee..5dae8cadef66a28a1fa6ae5b837fc983eff2a8e7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js @@ -10,22 +10,28 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2, length: 2 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} - var child = new Con(); - child[1] = "10"; - child[2] = "20"; - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn); +var child = new Con(); +child[1] = "10"; +child[2] = "20"; +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js index bfebf8515e044fd2f0e7dad945247a27d6a81197..dd07c30e290c2418cb32bd67e4ca0e238d9cd6f7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js @@ -9,35 +9,36 @@ description: > iteration is observed in subsequent iterations on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1 && prevVal === 2); - } - } - - var arr = [0]; - var preIterVisible = false; - - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "20"; - } - }, - configurable: true - }); - - Object.defineProperty(arr, "2", { - get: function () { - preIterVisible = true; - return 2; - }, - configurable: true - }); - - arr.reduceRight(callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1 && prevVal === 2); + } +} + +var arr = [0]; +var preIterVisible = false; + +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "20"; + } + }, + configurable: true +}); + +Object.defineProperty(arr, "2", { + get: function() { + preIterVisible = true; + return 2; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js index 8d8168a560f91c42f304e6d51ad336b4c33fdcde..adc024dca684f6c65820738740897089afa70884 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js @@ -9,35 +9,39 @@ description: > iteration is observed subsequetly on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2 && curVal === 1); - } - } - - var obj = { 0: 0, length: 3 }; - var preIterVisible = false; - - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "20"; - } - }, - configurable: true - }); - - Object.defineProperty(obj, "2", { - get: function () { - preIterVisible = true; - return 2; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(obj, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2 && curVal === 1); + } +} + +var obj = { + 0: 0, + length: 3 +}; +var preIterVisible = false; + +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "20"; + } + }, + configurable: true +}); + +Object.defineProperty(obj, "2", { + get: function() { + preIterVisible = true; + return 2; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js index 49146cd496facdae76f05d97b76ca3cd72afc40b..e4056e11fc626e89b9b2ad0c975cdc44aa88de0c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js @@ -9,21 +9,26 @@ description: > iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx <= 1) { - accessed = true; - } - } +var accessed = false; - var obj = { 0: 0, 1: 1, length: 3 }; - Object.defineProperty(obj, "2", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx <= 1) { + accessed = true; + } +} + +var obj = { + 0: 0, + 1: 1, + length: 3 +}; +Object.defineProperty(obj, "2", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.reduceRight.call(obj, callbackfn); + Array.prototype.reduceRight.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js index 53f974e22d1b78588325e6b879bebf02add20f39..b770c5cccd0429fcdb9b083c4d23af1abceb8a50 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js @@ -9,22 +9,23 @@ description: > iteration on an Array ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx <= 1) { - accessed = true; - } - } +var accessed = false; - var arr = [0, 1]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx <= 1) { + accessed = true; + } +} - Object.defineProperty(arr, "2", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = [0, 1]; + +Object.defineProperty(arr, "2", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.reduceRight(callbackfn); + arr.reduceRight(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js index 2bf4cc00dc5a432fcd7090fbe39761f432a85fba..9363a9c3ba555350373ba07026c863ec06a6c15a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js @@ -9,14 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - Array.prototype[2] = "11"; - [0, 1, 2].reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} + +Array.prototype[2] = "11"; +[0, 1, 2].reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js index c08e592485078a9eb2a055e24483b9f5ff736aab..1eda02b4625656a8592c3c1a499c5898611173b8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js @@ -10,34 +10,35 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } - - var proto = {}; - - Object.defineProperty(proto, "2", { - get: function () { - return 11; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - child[0] = "0"; - child[1] = "1"; - Object.defineProperty(proto, "2", { - value: "20", - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} + +var proto = {}; + +Object.defineProperty(proto, "2", { + get: function() { + return 11; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; +child[0] = "0"; +child[1] = "1"; +Object.defineProperty(proto, "2", { + value: "20", + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js index 6bd5ab5eb9ebc2275bb2c4a52130e36b97251fb9..6f8f1eec3caf545284972778fc0cd3d84c803715 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js @@ -9,19 +9,20 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "2"; - }, - configurable: true - }); - [0, 1, 2].reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} + +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "2"; + }, + configurable: true +}); +[0, 1, 2].reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js index a955557ecbd21d50bfbafba7cc683de96574f506..55a3d6dbda870d88999521e3996b50a23f34759b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js @@ -9,19 +9,25 @@ description: > data property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2, length: 3 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - var child = new Con(); +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn); +var child = new Con(); + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js index 983566a9cced268423fcaecadab3f1c2ec611e31..d7174183c75719e15619bb9605294213b263bdf4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js @@ -9,16 +9,17 @@ description: > data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - Array.prototype[0] = 0; - Array.prototype[1] = 1; - Array.prototype[2] = 2; - [, , ,].reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} + +Array.prototype[0] = 0; +Array.prototype[1] = 1; +Array.prototype[2] = 2; +[, , , ].reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js index e2f7da4b6fb9c9ac2f7d23409cf88b0268c90fb9..648e9485b52e5026d298e7af1d1dd1838ad771f8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js @@ -9,21 +9,26 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, length: 3 }; - Object.defineProperty(obj, "2", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - Array.prototype.reduceRight.call(obj, callbackfn); +var obj = { + 0: 0, + 1: 1, + length: 3 +}; +Object.defineProperty(obj, "2", { + get: function() { + return 2; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js index 9c1d91d3ca07f423ddeb88dc767871074feb2282..8c59328e35effbe3682cf5030eaae4684cb92eb2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js @@ -9,11 +9,10 @@ description: > and initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduceRight(callbackfn); + arr.reduceRight(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js index 05271d67450a49fdfefacb5532d1efd0cb87b6dd..3153f84f562bacc4a3f364ecd637cc72e551537e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js @@ -10,13 +10,12 @@ description: > initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); - arr[9] = 1; - arr.length = 5; +var arr = new Array(10); +arr[9] = 1; +arr.length = 5; assert.throws(TypeError, function() { - arr.reduceRight(callbackfn); + arr.reduceRight(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js index e47a755d52a48dd267fccc9d4145ccfd74b6319c..06d5460c7f041510354cadc3e3c94c0039bc8ce8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js @@ -9,16 +9,15 @@ description: > assigned values are deleted and initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = [1,2,3,4,5]; - delete arr[0]; - delete arr[1]; - delete arr[2]; - delete arr[3]; - delete arr[4]; +var arr = [1, 2, 3, 4, 5]; +delete arr[0]; +delete arr[1]; +delete arr[2]; +delete arr[3]; +delete arr[4]; assert.throws(TypeError, function() { - arr.reduceRight(callbackfn); + arr.reduceRight(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js index 18296c2bf4ab371c049e84daec6a01499dd9dfe5..4dc2980963b118b9f1bd4a06465a9f891d99d468 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js @@ -9,11 +9,11 @@ description: > own properties but prototype contains a single property ---*/ - var arr = [, , , ]; +var arr = [, , , ]; - try { - Array.prototype[1] = "prototype"; - arr.reduceRight(function () { }); - } finally { - delete Array.prototype[1]; - } +try { + Array.prototype[1] = "prototype"; + arr.reduceRight(function() {}); +} finally { + delete Array.prototype[1]; +} diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js index b5dd24963eedfa3366b107601b58db46cc9826df..224ff36c307eea18a05cbd34214198c375900b2d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js @@ -9,18 +9,18 @@ description: > visible when an exception occurs ---*/ - var obj = { }; +var obj = {}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js index 476886a76b7679d10d17ada1413caa67527eaf20..3dab92c10bc57d9a0e00a4482497e4db94555b84 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js @@ -9,22 +9,22 @@ description: > visible when an exception occurs ---*/ - var obj = {}; +var obj = {}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js index 2fabc8fd6d0df4da28ce93c251df3c8384af6a3c..fade921f9860a2accef65344c209dcd333ef1223 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js @@ -9,15 +9,15 @@ description: > exception was thrown by step 2 ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js index 52c2ed7a6a7891b569dfd43c3456d07d84890714..d0e875976af39efd24a2e33e51bd45d9691eac99 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js @@ -9,19 +9,19 @@ description: > exception was thrown by step 3 ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js index 8132b414c5de7d01ec11f4a675fb3444c60198d7..ef9f2679140c1fc0542a93ff688d48aae00d9236 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js @@ -11,12 +11,12 @@ description: > length ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - arr[5] = 6; - arr[2] = 3; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + arr[5] = 6; + arr[2] = 3; + return prevVal + curVal; +} - var arr = ['1', 2, , 4, '5']; +var arr = ['1', 2, , 4, '5']; assert.sameValue(arr.reduceRight(callbackfn), "54321", 'arr.reduceRight(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js index 05fa751f08ed659f7b0df40e092cd06b83ade173..4fa783dfe046146b8ed052e02d8113119f0879e9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js @@ -9,13 +9,13 @@ description: > array after it is called ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - arr[3] = -2; - arr[0] = -1; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + arr[3] = -2; + arr[0] = -1; + return prevVal + curVal; +} - var arr = [1,2,3,4,5]; +var arr = [1, 2, 3, 4, 5]; assert.sameValue(arr.reduceRight(callbackfn), 13, 'arr.reduceRight(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js index eb48426ea4eb3d5f84c3722c39beae6e77166a19..0455ef32acfebf5a0ec3bb81b39e5733a59d2dbf 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js @@ -9,14 +9,14 @@ description: > elements in array after the call ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - delete arr[1]; - delete arr[4]; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + delete arr[1]; + delete arr[4]; + return prevVal + curVal; +} - var arr = ['1',2,3,4,5]; +var arr = ['1', 2, 3, 4, 5]; // two elements deleted assert.sameValue(arr.reduceRight(callbackfn), "121", 'arr.reduceRight(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js index 0c00cf9c9ee5238b4d672c6d95f43ce588458ca6..d3fa9884c3ab65006a12603068d7cc00cb6f2b37 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js @@ -9,12 +9,12 @@ description: > elements when Array.length is decreased ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - arr.length = 2; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + arr.length = 2; + return prevVal + curVal; +} - var arr = [1,2,3,4,5]; +var arr = [1, 2, 3, 4, 5]; assert.sameValue(arr.reduceRight(callbackfn), 12, 'arr.reduceRight(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js index 8cbf9edee983ab72fbf990f667d6e4a23cc224c7..a11242c5d0f7536db3101abe4291e1ad09a6625f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js @@ -9,14 +9,15 @@ description: > one element ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return 2; - } +var callCnt = 0; - var arr = [1]; +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return 2; +} + +var arr = [1]; assert.sameValue(arr.reduceRight(callbackfn), 1, 'arr.reduceRight(callbackfn)'); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js index ca9493b319b4a88c49b48bd4b8fab59b97131ee7..24f6586901b9a671bdcff23f888b73e616aa27e2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js @@ -9,16 +9,16 @@ description: > the call when same index is also present in prototype ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - delete arr[1]; - delete arr[2]; - return prevVal + curVal; - } - Array.prototype[2] = 6; - var arr = ['1',2,3,4,5]; - var res = arr.reduceRight(callbackfn); - delete Array.prototype[2]; +function callbackfn(prevVal, curVal, idx, obj) +{ + delete arr[1]; + delete arr[2]; + return prevVal + curVal; +} +Array.prototype[2] = 6; +var arr = ['1', 2, 3, 4, 5]; +var res = arr.reduceRight(callbackfn); +delete Array.prototype[2]; //one element deleted assert.sameValue(res, "151", 'res'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js index 6adeffef53f9424c874ad769f05c2aeb4cecf84e..b76b74b651f13c192b478932f0ee265548b9c206 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js @@ -9,13 +9,13 @@ description: > deleted during the call ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - delete o.arr; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + delete o.arr; + return prevVal + curVal; +} - var o = new Object(); - o.arr = ['1', 2, 3, 4, 5]; +var o = new Object(); +o.arr = ['1', 2, 3, 4, 5]; assert.sameValue(o.arr.reduceRight(callbackfn), "141", 'o.arr.reduceRight(callbackfn)'); assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js index 9968f8929f24b558f3f85faad0e83916e946f056..a2ef4d7fec602d67a1c8dd1be9d6b7e8afc0d779 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js @@ -9,21 +9,24 @@ description: > is 0 ---*/ - var accessed = false; - function callbackfn() { - accessed = true; - } +var accessed = false; - var obj = { length: 0 }; +function callbackfn() { + accessed = true; +} - Object.defineProperty(obj, "5", { - get: function () { - accessed = true; - return 10; - }, - configurable: true - }); +var obj = { + length: 0 +}; - Array.prototype.reduceRight.call(obj, function () { }, "initialValue"); +Object.defineProperty(obj, "5", { + get: function() { + accessed = true; + return 10; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, function() {}, "initialValue"); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js index f5fc22ab3b99305544c0fa24d7c74301e1bf1645..ac47f378afd259f2823e393aa9f6c76cdb5c0532 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js @@ -9,19 +9,20 @@ description: > number of iterations ---*/ - var called = 0; - function callbackfn(preVal, val, idx, obj) { - called++; - } +var called = 0; - var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "4", { - get: function () { - arr.length = 2; - }, - configurable: true - }); +function callbackfn(preVal, val, idx, obj) { + called++; +} - arr.reduceRight(callbackfn, "initialValue"); +var arr = [0, 1, 2, 3]; +Object.defineProperty(arr, "4", { + get: function() { + arr.length = 2; + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert.sameValue(called, 3, 'called'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js index 9277ef37d0bdfe5ced1f969d65b66b76b71ff8d4..b7336d05e72ac792b50cebe19aae6587d7e152be 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js @@ -9,11 +9,10 @@ description: > empty and initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); +var arr = new Array(10); -assert.sameValue(arr.reduceRight(callbackfn,5), 5, 'arr.reduceRight(callbackfn,5)'); +assert.sameValue(arr.reduceRight(callbackfn, 5), 5, 'arr.reduceRight(callbackfn,5)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js index a92bf8dcc636cb18a1587ac2083b319f43713ad7..1dd6fb9fe716df8bd44aa5aae4f70a9d0d3bc3e8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js @@ -10,28 +10,31 @@ description: > Array-like Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(preVal, val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(preVal, val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "5", { - get: function () { - delete Object.prototype[3]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "5", { + get: function() { + delete Object.prototype[3]; + return 0; + }, + configurable: true +}); - Object.prototype[3] = 1; - Array.prototype.reduceRight.call(obj, callbackfn); +Object.prototype[3] = 1; +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js index bd1bcb4f311526640318c316b90049c5245dff26..e364fbbb7897a31fe1eadfb015725972e0b17114 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js @@ -9,27 +9,27 @@ description: > step 8 causes deleted index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} - var arr = [0, , , ]; - Object.defineProperty(arr, "3", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +var arr = [0, , , ]; +Object.defineProperty(arr, "3", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.reduceRight(callbackfn); +Array.prototype[1] = 1; +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js index 9d1eca6456a8e5eb66f3b3b064450a0d2f3dbdfc..a6aed7624d0c6a780946573259b9afdbfa18a6cb 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js @@ -10,25 +10,29 @@ description: > on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 1) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, length: 10 }; +var obj = { + 0: 0, + 1: 111, + length: 10 +}; - Object.defineProperty(obj, "4", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "4", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.reduceRight.call(obj, callbackfn); +Object.prototype[1] = 1; +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js index fe522f07158f000a90da32aa88521db6919ec83a..470c9420aec74fe97dfb48f88a60b368f43362d2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js @@ -10,24 +10,24 @@ description: > on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 1) { - testResult = true; - } - } - var arr = [0, 111]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 1) { + testResult = true; + } +} +var arr = [0, 111]; - Object.defineProperty(arr, "2", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.reduceRight(callbackfn); +Array.prototype[1] = 1; +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js index 16924c99cb57a21675ae434c706d81405e3d5241..8307a9768d01544b0032106488657a2496c24659 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js @@ -9,27 +9,27 @@ description: > causes deleted index property not to be visited ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 2) { - testResult = false; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 2) { + testResult = false; + } +} - var arr = [0, 1, 2, 3]; +var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "3", { - get: function () { - arr.length = 2; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + arr.length = 2; + return 0; + }, + configurable: true +}); - arr.reduceRight(callbackfn); +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js index 456fc605b2735501cb4467cb0ec5982d0cff8128..97695a950dbe5339c4c8d4305e99f815cf4fc458 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js @@ -10,30 +10,30 @@ description: > visited ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2 && curVal === "prototype") { - testResult = true; - } - } - var arr = [0, 1, 2, 3]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2 && curVal === "prototype") { + testResult = true; + } +} +var arr = [0, 1, 2, 3]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "3", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - arr.reduceRight(callbackfn); +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js index f23e5ecf04bfb2cd46591d5b786dd58ebe73096f..71def64c720835267c6343ed1b5f000e35d42d8d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js @@ -10,31 +10,31 @@ description: > flags: [noStrict] ---*/ - var testResult = false; - - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2 && curVal === "unconfigurable") { - testResult = true; - } - } - - var arr = [0, 1, 2, 3]; - - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); - - Object.defineProperty(arr, "3", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); - - arr.reduceRight(callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2 && curVal === "unconfigurable") { + testResult = true; + } +} + +var arr = [0, 1, 2, 3]; + +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); + +Object.defineProperty(arr, "3", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js index d74fd82f5886a40d4b506425b4b06e7ac43c3df0..d21d758ac4ad4d3430355c2fa54b06e1f90f8f57 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js @@ -9,29 +9,31 @@ description: > visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0 && curVal === 0) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0 && curVal === 0) { + testResult = true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "1", { - get: function () { - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true + }); + return 1; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js index d6ab2aac613db36b3f3f11791afec9c5e722c60b..89ed61d4e26661b6105e7d5fdf772fd8e6c2765f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js @@ -9,29 +9,29 @@ description: > visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 1) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 1) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "2", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduceRight(callbackfn, "initialValue"); +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js index 714b8ecd34b9d3c809a41d209a27f3165dce522f..e31e3f370ba18f5da051bea9d570da549146725c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js @@ -9,29 +9,31 @@ description: > visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 6.99) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 6.99) { + testResult = true; + } +} - var obj = { length: 6 }; +var obj = { + length: 6 +}; - Object.defineProperty(obj, "2", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js index 423ae546ab0a6aa2aa50ec54c4e8bf97ccf9af49..11d7140d9c5deacde51e08b6c1c15c57951052b9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js @@ -9,24 +9,24 @@ description: > visible here ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2 && curVal === "2") { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2 && curVal === "2") { + testResult = true; + } +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - obj[2] = "2"; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + obj[2] = "2"; + return 3; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js index b993b17f58b458f2fdbb1b9bcb0f9f1248c8d059..47586d76f13b1cee5611485ebd1e9028b5ad06d1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js @@ -9,29 +9,29 @@ description: > visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 6.99) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 6.99) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "2", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduceRight(callbackfn, "initialValue"); +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js index 0b5b53ccfbc14a496b0b68c735dc188f08f2bd60..13f3eeaa688905362f587bbc9ebb124ae2c5f578 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js @@ -9,34 +9,37 @@ description: > index property not to be visited on an Array-like object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { 0: 10, length: 10 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "5", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var accessed = false; +var testResult = true; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + 0: 10, + length: 10 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "5", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js index d0bffcff62c4b3de6de36d842aaeef408f54798c..8c57a1bd23a2d93473e7a5b4293411862429bc55 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js @@ -9,34 +9,34 @@ description: > index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var arr = [1, 2, 4]; - - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); - - Object.defineProperty(arr, "2", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); - - arr.reduceRight(callbackfn, "initialValue"); +var accessed = false; +var testResult = true; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var arr = [1, 2, 4]; + +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); + +Object.defineProperty(arr, "2", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js index 611310635a1ed52d2c5c68c7773f78f21a3d4fa0..52046431c8ebb5549250d9484cc9f5ce5610ba94 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js @@ -10,28 +10,31 @@ description: > Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "5", { - get: function () { - delete Object.prototype[3]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "5", { + get: function() { + delete Object.prototype[3]; + return 0; + }, + configurable: true +}); - Object.prototype[3] = 1; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Object.prototype[3] = 1; +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js index 8f2c455206d74046d93228de64551973c1ea406e..9248519f9746aa3cfb339dd7d90bf79c48696660 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js @@ -9,27 +9,27 @@ description: > causes deleted index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} - var arr = [0, , , ]; - Object.defineProperty(arr, "3", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +var arr = [0, , , ]; +Object.defineProperty(arr, "3", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.reduceRight(callbackfn, "initialValue"); +Array.prototype[1] = 1; +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js index 78d46ed7bad7d04d846cdbc4b328492fd6afb480..bbfac73480e8c22af1fd96c71552fd28c4b01fa7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js @@ -10,25 +10,30 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 1) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, 4: 10, length: 10 }; +var obj = { + 0: 0, + 1: 111, + 4: 10, + length: 10 +}; - Object.defineProperty(obj, "4", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "4", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Object.prototype[1] = 1; +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js index 7b0e441b3363c24803764a003fc368375ed0a5c9..6b7362927e2c34ec76f8f1d3910c7bd96f3d7f92 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js @@ -9,24 +9,24 @@ description: > property causes prototype index property to be visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 1) { - testResult = true; - } - } - var arr = [0, 111]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 1) { + testResult = true; + } +} +var arr = [0, 111]; - Object.defineProperty(arr, "2", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; - arr.reduceRight(callbackfn, "initialValue"); +Array.prototype[1] = 1; +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js index 45aa57a168fc2bc3fc19dc7b5cbaefe640c665f2..01b7f09b9e650584b71398584c489870d8a2b5bd 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js @@ -9,27 +9,27 @@ description: > deleted index property not to be visited ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 2) { - testResult = false; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 2) { + testResult = false; + } +} - var arr = [0, 1, 2, 3]; +var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "3", { - get: function () { - arr.length = 2; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + arr.length = 2; + return 0; + }, + configurable: true +}); - arr.reduceRight(callbackfn, "initialValue"); +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js index 31ab610686af042435ab94de10b5f2daa3ea343e..a039a64b7acd68be3f6d30f08c26645b738b5c07 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js @@ -9,30 +9,30 @@ description: > prototype property causes prototype index property to be visited ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2 && curVal === "prototype") { - testResult = true; - } - } - var arr = [0, 1, 2, 3]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2 && curVal === "prototype") { + testResult = true; + } +} +var arr = [0, 1, 2, 3]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "3", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); - arr.reduceRight(callbackfn, "initialValue"); +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js index b30c7d0b6d7b700ea053154cdf41e2185b466642..b5cd3bd281137b9fb4c060cfc203619315028665 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js @@ -10,31 +10,31 @@ description: > flags: [noStrict] ---*/ - var testResult = false; - - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2 && curVal === "unconfigurable") { - testResult = true; - } - } - - var arr = [0, 1, 2, 3]; - - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); - - Object.defineProperty(arr, "3", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); - - arr.reduceRight(callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2 && curVal === "unconfigurable") { + testResult = true; + } +} + +var arr = [0, 1, 2, 3]; + +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); + +Object.defineProperty(arr, "3", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js index 3e26f8b983dd20b109856581094c41b810dc8ee2..c9bf72fcb57612a43be5013045ce9cf8f61277ea 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js @@ -9,27 +9,30 @@ description: > visible here ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(preVal, curVal, idx, obj) { - accessed = true; - if (idx === 2) { - testResult = false; - } - } +function callbackfn(preVal, curVal, idx, obj) { + accessed = true; + if (idx === 2) { + testResult = false; + } +} - var obj = { 2: "2", 3: 10 }; +var obj = { + 2: "2", + 3: 10 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 5; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 5; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(accessed, 'accessed !== true'); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js index e8038a7976ee9496e1636a25778f0e6e20efe3ae..de1e7e50eb0fc2c87c3dc15d38dce7169d9d08ea 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js @@ -9,29 +9,31 @@ description: > step 8 can be visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(preVal, curVal, idx, obj) { - if (idx === 0 && curVal === 0) { - testResult = true; - } - } +function callbackfn(preVal, curVal, idx, obj) { + if (idx === 0 && curVal === 0) { + testResult = true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "1", { - get: function () { - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true + }); + return 1; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn); +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js index 4c0df9703221e922982a8d0ac476748d71540d47..be881241bc90e6208050bde2eefa3a86226473d8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js @@ -9,29 +9,29 @@ description: > step 8 can be visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(preVal, curVal, idx, obj) { - if (idx === 1 && curVal === 1) { - testResult = true; - } - } +function callbackfn(preVal, curVal, idx, obj) { + if (idx === 1 && curVal === 1) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "2", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduceRight(callbackfn); +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js index 7149dad93cdc600ac349d85ab4885f4e60f50011..4c4616663d875e8e6470a5a66e972bd0b1786d28 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js @@ -9,29 +9,31 @@ description: > step 8 visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(preVal, curVal, idx, obj) { - if (idx === 1 && curVal === 6.99) { - testResult = true; - } - } +function callbackfn(preVal, curVal, idx, obj) { + if (idx === 1 && curVal === 6.99) { + testResult = true; + } +} - var obj = { length: 6 }; +var obj = { + length: 6 +}; - Object.defineProperty(obj, "2", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn); +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js index b38b4cb50af8702ad388f0b283b4bd1270e9ce1b..1eea9497cbc00520c13b37b407deaf1dbb477345 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js @@ -9,29 +9,29 @@ description: > step 8 visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(preVal, curVal, idx, obj) { - if (idx === 1 && curVal === 6.99) { - testResult = true; - } - } +function callbackfn(preVal, curVal, idx, obj) { + if (idx === 1 && curVal === 6.99) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "2", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "2", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduceRight(callbackfn); +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js index 6e5c2a567472eb2f1b16af44d5acf01dfc19231f..f71e3926ee04764c23e9609664ef47505c8b48e0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js @@ -10,34 +10,37 @@ description: > object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(preVal, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { 0: 10, length: 10 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "5", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(obj, callbackfn); +var accessed = false; +var testResult = true; + +function callbackfn(preVal, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + 0: 10, + length: 10 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "5", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js index 8cc4656065056052697a15626ffa8c84ed0068eb..215cab2ef59228c95d24d0e46a2db6515665791e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js @@ -9,34 +9,34 @@ description: > causes deleted index property not to be visited on an Array ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(preVal, curVal, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var arr = [0]; - - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); - - Object.defineProperty(arr, "2", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); - - arr.reduceRight(callbackfn); +var accessed = false; +var testResult = true; + +function callbackfn(preVal, curVal, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var arr = [0]; + +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); + +Object.defineProperty(arr, "2", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js index fdce8cb0da58ac855b04cee9aa9eba0409e0d3e3..825a40814b0a5f33c9892d995df9275023d6f9f6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js @@ -9,15 +9,16 @@ description: > never been assigned values ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return curVal; - } +var callCnt = 0; - var arr = new Array(10); - arr[0] = arr[1] = undefined; //explicitly assigning a value +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return curVal; +} + +var arr = new Array(10); +arr[0] = arr[1] = undefined; //explicitly assigning a value assert.sameValue(arr.reduceRight(callbackfn), undefined, 'arr.reduceRight(callbackfn)'); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js index da0debdf946b72bf4885284ea386c25ba598633d..351f363ff015272eaa0b8c896233eb0947376be9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js @@ -9,14 +9,20 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (curVal === 0); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, 2: 2, length: 2 }; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (curVal === 0); + } +} + +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js index d4cf4da3796c47b4839b36e7633d3470d78a4e3c..2c3a2f1e71a3231e3d48ce915c9f074fef8d3b70 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); +var arr = [0, , 2]; - arr.reduceRight(callbackfn, "initialValue"); +Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js index 1cbecd5edd63de2a7eff846072efdf915e35ac83..8d72dd51d520c75dc6b26b9268b3f3eef9e50a56 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js @@ -10,28 +10,33 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } - - var proto = { 0: 0, 1: 11, 2: 2 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "1", { - get: function () { - return "1"; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} + +var proto = { + 0: 0, + 1: 11, + 2: 2 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "1", { + get: function() { + return "1"; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js index e7a9e708f591a57be88c355d817f0db33fe8b926..61fb0309ab70266847e8d218e433fcb7908d8ba7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js @@ -10,23 +10,24 @@ description: > Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; - Array.prototype[1] = 11; - var arr = [0, ,2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} - Object.defineProperty(arr, "1", { - get: function () { - return "1"; - }, - configurable: true - }); +Array.prototype[1] = 11; +var arr = [0, , 2]; - arr.reduceRight(callbackfn, "initialValue"); +Object.defineProperty(arr, "1", { + get: function() { + return "1"; + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js index d9cbbc10bd396137ffe0bb57c853d7fabb05a6a5..f66c4bf60c19da2d0e41cff79ee1d126229f2f08 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js @@ -10,35 +10,39 @@ description: > an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } - - var proto = { 0: 0, 2: 2}; - - Object.defineProperty(proto, "1", { - get: function () { - return 11; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "1", { - get: function () { - return "1"; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} + +var proto = { + 0: 0, + 2: 2 +}; + +Object.defineProperty(proto, "1", { + get: function() { + return 11; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "1", { + get: function() { + return "1"; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js index e0df7ceb0475042bd0856cb89d7821a8996dc7c0..25f63b507d2cb6378280877be678365ea8be6ebf 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js @@ -10,28 +10,29 @@ description: > an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 11; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} - var arr = [0, ,2]; +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 11; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - return "1"; - }, - configurable: true - }); - arr.reduceRight(callbackfn, "initialValue"); +var arr = [0, , 2]; + +Object.defineProperty(arr, "1", { + get: function() { + return "1"; + }, + configurable: true +}); +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js index f8684e9e87b7cb18998adec9a4fb0a940c0ed691..270f2ed4b8496deb1aa63e618109fa2368c222e4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js @@ -9,28 +9,32 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var proto = { 0: 0, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Object.defineProperty(proto, "1", { - get: function () { - return 1; - }, - configurable: true - }); +var proto = { + 0: 0, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "1", { + get: function() { + return 1; + }, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js index 0f70fe6179260e7dc7ac2f6a9e838de601729112..78cdc1a281e93b33f0474124803de0eaaec68393 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - var arr = [0, , 2]; +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 1; + }, + configurable: true +}); - arr.reduceRight(callbackfn, "initialValue"); +var arr = [0, , 2]; + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js index 04d28b5566ae452818663e0d9f5d7582937c8948..7f9c3c0730f648b66b4c8e8c0ce36f2298eb6c8b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js @@ -9,20 +9,25 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - var obj = { 0: 0, 2: 2, length: 3 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js index ffd33eaac3af14a46b96c8022f83005fa0135a88..21a4bf39dc5a5aeb3172011cb6435278f272615c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +var arr = [0, , 2]; - arr.reduceRight(callbackfn, "initialValue"); +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js index ca309ae008662609bcf5836fd7bf0e110a8e479c..82ab638bd085034af71d57339daf47f6b4594e44 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js @@ -10,21 +10,26 @@ description: > inherited accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - Object.prototype[1] = 1; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +Object.prototype[1] = 1; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js index f608df6090299e0e08405d1c55011ab57155ebfc..c7168a194990e2bc10091653d5f6009e6edecb34 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js @@ -9,14 +9,15 @@ description: > property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var arr = [0, 1, 2]; - arr.reduceRight(callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [0, 1, 2]; +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js index 266cafd1ae23950ad5cb210b5361ab74227f8b87..0f39cd442b6999eb6bc5877b28a5c4d801af50b8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js @@ -10,20 +10,21 @@ description: > inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - Array.prototype[1] = 1; - var arr = [0, ,2]; - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - arr.reduceRight(callbackfn, "initialValue"); +Array.prototype[1] = 1; +var arr = [0, , 2]; +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js index 1e7b5fd1ae4ae1ac174419cd91c60a1a21d3091d..f5dda1c86655e8f9914e0c828908296c0af61568 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js @@ -9,26 +9,30 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - var proto = { 0: 0, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - Object.defineProperty(proto, "1", { - set: function () { }, - configurable: true - }); +var proto = { + 0: 0, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "1", { + set: function() {}, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js index dedd4b643b13997d3f2d047217e48a09799224bb..365b543a52090234ee9bd0238851d3475780dbd5 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "1", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - var arr = [0, , 2]; +Object.defineProperty(Array.prototype, "1", { + set: function() {}, + configurable: true +}); - arr.reduceRight(callbackfn, "initialValue"); +var arr = [0, , 2]; + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js index 81d2d0e0460c62d54adcd38fa0c953aaeeb0758b..9c177f936a43cf6b06cb29942c5818ce96104f5d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js @@ -10,17 +10,18 @@ description: > is less than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - func(0, 1); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); +}; + +func(0, 1); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js index e2518afe356b78edbb1c13b3053ee31646d79953..79984ddfe34fed5fbf9f7bfce6506ce952fe4193 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js @@ -10,17 +10,18 @@ description: > equals number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (curVal === 2); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (curVal === 2); + } +} - func(0, 1, 2); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); +}; + +func(0, 1, 2); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js index 677bcd3da2b8bf3a4a6335919b9a06b8a059f81c..080ad10a216a91d5e6d5c8d4e348fc80a0bb1621 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js @@ -10,17 +10,18 @@ description: > is greater than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 3) { - testResult = (curVal === 3); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 3) { + testResult = (curVal === 3); + } +} - func(0, 1, 2, 3); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); +}; + +func(0, 1, 2, 3); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js index 83976643ca57d445b2c64829d01b9432e2cee119..388685e913b2c8ebe6574c307349fa5da233c35c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js @@ -9,14 +9,15 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; - var str = new String("012"); - Array.prototype.reduceRight.call(str, callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} + +var str = new String("012"); +Array.prototype.reduceRight.call(str, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js index b69e0332b200c5cbddb086e13ffcd429a91dc523..2cc8148fda0c5662d95a0d1dab522626077ce014 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js @@ -9,22 +9,23 @@ description: > implements its own property get method ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var obj = function (a, b, c) { - return a + b + c; - }; - obj[0] = 0; - obj[1] = 1; - obj[2] = 2; - obj[3] = 3; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Array.prototype.reduceRight.call(obj, callbackfn, initialValue); +var obj = function(a, b, c) { + return a + b + c; +}; +obj[0] = 0; +obj[1] = 1; +obj[2] = 2; +obj[3] = 3; + +Array.prototype.reduceRight.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js index 50fa727045feb1160b6790563288bca5decc3831..98c28ad1e09c84ec63eac4ce43fcbc6b94d7dd73 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js @@ -10,22 +10,28 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; - var proto = { 0: 10, 1: 11, 2: 12, length: 2 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} - var child = new Con(); - child[1] = "1"; - child[2] = "2"; - child.length = 3; +var proto = { + 0: 10, + 1: 11, + 2: 12, + length: 2 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var child = new Con(); +child[1] = "1"; +child[2] = "2"; +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js index c3c66cd5faf251a83d3ca9bc90286c65906cd8ad..234bf191a1f1cd6641d3e7bed24b2de5675b521a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js @@ -9,35 +9,36 @@ description: > previous iterations is observed on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var arr = [, ,]; - var preIterVisible = false; - - Object.defineProperty(arr, "2", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "11"; - } - }, - configurable: true - }); - - arr.reduceRight(callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [, , ]; +var preIterVisible = false; + +Object.defineProperty(arr, "2", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "11"; + } + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js index a25b15397480ff127f5dcf2584ec5ce65b15e567..c560a641e9f9d21ae059c5d4a8132a29712a3e8c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js @@ -9,35 +9,38 @@ description: > previous iterations is observed on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var obj = { length: 3 }; - var preIterVisible = false; - - Object.defineProperty(obj, "2", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "11"; - } - }, - configurable: true - }); - - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var obj = { + length: 3 +}; +var preIterVisible = false; + +Object.defineProperty(obj, "2", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "11"; + } + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js index a0225a88209cd927b907788791f0ad74c75f4287..57da7683af50497ebaebb12d76642265a06c87ee 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js @@ -9,22 +9,27 @@ description: > getter terminate iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx <= 1) { - accessed = true; - } - } +var accessed = false; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx <= 1) { + accessed = true; + } +} - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); + +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); + Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js index 643f4ee4a2926c519279dcef5fc746f03637132b..257325e497951a1f509058d8501a9f2a3261f3ca 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js @@ -9,24 +9,25 @@ description: > getter terminate iteration on an Array ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx <= 1) { - accessed = true; - } - } +var accessed = false; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx <= 1) { + accessed = true; + } +} - Object.defineProperty(arr, "1", { - get: function () { - throw new Test262Error("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = [0, , 2]; + +Object.defineProperty(arr, "1", { + get: function() { + throw new Test262Error("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(Test262Error, function() { - arr.reduceRight(callbackfn, "initialValue"); + arr.reduceRight(callbackfn, "initialValue"); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js index a5226d8d80f655b2ac660871ca988500a7c63c66..a5145b80d7001202fa014db1508900c070aefea7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js @@ -9,14 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - Array.prototype[1] = "11"; - [0, 1, 2].reduceRight(callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Array.prototype[1] = "11"; +[0, 1, 2].reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js index fe417547f8fe80ee2168287e0272a07ae2d62326..6feb43a1be59c99ce69deb89607643894aff67d6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js @@ -10,33 +10,34 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (curVal === "0"); - } - } - - var proto = {}; - - Object.defineProperty(proto, "0", { - get: function () { - return 10; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 2; - Object.defineProperty(child, "0", { - value: "0", - configurable: true - }); - child[1] = "1"; - - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (curVal === "0"); + } +} + +var proto = {}; + +Object.defineProperty(proto, "0", { + get: function() { + return 10; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 2; +Object.defineProperty(child, "0", { + value: "0", + configurable: true +}); +child[1] = "1"; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js index d3715f273b51f5f7a086ae1e300585190c343f05..5b47467c3197d879202a5f62593815835b177f84 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js @@ -9,19 +9,20 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return "11"; - }, - configurable: true - }); - [0, 1, 2].reduceRight(callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Object.defineProperty(Array.prototype, "1", { + get: function() { + return "11"; + }, + configurable: true +}); +[0, 1, 2].reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js index 31f37fcee553f7fa1de289b9692857d24b4ecd11..e5a8ebfc367034482bbcd006f88365569e0e9ce5 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js @@ -9,20 +9,25 @@ description: > data property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - var child = new Con(); - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js index 754987649de20ba495e75c67e5d419f5df9343d4..ad73acacbe616dfb08b5f1146e93502083dc32b1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js @@ -9,16 +9,17 @@ description: > data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - Array.prototype[0] = 0; - Array.prototype[1] = 1; - Array.prototype[2] = 2; - [, , , ].reduceRight(callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Array.prototype[0] = 0; +Array.prototype[1] = 1; +Array.prototype[2] = 2; +[, , , ].reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js index e26ebcc16867ba105b6c2d8e2a12f321ad472aaf..d512dd5daf6ac98fe0362836e42c349aab248671 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js @@ -9,21 +9,26 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js index ef650ba62a8cc8dcc8de37eb3edb3e3ba24803c0..50b5043be21332f5e328b270c33be07a51f1463d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js @@ -9,14 +9,14 @@ description: > parameters (initialvalue not passed) ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - if(idx+1 < obj.length && obj[idx] === curVal && obj[idx+1] === prevVal) - return curVal; - else - return false; - } +function callbackfn(prevVal, curVal, idx, obj) +{ + if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal) + return curVal; + else + return false; +} - var arr = [0,1,true,null,new Object(),"five"]; +var arr = [0, 1, true, null, new Object(), "five"]; assert.sameValue(arr.reduceRight(callbackfn), 0, 'arr.reduceRight(callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js index ef2c334856b201c8b985752189b6b1cb9624fea2..1953c9a379d8c338c38d2d23995a370dd8ebe97c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js @@ -9,12 +9,12 @@ description: > parameter ---*/ - var called = 0; +var called = 0; - function callbackfn(prevVal) { - called++; - return prevVal; - } +function callbackfn(prevVal) { + called++; + return prevVal; +} assert.sameValue([11, 12].reduceRight(callbackfn, 100), 100, '[11, 12].reduceRight(callbackfn, 100)'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js index 50fe7d7aac68125c425a3fa412a536303265752a..d6e3cfd1d7873d4a9f0efa0acddd5cddaa1b65eb 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js @@ -9,14 +9,14 @@ description: > parameter ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal) { - if (prevVal === 100) { - testResult = true; - } - return curVal > 10; - } +function callbackfn(prevVal, curVal) { + if (prevVal === 100) { + testResult = true; + } + return curVal > 10; +} assert.sameValue([11].reduceRight(callbackfn, 100), true, '[11].reduceRight(callbackfn, 100)'); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js index c29286b57d378f248a75d037cd63220a0769746a..5d7a7b572ac446070e2b387de7772097ee9d3ef4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js @@ -9,16 +9,16 @@ description: > parameter ---*/ - var testResult = false; - var arr = [11, 12, 13]; - var initVal = 6.99; +var testResult = false; +var arr = [11, 12, 13]; +var initVal = 6.99; - function callbackfn(prevVal, curVal, idx) { - if (idx === 2) { - testResult = (prevVal === initVal); - } - return curVal > 10 && arguments[3][idx] === curVal; - } +function callbackfn(prevVal, curVal, idx) { + if (idx === 2) { + testResult = (prevVal === initVal); + } + return curVal > 10 && arguments[3][idx] === curVal; +} assert.sameValue(arr.reduceRight(callbackfn, initVal), true, 'arr.reduceRight(callbackfn, initVal)'); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js index 39325da4ed857c92b4d84efda8e6fe3c7454a117..6fc2965d5ae71ced985e06908c1dccdcd99fd9fa 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js @@ -9,16 +9,16 @@ description: > parameter ---*/ - var arr = [11, 12, 13]; - var initVal = 6.99; - var testResult = false; +var arr = [11, 12, 13]; +var initVal = 6.99; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (prevVal === initVal); - } - return curVal > 10 && obj[idx] === curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (prevVal === initVal); + } + return curVal > 10 && obj[idx] === curVal; +} assert.sameValue(arr.reduceRight(callbackfn, initVal), true, 'arr.reduceRight(callbackfn, initVal)'); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js index 200649494e79639904916fe9d4aff637fc619806..07437dba5126525ff16276b0327e5b8b43e8b257 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js @@ -7,8 +7,8 @@ es5id: 15.4.4.22-9-c-ii-14 description: Array.prototype.reduceRight - callbackfn uses arguments ---*/ - function callbackfn() { - return arguments[0] === 100 && arguments[3][arguments[2]] === arguments[1]; - } +function callbackfn() { + return arguments[0] === 100 && arguments[3][arguments[2]] === arguments[1]; +} assert.sameValue([11].reduceRight(callbackfn, 100), true, '[11].reduceRight(callbackfn, 100)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js index 101a63d5f267ccfc72a5ddd32abdafdac661d947..401a680ec0be12a748143d8196409b58c5b70e54 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js @@ -9,15 +9,20 @@ description: > called on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (prevVal === 8 || curVal === 8) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (prevVal === 8 || curVal === 8) { + testResult = true; + } +} - var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 }; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var obj = { + 0: 11, + 10: 12, + non_index_property: 8, + length: 20 +}; +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js index 0b8e5be99915457dc791ed22babf8216c001fbeb..b2823532e8b680eb1c003d2550061cd8d3172e87 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js @@ -9,19 +9,19 @@ description: > iteration is the result of previous iteration on an Array ---*/ - var arr = [11, 12, 13]; - var testResult = true; - var initVal = 6.99; - var preResult = initVal; +var arr = [11, 12, 13]; +var testResult = true; +var initVal = 6.99; +var preResult = initVal; - function callbackfn(prevVal, curVal, idx, obj) { - if (prevVal !== preResult) { - testResult = false; - } - preResult = curVal; - return curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (prevVal !== preResult) { + testResult = false; + } + preResult = curVal; + return curVal; +} - arr.reduceRight(callbackfn, initVal); +arr.reduceRight(callbackfn, initVal); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js index 7e7098d40e1daee0b8ede817eb84af8d424dd79d..28d86867b7ba347d8c3b5d5fa501a910c388d35f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js @@ -10,17 +10,17 @@ description: > Array ---*/ - var arr = [11, 12]; - var testResult = false; - var initVal = 6.99; +var arr = [11, 12]; +var testResult = false; +var initVal = 6.99; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === initVal); - } - return curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === initVal); + } + return curVal; +} - arr.reduceRight(callbackfn, initVal); +arr.reduceRight(callbackfn, initVal); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js index 194a3291765e8ba73ba5b93d1b1633d2e11a6a2a..991b82cf0924c857247a05b018fd97475e05e5d6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js @@ -10,15 +10,15 @@ description: > undefined when 'initialValue' is not present on an Array ---*/ - var arr = [11, 12, 13]; - var testResult = false; +var arr = [11, 12, 13]; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 13); - } - return curVal; - } - arr.reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 13); + } + return curVal; +} +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js index 7324a06a84b8d13bb558e68beaa1503c488c3144..238b1e2a3e686718a044491127d9b285808c9a1d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js @@ -9,17 +9,17 @@ description: > parameters (initialvalue passed) ---*/ - var bParCorrect = false; - var arr = [0, 1, true, null, new Object(), "five"]; - var initialValue = 5.5; +var bParCorrect = false; +var arr = [0, 1, true, null, new Object(), "five"]; +var initialValue = 5.5; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue) - return curVal; - else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal) - return curVal; - else - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue) + return curVal; + else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal) + return curVal; + else + return false; +} assert.sameValue(arr.reduceRight(callbackfn, initialValue), 0, 'arr.reduceRight(callbackfn, initialValue)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js index f4b5470c69607027fafff03ed2de02419b6500fe..09cf7e099940cb93b0cdd0b6d36706085e68f5bf 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js @@ -7,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-20 description: Array.prototype.reduceRight - undefined can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return typeof prevVal === "undefined"; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return typeof prevVal === "undefined"; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, undefined), true, 'Array.prototype.reduceRight.call(obj, callbackfn, undefined)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js index 7f10e3b7871a03182ad7d8f0cb3ae83cce3bcd0a..83f18c38c506874e22b62bd10a88a2066f2621e7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js @@ -7,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-21 description: Array.prototype.reduceRight - null can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === null; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === null; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, null), true, 'Array.prototype.reduceRight.call(obj, callbackfn, null)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js index 10b20d9427fc33133bc1312b1a215f3ba70b92be..e130868f08d72dfe2db695696b1c599d89ef3930 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === false; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === false; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, false), true, 'Array.prototype.reduceRight.call(obj, callbackfn, false)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js index 57cb524bded49e1eef1e6444a6b9e8b73125b4da..dc7dba028e267bd795d0b325cdd1550424b655ab 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === 12; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === 12; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 12), true, 'Array.prototype.reduceRight.call(obj, callbackfn, 12)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js index 2326939fd0291a18fe0dab0dda6376b70bdefbd1..768eb6a3ddf52d4299d03aa5fa766e31b0b14a04 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === "hello_"; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === "hello_"; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, "hello_"), true, 'Array.prototype.reduceRight.call(obj, callbackfn, "hello_")'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js index 4de1b221a27a270d7fe4740bf7c2d045334b7825..7d37c5f2aca13c6c2720a303a559c1eb5a31c771 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objFunction = function () { }; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objFunction; - } +var accessed = false; +var objFunction = function() {}; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objFunction; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objFunction), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objFunction)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js index 485f17e1097dc564aab0f5871f1c0dfe067f87aa..e95896266ca90cd98ecf2b77267b1db2d7fc1862 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objArray = []; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objArray; - } +var accessed = false; +var objArray = []; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objArray; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objArray), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objArray)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js index 3414ccbc9374302428710a8490fac59ec8aafa48..b5f187df0e7d45f019074c53baf911a7a0e54e6e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objString = new String(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objString; - } +var accessed = false; +var objString = new String(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objString; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objString), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objString)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js index 541ff7834c79de6e32085e37c4c06353b592731d..e8f4b8bc066bdae5b0928a25eef4398f85c0e991 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objBoolean = new Boolean(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objBoolean; - } +var accessed = false; +var objBoolean = new Boolean(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objBoolean; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objBoolean), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objBoolean)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js index 852073958f272e787b4d757098de4d71af0bd2af..7194c1789bafa4198d6dfd6a4b46385331fd3575 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objNumber = new Number(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objNumber; - } +var accessed = false; +var objNumber = new Number(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objNumber; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objNumber), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objNumber)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js index 7a53ea562732cba537c495f5105a60a21d51acfd..86a77aa3658e58dac3992dcfb842e9724007f650 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js @@ -7,16 +7,17 @@ es5id: 15.4.4.22-9-c-ii-3 description: Array.prototype.reduceRight - callbackfn takes 4 arguments ---*/ - var bCalled = false; - function callbackfn(prevVal, curVal, idx, obj) - { - bCalled = true; - if(prevVal === true && arguments.length === 4) - return true; - else - return false; - } - var arr = [0,1,2,3,4,5,6,7,8,9]; +var bCalled = false; -assert.sameValue(arr.reduceRight(callbackfn,true), true, 'arr.reduceRight(callbackfn,true)'); +function callbackfn(prevVal, curVal, idx, obj) +{ + bCalled = true; + if (prevVal === true && arguments.length === 4) + return true; + else + return false; +} +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + +assert.sameValue(arr.reduceRight(callbackfn, true), true, 'arr.reduceRight(callbackfn,true)'); assert.sameValue(bCalled, true, 'bCalled'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js index c151604233ced7fa78c24584211208b06b8b96de..0df77901888d53f3cc58de956f99dd4b13bff441 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === Math; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === Math; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, Math), true, 'Array.prototype.reduceRight.call(obj, callbackfn, Math)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js index c58777b282e783addb9e935fae40ddad831d15a7..092e60ecf7d8c80c07a58ec67e5efff32f81e8db 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objDate = new Date(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objDate; - } +var accessed = false; +var objDate = new Date(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objDate; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objDate), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objDate)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js index 08e8e42323d74f287d511c2b0e2f78711bbfeab8..921bc654da210fe0b88813b672f94089235a11e8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objRegExp = new RegExp(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objRegExp; - } +var accessed = false; +var objRegExp = new RegExp(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objRegExp; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objRegExp), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objRegExp)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js index 97419e156b9aedad8848d1ffb16f0110aaaabf1f..37a2bd4a689111b8c1aa4b9697b164447d07512b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js @@ -7,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-33 description: Array.prototype.reduceRight - the JSON can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === JSON; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === JSON; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, JSON), true, 'Array.prototype.reduceRight.call(obj, callbackfn, JSON)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js index f384ce910943d988bac3972d4bdda0ae046e3235..72fcc0cc5625e6c20f515337564ef59f9c7f7be6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objError = new RangeError(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objError; - } +var accessed = false; +var objError = new RangeError(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objError; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objError), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objError)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js index 11d7428b73915b4a31357ffa426151f49b12f71e..db05c37e0d02c1c928060b0f62a4ce613dcc6b5a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js @@ -9,19 +9,22 @@ description: > accumulator ---*/ - var accessed = false; - var arg; +var accessed = false; +var arg; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === arg; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === arg; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - (function fun() { - arg = arguments; - }(10, 11, 12, 13)); +(function fun() { + arg = arguments; +}(10, 11, 12, 13)); assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, arg), true, 'Array.prototype.reduceRight.call(obj, callbackfn, arg)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js index e8b37ab73426ac3e817e28ce68645dcae5f4541d..23314a32bdc45e78f310f483c60c6e1d96026fe6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js @@ -10,13 +10,17 @@ description: > ---*/ var global = this; - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === global; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === global; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, this), true, 'Array.prototype.reduceRight.call(obj, callbackfn, this)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js index 5993872575b4f08645062fdc5c70e19509eda6d0..35efbafc9ea2d9a7151c3016a72c764b0b65b092 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js @@ -10,13 +10,14 @@ description: > flags: [noStrict] ---*/ - var innerThisCorrect = false; - function callbackfn(prevVal, curVal, idx, obj) - { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } - [0].reduceRight(callbackfn,true); +var innerThisCorrect = false; + +function callbackfn(prevVal, curVal, idx, obj) +{ + "use strict"; + innerThisCorrect = this === undefined; + return true; +} +[0].reduceRight(callbackfn, true); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js index 2fc5083b78c14efaa7ac551ad6a04b0507d0e9a5..7dd1ce5ed0a4918d85c82f3a25e47cc02874bdce 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js @@ -9,20 +9,20 @@ description: > numeric order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = arr.length - 1; - var accessed = false; - var result = true; +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = arr.length - 1; +var accessed = false; +var result = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (lastIdx !== idx) { - result = false; - } else { - lastIdx--; - } - } - arr.reduceRight(callbackfn, 1); +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (lastIdx !== idx) { + result = false; + } else { + lastIdx--; + } +} +arr.reduceRight(callbackfn, 1); assert(result, 'result !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js index 8d3811a03ec2f3043818958915fdb7233020af53..ccb63b8118f1ad3595eea344a017e19a3652811d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js @@ -9,27 +9,27 @@ description: > iteration and not prior to starting the loop on an Array ---*/ - var arr = [11, 12, 13, 14]; - var kIndex = []; - var result = true; - var called = 0; +var arr = [11, 12, 13, 14]; +var kIndex = []; +var result = true; +var called = 0; - //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. - function callbackfn(preVal, curVal, idx, o) { - //Each position should be visited one time, which means k is accessed one time during iterations. - called++; - if (typeof kIndex[idx] === "undefined") { - //when current position is visited, its next index should has been visited. - if (idx !== arr.length - 1 && typeof kIndex[idx + 1] === "undefined") { - result = false; - } - kIndex[idx] = 1; - } else { - result = false; - } - } +//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. +function callbackfn(preVal, curVal, idx, o) { + //Each position should be visited one time, which means k is accessed one time during iterations. + called++; + if (typeof kIndex[idx] === "undefined") { + //when current position is visited, its next index should has been visited. + if (idx !== arr.length - 1 && typeof kIndex[idx + 1] === "undefined") { + result = false; + } + kIndex[idx] = 1; + } else { + result = false; + } +} - arr.reduceRight(callbackfn, 1); +arr.reduceRight(callbackfn, 1); assert(result, 'result !== true'); assert.sameValue(called, 4, 'called'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js index 2c4f536010485228258421a4d96762dae9c2caa5..f6f26025d88e3d6b119ba413809157c79d3a3f2d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js @@ -9,21 +9,26 @@ description: > callbackfn terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx < 10) { - accessed = true; - } - if (idx === 10) { - throw new Test262Error("Exception occurred in callbackfn"); - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx < 10) { + accessed = true; + } + if (idx === 10) { + throw new Test262Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, callbackfn, 1); + Array.prototype.reduceRight.call(obj, callbackfn, 1); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js index 3625e8a4dfc3f3e69f30c77ebbe78e76e61f0951..439445c5b68ab5c18788c4d1c733408fe8641bd8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js @@ -9,15 +9,20 @@ description: > previous iterations is observed ---*/ - var accessed = false; - var obj = { 0: 11, 1: 12, length: 2 }; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 1) { - obj[idx - 1] = 8; - } - return curVal > 10; - } +var accessed = false; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 1) { + obj[idx - 1] = 8; + } + return curVal > 10; +} assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), false, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js index 170d9d32843266fbf913df0be109e06a48c08f29..c1dfba32898fcbe5d8e5e5ba9d6ab027e1008dc9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js @@ -9,12 +9,12 @@ description: > parameter ---*/ - var called = 0; +var called = 0; - function callbackfn() { - called++; - return true; - } +function callbackfn() { + called++; + return true; +} assert.sameValue([11, 12].reduceRight(callbackfn, 11), true, '[11, 12].reduceRight(callbackfn, 11)'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js index 7ca4f7f6e3ee801ead3db31a6f454f96fe6d5913..fd092bbb997011366a7ac52d95888b50254d97a2 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js @@ -26,7 +26,7 @@ if (reverse !== x) { } //CHECK#3 -x = new Array(1,2); +x = new Array(1, 2); var reverse = x.reverse(); if (reverse !== x) { $ERROR('#3: x = new Array(1,2); x.reverse() === x. Actual: ' + (reverse)); diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js index 62f93f6e5372ed58b1ede59dccf8504ca7387e80..a488885d41411bfe84165fb121bd7a40ae5c186f 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js @@ -26,52 +26,52 @@ if (reverse !== x) { //CHECK#2 if (x[0] !== "-1") { - $ERROR('#2: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[0] === "-1". Actual: ' + (x[0])); + $ERROR('#2: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[0] === "-1". Actual: ' + (x[0])); } //CHECK#3 if (x[1] !== "NaN") { - $ERROR('#3: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[1] === "NaN". Actual: ' + (x[1])); + $ERROR('#3: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[1] === "NaN". Actual: ' + (x[1])); } //CHECK#4 if (x[2] !== undefined) { - $ERROR('#4: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[2] === undefined. Actual: ' + (x[2])); + $ERROR('#4: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[2] === undefined. Actual: ' + (x[2])); } //CHECK#5 if (x[3] !== undefined) { - $ERROR('#5: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[3] === undefined. Actual: ' + (x[3])); + $ERROR('#5: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[3] === undefined. Actual: ' + (x[3])); } //CHECK#6 if (x[4] !== undefined) { - $ERROR('#6: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[4] === undefined. Actual: ' + (x[4])); + $ERROR('#6: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[4] === undefined. Actual: ' + (x[4])); } //CHECK#7 if (x[5] !== undefined) { - $ERROR('#7: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[5] === undefined. Actual: ' + (x[5])); + $ERROR('#7: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[5] === undefined. Actual: ' + (x[5])); } //CHECK#8 if (x[6] !== undefined) { - $ERROR('#8: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[6] === undefined. Actual: ' + (x[6])); + $ERROR('#8: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[6] === undefined. Actual: ' + (x[6])); } //CHECK#9 if (x[7] !== Infinity) { - $ERROR('#9: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[7] === Infinity. Actual: ' + (x[7])); + $ERROR('#9: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[7] === Infinity. Actual: ' + (x[7])); } //CHECK#10 if (x[8] !== undefined) { - $ERROR('#10: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[8] === undefined. Actual: ' + (x[8])); + $ERROR('#10: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[8] === undefined. Actual: ' + (x[8])); } //CHECK#11 if (x[9] !== true) { - $ERROR('#11: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[9] === true. Actual: ' + (x[9])); + $ERROR('#11: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[9] === true. Actual: ' + (x[9])); } x.length = 9; @@ -83,45 +83,45 @@ if (reverse !== x) { //CHECK#12 if (x[0] !== undefined) { - $ERROR('#12: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[0] === undefined. Actual: ' + (x[0])); + $ERROR('#12: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[0] === undefined. Actual: ' + (x[0])); } //CHECK#13 if (x[1] !== Infinity) { - $ERROR('#13: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[1] === Infinity. Actual: ' + (x[1])); + $ERROR('#13: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[1] === Infinity. Actual: ' + (x[1])); } //CHECK#14 if (x[2] !== undefined) { - $ERROR('#14: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[2] === undefined. Actual: ' + (x[2])); + $ERROR('#14: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[2] === undefined. Actual: ' + (x[2])); } //CHECK#15 if (x[3] !== undefined) { - $ERROR('#15: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[3] === undefined. Actual: ' + (x[3])); + $ERROR('#15: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[3] === undefined. Actual: ' + (x[3])); } //CHECK#16 if (x[4] !== undefined) { - $ERROR('#16: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[4] === undefined. Actual: ' + (x[4])); + $ERROR('#16: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[4] === undefined. Actual: ' + (x[4])); } //CHECK#17 if (x[5] !== undefined) { - $ERROR('#17: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[5] === undefined. Actual: ' + (x[5])); + $ERROR('#17: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[5] === undefined. Actual: ' + (x[5])); } //CHECK#18 if (x[6] !== undefined) { - $ERROR('#18: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[6] === undefined. Actual: ' + (x[6])); + $ERROR('#18: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[6] === undefined. Actual: ' + (x[6])); } //CHECK#19 if (x[7] !== "NaN") { - $ERROR('#19: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[7] === "NaN". Actual: ' + (x[7])); + $ERROR('#19: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[7] === "NaN". Actual: ' + (x[7])); } //CHECK#20 if (x[8] !== "-1") { - $ERROR('#20: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[8] === "-1". Actual: ' + (x[8])); + $ERROR('#20: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[8] === "-1". Actual: ' + (x[8])); } diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js index ec750f6264fcad0328a723415567df377f49e5b0..384047599185af3ee4121c7c149c3abb56d24e75 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js @@ -31,52 +31,52 @@ if (reverse !== obj) { //CHECK#2 if (obj[0] !== "-1") { - $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0])); + $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0])); } //CHECK#3 if (obj[1] !== "NaN") { - $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1])); + $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1])); } //CHECK#4 if (obj[2] !== undefined) { - $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); + $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); } //CHECK#5 if (obj[3] !== undefined) { - $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); + $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); } //CHECK#6 if (obj[4] !== undefined) { - $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); + $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); } //CHECK#7 if (obj[5] !== undefined) { - $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); + $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); } //CHECK#8 if (obj[6] !== undefined) { - $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); + $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); } //CHECK#9 if (obj[7] !== Infinity) { - $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7])); + $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7])); } //CHECK#10 if (obj[8] !== undefined) { - $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8])); + $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8])); } //CHECK#11 if (obj[9] !== true) { - $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9])); + $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9])); } obj.length = 9; @@ -88,45 +88,45 @@ if (reverse !== obj) { //CHECK#12 if (obj[0] !== undefined) { - $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0])); + $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0])); } //CHECK#13 if (obj[1] !== Infinity) { - $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1])); + $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1])); } //CHECK#14 if (obj[2] !== undefined) { - $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); + $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); } //CHECK#15 if (obj[3] !== undefined) { - $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); + $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); } //CHECK#16 if (obj[4] !== undefined) { - $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); + $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); } //CHECK#17 if (obj[5] !== undefined) { - $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); + $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); } //CHECK#18 if (obj[6] !== undefined) { - $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); + $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); } //CHECK#19 if (obj[7] !== "NaN") { - $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7])); + $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7])); } //CHECK#20 if (obj[8] !== "-1") { - $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8])); + $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8])); } diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js index 2d521f112939ef5d0430fe08ae7f375cbf78417e..77693f71ce5e09ac8d540e650bb300091eeeac57 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js @@ -31,52 +31,52 @@ if (reverse !== obj) { //CHECK#2 if (obj[0] !== "-1") { - $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0])); + $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0])); } //CHECK#3 if (obj[1] !== "NaN") { - $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1])); + $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1])); } //CHECK#4 if (obj[2] !== undefined) { - $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); + $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); } //CHECK#5 if (obj[3] !== undefined) { - $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); + $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); } //CHECK#6 if (obj[4] !== undefined) { - $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); + $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); } //CHECK#7 if (obj[5] !== undefined) { - $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); + $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); } //CHECK#8 if (obj[6] !== undefined) { - $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); + $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); } //CHECK#9 if (obj[7] !== Infinity) { - $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7])); + $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7])); } //CHECK#10 if (obj[8] !== undefined) { - $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8])); + $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8])); } //CHECK#11 if (obj[9] !== true) { - $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9])); + $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9])); } obj.length = new Number(9.5); @@ -88,45 +88,45 @@ if (reverse !== obj) { //CHECK#12 if (obj[0] !== undefined) { - $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0])); + $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0])); } //CHECK#13 if (obj[1] !== Infinity) { - $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1])); + $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1])); } //CHECK#14 if (obj[2] !== undefined) { - $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); + $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); } //CHECK#15 if (obj[3] !== undefined) { - $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); + $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); } //CHECK#16 if (obj[4] !== undefined) { - $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); + $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); } //CHECK#17 if (obj[5] !== undefined) { - $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); + $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); } //CHECK#18 if (obj[6] !== undefined) { - $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); + $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); } //CHECK#19 if (obj[7] !== "NaN") { - $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7])); + $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7])); } //CHECK#20 if (obj[8] !== "-1") { - $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8])); + $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8])); } diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js index 1c41625f822ccbed440977eb4df4b32768e5fff1..2fd9a2d2a836a3137ccc73d798da89c780d11299 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js @@ -31,52 +31,52 @@ if (reverse !== obj) { //CHECK#2 if (obj[0] !== "-1") { - $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0])); + $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0])); } //CHECK#3 if (obj[1] !== "NaN") { - $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1])); + $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1])); } //CHECK#4 if (obj[2] !== undefined) { - $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); + $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); } //CHECK#5 if (obj[3] !== undefined) { - $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); + $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); } //CHECK#6 if (obj[4] !== undefined) { - $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); + $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); } //CHECK#7 if (obj[5] !== undefined) { - $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); + $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); } //CHECK#8 if (obj[6] !== undefined) { - $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); + $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); } //CHECK#9 if (obj[7] !== Infinity) { - $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7])); + $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7])); } //CHECK#10 if (obj[8] !== undefined) { - $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8])); + $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8])); } //CHECK#11 if (obj[9] !== true) { - $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9])); + $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9])); } obj.length = new String("9"); @@ -88,45 +88,45 @@ if (reverse !== obj) { //CHECK#12 if (obj[0] !== undefined) { - $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0])); + $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0])); } //CHECK#13 if (obj[1] !== Infinity) { - $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1])); + $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1])); } //CHECK#14 if (obj[2] !== undefined) { - $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); + $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2])); } //CHECK#15 if (obj[3] !== undefined) { - $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); + $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3])); } //CHECK#16 if (obj[4] !== undefined) { - $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); + $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4])); } //CHECK#17 if (obj[5] !== undefined) { - $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); + $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5])); } //CHECK#18 if (obj[6] !== undefined) { - $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); + $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6])); } //CHECK#19 if (obj[7] !== "NaN") { - $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7])); + $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7])); } //CHECK#20 if (obj[8] !== "-1") { - $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8])); + $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8])); } diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js index 82fa71a07d7f0e0044af7003b320de708b3d4df4..44fefbf426cb4ca2af6a0dde62db0c14051b4413 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js @@ -40,7 +40,9 @@ if (x[1] !== 1) { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.reverse = Array.prototype.reverse; -x = {0:0}; +x = { + 0: 0 +}; x.reverse(); //CHECK#5 diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js index f658651f46fa3aa6f67c66e7079185d61fb26b22..942d287ad784fbf8744b4f8f2529c29ec7939bb4 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js @@ -11,7 +11,7 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; +var x = [0, 1]; x.length = 2; x.reverse(); @@ -40,7 +40,10 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.reverse = Array.prototype.reverse; -x = {0:0,1:1}; +x = { + 0: 0, + 1: 1 +}; x.reverse(); //CHECK#5 diff --git a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js index 2296861a5058800b5fd3e65104dacc1f0274ddba..94e53bb20b3d94604692ddcec9dd7ab2d294ffc3 100644 --- a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js +++ b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js @@ -11,20 +11,20 @@ info: | ... ---*/ -function StopReverse() { } +function StopReverse() {} // Object with large "length" property and no indexed properties in the uint32 range. var arrayLike = { - get "9007199254740990"() { + get "9007199254740990" () { throw new StopReverse(); }, - get "9007199254740991"() { + get "9007199254740991" () { $ERROR("Get 9007199254740991"); }, - get "9007199254740992"() { + get "9007199254740992" () { $ERROR("Get 9007199254740992"); }, - length: 2**53 + 2, + length: 2 ** 53 + 2, }; assert.throws(StopReverse, function() { diff --git a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js index e4b45f459576f2bbd65c6a89e70e2985b8f125b7..308eb5e192bb6daf0b6a6b6906d3b13930ee7d23 100644 --- a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js +++ b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js @@ -8,7 +8,7 @@ description: > includes: [compareArray.js, proxyTrapsHelper.js] ---*/ -function StopReverse() { } +function StopReverse() {} var arrayLike = { 0: "zero", @@ -25,7 +25,7 @@ var arrayLike = { /* 9007199254740989: hole, */ 9007199254740990: "2**53-2", - length: 2**53 + 2, + length: 2 ** 53 + 2, }; var traps = []; @@ -106,7 +106,7 @@ assert.compareArray(traps, [ "Get:4", ]); -assert.sameValue(arrayLike.length, 2**53 + 2, "Length property is not modified"); +assert.sameValue(arrayLike.length, 2 ** 53 + 2, "Length property is not modified"); assert.sameValue(arrayLike[0], "2**53-2", "Property at index 0"); assert.sameValue(1 in arrayLike, false, "Property at index 1"); diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js index f84a5392ee0252f25ef596d2e32b10dd4c699b88..b087c14b74fbd0d6b0064fbb6b32caefcc09a6f3 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js @@ -23,7 +23,7 @@ if (x.length !== 0) { } //CHECK#3 -var x = Array(1,2,3); +var x = Array(1, 2, 3); x.length = 0; var shift = x.shift(); if (shift !== undefined) { diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js index 3fac087a29946b254b1fb7518853a8a8f55d9cdf..b736fa0f34f7eebe664d10f342f3ce5630eae39d 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js @@ -11,7 +11,7 @@ description: Checking this use new Array() and [] ---*/ //CHECK#1 -var x = new Array(0,1,2,3); +var x = new Array(0, 1, 2, 3); var shift = x.shift(); if (shift !== 0) { $ERROR('#1: x = new Array(0,1,2,3); x.shift() === 0. Actual: ' + (shift)); diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js index ea342a469721bb4d788d3d51db8dbab48cdf134d..caf6bcb1802b923791ae25574fdb2dd9a076748e 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js @@ -18,15 +18,15 @@ obj.shift = Array.prototype.shift; if (obj.length !== undefined) { $ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length)); } else { - //CHECK#1 - var shift = obj.shift(); -if (shift !== undefined) { - $ERROR('#1: var obj = {}; obj.shift = Array.prototype.shift; obj.shift() === undefined. Actual: ' + (shift)); - } - //CHECK#2 - if (obj.length !== 0) { - $ERROR('#2: var obj = {}; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length)); - } + //CHECK#1 + var shift = obj.shift(); + if (shift !== undefined) { + $ERROR('#1: var obj = {}; obj.shift = Array.prototype.shift; obj.shift() === undefined. Actual: ' + (shift)); + } + //CHECK#2 + if (obj.length !== 0) { + $ERROR('#2: var obj = {}; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length)); + } } //CHECK#3 diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js index 2dc7695d292cf2f2d08e9c98c90eb99343f96825..af9768c9127c37c07f19e93551aa463b0b82a069 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js @@ -50,7 +50,7 @@ if (shift !== undefined) { if (obj.length !== 0) { $ERROR('#8: var obj = {}; obj.length = -0; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length)); } else { - if (1/obj.length !== Number.POSITIVE_INFINITY) { + if (1 / obj.length !== Number.POSITIVE_INFINITY) { $ERROR('#8: var obj = {}; obj.length = -0; obj.shift = Array.prototype.shift; obj.shift(); obj.length === +0. Actual: ' + (obj.length)); } } diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js index f16915d791d03e09ee2e0f72c7c3d563f35a845c..51e927577b05766f9a19beb6b6321472dee7faa3 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js @@ -17,7 +17,11 @@ obj.shift = Array.prototype.shift; //CHECK#1 obj[0] = -1; -obj.length = {valueOf: function() {return 1}}; +obj.length = { + valueOf: function() { + return 1 + } +}; var shift = obj.shift(); if (shift !== -1) { $ERROR('#1: obj[0] = -1; obj.length = {valueOf: function() {return 1}} obj.shift() === -1. Actual: ' + (shift)); @@ -25,7 +29,14 @@ if (shift !== -1) { //CHECK#2 obj[0] = -1; -obj.length = {valueOf: function() {return 1}, toString: function() {return 0}}; +obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; var shift = obj.shift(); if (shift !== -1) { $ERROR('#0: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return 0}} obj.shift() === -1. Actual: ' + (shift)); @@ -33,7 +44,14 @@ if (shift !== -1) { //CHECK#3 obj[0] = -1; -obj.length = {valueOf: function() {return 1}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; var shift = obj.shift(); if (shift !== -1) { $ERROR('#3: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return {}}} obj.shift() === -1. Actual: ' + (shift)); @@ -42,9 +60,16 @@ if (shift !== -1) { //CHECK#4 try { obj[0] = -1; - obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; var shift = obj.shift(); -if (shift !== -1) { + if (shift !== -1) { $ERROR('#4.1: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; obj.shift() === ",". Actual: ' + (shift)); } } @@ -58,7 +83,11 @@ catch (e) { //CHECK#5 obj[0] = -1; -obj.length = {toString: function() {return 0}}; +obj.length = { + toString: function() { + return 0 + } +}; var shift = obj.shift(); if (shift !== undefined) { $ERROR('#5: obj[0] = -1; obj.length = {toString: function() {return 0}} obj.shift() === undefined. Actual: ' + (shift)); @@ -66,7 +95,14 @@ if (shift !== undefined) { //CHECK#6 obj[0] = -1; -obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 0 + } +} var shift = obj.shift(); if (shift !== undefined) { $ERROR('#6: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} obj.shift() === undefined. Actual: ' + (shift)); @@ -75,7 +111,14 @@ if (shift !== undefined) { //CHECK#7 try { obj[0] = -1; - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 0 + } + }; var shift = obj.shift(); $ERROR('#7.1: obj[0] = -1; obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; obj.shift() throw "error". Actual: ' + (shift)); } @@ -88,7 +131,14 @@ catch (e) { //CHECK#8 try { obj[0] = -1; - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var shift = obj.shift(); $ERROR('#8.1: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.shift() throw TypeError. Actual: ' + (shift)); } diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js index 60942b64a109fddf903c087c1b646e6ca70ebb21..f1c786b2109e3f81be978163efd8e03285003d98 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js @@ -27,10 +27,10 @@ if (obj.length !== 0) { //CHECK#3 if (obj[0] !== "x") { - $ERROR('#3: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x"; obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[0] === "x". Actual: ' + (obj[0])); + $ERROR('#3: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x"; obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[0] === "x". Actual: ' + (obj[0])); } //CHECK#4 if (obj[1] !== "y") { - $ERROR('#4: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x" obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[1] === "y". Actual: ' + (obj[1])); + $ERROR('#4: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x" obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[1] === "y". Actual: ' + (obj[1])); } diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js index 3a7c667f3c37140034f7654255a2e37f78ff5059..8b7854630856415734057847ccc6c192cfeaf563 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js @@ -33,7 +33,9 @@ if (x[1] !== 1) { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.shift = Array.prototype.shift; -x = {0:0}; +x = { + 0: 0 +}; //CHECK#4 var shift = x.shift(); diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js index 703c32e109e0a022c8e6eaeae9e655641246690b..20fb5644e3103ec44b374fe77b27d237790443fb 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js @@ -11,7 +11,7 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; +var x = [0, 1]; x.length = 2; //CHECK#1 @@ -33,7 +33,10 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.shift = Array.prototype.shift; -x = {0:0,1:1}; +x = { + 0: 0, + 1: 1 +}; //CHECK#4 var shift = x.shift(); diff --git a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js index bd1c3658216201a314a61fad9e82185d80df8844..ec1f509d3ac5cee5566e5a567181b8caab39ed5a 100644 --- a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js +++ b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js @@ -9,15 +9,15 @@ description: > index property (read-only) exists in Array.prototype (Step 10.c.ii) ---*/ - var arrObj = [1, 2, 3]; +var arrObj = [1, 2, 3]; - Object.defineProperty(Array.prototype, "0", { - value: "test", - writable: false, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + value: "test", + writable: false, + configurable: true +}); - var newArr = arrObj.slice(0, 1); +var newArr = arrObj.slice(0, 1); assert(newArr.hasOwnProperty("0"), 'newArr.hasOwnProperty("0") !== true'); assert.sameValue(newArr[0], 1, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js index 567f24e6d4c436e569f5ff7751961494f2d62a6f..befb1fd88cc0de419a14a8229fc7033c1fb6daef 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T1 description: length > end > start = 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(0,3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(0, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js index 42027f84c2bb499df71f16a28f95c00faa90dc12..5955eb054eff6c18009612c9105b8d29a3f9b707 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T2 description: length > end = start > 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(3,3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(3, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js index 29b2074ed88fa2a947c7aab10bf3a4fd0ab5009f..1967fdbca4faeeb43d92c6dd8010037585a07530 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T3 description: length > start > end > 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(4,3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(4, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js index 7191ed8e2c019925a6971c2aaded4d3041677c4a..719d7634c5992d066a961d8a1af736701216dbc1 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T4 description: length = end = start > 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(5,5); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(5, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js index b5ccf106487eb774d331b061e57fd5f0aa2084ea..6c6e24b8599c13d763c91ad676bfef7e2bebd942 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T5 description: length = end > start > 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(3,5); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(3, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js index c66a6bddf728ce5c8a52d0ec6daa211d349cc581..63a86046ab49ffa563ae8f78193e47f3c3a3906d 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T6 description: length > end > start > 0; ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(2,4); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(2, 4); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js index 5e1585a5253f6ed2ca0911bb5674a60440a6377d..158c4e01d56114abb954afc3b99abe127293b7c3 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T7 description: end > length > start > 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(3,6); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(3, 6); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js index efac0d415655a61ee3e6c27f652185264241ae6a..f79bd3d4fe9351b2c1c13524cfb6a4fd0cb86f41 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T1 description: length > end = abs(start), start < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(-3,3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(-3, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js index f424caee999ed3d36e4b63c4e854eee34ce9b5fa..ef60e55af9c5d0900044462bea438aac369b1788 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T2 description: length = end > abs(start), start < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(-1,5); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(-1, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js index 8b6018424b336a3e57998e14599b42f02ce761ce..c598e8679140b7dcee5c97b51543b5ecbd643058 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T3 description: abs(start) = length > end > 0, start < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(-5,1); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(-5, 1); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js index cddd4790b85014b848ea4bd578333d6f8abeba47..c12138e36761469291e37dab77a62fc8e8411e7b 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T4 description: abs(start) > length = end > 0, start < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(-9,5); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(-9, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js index b5d84984f79eecdbfc1aebbbd15964abc646f3a7..664ed6861ad857e438f33e3adef7ed430dffb476 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T1 description: length > abs(end) > start = 0, end < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(0,-2); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(0, -2); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js index 0b4c0c2bc189dfedf276c2bca050d71bb0b73b64..761cb1266d79ca4d072fc7c765583f55e635e951 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T2 description: length > abs(end) > start > 0, end < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(1,-4); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(1, -4); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js index f14a223e39a89a641d3a0893dee954a0d3607489..37f75f8cb1e2dfa04c71c612735f87e06a08a914 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T3 description: length = abs(end) > start = 0, end < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(0,-5); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(0, -5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js index f544b49f5e50dcf6d609f862a1bac78139184222..c62284187e9e4a4d9c8e776b81130c779f903216 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T4 description: abs(end) > length > start > 0, end < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(4,-9); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(4, -9); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js index 91919d2072662366e6abf64be015ba253a344e2a..ac01bd21b09f5dba61a1d99aa6e9d76134caefbd 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T1 description: -length = start < end < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(-5,-2); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(-5, -2); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js index b0d708464885563fd6506d999d245aedd00eb378..a08595272ad9fbff9e1c8714278c4a3e64cdac94 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T2 description: -length < start < end < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(-3,-1); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(-3, -1); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js index 222609a983c63875ab3b53e076733f1a614d0e45..0942b395b2442e5ee12811c9fc3088b77beb8919 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T3 description: start < -length < end < 0 ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(-9,-1); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(-9, -1); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js index cb326f2506595c8669dae8f5bcf598eaa8372d58..3536e83a9745604fe6885cf310100c439ed919df 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js @@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T4 description: start = end < -length ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(-6,-6); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(-6, -6); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js index dc61d20fadabbb5bd6a3bb17dbb1280603d8b9c4..47fc27eafee38ff7c037b254407c5c270b8484c3 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js @@ -8,7 +8,7 @@ es5id: 15.4.4.10_A1.5_T1 description: end === undefined ---*/ -var x = [0,1,2,3,4]; +var x = [0, 1, 2, 3, 4]; var arr = x.slice(3, undefined); //CHECK#1 diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js index 7bdeb398329a65289d88af7e02b5dcba3b4c7aed..d6423de98cdeb6f2139e0fa61c8caf66e00bad75 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js @@ -8,7 +8,7 @@ es5id: 15.4.4.10_A1.5_T2 description: end is absent ---*/ -var x = [0,1,2,3,4]; +var x = [0, 1, 2, 3, 4]; var arr = x.slice(-2); //CHECK#1 diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js index d81cd4a98accb75723cb5d971f948435be332615..ceecbe2ae40ad6660100f4bfffac8a433e60d00b 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js @@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T1 description: start is not integer ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(2.5,4); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(2.5, 4); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js index 6c86d2e502db80a3667a7dd0dfa8e6dfe26ecfc3..be2087bab354f6d90f5ba2813cedad693ab94a93 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js @@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T2 description: start = NaN ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(NaN,3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(NaN, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js index d61be15bf89f413e904a656219d067659c717581..41514e02792d2d3a8adfbab1edcf0ee83e3b1c79 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js @@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T3 description: start = Infinity ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(Number.POSITIVE_INFINITY,3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(Number.POSITIVE_INFINITY, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js index 86c49a99a64a901286a26c53d7d6df81768cc409..7d1f0fc99be03c222a462472b09cd90d125657f6 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js @@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T4 description: start = -Infinity ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(Number.NEGATIVE_INFINITY,3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(Number.NEGATIVE_INFINITY, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js index 57e496f09c7ebd47c2fd6de3467f0732475d451d..e0c60b2feaed49a1d10afdd0f54e3293a13823aa 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js @@ -8,8 +8,15 @@ es5id: 15.4.4.10_A2.1_T5 description: ToInteger use ToNumber ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice({valueOf: function() {return 0}, toString: function() {return 3}},3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice({ + valueOf: function() { + return 0 + }, + toString: function() { + return 3 + } +}, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js index 5614b6d5ae786097bffb4d5ff48e188e7372656c..b5274f83b3617cdc42a1581ce9d92aab3ac06d79 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js @@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T1 description: end is not integer ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(2,4.5); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(2, 4.5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js index 1ba6d497178f36f674e98bcd89a1fc31f3b92c9c..ab712d9ba1cb840a95d89e16f496700fcd3fe02a 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js @@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T2 description: end = NaN ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(0,NaN); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(0, NaN); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js index 71a12e4c5ea7dc170ac80bebc0d2e2e03acf9813..31c4a03593c06c4e8382fc79f2da16adac25a771 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js @@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T3 description: end = Infinity ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(0,Number.POSITIVE_INFINITY); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(0, Number.POSITIVE_INFINITY); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js index b4e12693c4633ee566f7dcea1a3ab338e1e9e0c1..d5f4063e891a12afca5c70cca0444ee0d5b69a53 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js @@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T4 description: end = -Infinity ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(0,Number.NEGATIVE_INFINITY); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(0, Number.NEGATIVE_INFINITY); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js index 17e113c6b9f789b0377cb284945ec2ab3209d8c4..78affa8a2c52f22f538ace675e7e99a900a46e17 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js @@ -8,8 +8,15 @@ es5id: 15.4.4.10_A2.2_T5 description: ToInteger use ToNumber ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(0, { + valueOf: function() { + return 3 + }, + toString: function() { + return 0 + } +}); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js index 2bb88ee4501b1fb01a818bfb3a64c7727ee11021..05fb643f1cfa74e2b39753166d4c0905d11458a3 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js @@ -20,7 +20,7 @@ obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; -var arr = obj.slice(0,3); +var arr = obj.slice(0, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js index bf6dbdc5297373335b21baacd6b51db7d8a7e76f..0971b1a476c620228ce8139f3b5d7a678b4791e7 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js @@ -20,7 +20,7 @@ obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; -var arr = obj.slice(-5,3); +var arr = obj.slice(-5, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js index 2d0ef0d240c2e3dba8e36bcf32076b6e3edad3ac..9214694c6ad887aeebe8e860712453bb58df397d 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js @@ -20,7 +20,7 @@ obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; -var arr = obj.slice(0,-2); +var arr = obj.slice(0, -2); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js index d1aa9d2586e71fa5adfa5215193342341d810adb..398423039fa24e8f3d072d6c712b32cfeb980446 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js @@ -20,7 +20,7 @@ obj[2] = 2; obj[3] = 3; obj[4] = 4; obj.length = 5; -var arr = obj.slice(-5,-2); +var arr = obj.slice(-5, -2); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js index 1a4ad0bb164cae1baa33cb5dfe84d2916185739c..63b69324ba87561b2f1a3f313cdab5f818f70aae 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js @@ -15,10 +15,10 @@ obj[4294967295] = "y"; obj.length = 4294967296; try { - var arr = obj.slice(0,4294967296); + var arr = obj.slice(0, 4294967296); $ERROR('#1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception.'); } catch (e) { if (!(e instanceof RangeError)) { - $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception. Exception is instance of RangeError. Actual: exception is '+e); + $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception. Exception is instance of RangeError. Actual: exception is ' + e); } } diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js index 7c65b5fbe85005b0d37e930d6f65db8944b2cc8d..d6d1c630f2d81458ff5a8f423acae62953569c91 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js @@ -15,10 +15,10 @@ obj[4294967296] = "y"; obj.length = 4294967297; try { - var arr = obj.slice(0,4294967297); + var arr = obj.slice(0, 4294967297); $ERROR('#1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception.'); } catch (e) { if (!(e instanceof RangeError)) { - $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception. Exception is instance of RangeError. Actual: exception is '+e); + $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception. Exception is instance of RangeError. Actual: exception is ' + e); } } diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js index a5b78f6f080c54c0960bd2cca9e3df72d2bb546e..95da2f223834c4f9522183dfd14ddcdd8c16ac99 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js @@ -12,7 +12,7 @@ var obj = {}; obj.slice = Array.prototype.slice; obj[4294967294] = "x"; obj.length = -1; -var arr = obj.slice(4294967294,4294967295); +var arr = obj.slice(4294967294, 4294967295); //CHECK#1 if (arr.length !== 0) { @@ -21,5 +21,5 @@ if (arr.length !== 0) { //CHECK#3 if (arr[0] !== undefined) { - $ERROR('#3: var obj = {}; obj.slice = Array.prototype.slice; obj[4294967294] = "x"; obj.length = 4294967295; var arr = obj.slice(4294967294,4294967295); arr[0] === undefined. Actual: ' + (arr[0])); + $ERROR('#3: var obj = {}; obj.slice = Array.prototype.slice; obj[4294967294] = "x"; obj.length = 4294967295; var arr = obj.slice(4294967294,4294967295); arr[0] === undefined. Actual: ' + (arr[0])); } diff --git a/test/built-ins/Array/prototype/slice/create-non-array.js b/test/built-ins/Array/prototype/slice/create-non-array.js index 9061638d0fe3f95c1fc3f5262dc429b7929e776e..d1cbc45859a782ebe81a783a60e00fe9a6562c59 100644 --- a/test/built-ins/Array/prototype/slice/create-non-array.js +++ b/test/built-ins/Array/prototype/slice/create-non-array.js @@ -16,7 +16,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js index 1d9f80606d0ca617ae76d4312a89eeb2ad1697da..d1839760a147f0bed380201bfdd6588d4fd59fec 100644 --- a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js +++ b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js @@ -30,27 +30,27 @@ array["9007199254740991"] = "9007199254740991"; var proxy = new Proxy(array, { get(t, pk, r) { if (pk === "length") - return 2**53 + 2; + return 2 ** 53 + 2; return Reflect.get(t, pk, r); } }); var result = Array.prototype.slice.call(proxy, 9007199254740989); -assert.compareArray(result, [ "9007199254740989", "9007199254740990" ], - "slice(9007199254740989)"); +assert.compareArray(result, ["9007199254740989", "9007199254740990"], + "slice(9007199254740989)"); var result = Array.prototype.slice.call(proxy, 9007199254740989, 9007199254740990); -assert.compareArray(result, [ "9007199254740989" ], - "slice(9007199254740989, 9007199254740990)"); +assert.compareArray(result, ["9007199254740989"], + "slice(9007199254740989, 9007199254740990)"); var result = Array.prototype.slice.call(proxy, 9007199254740989, 9007199254740996); -assert.compareArray(result, [ "9007199254740989", "9007199254740990" ], - "slice(9007199254740989, 9007199254740996)"); +assert.compareArray(result, ["9007199254740989", "9007199254740990"], + "slice(9007199254740989, 9007199254740996)"); var result = Array.prototype.slice.call(proxy, -2); -assert.compareArray(result, [ "9007199254740989", "9007199254740990" ], - "slice(-2)"); +assert.compareArray(result, ["9007199254740989", "9007199254740990"], + "slice(-2)"); var result = Array.prototype.slice.call(proxy, -2, -1); -assert.compareArray(result, [ "9007199254740989" ], - "slice(-2, -1)"); +assert.compareArray(result, ["9007199254740989"], + "slice(-2, -1)"); diff --git a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js index 2fa32db97c8c09f7d2a98f313360d5869389ef11..d3b4292881ff576a3f145af3967e3ec4dcce13fc 100644 --- a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js +++ b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js @@ -23,25 +23,25 @@ var arrayLike = { "9007199254740989": "9007199254740989", "9007199254740990": "9007199254740990", "9007199254740991": "9007199254740991", - length: 2**53 + 2, + length: 2 ** 53 + 2, }; var result = Array.prototype.slice.call(arrayLike, 9007199254740989); -assert.compareArray(result, [ "9007199254740989", "9007199254740990" ], - "slice(9007199254740989)"); +assert.compareArray(result, ["9007199254740989", "9007199254740990"], + "slice(9007199254740989)"); var result = Array.prototype.slice.call(arrayLike, 9007199254740989, 9007199254740990); -assert.compareArray(result, [ "9007199254740989" ], - "slice(9007199254740989, 9007199254740990)"); +assert.compareArray(result, ["9007199254740989"], + "slice(9007199254740989, 9007199254740990)"); var result = Array.prototype.slice.call(arrayLike, 9007199254740989, 9007199254740996); -assert.compareArray(result, [ "9007199254740989", "9007199254740990" ], - "slice(9007199254740989, 9007199254740996)"); +assert.compareArray(result, ["9007199254740989", "9007199254740990"], + "slice(9007199254740989, 9007199254740996)"); var result = Array.prototype.slice.call(arrayLike, -2); -assert.compareArray(result, [ "9007199254740989", "9007199254740990" ], - "slice(-2)"); +assert.compareArray(result, ["9007199254740989", "9007199254740990"], + "slice(-2)"); var result = Array.prototype.slice.call(arrayLike, -2, -1); -assert.compareArray(result, [ "9007199254740989" ], - "slice(-2, -1)"); +assert.compareArray(result, ["9007199254740989"], + "slice(-2, -1)"); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js index 216ca2186fa954324d59cb6444ac8c16240b22f9..d4f780dfae611ed2bbbad8644ab7b06dc5fa87ee 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js @@ -9,5 +9,5 @@ description: Array.prototype.some applied to undefined throws a TypeError assert.throws(TypeError, function() { - Array.prototype.some.call(undefined); + Array.prototype.some.call(undefined); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js index 7c6c28469a0f36909cef68048acb1a2bf97f5327..b0bf38a18ca02a65717af9ff9c609f9be090430e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js @@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-10 description: Array.prototype.some applied to the Math object ---*/ - function callbackfn(val, idx, obj) { - return '[object Math]' === Object.prototype.toString.call(obj); - } +function callbackfn(val, idx, obj) { + return '[object Math]' === Object.prototype.toString.call(obj); +} - Math.length = 1; - Math[0] = 1; +Math.length = 1; +Math[0] = 1; assert(Array.prototype.some.call(Math, callbackfn), 'Array.prototype.some.call(Math, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js index 79081ad78d551b341c01f8f2e838b68ab9760fb4..d61f9594bea2358333ab93e5215ad548ff4ead44 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js @@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-11 description: Array.prototype.some applied to Date object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Date; - } +function callbackfn(val, idx, obj) { + return obj instanceof Date; +} - var obj = new Date(); - obj.length = 2; - obj[0] = 11; - obj[1] = 9; +var obj = new Date(); +obj.length = 2; +obj[0] = 11; +obj[1] = 9; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js index e34099ca7c5a1e48a08cd5370cd70da8ac87eaac..905cf427461a28c0f963f0d7028c059095f2507e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js @@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-12 description: Array.prototype.some applied to RegExp object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof RegExp; - } +function callbackfn(val, idx, obj) { + return obj instanceof RegExp; +} - var obj = new RegExp(); - obj.length = 2; - obj[0] = 11; - obj[1] = 9; +var obj = new RegExp(); +obj.length = 2; +obj[0] = 11; +obj[1] = 9; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js index 650afc630cbfb71c6e09f1e7b1ce5c5fe3ebbbc7..55105713d59c5eb428090a51867cc4fb2c945878 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js @@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-13 description: Array.prototype.some applied to the JSON object ---*/ - function callbackfn(val, idx, obj) { - return '[object JSON]' === Object.prototype.toString.call(obj); - } +function callbackfn(val, idx, obj) { + return '[object JSON]' === Object.prototype.toString.call(obj); +} - JSON.length = 1; - JSON[0] = 1; +JSON.length = 1; +JSON[0] = 1; assert(Array.prototype.some.call(JSON, callbackfn), 'Array.prototype.some.call(JSON, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js index 292ab95afbcfd49c285f65ceae09cb51851c489c..82182878460996715102c282c3bb0f106046ca30 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js @@ -7,12 +7,12 @@ es5id: 15.4.4.17-1-14 description: Array.prototype.some applied to Error object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Error; - } +function callbackfn(val, idx, obj) { + return obj instanceof Error; +} - var obj = new Error(); - obj.length = 1; - obj[0] = 1; +var obj = new Error(); +obj.length = 1; +obj[0] = 1; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js index d4622f376db7028b30ab913718e62dbe013cc8d4..27cfa61dbe9bb3416b74af2f928df64b467f3c0a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js @@ -7,12 +7,12 @@ es5id: 15.4.4.17-1-15 description: Array.prototype.some applied to the Arguments object ---*/ - function callbackfn(val, idx, obj) { - return '[object Arguments]' === Object.prototype.toString.call(obj); - } +function callbackfn(val, idx, obj) { + return '[object Arguments]' === Object.prototype.toString.call(obj); +} - var obj = (function () { - return arguments; - }("a", "b")); +var obj = (function() { + return arguments; +}("a", "b")); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js index bdcf9c45cd90c2479ff8a220137bc71e49de1680..abc12eef8d03770cd0aaac6c9bd4129b7491c991 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js @@ -9,5 +9,5 @@ description: Array.prototype.some applied to null throws a TypeError assert.throws(TypeError, function() { - Array.prototype.some.call(null); + Array.prototype.some.call(null); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js index 49c698f379eae9bd1ac0e44ff80827e8cfd51932..38edf932d97437e6b0502111fd446c783ec56373 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js @@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-3 description: Array.prototype.some applied to boolean primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Boolean; - } +function callbackfn(val, idx, obj) { + return obj instanceof Boolean; +} - Boolean.prototype[0] = 1; - Boolean.prototype.length = 1; +Boolean.prototype[0] = 1; +Boolean.prototype.length = 1; assert(Array.prototype.some.call(false, callbackfn), 'Array.prototype.some.call(false, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js index d17988608a8f4be3b22e88de9340d8c6d39f615c..e025ac0c295c9ebfe4d8b1b827af57c13e9c3512 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js @@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-4 description: Array.prototype.some applied to Boolean object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Boolean; - } +function callbackfn(val, idx, obj) { + return obj instanceof Boolean; +} - var obj = new Boolean(true); - obj.length = 2; - obj[0] = 11; - obj[1] = 9; +var obj = new Boolean(true); +obj.length = 2; +obj[0] = 11; +obj[1] = 9; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js index ce0483b517dbdc51f97a4c5ee007d2ba2d23bc79..827d030efd25aede348b1d3abf94f68e810d2ca7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js @@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-5 description: Array.prototype.some applied to number primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Number; - } +function callbackfn(val, idx, obj) { + return obj instanceof Number; +} - Number.prototype[1] = true; - Number.prototype.length = 2; +Number.prototype[1] = true; +Number.prototype.length = 2; assert(Array.prototype.some.call(5, callbackfn), 'Array.prototype.some.call(5, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js index a5c84bfe5992303bbb6ba025cb68e64be2a1c8ad..78791585ec11f6cb2a4f5f702c0c447b123076db 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js @@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-6 description: Array.prototype.some applied to Number object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Number; - } +function callbackfn(val, idx, obj) { + return obj instanceof Number; +} - var obj = new Number(-128); - obj.length = 2; - obj[0] = 11; - obj[1] = 9; +var obj = new Number(-128); +obj.length = 2; +obj[0] = 11; +obj[1] = 9; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js index c44c66dc3ebcbefe619f1505bafac369106d24d3..f69a384e39a94f05b00320c8c5e015159490feb9 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-1-7 description: Array.prototype.some applied to applied to string primitive ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof String; - } +function callbackfn(val, idx, obj) { + return obj instanceof String; +} assert(Array.prototype.some.call("hello\nw_orld\\!", callbackfn), 'Array.prototype.some.call("hello\nw_orld\\!", callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js index bbef0f62b1699f012d21046fda29900abe5e53b0..4a439b90ef809427758a96d059a1465624a969f9 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-1-8 description: Array.prototype.some applied to String object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof String; - } +function callbackfn(val, idx, obj) { + return obj instanceof String; +} - var obj = new String("hello\nw_orld\\!"); +var obj = new String("hello\nw_orld\\!"); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js index 3dd74e3021c15e924a2350d990ec425a42ca26c7..866d6f61b8577f693fc4112557483ecda6643cdd 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js @@ -7,14 +7,14 @@ es5id: 15.4.4.17-1-9 description: Array.prototype.some applied to Function object ---*/ - function callbackfn(val, idx, obj) { - return obj instanceof Function; - } +function callbackfn(val, idx, obj) { + return obj instanceof Function; +} - var obj = function (a, b) { - return a + b; - }; - obj[0] = 11; - obj[1] = 9; +var obj = function(a, b) { + return a + b; +}; +obj[0] = 11; +obj[1] = 9; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js index b8d3aec50d2da9b44fdad9e30d75926e71a17baf..aa8eeca34cd4fd9a5a00531ad12801ddcc3be7fe 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js @@ -9,20 +9,20 @@ description: > Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { - 0: 9, - 1: 11, - 2: 12, - length: 2 - }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js index 29409cea907fbe5d166eba9d89bf361b06b97daa..5a97e40fd9bf2efa67319e7ae28ec41af415992b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js @@ -9,30 +9,30 @@ description: > on an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } - - function callbackfn2(val, idx, obj) { - return val > 11; - } - - var proto = {}; - - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child[0] = 9; - child[1] = 11; - child[2] = 12; +function callbackfn1(val, idx, obj) { + return val > 10; +} + +function callbackfn2(val, idx, obj) { + return val > 11; +} + +var proto = {}; + +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js index 41b817a873f5e94cf63c704460c2379717f4945e..04062111969bf524b5c7917927a62c703ceac3d3 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js @@ -9,21 +9,21 @@ description: > without a get function on an Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js index df83ae028b60fb5d04607ee3445e022f9366a905..0f4f5077fd77f963147a3114e6bc127182652c23 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js @@ -10,25 +10,28 @@ description: > Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var obj = { 0: 11, 1: 12 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js index d16ce11487448768256a331dc0bef0574cc633fa..568c277050758c98e847c621c19b900101b312fb 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js @@ -9,25 +9,25 @@ description: > without a get function on an Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 11; - child[1] = 12; +var child = new Con(); +child[0] = 11; +child[1] = 12; assert.sameValue(Array.prototype.some.call(child, callbackfn), false, 'Array.prototype.some.call(child, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js index ce43f05a32457e224c44909117e5f4e2e696c85c..78ee06b3e77fdea79ff15bf52d8256ef761af94a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js @@ -9,14 +9,17 @@ description: > Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js index 67829327e3ff1f0d32a8d243bdcfcbf2f212bc4d..21eb5febacd93a91b36d2795e5d314a0c6be3ed2 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js @@ -9,18 +9,18 @@ description: > implements its own property get method ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var func = function (a, b) { - arguments[2] = 12; - return Array.prototype.some.call(arguments, callbackfn1) && - !Array.prototype.some.call(arguments, callbackfn2); - }; +var func = function(a, b) { + arguments[2] = 12; + return Array.prototype.some.call(arguments, callbackfn1) && + !Array.prototype.some.call(arguments, callbackfn2); +}; assert(func(9, 11), 'func(9, 11) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js index e640da588ec5fef02ee41c546a45b0fddd11a732..336a943e4ecb9247fdffd1e1e75aacd6ea686ed7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js @@ -9,17 +9,17 @@ description: > own property get method ---*/ - function callbackfn1(val, idx, obj) { - return parseInt(val, 10) > 1; - } +function callbackfn1(val, idx, obj) { + return parseInt(val, 10) > 1; +} - function callbackfn2(val, idx, obj) { - return parseInt(val, 10) > 2; - } +function callbackfn2(val, idx, obj) { + return parseInt(val, 10) > 2; +} - var str = new String("12"); +var str = new String("12"); - String.prototype[2] = "3"; +String.prototype[2] = "3"; assert(Array.prototype.some.call(str, callbackfn1), 'Array.prototype.some.call(str, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(str, callbackfn2), false, 'Array.prototype.some.call(str, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js index a299cbbc789c2faa021a77209c259a30c7037329..07c1ada28befd37909f5087924cc9b70d2aa8e65 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js @@ -9,20 +9,20 @@ description: > its own property get method ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var fun = function (a, b) { - return a + b; - }; - fun[0] = 9; - fun[1] = 11; - fun[2] = 12; +var fun = function(a, b) { + return a + b; +}; +fun[0] = 9; +fun[1] = 11; +fun[2] = 12; assert(Array.prototype.some.call(fun, callbackfn1), 'Array.prototype.some.call(fun, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(fun, callbackfn2), false, 'Array.prototype.some.call(fun, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js index e546927edb5c8e3086169823e4dc7f4eeacccc77..e8d870de6401448f415913f21890588deeb02397 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js @@ -7,15 +7,15 @@ es5id: 15.4.4.17-2-2 description: Array.prototype.some - 'length' is own data property on an Array ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - Array.prototype[2] = 12; +Array.prototype[2] = 12; assert([9, 11].some(callbackfn1), '[9, 11].some(callbackfn1) !== true'); assert.sameValue([9, 11].some(callbackfn2), false, '[9, 11].some(callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js index d2ef52b08bf32d9e5722e4b1cfb143a179d8c382..f663fb2742cf49989a8d0347e518514a5d807a03 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js @@ -9,24 +9,26 @@ description: > overrides an inherited data property on an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 9; - child[1] = 11; - child[2] = 12; +var child = new Con(); +child.length = 2; +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js index e3461b6b2b41f559c9e6c9f2e71f409062167be4..b966fb8c8bc283073a7c7ee3085d7d0cfb248db7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js @@ -9,18 +9,19 @@ description: > overrides an inherited data property on an array ---*/ - var arrProtoLen = 0; - function callbackfn1(val, idx, obj) { - return val > 10; - } +var arrProtoLen = 0; - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; - Array.prototype[2] = 12; +function callbackfn2(val, idx, obj) { + return val > 11; +} + +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; +Array.prototype[2] = 12; assert([9, 11].some(callbackfn1), '[9, 11].some(callbackfn1) !== true'); assert.sameValue([9, 11].some(callbackfn2), false, '[9, 11].some(callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js index af407300f304966e4d074cbb6d367d7d2fc9e300..6433283d2aa9ca0abcf4d5cd657d380d88299b11 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js @@ -9,35 +9,35 @@ description: > overrides an inherited accessor property on an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } - - function callbackfn2(val, idx, obj) { - return val > 11; - } - - var proto = {}; - - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - - child[0] = 9; - child[1] = 11; - child[2] = 12; +function callbackfn1(val, idx, obj) { + return val > 10; +} + +function callbackfn2(val, idx, obj) { + return val > 11; +} + +var proto = {}; + +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); + +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js index c559436e5008961d99e86f7ab5054f75d7ba33e0..2b322c6257f780ab6f946af8884b17b8619ad9b7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js @@ -9,23 +9,25 @@ description: > an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 9; - child[1] = 11; - child[2] = 12; +var child = new Con(); +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js index 2231966742135c7708d5472adc785d0ffd3a449c..0a3e4b4e68789a6e1501ab3719e05ae65afb6a6b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js @@ -9,26 +9,26 @@ description: > Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { }; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); - obj[0] = 9; - obj[1] = 11; - obj[2] = 12; +obj[0] = 9; +obj[1] = 11; +obj[2] = 12; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js index 4fd06784b12ea1aaa2f6331f3ed7873af6174c87..9e23a93810298ba37a72b7f40156af43a3c5da68 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js @@ -9,31 +9,33 @@ description: > overrides an inherited data property on an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 9; - child[1] = 11; - child[2] = 12; +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js index efd0405f07a3cf15f384ad9bb5c3333e6c400247..c670d9a8d53a61eb53370e169e25125cf90bb8f4 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js @@ -9,38 +9,38 @@ description: > overrides an inherited accessor property on an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } - - function callbackfn2(val, idx, obj) { - return val > 11; - } - - var proto = {}; - - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); - - child[0] = 9; - child[1] = 11; - child[2] = 12; +function callbackfn1(val, idx, obj) { + return val > 10; +} + +function callbackfn2(val, idx, obj) { + return val > 11; +} + +var proto = {}; + +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); + +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js index 75dd25133668e35efd07aa018bef573abdbdd1f7..8f93e82c576b5dd5267b136828ebb8d9521319ee 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-1 description: Array.prototype.some - value of 'length' is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: undefined }; +var obj = { + 0: 11, + length: undefined +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js index 042091cbff164121c19ac7af876b722bc7b93a75..ef0361216a74d00371a7a5cde16b009a4ba539e4 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-10 description: Array.prototype.some - value of 'length' is a number (value is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: NaN }; +var obj = { + 0: 11, + length: NaN +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js index 0c0dc91bdac8061b5c72568308017e31cefcdff0..fa9790642168a9904b5b360b63b65ba1968f30dc 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js @@ -9,15 +9,20 @@ description: > number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "2" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "2" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js index 5308096de933c8eb8e80d4933b9bc85da3a8591d..ac407faa9f680405779324dae38633a74ebfba5e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js @@ -9,15 +9,20 @@ description: > number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "-4294967294" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "-4294967294" +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js index 127405c68464a682769a1f32ad810817629179cd..dcaa0d724ffd42c4c534def56c550c2aac62b91e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js @@ -9,15 +9,20 @@ description: > number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "2.5" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "2.5" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js index ac471bf34d5e8f58edeb706db95f69b4e786a62f..77607bfcaf934c3932abb592d78292e52530860b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js @@ -7,16 +7,25 @@ es5id: 15.4.4.17-3-14 description: Array.prototype.some - 'length' is a string containing +/-Infinity ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var objOne = { 0: 11, length: "Infinity" }; - var objTwo = { 0: 11, length: "+Infinity" }; - var objThree = { 0: 11, length: "-Infinity" }; +var objOne = { + 0: 11, + length: "Infinity" +}; +var objTwo = { + 0: 11, + length: "+Infinity" +}; +var objThree = { + 0: 11, + length: "-Infinity" +}; assert(Array.prototype.some.call(objOne, callbackfn), 'Array.prototype.some.call(objOne, callbackfn) !== true'); assert(Array.prototype.some.call(objTwo, callbackfn), 'Array.prototype.some.call(objTwo, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js index 08a39ca38f8ea7f1d1c3ff3f4894fd0757c05888..a74c4bcebdf414aeae1ae17696bb7cb135b3dbab 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js @@ -9,15 +9,20 @@ description: > exponential number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "2E0" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "2E0" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js index 86173aca7800e75f14151353e3bdad43e3e3df65..057f06876502fb5f94d19cf1523bd3f0495a000d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js @@ -7,15 +7,20 @@ es5id: 15.4.4.17-3-16 description: Array.prototype.some - 'length' is a string containing a hex number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "0x0002" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "0x0002" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js index cf2759e88fec3f1c52a8bb46cd6671e6190bf2ea..857fa9a373ebd772b6bf85ce2ae03e3220600078 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js @@ -9,15 +9,20 @@ description: > with leading zeros ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "0002.00" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "0002.00" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js index a8924f21ff29ea7448a0aba479bdf08b279f56a6..13de82ccd07d0d8f90e78a1bfc279bb855bfcece 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js @@ -9,14 +9,18 @@ description: > convert to a number ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 21, length: "two" }; +var obj = { + 0: 11, + 1: 21, + length: "two" +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js index dddf8132dc8d6c646df57ac862e9a62159b0f71b..c8521e83c380504e40d9503154db28479bd31ed9 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js @@ -9,27 +9,27 @@ description: > own toString method ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var toStringAccessed = false; - var obj = { - 0: 9, - 1: 11, - 2: 12, +var toStringAccessed = false; +var obj = { + 0: 9, + 1: 11, + 2: 12, - length: { - toString: function () { - toStringAccessed = true; - return '2'; - } - } - }; + length: { + toString: function() { + toStringAccessed = true; + return '2'; + } + } +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js index 3b90cbdd1b01c4cf5e93658620f76f96b86dab28..2898ce5ae75ad76fc2396b856383adbb11c87e6e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js @@ -9,15 +9,19 @@ description: > (length overridden to true(type conversion)) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 11, 1: 12, length: true }; +var obj = { + 0: 11, + 1: 12, + length: true +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js index af023ef5e8f47dc32e42d8d17466844e948fe48d..9464bc45e2f37f5462f6b9aafab0289315eaa1ac 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js @@ -9,27 +9,27 @@ description: > own valueOf method ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var valueOfAccessed = false; +var valueOfAccessed = false; - var obj = { - 0: 9, - 1: 11, - 2: 12, - length: { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - } - }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: { + valueOf: function() { + valueOfAccessed = true; + return 2; + } + } +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js index cb1926df0506853630f59a2153eaadff544d5d23..c0d6aa9c8301057796882e62f21d47b006f716b7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js @@ -10,32 +10,32 @@ description: > returns a string ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var obj = { - 0: 9, - 1: 11, - 2: 12, - length: { - valueOf: function () { - valueOfAccessed = true; - return {}; - }, - toString: function () { - toStringAccessed = true; - return '2'; - } - } - }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: { + valueOf: function() { + valueOfAccessed = true; + return {}; + }, + toString: function() { + toStringAccessed = true; + return '2'; + } + } +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js index a166c39f733e12c039672a07a394cbd0061438bc..1dc3f2b006f38368b047e369993ab6204b8e86b5 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js @@ -10,32 +10,32 @@ description: > primitive values ---*/ - var callbackfnAccessed = false; - var toStringAccessed = false; - var valueOfAccessed = false; +var callbackfnAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - function callbackfn(val, idx, obj) { - callbackfnAccessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + callbackfnAccessed = true; + return val > 10; +} - var obj = { - 0: 11, - 1: 12, +var obj = { + 0: 11, + 1: 12, - length: { - valueOf: function () { - valueOfAccessed = true; - return {}; - }, - toString: function () { - toStringAccessed = true; - return {}; - } - } - }; + length: { + valueOf: function() { + valueOfAccessed = true; + return {}; + }, + toString: function() { + toStringAccessed = true; + return {}; + } + } +}; assert.throws(TypeError, function() { - Array.prototype.some.call(obj, callbackfn); + Array.prototype.some.call(obj, callbackfn); }); assert(toStringAccessed, 'toStringAccessed !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js index 29c6dfbbd5fc6d4bf1eab4b08d6b11f533c56bc2..ec119aec4826b9046e5c8b0adaf0ade249777711 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js @@ -9,40 +9,40 @@ description: > is an object with an own toString and inherited valueOf methods ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } - - function callbackfn2(val, idx, obj) { - return val > 11; - } - - var valueOfAccessed = false; - var toStringAccessed = false; - - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - - child.toString = function () { - toStringAccessed = true; - return '1'; - }; - - var obj = { - 0: 9, - 1: 11, - 2: 12, - length: child - }; +function callbackfn1(val, idx, obj) { + return val > 10; +} + +function callbackfn2(val, idx, obj) { + return val > 11; +} + +var valueOfAccessed = false; +var toStringAccessed = false; + +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +child.toString = function() { + toStringAccessed = true; + return '1'; +}; + +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: child +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js index fd95a3234c65369b5750a02cdc6d20a01d495811..562d7fdf153bec11c5261fd03b388ba6ae6f502c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js @@ -9,20 +9,20 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { - 0: 9, - 10: 11, - 11: 12, - length: 11.5 - }; +var obj = { + 0: 9, + 10: 11, + 11: 12, + length: 11.5 +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js index ef10bed26565425a0089018f0bac71d8454c4b25..e1916896b9ca74d7d3224673c43e45169ef2e3a6 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js @@ -7,20 +7,20 @@ es5id: 15.4.4.17-3-25 description: Array.prototype.some - value of 'length' is a negative non-integer ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { - 0: 9, - 1: 11, - 2: 12, - length: -4294967294.5 - }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: -4294967294.5 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js index 31d402e2d14d513e70746553580c02fa09f5221f..b47063417780cfd5825e3ce9b1266bc0f38022c0 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js @@ -7,17 +7,17 @@ es5id: 15.4.4.17-3-28 description: Array.prototype.some - value of 'length' is boundary value (2^32) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { - 0: 12, - length: 4294967296 - }; +var obj = { + 0: 12, + length: 4294967296 +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js index eeca40a0bd7d5857a24928d022a7a84b6dae2f00..132a0ec3b9ecdb0fe13693a80670e900ea0b6d1a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js @@ -9,19 +9,19 @@ description: > 1) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { - 0: 11, - 1: 12, - length: 4294967297 - }; +var obj = { + 0: 11, + 1: 12, + length: 4294967297 +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert(Array.prototype.some.call(obj, callbackfn2), 'Array.prototype.some.call(obj, callbackfn2) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js index 769953764031d6bef0440043e6191d783897cbb2..97637f6a7b3155c23f457bf6f21de0024f908fd0 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-3 description: Array.prototype.some - value of 'length' is a number (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: 0 }; +var obj = { + 0: 11, + length: 0 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js index cfcc27fc3062b74de20e210bd25be38866d58758..3a35aa14976cada80532df40fc1ef02aca036dc4 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-4 description: Array.prototype.some - value of 'length' is a number (value is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: +0 }; +var obj = { + 0: 11, + length: +0 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js index 27d31dea75b7cd91d355891b16983b387bc74494..2eddf9891a98f7393dd4be9c6b906b856cb78c17 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-5 description: Array.prototype.some - value of 'length' is a number (value is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: -0 }; +var obj = { + 0: 11, + length: -0 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js index 053e096a9830ca54cd33a566c266d7b594faa4f7..c53b2808f3f0df23d7d8046aa3d5b4e47427657d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js @@ -9,15 +9,20 @@ description: > positive) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: 2 }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js index 31de3aa25c00226887623abf01a1f0f34c4d49c8..fcfdbecf295d18670e84f851a0d9f4884007e120 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js @@ -9,15 +9,20 @@ description: > negative) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: -4294967294 }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: -4294967294 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js index f5496a481ff095b6282b2a19e4756cc9539ff55b..6946b1899b5fdca9f2effcae888bace5498b07c4 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js @@ -9,14 +9,17 @@ description: > Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: Infinity }; +var obj = { + 0: 11, + length: Infinity +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js index c65f458c0d0bd1fb7a4b59bed62f7ad05d4b8ce9..c0b2c5c15f5e02d7d7bdf7716297975b3bd62b06 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js @@ -9,14 +9,17 @@ description: > -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: -Infinity }; +var obj = { + 0: 11, + length: -Infinity +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js index 9ff74cac0aab426a0949630e375dec6177ebf902..30976864ef597972ab9dba10f23c24e29585b5d1 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-1 description: Array.prototype.some throws TypeError if callbackfn is undefined ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.some(); + arr.some(); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js index 345f1474c3055f4226fd0f407775d421d256f5d0..3300ce53214a57f15d440988b41cd1a510a29a24 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.some.call(obj, undefined); + Array.prototype.some.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js index 0eec6e6c39ed95f67db8cfd930f565cafd4a2467..d0c7e6a74d5c91f13d6c23d5cee0b0509de9ac81 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.some.call(obj, undefined); + Array.prototype.some.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js index a7d7c1f7071c5fe228b1d0edfa75a81e7ac818f1..156090da39395b0da0d4dd2140c545bd174f91a2 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-4-12 description: Array.prototype.some - 'callbackfn' is a function ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} assert([9, 11].some(callbackfn), '[9, 11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js index ef372ed699d43e90ee75c7ccdc7be0e519f65a91..c46be1588f62650c8c2337e0f0489a645cdd5c59 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js @@ -9,26 +9,26 @@ description: > passing undefined for callbackfn ---*/ - var obj = { }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = {}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.some.call(obj); + Array.prototype.some.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js index 8d200ecceb5c37bd1d81031d0973e5bd8fc49fa3..260caee75cfb78c46039dded1f4711f64dc858dc 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js @@ -9,7 +9,7 @@ description: > unreferenced ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(ReferenceError, function() { - arr.some(foo); + arr.some(foo); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js index 79c8e45fdfda159bc9a65cce6a92dcf7c26ab3a3..74b4e4acc7a66db193f188b296f4a390f90a2f47 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js @@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-3 description: Array.prototype.some throws TypeError if callbackfn is null ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.some(null); + arr.some(null); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js index 9530cb7816d3911eaff0c7165e56b7fc70f0bce5..ef357be26719a6cef208f64fb9cce1e1d556893d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js @@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-4 description: Array.prototype.some throws TypeError if callbackfn is boolean ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.some(true); + arr.some(true); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js index ac6df1f87aabeb586297432c0bd3f9d9f297b580..7a281a2295512c79041e9915b0de2ce9ed295ad7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js @@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-5 description: Array.prototype.some throws TypeError if callbackfn is number ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.some(5); + arr.some(5); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js index 530cfb4e1b185ad4bbba3d73a23a85400168852b..7339b3cc4fc84e0c9c47b4610330abccae6109a3 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js @@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-6 description: Array.prototype.some throws TypeError if callbackfn is string ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.some("abc"); + arr.some("abc"); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js index be4508eeb62643cb8773fde1601a013b0641ca6f..06105fd1eb8eb3a62c6b0edf441cca20d020125c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js @@ -9,7 +9,7 @@ description: > without a Call internal method ---*/ - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.some(new Object()); + arr.some(new Object()); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js index ea4f929348c6bc2695d26ed681b2613171fc72ac..4735534bd559040996defae6551b78be2060f7b5 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js @@ -9,18 +9,21 @@ description: > when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.some.call(obj, null); + Array.prototype.some.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js index ba37bfec5dcfa0ba25abd27f969142161e323877..7e777335911eed93ff7c84e77b09953a777d3946 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js @@ -9,22 +9,25 @@ description: > when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.some.call(obj, null); + Array.prototype.some.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js index 737db1039b98d665a19ecd716e2b41e8c370a595..f94bc04c65b6cbe1eb9551c753245fcb0dff4e69 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js @@ -8,14 +8,14 @@ description: Array.prototype.some - thisArg not passed to strict callbackfn flags: [noStrict] ---*/ - var innerThisCorrect = false; +var innerThisCorrect = false; - function callbackfn(val, idx, obj) { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } +function callbackfn(val, idx, obj) { + "use strict"; + innerThisCorrect = this === undefined; + return true; +} - [1].some(callbackfn); +[1].some(callbackfn); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js index bbbac58dbfc2f0d17f64253ace2378a63996dd4f..9effb1bb12c1b239f81662e84278ecb70f187b2c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js @@ -9,13 +9,13 @@ flags: [noStrict] ---*/ (function() { - this._15_4_4_17_5_1 = false; - var _15_4_4_17_5_1 = true; + this._15_4_4_17_5_1 = false; + var _15_4_4_17_5_1 = true; - function callbackfn(val, idx, obj) { - return this._15_4_4_17_5_1; - } - var arr = [1]; + function callbackfn(val, idx, obj) { + return this._15_4_4_17_5_1; + } + var arr = [1]; -assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); + assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); })(); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js index b30a41be92659fda8bc59df7d514248da93a2260..7b9f0b960e0d385b500e7b052f7bdf4232b06d22 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-10 description: Array.prototype.some - Array Object can be used as thisArg ---*/ - var objArray = []; +var objArray = []; - function callbackfn(val, idx, obj) { - return this === objArray; - } +function callbackfn(val, idx, obj) { + return this === objArray; +} assert([11].some(callbackfn, objArray), '[11].some(callbackfn, objArray) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js index 03e69a4aeb614b9b128bc99777ed7b24d978cc94..19c1305d5216cebedec69fd5bbd5aa2a6eaad3c2 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-11 description: Array.prototype.some - String object can be used as thisArg ---*/ - var objString = new String(); +var objString = new String(); - function callbackfn(val, idx, obj) { - return this === objString; - } +function callbackfn(val, idx, obj) { + return this === objString; +} assert([11].some(callbackfn, objString), '[11].some(callbackfn, objString) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js index 79f3e73ee5773eb239eea8c25685769b29da5d23..7f908ab7f16d9ba5e2d7fd81709c8ad00d2db2ea 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-12 description: Array.prototype.some - Boolean object can be used as thisArg ---*/ - var objBoolean = new Boolean(); +var objBoolean = new Boolean(); - function callbackfn(val, idx, obj) { - return this === objBoolean; - } +function callbackfn(val, idx, obj) { + return this === objBoolean; +} assert([11].some(callbackfn, objBoolean), '[11].some(callbackfn, objBoolean) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js index ec80e4d63fc21e21e0f94d4507393929ed8025aa..d5d94de657dca08e98c47993031e5dd18f008add 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-13 description: Array.prototype.some - Number object can be used as thisArg ---*/ - var objNumber = new Number(); +var objNumber = new Number(); - function callbackfn(val, idx, obj) { - return this === objNumber; - } +function callbackfn(val, idx, obj) { + return this === objNumber; +} assert([11].some(callbackfn, objNumber), '[11].some(callbackfn, objNumber) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js index 41ce9be978875cad4802841d8c5ed942e7ade386..93e4deb575c3a833d8d7d2ca46cce872c6b7f702 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-14 description: Array.prototype.some - the Math object can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this === Math; - } +function callbackfn(val, idx, obj) { + return this === Math; +} assert([11].some(callbackfn, Math), '[11].some(callbackfn, Math) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js index 9bca4cb95e9c4a85f16208eb5a6cbe059c146bdd..145681226660e1baf666df1bb8b1c57fc9b126f8 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-15 description: Array.prototype.some - Date object can be used as thisArg ---*/ - var objDate = new Date(); +var objDate = new Date(); - function callbackfn(val, idx, obj) { - return this === objDate; - } +function callbackfn(val, idx, obj) { + return this === objDate; +} assert([11].some(callbackfn, objDate), '[11].some(callbackfn, objDate) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js index 122b6abf640972b4406bd5cbeca52fafd9e956da..e9a56f636b41c4eaeabc771ef35e3f5e87a895b0 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-16 description: Array.prototype.some - RegExp object can be used as thisArg ---*/ - var objRegExp = new RegExp(); +var objRegExp = new RegExp(); - function callbackfn(val, idx, obj) { - return this === objRegExp; - } +function callbackfn(val, idx, obj) { + return this === objRegExp; +} assert([11].some(callbackfn, objRegExp), '[11].some(callbackfn, objRegExp) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js index 344f84d9eceb915618562477a4bc97537fc60563..27ec167f4c93dd1bf06ba12d799afa7dc98ec251 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-17 description: Array.prototype.some - the JSON object can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this === JSON; - } +function callbackfn(val, idx, obj) { + return this === JSON; +} assert([11].some(callbackfn, JSON), '[11].some(callbackfn, JSON) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js index 5d6a3dccde8d149f824379a971f729f34cc0143e..338b3c0dd44790b873e11e64f8f4d47c6662f6c4 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-18 description: Array.prototype.some - Error object can be used as thisArg ---*/ - var objError = new RangeError(); +var objError = new RangeError(); - function callbackfn(val, idx, obj) { - return this === objError; - } +function callbackfn(val, idx, obj) { + return this === objError; +} assert([11].some(callbackfn, objError), '[11].some(callbackfn, objError) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js index 6e702f470c18f667eab6e65ab47d8eb67d36b06b..03815a02d2832e926834f2bb1da9f33e714173cc 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js @@ -7,14 +7,14 @@ es5id: 15.4.4.17-5-19 description: Array.prototype.some - the Arguments object can be used as thisArg ---*/ - var arg; +var arg; - function callbackfn(val, idx, obj) { - return this === arg; - } +function callbackfn(val, idx, obj) { + return this === arg; +} - (function fun() { - arg = arguments; - }(1, 2, 3)); +(function fun() { + arg = arguments; +}(1, 2, 3)); assert([11].some(callbackfn, arg), '[11].some(callbackfn, arg) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js index 76776201d49f4368039bbaab2f86a38c497dc083..e0142b343aa284a4ef65ee2412ac4797f6e9cda8 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js @@ -7,14 +7,15 @@ es5id: 15.4.4.17-5-2 description: Array.prototype.some - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var o = new Object(); +o.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var arr = [1]; assert.sameValue(arr.some(callbackfn, o), true, 'arr.some(callbackfn, o)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js index 974c7f0e8d02c11ef161b79171d895cf08afffd1..e80fe9b22e05da77037f4d188d5590466ff035e7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js @@ -8,8 +8,9 @@ description: Array.prototype.some - the global object can be used as thisArg ---*/ var global = this; - function callbackfn(val, idx, obj) { - return this === global; - } + +function callbackfn(val, idx, obj) { + return this === global; +} assert([11].some(callbackfn, this), '[11].some(callbackfn, global) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js index e61e97a4aeb0eb255515ae22fc33980adffcf21d..44809831212d72e58d68715594890af2b3c3e6b8 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-22 description: Array.prototype.some - boolean primitive can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === false; +} assert([11].some(callbackfn, false), '[11].some(callbackfn, false) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js index 3ded5ff2597167b71ed4ed5072c2cbb02b4a8434..a5f030fafe2a6af20426efd04b798dedc62c3641 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-23 description: Array.prototype.some - number primitive can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === 101; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === 101; +} assert([11].some(callbackfn, 101), '[11].some(callbackfn, 101) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js index 5daa055f1194bcbc8203c94a237c967ba4245146..a1d268d09bc5abe07e489a39df8aa66fb797d075 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-24 description: Array.prototype.some - string primitive can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === "abc"; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === "abc"; +} assert([11].some(callbackfn, "abc"), '[11].some(callbackfn, "abc") !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js index a20dcd8ad527b8ec79124f020de092fbc46caf74..2c7c60a5a496f7fd05afcc28486a42db7de57754 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js @@ -8,15 +8,15 @@ description: Array.prototype.some - thisArg not passed flags: [noStrict] ---*/ - function innerObj() { - this._15_4_4_17_5_25 = true; - var _15_4_4_17_5_25 = false; +function innerObj() { + this._15_4_4_17_5_25 = true; + var _15_4_4_17_5_25 = false; - function callbackfn(val, idx, obj) { - return this._15_4_4_17_5_25; - } - var arr = [1]; - this.retVal = !arr.some(callbackfn); - } + function callbackfn(val, idx, obj) { + return this._15_4_4_17_5_25; + } + var arr = [1]; + this.retVal = !arr.some(callbackfn); +} assert(new innerObj().retVal, 'new innerObj().retVal !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js index 69a2180ccc244ff7bb81b174189a8d6ddc57e923..6e5d2f245e99a92a8c0c9890784d653215e1d1af 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js @@ -7,14 +7,15 @@ es5id: 15.4.4.17-5-3 description: Array.prototype.some - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var a = new Array(); +a.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var arr = [1]; assert.sameValue(arr.some(callbackfn, a), true, 'arr.some(callbackfn, a)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js index 95351bc9abbfc2042a7bdfd548b92664ae1ffc79..32e813992a7db524794ec73f2728ca8f263e4555 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js @@ -9,15 +9,16 @@ description: > template(prototype) ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.prototype.res = true; - var f = new foo(); - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)'); +function foo() {} +foo.prototype.res = true; +var f = new foo(); +var arr = [1]; + +assert.sameValue(arr.some(callbackfn, f), true, 'arr.some(callbackfn,f)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js index 3831816431def7d91bfa493daac51cff4c773bed..6b946e865a79c04ee49e56bd87c2756f41ef0a1d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js @@ -7,15 +7,16 @@ es5id: 15.4.4.17-5-5 description: Array.prototype.some - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)'); +function foo() {} +var f = new foo(); +f.res = true; +var arr = [1]; + +assert.sameValue(arr.some(callbackfn, f), true, 'arr.some(callbackfn,f)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js index f7213225c0d0f7c4285ade5e032db4c120a6fb73..e0d0749176bf6a0ddc5eb1e816d9135195493cce 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js @@ -7,14 +7,15 @@ es5id: 15.4.4.17-5-6 description: Array.prototype.some - thisArg is function ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.some(callbackfn,foo), true, 'arr.some(callbackfn,foo)'); +function foo() {} +foo.res = true; +var arr = [1]; + +assert.sameValue(arr.some(callbackfn, foo), true, 'arr.some(callbackfn,foo)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js index f4198a8b0624927665606295dde3135405bc3a18..ae6c1fd3d644bad1608a79bae3aff151815a5ee6 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-7 description: Array.prototype.some - built-in functions can be used as thisArg ---*/ - function callbackfn(val, idx, obj) { - return this === eval; - } +function callbackfn(val, idx, obj) { + return this === eval; +} assert([11].some(callbackfn, eval), '[11].some(callbackfn, eval) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js index 501906bf9a1e11aaff42d4ec2252f476a522ec34..155ab3fd2af8a3746d678ae14f503f4a627d2fb3 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js @@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-9 description: Array.prototype.some - Function Object can be used as thisArg ---*/ - var objFunction = function () { }; +var objFunction = function() {}; - function callbackfn(val, idx, obj) { - return this === objFunction; - } +function callbackfn(val, idx, obj) { + return this === objFunction; +} assert([11].some(callbackfn, objFunction), '[11].some(callbackfn, objFunction) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js index 5935681cbcffc904e230f5f6e366e6ad0cd40573..081c7a7889b1d154714941248dd55e6e4267b82f 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js @@ -9,19 +9,19 @@ description: > it is called ---*/ - var calledForThree = false; +var calledForThree = false; - function callbackfn(val, idx, obj) - { - arr[2] = 3; - if(val !== 3) - calledForThree = true; +function callbackfn(val, idx, obj) +{ + arr[2] = 3; + if (val !== 3) + calledForThree = true; - return false; - } + return false; +} - var arr = [1,2,,4,5]; +var arr = [1, 2, , 4, 5]; - var val = arr.some(callbackfn); +var val = arr.some(callbackfn); assert(calledForThree, 'calledForThree !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js index 8429933e0878e3a666bd89a009f6547f0b6a3d90..117aeb73863635c18e3a98f2700dde20c8c01632 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js @@ -9,16 +9,16 @@ description: > after it is called ---*/ - function callbackfn(val, idx, obj) - { - arr[4] = 6; - if(val < 6) - return false; - else - return true; - } +function callbackfn(val, idx, obj) +{ + arr[4] = 6; + if (val < 6) + return false; + else + return true; +} - var arr = [1,2,3,4,5]; +var arr = [1, 2, 3, 4, 5]; assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js index d27cbb211ce40bcd5f5d5953b16e0c5e9635d0f7..8b193f9333d1b77de426653dfd573973ba50eddc 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js @@ -9,16 +9,16 @@ description: > it is called ---*/ - function callbackfn(val, idx, obj) - { - delete arr[2]; - if(val !== 3) - return false; - else - return true; - } +function callbackfn(val, idx, obj) +{ + delete arr[2]; + if (val !== 3) + return false; + else + return true; +} - var arr = [1,2,3,4,5]; +var arr = [1, 2, 3, 4, 5]; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js index 5b060256f559f8141bb8af53e039338345da2872..7d683efcf8999de34535e3624c47549765c4f42a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js @@ -9,16 +9,16 @@ description: > Array.length is decreased ---*/ - function callbackfn(val, idx, obj) - { - arr.length = 3; - if(val < 4) - return false; - else - return true; - } +function callbackfn(val, idx, obj) +{ + arr.length = 3; + if (val < 4) + return false; + else + return true; +} - var arr = [1,2,3,4,6]; +var arr = [1, 2, 3, 4, 6]; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js index 89a9a1770e746f77bc2a4d6b12a36e8a8438b4b4..19fbb07fc599be50a665dba320bea929cd7d2129 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js @@ -9,18 +9,18 @@ description: > sparse array ---*/ - function callbackfn(val, idx, obj) - { - arr[1000] = 5; - if(val < 5) - return false; - else - return true; - } +function callbackfn(val, idx, obj) +{ + arr[1000] = 5; + if (val < 5) + return false; + else + return true; +} - var arr = new Array(10); - arr[1] = 1; - arr[2] = 2; +var arr = new Array(10); +arr[1] = 1; +arr[2] = 2; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js index e8da5fae68cf56d2e96f2566b21756d07fb34e24..a5f38a483bfd4d863b75f61a99123510806e7997 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js @@ -9,20 +9,20 @@ description: > call when same index is also present in prototype ---*/ - function callbackfn(val, idx, obj) - { - delete arr[4]; - if(val < 5) - return false; - else - return true; - } +function callbackfn(val, idx, obj) +{ + delete arr[4]; + if (val < 5) + return false; + else + return true; +} - Array.prototype[4] = 5; - var arr = [1,2,3,4,5]; +Array.prototype[4] = 5; +var arr = [1, 2, 3, 4, 5]; - var res = arr.some(callbackfn) ; - delete Array.prototype[4]; +var res = arr.some(callbackfn); +delete Array.prototype[4]; assert.sameValue(res, true, 'res'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js index e257955c9cbcf5650f72cbdea76b5ffed2c901b7..2712e0c85bd455a6713c8036e61469c894137a1b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js @@ -7,14 +7,18 @@ es5id: 15.4.4.17-7-8 description: Array.prototype.some - no observable effects occur if length is 0 ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 12, length: 0 }; +var obj = { + 0: 11, + 1: 12, + length: 0 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js index 312351df044d679fe493179c352fa2eb29e83a51..d07c519b087a1662f9c07930f509dc835226f43e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js @@ -9,22 +9,26 @@ description: > of iterations ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val > 10; - } +function callbackfn(val, idx, obj) { + called++; + return val > 10; +} - var obj = { 0: 9, 2: 12, length: 3 }; +var obj = { + 0: 9, + 2: 12, + length: 3 +}; - Object.defineProperty(obj, "1", { - get: function () { - obj.length = 2; - return 8; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + obj.length = 2; + return 8; + }, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); assert.sameValue(called, 3, 'called'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js index 997bac9825d765bdb9ddfcadc7a1db1b25b9bee8..b6b52b0996fb1ad9940c8635047f666aba23cc94 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js @@ -9,15 +9,16 @@ description: > been assigned values ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return false; - } +var callCnt = 0; - var arr = new Array(10); - arr[1] = undefined; - arr.some(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; + return false; +} + +var arr = new Array(10); +arr[1] = undefined; +arr.some(callbackfn); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js index acddf79b869a40f42073f4fe2df101a7cc51525b..008b55632cb7634c89974fd598342dcf6efd422d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js @@ -9,22 +9,26 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 1; - } - var arr = { 2: 2, length: 20 }; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 1; +} +var arr = { + 2: 2, + length: 20 +}; - Object.prototype[1] = 1; +Object.defineProperty(arr, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); + +Object.prototype[1] = 1; assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js index e7f1170a9e4439274d289683cdfddc9b95ce7636..3e457ac48ed7a3c8ac4e026ab53cdd9b76b329c9 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js @@ -9,22 +9,23 @@ description: > prototype index property not to be visited on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 1; - } - var arr = [0, , 2]; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 1; +} +var arr = [0, , 2]; - Array.prototype[1] = 1; +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); + +Array.prototype[1] = 1; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js index e575c9fd6dc07f697af67c7e6bddf8610c044a94..2eeb1e90c19ce4fdfd612de3cfd8910d5591c46a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js @@ -10,23 +10,28 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return true; - } else { - return false; - } - } - var arr = { 0: 0, 1: 111, 2: 2, length: 10 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return true; + } else { + return false; + } +} +var arr = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js index 4f1afb3af38c4fa0b0a42b398cde4bfc4a5a25ef..c15b1fade7625680ecc1eed32383db57cc76f6a7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js @@ -9,23 +9,23 @@ description: > property causes prototype index property to be visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return true; - } else { - return false; - } - } - var arr = [0, 111, 2]; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return true; + } else { + return false; + } +} +var arr = [0, 111, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Array.prototype[1] = 1; +Array.prototype[1] = 1; assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js index db0bf87e45aa7f022dd24023fae15fe9e41da43c..ebcb32a5652f37c7d7d9389b9c563753b58202c5 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js @@ -9,20 +9,21 @@ description: > property not to be visited ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 3; - } - var arr = [0, 1, 2, "last"]; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 3; +} +var arr = [0, 1, 2, "last"]; + +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js index 7c46475047177f3af9f36b73d4406432192cbdbd..69f8f9a6c0ddcd8c2b6bc014f6fcf873b04d74b9 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js @@ -9,28 +9,28 @@ description: > property causes prototype index property to be visited ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "prototype") { - return true; - } else { - return false; - } - } - var arr = [0, 1, 2]; +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "prototype") { + return true; + } else { + return false; + } +} +var arr = [0, 1, 2]; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "prototype"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "prototype"; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js index 21fb924b0813247f46efd8fed2498891f78844ec..86c3b3c000ff8a41707de54964bd5c4e884bd6e2 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js @@ -10,29 +10,29 @@ description: > flags: [noStrict] ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "unconfigurable") { - return true; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "unconfigurable") { + return true; + } else { + return false; + } +} - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(arr, "2", { - get: function () { - return "unconfigurable"; - }, - configurable: false - }); +Object.defineProperty(arr, "2", { + get: function() { + return "unconfigurable"; + }, + configurable: false +}); - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 1; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 1; + }, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js index e1dedd411646e3c267ca46ad5f374804640dbb95..abf9b78b9852a3a4157eebc7e9ea9e6b8a0392ab 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js @@ -7,22 +7,22 @@ es5id: 15.4.4.17-7-b-2 description: Array.prototype.some - added properties in step 2 are visible here ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2 && val === "length") { - return true; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 2 && val === "length") { + return true; + } else { + return false; + } +} - var arr = { }; +var arr = {}; - Object.defineProperty(arr, "length", { - get: function () { - arr[2] = "length"; - return 3; - }, - configurable: true - }); +Object.defineProperty(arr, "length", { + get: function() { + arr[2] = "length"; + return 3; + }, + configurable: true +}); assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js index fa54b0595c7319a1b0c86a8392901a49f7714eaa..2193d2469ba3c61dcfb229e8a2b5f8ff7743a80b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js @@ -9,20 +9,24 @@ description: > here ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 2; - } - var arr = { 2: 6.99, 8: 19}; +var accessed = false; - Object.defineProperty(arr, "length", { - get: function () { - delete arr[2]; - return 10; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 2; +} +var arr = { + 2: 6.99, + 8: 19 +}; + +Object.defineProperty(arr, "length", { + get: function() { + delete arr[2]; + return 10; + }, + configurable: true +}); assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js index 2f3a8122ddd586ba8b5b1168d081a2d724139265..8b02ca3362342998b9755d71a1adeaa33def759a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js @@ -9,27 +9,29 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return true; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return true; + } else { + return false; + } +} - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js index c808200a94f8a79b44284a121288097dbd037a3e..ab0a8e637efd1f32c7df0f824e9b8a3d11fc3436 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js @@ -9,27 +9,27 @@ description: > current position are visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return true; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return true; + } else { + return false; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js index b57354dc52c3b39e411b45740d3320b690b3238d..804282bc152baf12bfe7a1c866fd52790fed7ffd 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js @@ -9,26 +9,28 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return true; - } else { - return false; - } - } - var arr = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return true; + } else { + return false; + } +} +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js index 5dd76771beaf9d2942cabd887b0a35be626bc2d1..921e832ae0f80b41019b8066258869d4e47ab8fd 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js @@ -9,26 +9,26 @@ description: > current position are visited on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return true; - } else { - return false; - } - } - var arr = [0, , 2]; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return true; + } else { + return false; + } +} +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js index b99ca81540089a0b366762e034c1936e6dc39d96..0ec7f33936d5de4a76ac400dcc2544f1c4e3c86e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js @@ -9,27 +9,30 @@ description: > not to be visited on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 1; - } - var arr = { length: 2 }; +var accessed = false; - Object.defineProperty(arr, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 1; +} +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js index 389a129ad55c5726f80fcefb3f46fc8cc562066e..42272384d677b6c6baf3c8dbac04e0d86fdc786d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js @@ -9,27 +9,28 @@ description: > not to be visited on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 1; - } - var arr = [1, 2]; +var accessed = false; - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 1; +} +var arr = [1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js index 7d22a36d5fc26c7c1ef0afcbd053b72e04da9afd..4f4115e5874780ffadf27dd95721fe4dac974084 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js @@ -9,15 +9,18 @@ description: > property on an Array-like object ---*/ - var kValue = {}; +var kValue = {}; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var obj = { 5: kValue, length: 100 }; +var obj = { + 5: kValue, + length: 100 +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js index 32488b4883cd7d58b62ffbc1d186a38ba8e73d86..85226cf16c9f8389dc1c3844238fc4e7694e50bc 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js @@ -9,22 +9,22 @@ description: > property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 10) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 10) { + return val === kValue; + } + return false; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "10", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(arr, "10", { + get: function() { + return kValue; + }, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js index bbd62f9dcb37537b183fae8ed0d40bf4da09dc66..f0c2c4a1501d9076a6fd9b519457f44c5b62e202 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js @@ -10,28 +10,30 @@ description: > Array-like object ---*/ - var kValue = "abc"; - - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === kValue; - } - return false; - } - - var proto = { 1: 6 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 10; - - Object.defineProperty(child, "1", { - get: function () { - return kValue; - }, - configurable: true - }); +var kValue = "abc"; + +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === kValue; + } + return false; +} + +var proto = { + 1: 6 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 10; + +Object.defineProperty(child, "1", { + get: function() { + return kValue; + }, + configurable: true +}); assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js index 94c83d5545730557934afa24273fb6c28745ff4a..753d317a6d6827d01bb9791f9754f6a5688e9979 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js @@ -9,23 +9,23 @@ description: > property that overrides an inherited data property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === kValue; + } + return false; +} - var arr = []; +var arr = []; - Array.prototype[1] = 100; - Object.defineProperty(arr, "1", { - get: function () { - return kValue; - }, - configurable: true - }); +Array.prototype[1] = 100; +Object.defineProperty(arr, "1", { + get: function() { + return kValue; + }, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js index 329d300014c61ef742e99a75c18b9bd3af72a201..e358b560c7ba52159a31ab2137d93b6b3c412c56 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js @@ -10,36 +10,36 @@ description: > Array-like object ---*/ - var kValue = "abc"; - - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === kValue; - } - return false; - } - - var proto = {}; - - Object.defineProperty(proto, "1", { - get: function () { - return 5; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 10; - - Object.defineProperty(child, "1", { - get: function () { - return kValue; - }, - configurable: true - }); +var kValue = "abc"; + +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === kValue; + } + return false; +} + +var proto = {}; + +Object.defineProperty(proto, "1", { + get: function() { + return 5; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 10; + +Object.defineProperty(child, "1", { + get: function() { + return kValue; + }, + configurable: true +}); assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js index b96e60a53560f3f7f9c92f189b42034c2cce058c..bdb2d85ab3fef9988ffcd5a46f5dbbc6128a4223 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js @@ -9,28 +9,28 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === kValue; + } + return false; +} - var arr = []; - Object.defineProperty(arr, "1", { - get: function () { - return kValue; - }, - configurable: true - }); +var arr = []; +Object.defineProperty(arr, "1", { + get: function() { + return kValue; + }, + configurable: true +}); - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 10; + }, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js index 7f862aaad3a58538d8a96608761ddcaeaee816de..f357611b9b890a23c92b3b907161ae8e333a5823 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js @@ -9,28 +9,28 @@ description: > accessor property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === kValue; + } + return false; +} - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "1", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(proto, "1", { + get: function() { + return kValue; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 20; +var child = new Con(); +child.length = 20; assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js index ee3cf2adb0214c7feb51eae01cbdc82534d07904..f610a757ffc39d72a8913006b36df27fd5fd6a7a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js @@ -9,20 +9,20 @@ description: > accessor property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === kValue; + } + return false; +} - Object.defineProperty(Array.prototype, "1", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "1", { + get: function() { + return kValue; + }, + configurable: true +}); assert([, , ].some(callbackfn), '[, , ].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js index b4113bdbcd49e4864a922cd13bebf1f591727912..f3206fd63b6f9c093e12eb429c48be37806aa7ab 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js @@ -9,17 +9,19 @@ description: > property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js index 41742e98153b88cd319585384b19054a1935ccd9..55f64f688a222447b09e1196ae1c65c3dcd15373 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js @@ -9,18 +9,18 @@ description: > property without a get function on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return typeof val === "undefined"; + } + return false; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js index 7d45a552381bc323afd3ba000e82b5e9477cec05..859dc4022822e32b896d20ba9056ce2e44dbbbdc 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js @@ -10,19 +10,21 @@ description: > accessor property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - Object.prototype[1] = 10; +Object.prototype[1] = 10; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js index cd3c2ced7294a480acf793c990a011bda152ad3e..543d15db458b7ebcc2bd621b01a630aabb82f1fc 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js @@ -9,13 +9,13 @@ description: > property on an Array ---*/ - var kValue = {}; +var kValue = {}; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return kValue === val; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return kValue === val; + } + return false; +} assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js index 320cb9899c3bd4ae08bb77bd48335e3d915e37e9..d39314005b88df9f2b158e9277cc46f79d39a7e0 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js @@ -10,20 +10,20 @@ description: > accessor property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return typeof val === "undefined"; + } + return false; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); - Array.prototype[0] = 100; +Array.prototype[0] = 100; assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js index 18fc2abe15a4711aedbef1bc21e3590415f7fd7f..3365018fc60048a0c06b3f4890d70fb8aa67e03e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js @@ -9,23 +9,23 @@ description: > accessor property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var proto = {}; - Object.defineProperty(proto, "1", { - set: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "1", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; +var child = new Con(); +child.length = 2; assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js index a6086840bc41840468cffca2d2c36e33da9961de..5635c65aaae5a1775e2fba6f27d08dbc8e8b2fc8 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js @@ -9,16 +9,16 @@ description: > accessor property without a get function on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return typeof val === "undefined"; + } + return false; +} - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); assert([, ].some(callbackfn), '[, ].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js index 87a76dd0be33203d461ed29685dc0cfcabb9fcb6..fe7a12aad89bb77d0d5999c41fbd4de384286ff3 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js @@ -10,15 +10,15 @@ description: > less than number of parameters) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } + return false; +} - var func = function (a, b) { - return Array.prototype.some.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.some.call(arguments, callbackfn); +}; assert(func(11), 'func(11) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js index 626c4fec9421d80f03a54e228c04a2136e08ed7b..8a0dd4b0ff1b67a722cbd77d9d55c0b08899c73c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js @@ -10,24 +10,24 @@ description: > number of parameters) ---*/ - var firstResult = false; - var secondResult = false; +var firstResult = false; +var secondResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - firstResult = (val === 11); - return false; - } else if (idx === 1) { - secondResult = (val === 9); - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + firstResult = (val === 11); + return false; + } else if (idx === 1) { + secondResult = (val === 9); + return false; + } else { + return true; + } +} - var func = function (a, b) { - return Array.prototype.some.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.some.call(arguments, callbackfn); +}; assert.sameValue(func(11, 9), false, 'func(11, 9)'); assert(firstResult, 'firstResult !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js index de0a66b2510f900da2eaf39c2126ca488cd3c7d2..f54a10f05b496f35e235c78a74f53ad00c635090 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js @@ -10,28 +10,28 @@ description: > greater than number of parameters) ---*/ - var firstResult = false; - var secondResult = false; - var thirdResult = false; +var firstResult = false; +var secondResult = false; +var thirdResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - firstResult = (val === 11); - return false; - } else if (idx === 1) { - secondResult = (val === 12); - return false; - } else if (idx === 2) { - thirdResult = (val === 9); - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + firstResult = (val === 11); + return false; + } else if (idx === 1) { + secondResult = (val === 12); + return false; + } else if (idx === 2) { + thirdResult = (val === 9); + return false; + } else { + return true; + } +} - var func = function (a, b) { - return Array.prototype.some.call(arguments, callbackfn); - }; +var func = function(a, b) { + return Array.prototype.some.call(arguments, callbackfn); +}; assert.sameValue(func(11, 12, 9), false, 'func(11, 12, 9)'); assert(firstResult, 'firstResult !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js index da8a40f1e501e1e4d0d52deeed6df7b0b6222561..8e423c615531093fa7ff32273906bf4581c98a0d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js @@ -9,32 +9,32 @@ description: > iterations is observed on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === 12; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === 12; + } + return false; +} - var arr = []; - var helpVerifyVar = 11; +var arr = []; +var helpVerifyVar = 11; - Object.defineProperty(arr, "1", { - get: function () { - return helpVerifyVar; - }, - set: function (args) { - helpVerifyVar = args; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return helpVerifyVar; + }, + set: function(args) { + helpVerifyVar = args; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - arr[1] = 12; - return 9; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + arr[1] = 12; + return 9; + }, + configurable: true +}); assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js index 416660ba05872d1e49bf42d54fba14365048072f..ac802b11281d2b1137dace38beb4d000d408f19c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js @@ -9,32 +9,34 @@ description: > iterations on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === 12; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === 12; + } + return false; +} - var obj = { length: 2 }; - var helpVerifyVar = 11; +var obj = { + length: 2 +}; +var helpVerifyVar = 11; - Object.defineProperty(obj, "1", { - get: function () { - return helpVerifyVar; - }, - set: function (args) { - helpVerifyVar = args; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return helpVerifyVar; + }, + set: function(args) { + helpVerifyVar = args; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - obj[1] = 12; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + obj[1] = 12; + return 11; + }, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js index e9b625ee73610516ed81cd1dbf3f01125b6a0aa4..05523157621eb5c468d91d3777a7ea24c7827d05 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js @@ -10,22 +10,24 @@ description: > Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var proto = { 5: 100 }; +var proto = { + 5: 100 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = kValue; - child.length = 10; +var child = new Con(); +child[5] = kValue; +child.length = 10; assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js index 9803d3576129f5ccec1b1f78cf9fa51af8a2e672..4ce67a0b6ca9770c0556444b2ca35be934086646 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js @@ -9,22 +9,25 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var obj = { length: 20 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} + +var obj = { + length: 20 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.some.call(obj, callbackfn); + Array.prototype.some.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js index 5fe12afb7a29aa6c28bf1a60895a54e37156b235..9d9cc00c1c12610dad99a2ac50447b444ffc3caa 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js @@ -9,23 +9,24 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - return true; - } +var accessed = false; - var arr = []; - arr[10] = 100; - Object.defineProperty(arr, "0", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + return true; +} + +var arr = []; +arr[10] = 100; +Object.defineProperty(arr, "0", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.some(callbackfn); + arr.some(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js index 8312a515b628652dc51649da9ac19688e474a23a..64dd495a9b136b60d9366a5b9b256258b367d050 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js @@ -9,15 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - Array.prototype[0] = 11; +Array.prototype[0] = 11; assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js index 5d2c92a761196c359d30680fb25bbaee68445f93..d8fcfaf35a454860223809c9856b149dae24eb51 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js @@ -10,32 +10,32 @@ description: > Array-like object ---*/ - var kValue = 1000; - - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } - - var proto = {}; - - Object.defineProperty(proto, "0", { - get: function () { - return 5; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 2; - Object.defineProperty(child, "0", { - value: kValue, - configurable: true - }); +var kValue = 1000; + +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} + +var proto = {}; + +Object.defineProperty(proto, "0", { + get: function() { + return 5; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 2; +Object.defineProperty(child, "0", { + value: kValue, + configurable: true +}); assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js index 19eece56543fe66d2b54ccd500e3a0057cf3f706..ef5da14095a31070fda9b814a52619d30c42b7a6 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js @@ -9,20 +9,20 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var kValue = 1000; +var kValue = 1000; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 9; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 9; + }, + configurable: true +}); assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js index fe4c1e892d76b6f501d13a277315cc9b6a3e4fed..f346f92524eb7d999ade0455aa2cacd0dbfd7855 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js @@ -9,21 +9,23 @@ description: > property on an Array-like object ---*/ - var kValue = 'abc'; +var kValue = 'abc'; - function callbackfn(val, idx, obj) { - if (5 === idx) { - return kValue === val; - } - return false; - } +function callbackfn(val, idx, obj) { + if (5 === idx) { + return kValue === val; + } + return false; +} - var proto = { 5: kValue }; +var proto = { + 5: kValue +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js index 7fdcc881618a7d51b6b05b072f846af01cd608a1..fb71d4fc7e87b9b1d4872b28b5d3a39055e68744 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js @@ -9,15 +9,15 @@ description: > property on an Array ---*/ - var kValue = {}; +var kValue = {}; - function callbackfn(val, idx, obj) { - if (0 === idx) { - return kValue === val; - } - return false; - } +function callbackfn(val, idx, obj) { + if (0 === idx) { + return kValue === val; + } + return false; +} - Array.prototype[0] = kValue; +Array.prototype[0] = kValue; assert([, ].some(callbackfn), '[, ].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js index fe3819ddddab38646cb01b5105a4d1d044bcb4e9..2081432745deb79174f13eedf40a35d2918e2407 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js @@ -9,22 +9,24 @@ description: > property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 10) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 10) { + return val === kValue; + } + return false; +} - var obj = { length: 20 }; +var obj = { + length: 20 +}; - Object.defineProperty(obj, "10", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(obj, "10", { + get: function() { + return kValue; + }, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js index 5d83fff70b70f0ed481785374de10e4a2f58b4a4..c865faae21b71a5b3ba7f202665b8a16ec7900e3 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js @@ -7,15 +7,15 @@ es5id: 15.4.4.17-7-c-ii-1 description: Array.prototype.some - callbackfn called with correct parameters ---*/ - function callbackfn(val, idx, obj) - { - if(obj[idx] === val) - return false; - else - return true; - } +function callbackfn(val, idx, obj) +{ + if (obj[idx] === val) + return false; + else + return true; +} - var arr = [0,1,2,3,4,5,6,7,8,9]; +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js index b7bbd6e847b560524a4290e8420d0aa03dd9aee6..13301777baa6d14ae1e7212da50a5b242b79c1a6 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-10 description: Array.prototype.some - callbackfn is called with 1 formal parameter ---*/ - function callbackfn(val) { - return val > 10; - } +function callbackfn(val) { + return val > 10; +} assert([11, 12].some(callbackfn), '[11, 12].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js index c67f1645279ab940cf4a927f67bb65aaf6bef369..3bf00f445a5ab16b3254b57959f51a9a85331fac 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-11 description: Array.prototype.some - callbackfn is called with 2 formal parameter ---*/ - function callbackfn(val, idx) { - return val > 10 && arguments[2][idx] === val; - } +function callbackfn(val, idx) { + return val > 10 && arguments[2][idx] === val; +} assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js index 9fcb899c65763d0779da0612b2591629f7826d1d..a892afde5915c9500ec07209497622a008efe88d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-12 description: Array.prototype.some - callbackfn is called with 3 formal parameter ---*/ - function callbackfn(val, idx, obj) { - return val > 10 && obj[idx] === val; - } +function callbackfn(val, idx, obj) { + return val > 10 && obj[idx] === val; +} assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js index 6d61b65b619b099e8af33d2fabb13ade1bca6f88..6917e26355054bf5afbf141f0e232aefd620bb31 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js @@ -9,8 +9,8 @@ description: > get parameter value ---*/ - function callbackfn() { - return arguments[2][arguments[1]] === arguments[0]; - } +function callbackfn() { + return arguments[2][arguments[1]] === arguments[0]; +} assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js index c1f58e55a1201a95785f7e6a26cf597163976015..d6fb5d60bc8d59c562e4a51f47653b4d212bcc5c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js @@ -9,10 +9,13 @@ description: > when 'T' is not an object ('T' is a boolean primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === false; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; assert(Array.prototype.some.call(obj, callbackfn, false), 'Array.prototype.some.call(obj, callbackfn, false) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js index 85a7f5b2ef9f071d1db6fa550cde3821561b6bb9..198346eb6e390c270cf560d7a9be7f9c19c7d3a5 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js @@ -9,10 +9,13 @@ description: > when T is not an object (T is a number primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === 5; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === 5; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; assert(Array.prototype.some.call(obj, callbackfn, 5), 'Array.prototype.some.call(obj, callbackfn, 5) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js index e8edeec0258acb7f0514dfca9389e274ca98adbe..9498f8079c17dfd28cfe6a00103186953e2540b5 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js @@ -9,10 +9,14 @@ description: > when T is not an object (T is a string primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === "hello!"; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === "hello!"; +} - var obj = { 0: 11, 1: 9, length: 2 }; +var obj = { + 0: 11, + 1: 9, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn, "hello!"), 'Array.prototype.some.call(obj, callbackfn, "hello!") !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js index 2e8a6f2130415b72b7e2910750a03dcda485b418..4d0063e47b755af44e52d7ab60216068931b6156 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js @@ -7,14 +7,19 @@ es5id: 15.4.4.17-7-c-ii-19 description: Array.prototype.some - non-indexed properties are not called ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val === 11; - } +function callbackfn(val, idx, obj) { + called++; + return val === 11; +} - var obj = { 0: 9, 10: 8, non_index_property: 11, length: 20 }; +var obj = { + 0: 9, + 10: 8, + non_index_property: 11, + length: 20 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js index 0546acaa13b02c1b2f626919519c46ff0e61eab3..be738c154f5049fcab3f3f8d6b6f63af2b4ca86f 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js @@ -7,16 +7,16 @@ es5id: 15.4.4.17-7-c-ii-2 description: Array.prototype.some - callbackfn takes 3 arguments ---*/ - function callbackfn(val, idx, obj) - { - if(arguments.length === 3) //verify if callbackfn was called with 3 parameters - return false; - else - return true; - } +function callbackfn(val, idx, obj) +{ + if (arguments.length === 3) //verify if callbackfn was called with 3 parameters + return false; + else + return true; +} - var arr = [0,1,true,null,new Object(),"five"]; - arr[999999] = -6.6; +var arr = [0, 1, true, null, new Object(), "five"]; +arr[999999] = -6.6; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js index 342f98b380122e4972f3748c78a803e824eb1d80..899fb2efb7e75e75e0449aa79249df7591538ac1 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js @@ -9,12 +9,17 @@ description: > (thisArg is correct) ---*/ - var thisArg = { threshold: 10 }; +var thisArg = { + threshold: 10 +}; - function callbackfn(val, idx, obj) { - return this === thisArg; - } +function callbackfn(val, idx, obj) { + return this === thisArg; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn, thisArg), 'Array.prototype.some.call(obj, callbackfn, thisArg) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js index 2e95550123526b8337e73c075abdd97d77789084..31d3af3b033120c70cd8edcabaede53eab6fed5c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js @@ -9,21 +9,25 @@ description: > (kValue is correct) ---*/ - var firstIndex = false; - var secondIndex = false; +var firstIndex = false; +var secondIndex = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - firstIndex = (val === 11); - return false; - } - if (idx === 1) { - secondIndex = (val === 12); - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + firstIndex = (val === 11); + return false; + } + if (idx === 1) { + secondIndex = (val === 12); + return false; + } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(firstIndex, 'firstIndex !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js index 00f6a963c1be4743fe0d9d956e9903087e530b19..e01efeac2bdd5c042699336ec5838fa993e94cd9 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js @@ -9,21 +9,25 @@ description: > (the index k is correct) ---*/ - var firstIndex = false; - var secondIndex = false; +var firstIndex = false; +var secondIndex = false; - function callbackfn(val, idx, obj) { - if (val === 11) { - firstIndex = (idx === 0); - return false; - } - if (val === 12) { - secondIndex = (idx === 1); - return false; - } - } +function callbackfn(val, idx, obj) { + if (val === 11) { + firstIndex = (idx === 0); + return false; + } + if (val === 12) { + secondIndex = (idx === 1); + return false; + } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(firstIndex, 'firstIndex !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js index b5baef3173af46490dea4483fc06fc83e0955414..58c4b0ef2c8aae1009e9911d9fd49c15e2e90468 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js @@ -9,10 +9,14 @@ description: > (this object O is correct) ---*/ - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - return obj === o; - } +function callbackfn(val, idx, o) { + return obj === o; +} assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js index 8e784584d6e6d89569ad766b52510279a2c297dc..fb0265b5e2a19101e2418385e88fd832d5dbde64 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js @@ -9,17 +9,18 @@ description: > returns true ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - if(idx > 5) - return true; - else - return false; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; +function callbackfn(val, idx, obj) +{ + callCnt++; + if (idx > 5) + return true; + else + return false; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js index c9c277ef3a4c21167907d656bd503c2f3769da8a..8642acfdbc851633606f9b29982a073f03aa54fd 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js @@ -9,19 +9,19 @@ description: > order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - return true; - } else { - lastIdx++; - return false; - } - } +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + return true; + } else { + lastIdx++; + return false; + } +} assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); assert.sameValue(arr.length, called, 'arr.length'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js index bfac0f46811c403736163711ce39f8422cb30c66..5b80ddcded9450e83b4423d7d87ffacc87ee756f 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js @@ -9,21 +9,21 @@ description: > and not prior to starting the loop ---*/ - var kIndex = []; +var kIndex = []; - //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. - function callbackfn(val, idx, obj) { - //Each position should be visited one time, which means k is accessed one time during iterations. - if (typeof kIndex[idx] === "undefined") { - //when current position is visited, its previous index should has been visited. - if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { - return true; - } - kIndex[idx] = 1; - return false; - } else { - return true; - } - } +//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time. +function callbackfn(val, idx, obj) { + //Each position should be visited one time, which means k is accessed one time during iterations. + if (typeof kIndex[idx] === "undefined") { + //when current position is visited, its previous index should has been visited. + if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") { + return true; + } + kIndex[idx] = 1; + return false; + } else { + return true; + } +} assert.sameValue([11, 12, 13, 14].some(callbackfn, undefined), false, '[11, 12, 13, 14].some(callbackfn, undefined)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js index 8700b391a5af2628d4caad463818122cf1f1ec06..f67b3e415cb837e8b15e6b7650162af0622e262c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js @@ -7,11 +7,14 @@ es5id: 15.4.4.17-7-c-ii-6 description: Array.prototype.some - arguments to callbackfn are self consistent ---*/ - var obj = { 0: 11, length: 1 }; - var thisArg = {}; +var obj = { + 0: 11, + length: 1 +}; +var thisArg = {}; - function callbackfn() { - return this === thisArg && arguments[0] === 11 && arguments[1] === 0 && arguments[2] === obj; - } +function callbackfn() { + return this === thisArg && arguments[0] === 11 && arguments[1] === 0 && arguments[2] === obj; +} assert(Array.prototype.some.call(obj, callbackfn, thisArg), 'Array.prototype.some.call(obj, callbackfn, thisArg) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js index a8742d69f251e3a1548e67d8a97012b2005e49ec..ff362211be57637ae825f747134ecded3073cebe 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js @@ -9,20 +9,25 @@ description: > terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } + return false; +} - var obj = { 0: 9, 1: 100, 10: 11, length: 20 }; +var obj = { + 0: 9, + 1: 100, + 10: 11, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.some.call(obj, callbackfn); + Array.prototype.some.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js index 9c926f28a9c3e1764eb802e22a5c8db34b5dc9ba..451d0b3d378c72e643ed016b18b89a87e7521821 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js @@ -9,13 +9,17 @@ description: > iterations is observed ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - obj[idx + 1] = 11; - } - return val > 10; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + obj[idx + 1] = 11; + } + return val > 10; +} - var obj = { 0: 9, 1: 8, length: 2 }; +var obj = { + 0: 9, + 1: 8, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js index a49cd35a6a0a53bfe5eefb1182760a312e3e40bd..b9c6c8eda9a6672201456260fa91e7376e293562 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-9 description: Array.prototype.some - callbackfn is called with 0 formal parameter ---*/ - function callbackfn() { - return true; - } +function callbackfn() { + return true; +} assert([11, 12].some(callbackfn), '[11, 12].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js index 5acfb38bf3655eaac17a3593e25814abe6a1bcc1..4e2074291e98b241ebf51909baa2d64bd5c91372 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-7-c-iii-1 description: Array.prototype.some - return value of callbackfn is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return undefined; - } +function callbackfn(val, idx, obj) { + accessed = true; + return undefined; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js index 0b26acd258d9e7cde5e242c8595295c559e50112..d561708440fbfde228524b01a115011f952307c6 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js @@ -9,8 +9,8 @@ description: > (value is Infinity) ---*/ - function callbackfn(val, idx, obj) { - return Infinity; - } +function callbackfn(val, idx, obj) { + return Infinity; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js index e17e0f6ff5c2c61d07bd2ae5c827c41c36560956..1defdc292cef79d5f8cd7ad08fdc24270bc16785 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js @@ -9,8 +9,8 @@ description: > (value is -Infinity) ---*/ - function callbackfn(val, idx, obj) { - return -Infinity; - } +function callbackfn(val, idx, obj) { + return -Infinity; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js index 1eaab0e8aa23dbc9c9e0ffb825077bd3105f5cf1..adfd8efbf5cc34471387d6ced223d84f7f874464 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js @@ -9,11 +9,11 @@ description: > (value is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return NaN; - } +function callbackfn(val, idx, obj) { + accessed = true; + return NaN; +} assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js index 5690c14b484aa7e84d86568b8fceb35fe98db2a9..2e20fa5ba0b984e68bace1fbbdbe935b5393b6c5 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js @@ -9,12 +9,12 @@ description: > string ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return ""; - } +function callbackfn(val, idx, obj) { + accessed = true; + return ""; +} assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js index c0776e90f2b610888c71c91f4afe80dcab4ff286..a15cbed88ad321a1ec9eced74199303001eae9e2 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js @@ -9,8 +9,8 @@ description: > string ---*/ - function callbackfn(val, idx, obj) { - return "non-empty string"; - } +function callbackfn(val, idx, obj) { + return "non-empty string"; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js index 37974b816e7dcb02f471d4c81157c18ad566b6f9..1de47b0a3e1781defb779a3b5a5731cf9e03f139 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return function () { }; - } +function callbackfn(val, idx, obj) { + return function() {}; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js index dc3c10f8977aa539c2a52a1d90bf3d6785e88a50..f0b7db75d4c926cc78048f9b302ff1a22bdfc6f4 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new Array(10); - } +function callbackfn(val, idx, obj) { + return new Array(10); +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js index ba9188b146e982498ce10c91fa86b554ef6351d8..a2be9ec374edddec4ec5df8b979b7e8f7da2234d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new String(); - } +function callbackfn(val, idx, obj) { + return new String(); +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js index 871b4a2171d891fd5ba03a2b45bd2676ca77939f..7d273f4ec4f319eed31141c0be2e43bc5b9d3902 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new Boolean(); - } +function callbackfn(val, idx, obj) { + return new Boolean(); +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js index 0c71f548678b327ac0826ef48dfa22bfec27687c..a87205ead301adf6773e537a508f710750f1d752 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new Number(); - } +function callbackfn(val, idx, obj) { + return new Number(); +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js index 19318e4b67f8bc8ad0c1719d78db03e4794b4273..b52aff5276a93155db0cf4c14f1985fe6ddb7c28 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-7-c-iii-2 description: Array.prototype.some - return value of callbackfn is null ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return null; - } +function callbackfn(val, idx, obj) { + accessed = true; + return null; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js index 481f06fc785eeb716a7e3c9526fa446ec68a43c0..2911f87bcb77d6db3daa2e19b7aec308a700bc98 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return Math; - } +function callbackfn(val, idx, obj) { + return Math; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js index 04a02a0da6c98fddc3d823e906debd0e35a32bf1..068cd5d0da50a5a50cc708099a2a9e5d9e37a138 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js @@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-iii-21 description: Array.prototype.some - return value of callbackfn is a Date object ---*/ - function callbackfn(val, idx, obj) { - return new Date(); - } +function callbackfn(val, idx, obj) { + return new Date(); +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js index 706a94dad871fa9a12178a9935e52c0b1571617d..b71d8463581a289d29e79477190b025d4433f742 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new RegExp(); - } +function callbackfn(val, idx, obj) { + return new RegExp(); +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js index d90675753010f37a7781d122eac10a1d3dbebb20..c0316a94b412d2bf9919734c597aa02332a51303 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return JSON; - } +function callbackfn(val, idx, obj) { + return JSON; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js index 55f76e23dca9bb974aeedfa9793b51b1f6debcc5..f8ff2dc7f4921f11d85f2640b73da3675cfbc362 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return new EvalError(); - } +function callbackfn(val, idx, obj) { + return new EvalError(); +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js index b3aaf63669abacf0a75795cab0fc5e2020bbd441..f0237397dbf317e40968adfaaf58ad4ee53c5129 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js @@ -9,8 +9,8 @@ description: > object ---*/ - function callbackfn(val, idx, obj) { - return arguments; - } +function callbackfn(val, idx, obj) { + return arguments; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js index e8119a33dcf2be6b0b3450a46e9ff96bcd6f502d..d96e7e78346ccb93a3d7d31ff391b8b0c0e9b6c3 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js @@ -10,8 +10,9 @@ description: > ---*/ var global = this; - function callbackfn(val, idx, obj) { - return global; - } + +function callbackfn(val, idx, obj) { + return global; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js index 3206596514013c21aa4c0ff45c525027defa71d8..e971d690dd559698ec44326c3650c8bfc7537ef8 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js @@ -7,37 +7,40 @@ es5id: 15.4.4.17-7-c-iii-28 description: Array.prototype.some - true prevents further side effects ---*/ - var result = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - result = true; - } - return val > 10; - } - - var obj = { length: 20 }; - - Object.defineProperty(obj, "0", { - get: function () { - return 8; - }, - configurable: true - }); - - Object.defineProperty(obj, "1", { - get: function () { - return 11; - }, - configurable: true - }); - - Object.defineProperty(obj, "2", { - get: function () { - result = true; - return 11; - }, - configurable: true - }); +var result = false; + +function callbackfn(val, idx, obj) { + if (idx > 1) { + result = true; + } + return val > 10; +} + +var obj = { + length: 20 +}; + +Object.defineProperty(obj, "0", { + get: function() { + return 8; + }, + configurable: true +}); + +Object.defineProperty(obj, "1", { + get: function() { + return 11; + }, + configurable: true +}); + +Object.defineProperty(obj, "2", { + get: function() { + result = true; + return 11; + }, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); assert.sameValue(result, false, 'result'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js index cb3c75c0d0ac22746f6d3c9feb9732f94ce38d4d..d0d8b0cdeaf1cfc1f52abb86f0596df8059fda16 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js @@ -9,8 +9,8 @@ description: > callbackfn is treated as true value ---*/ - function callbackfn() { - return new Boolean(false); - } +function callbackfn() { + return new Boolean(false); +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js index b5c6ee0eeb2a6a632877f024cf84326a8a4815b7..ab3d088db463b2eee67752c86aa721ef67145d76 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js @@ -9,14 +9,17 @@ description: > (value is false) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return false; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js index ff056a32595005ee87e6b64e18617f128e2143fd..9b885029ceb1167434def902bc78a4f68174c9f2 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js @@ -9,10 +9,13 @@ description: > (value is true) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js index 6b0b20e3d5611df0237f63aa55781986509671d5..f67054b66aae0de7220825fa93df79110f46fd5a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js @@ -9,12 +9,12 @@ description: > (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return 0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return 0; +} assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js index f54c2e9a7898b2d5b181d7135cde044689353ae9..af669942452f68ce8181aad3181ab961fa1da66b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js @@ -9,12 +9,12 @@ description: > (value is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return +0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return +0; +} assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js index eae2d4fcbadebc1039b6d0b0e2f69a0970b66231..ddb2d1df61e23f32e5240c160bbe9bfbdb555b31 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js @@ -9,12 +9,12 @@ description: > (value is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return -0; - } +function callbackfn(val, idx, obj) { + accessed = true; + return -0; +} assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js index a5fc01f223e0fb2fa87de01f481ed36e5708ada6..ce913320012ab292430ef2425c0163733c12fb55 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js @@ -9,8 +9,8 @@ description: > (value is positive number) ---*/ - function callbackfn(val, idx, obj) { - return 5; - } +function callbackfn(val, idx, obj) { + return 5; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js index 2d966cbd0232aa1ef618742b266f168fbc01bf36..3f389202c62f7c9a49cd37c1838ebe4ff56cd8ef 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js @@ -9,8 +9,8 @@ description: > (value is negative number) ---*/ - function callbackfn(val, idx, obj) { - return -5; - } +function callbackfn(val, idx, obj) { + return -5; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js index 0546141f505017bc34fe40123dbd0363935d13f7..d37fa7cb254c27e38ecf0f92fb3815ce023d68b5 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js @@ -7,7 +7,7 @@ es5id: 15.4.4.17-8-1 description: Array.prototype.some returns false if 'length' is 0 (empty array) ---*/ - function cb(){} - var i = [].some(cb); +function cb() {} +var i = [].some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js index d3da6def0dc4fd548a5d93f2d17f9226c54b475c..bb8b38ba1e4fc0867c8c341b3657d534e3a6d494 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js @@ -7,19 +7,20 @@ es5id: 15.4.4.17-8-10 description: Array.prototype.some - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 2; +foo.prototype = new Array(1, 2, 3); - function cb(val) - { - if(val > 2) - return true; - else - return false; - } - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = 2; + +function cb(val) +{ + if (val > 2) + return true; + else + return false; +} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js index 8d5f1a786ce6c3007b84f96e97a78eea6122121b..c5914d1a6d8e10f280419636c4543eaa22f889ed 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js @@ -9,14 +9,15 @@ description: > return false ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return false; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; +function callbackfn(val, idx, obj) +{ + callCnt++; + return false; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js index 5912e36c429bdba9c2ab9c847ce050e7be24d11a..0ba4ed10fb0d5b591cf9c0c7ffde81a13fd0f93b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js @@ -9,12 +9,12 @@ description: > called on ---*/ - function callbackfn(val, idx, obj) - { - return true; - } - var arr = [1,2,3,4,5]; - arr.some(callbackfn); +function callbackfn(val, idx, obj) +{ + return true; +} +var arr = [1, 2, 3, 4, 5]; +arr.some(callbackfn); assert.sameValue(arr[0], 1, 'arr[0]'); assert.sameValue(arr[1], 2, 'arr[1]'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js index 7ef5af8be4c49a81044258003d392fcd74e2ad1d..863317f9847dd0d280a329227208b649bf3445bb 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js @@ -7,16 +7,17 @@ es5id: 15.4.4.17-8-13 description: Array.prototype.some doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return false; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; - arr["i"] = 10; - arr[true] = 11; +function callbackfn(val, idx, obj) +{ + callCnt++; + return false; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +arr["i"] = 10; +arr[true] = 11; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js index da760e89458aa1330469842001003be72451bfc7..90ab6cb602f9dbe78080c87028f34a21461f3dc8 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js @@ -9,13 +9,14 @@ description: > Array, length overridden to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js index f35fe21966c272842b30ab83f427bb2378c77861..efe0afb0c0ca60a2d08aea442d9564567d7540c3 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js @@ -9,13 +9,14 @@ description: > Array, length overridden to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js index 5b6d7153e1a4c7721d13bbe89f6fb74217bff220..32bfde408049478e3d1cb1e4ac5dc174f372071f 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js @@ -9,13 +9,14 @@ description: > Array, length overridden to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js index e66aa4802984b391628bdc9e90a39669026e0c8d..1e2fe9b3bfd3fae45e83540bad55321b22602c43 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js @@ -9,13 +9,14 @@ description: > Array, length overridden to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js index 5607fad05ca75a7dc2e0a41fdb599a19ce4acf27..546c43f500fd36d732fe61cf4c6a26790433f025 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js @@ -9,15 +9,20 @@ description: > Array, length overridden with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} - var i = f.some(cb); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js index c483ee3d6e36fbd316e6bd58b4a4e480332f3e56..1b4d757c00c24188370f55ee3c01b6ef659665af 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js @@ -9,21 +9,26 @@ description: > Array, length overridden with obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} - var i = f.some(cb); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js index 14dd2908f98ac17372025e83cb1eadb24990cc78..1365c1fafb33fdee75e744de742b78de36782ba2 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js @@ -9,28 +9,29 @@ description: > Array, length overridden with [] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - - f.length = []; - - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - - function cb(){} - var i = f.some(cb); +foo.prototype = new Array(1, 2, 3); + +function foo() {} +var f = new foo(); + +f.length = []; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js index 4dbefaaf61026c511e4a1f5f70b63661921a0951..b4321097875b125e706d48109de9229b90ed7b0d 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js @@ -11,7 +11,7 @@ es5id: 15.4.4.11_A1.2_T2 description: If comparefn is not undefined ---*/ -var myComparefn = function(x,y) { +var myComparefn = function(x, y) { if (x === undefined) return -1; if (y === undefined) return 1; return 0; diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js index 2a141dba519ac4671d7aa6b1d954c01cd882928e..0f6a2735713a62b46ba6031bd8dd398d95b02e26 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js @@ -10,7 +10,7 @@ es5id: 15.4.4.11_A1.4_T2 description: If comparefn is not undefined ---*/ -var myComparefn = function(x,y) { +var myComparefn = function(x, y) { if (x === undefined) return -1; if (y === undefined) return 1; return 0; diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js index 334aa6263e9ba2600f1c619fa2e9fb755f07ae8c..321b6f63ff58964b0a6591bd5fc2f0964ae6e7b3 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js @@ -8,7 +8,7 @@ es5id: 15.4.4.11_A1.5_T1 description: Checking sort() and sort(undefined) ---*/ -var x = new Array(1,0); +var x = new Array(1, 0); x.sort(); //CHECK#1 @@ -26,7 +26,7 @@ if (x[1] !== 1) { $ERROR('#3: var x = new Array(1,0); x.sort(); x[1] === 1. Actual: ' + (x[1])); } -var x = new Array(1,0); +var x = new Array(1, 0); x.sort(undefined); //CHECK#4 diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js index 336bcadfffac072642ca6f1ea708dd8927b58d50..044858b0ab1be21eeed3a4df4c532e767775d12d 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js @@ -12,7 +12,7 @@ description: Checking RUSSIAN ALPHABET ---*/ var alphabetR = ["ё", "я", "ю", "э", "ь", "ы", "ъ", "щ", "ш", "ч", "ц", "х", "ф", "у", "т", "с", "р", "П", "О", "Н", "М", "Л", "К", "Й", "И", "З", "Ж", "Е", "Д", "Г", "В", "Б", "А"]; -var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"]; +var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"]; //CHECK#1 alphabetR.sort(); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js index de262fd3ca3cbf6f3e82b20b4798f3de9acc66c7..c2bfb061552ec82cc93584bdd22efcf21e89fbbf 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js @@ -11,9 +11,16 @@ es5id: 15.4.4.11_A2.1_T3 description: Checking ToString operator ---*/ -var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; +var obj = { + valueOf: function() { + return 1 + }, + toString: function() { + return -2 + } +}; var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity]; -var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined]; +var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined]; //CHECK#1 alphabetR.sort(); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js index 537e1be33d1ffda3db256bae80242b9d941b038d..771eba4c84e406c208dfa5a7c5d370a67cdc0691 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js @@ -9,9 +9,9 @@ description: Checking ENGLISH ALPHABET ---*/ var alphabetR = ["z", "y", "x", "w", "v", "u", "t", "s", "r", "q", "p", "o", "n", "M", "L", "K", "J", "I", "H", "G", "F", "E", "D", "C", "B", "A"]; -var alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; +var alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; -var myComparefn = function(x,y) { +var myComparefn = function(x, y) { var xS = String(x); var yS = String(y); if (xS < yS) return 1 diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js index 2c67068aefa0f0d5ed62f8b4ad50858e14e69524..0075ca2990482b29bd1a86fc5831b1091585743d 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js @@ -9,9 +9,9 @@ description: Checking RUSSIAN ALPHABET ---*/ var alphabetR = ["ё", "я", "ю", "э", "ь", "ы", "ъ", "щ", "ш", "ч", "ц", "х", "ф", "у", "т", "с", "р", "П", "О", "Н", "М", "Л", "К", "Й", "И", "З", "Ж", "Е", "Д", "Г", "В", "Б", "А"]; -var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"]; +var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"]; -var myComparefn = function(x,y) { +var myComparefn = function(x, y) { var xS = String(x); var yS = String(y); if (xS < yS) return 1 diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js index ddc5354f08385aa4cdfee8fbf6a703575f53a115..6e5df4ec45731b299eb763b27132c9f6b7dd2960 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js @@ -8,11 +8,18 @@ es5id: 15.4.4.11_A2.2_T3 description: Checking ToString operator ---*/ -var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; +var obj = { + valueOf: function() { + return 1 + }, + toString: function() { + return -2 + } +}; var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity]; var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined]; -var myComparefn = function(x,y) { +var myComparefn = function(x, y) { var xS = String(x); var yS = String(y); if (xS < yS) return 1 diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js index d4598f7c03451efb5457d04bdea823f191ead059..c8fe6d58f252f73e8eb4436b284db8004eb89197 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js @@ -10,15 +10,33 @@ es5id: 15.4.4.11_A3_T1 description: If comparefn is undefined, use SortCompare operator ---*/ -var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; -var alphabetR = {0:undefined, 1:2, 2:1, 3:"X", 4:-1, 5:"a", 6:true, 7:obj, 8:NaN, 9:Infinity}; +var obj = { + valueOf: function() { + return 1 + }, + toString: function() { + return -2 + } +}; +var alphabetR = { + 0: undefined, + 1: 2, + 2: 1, + 3: "X", + 4: -1, + 5: "a", + 6: true, + 7: obj, + 8: NaN, + 9: Infinity +}; alphabetR.sort = Array.prototype.sort; alphabetR.length = 10; var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined]; alphabetR.sort(); - //CHECK#0 +//CHECK#0 alphabetR.getClass = Object.prototype.toString; if (alphabetR.getClass() !== "[object " + "Object" + "]") { $ERROR('#0: alphabetR.sort() is Object object, not Array object'); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js index e5c56d65d36136e0511ec016e6e565ae114ff23a..5da87d3d439181761bcd7538fb93f339218b86d4 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js @@ -10,13 +10,31 @@ es5id: 15.4.4.11_A3_T2 description: If comparefn is not undefined ---*/ -var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; -var alphabetR = {0:undefined, 1:2, 2:1, 3:"X", 4:-1, 5:"a", 6:true, 7:obj, 8:NaN, 9:Infinity}; +var obj = { + valueOf: function() { + return 1 + }, + toString: function() { + return -2 + } +}; +var alphabetR = { + 0: undefined, + 1: 2, + 2: 1, + 3: "X", + 4: -1, + 5: "a", + 6: true, + 7: obj, + 8: NaN, + 9: Infinity +}; alphabetR.sort = Array.prototype.sort; alphabetR.length = 10; var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined]; - var myComparefn = function(x,y) { +var myComparefn = function(x, y) { var xS = String(x); var yS = String(y); if (xS < yS) return 1 @@ -26,7 +44,7 @@ var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined]; alphabetR.sort(myComparefn); - //CHECK#0 +//CHECK#0 alphabetR.getClass = Object.prototype.toString; if (alphabetR.getClass() !== "[object " + "Object" + "]") { $ERROR('#0: alphabetR.sort() is Object object, not Array object'); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js index b1549f26e688d69612cb6f768866f2f467e5468c..32ddbcd187fb17352d8f5c09efbe5e73b06407a0 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js @@ -9,14 +9,14 @@ description: comparefn function throw "error" ---*/ //CHECK#1 -var myComparefn = function(x,y) { +var myComparefn = function(x, y) { throw "error"; } -var x = [1,0]; +var x = [1, 0]; try { x.sort(myComparefn) $ERROR('#1.1: Array.sort should not eat exceptions'); -} catch(e) { +} catch (e) { if (e !== "error") { $ERROR('#1.2: Array.sort should not eat exceptions'); } diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js index 4b623ca34b03fd40806626dc5ee74d9966cf72fb..4d26b4701334960e4a9031eff891b5035a212475 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js @@ -11,7 +11,7 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [1,0]; +var x = [1, 0]; x.length = 2; x.sort(); @@ -40,7 +40,10 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.sort = Array.prototype.sort; -x = {0:1,1:0}; +x = { + 0: 1, + 1: 0 +}; x.sort(); //CHECK#5 diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js index 289887f032dd5667ff09393b96e17d179efa5a60..bfa49d90aeab059c382f69a567bf9d12902836e1 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js @@ -10,7 +10,7 @@ flags: [noStrict] ---*/ var global = this; -[2,3].sort(function(x,y) { +[2, 3].sort(function(x, y) { "use strict"; if (this === global) { @@ -18,7 +18,7 @@ var global = this; } if (this !== undefined) { $ERROR('#2: Sort comparefn should be called with this===undefined. ' + - 'Actual: ' + this); + 'Actual: ' + this); } return x - y; }); diff --git a/test/built-ins/Array/prototype/sort/bug_596_1.js b/test/built-ins/Array/prototype/sort/bug_596_1.js index 1c6e4d724d8842c7baf7bfda15d9b28649f8970b..a144d9fcde5d2882915dbe68b802c1706deecece 100644 --- a/test/built-ins/Array/prototype/sort/bug_596_1.js +++ b/test/built-ins/Array/prototype/sort/bug_596_1.js @@ -11,10 +11,10 @@ author: Thomas Dahlstrom (tdahlstrom@gmail.com) var counter = 0; var object = { - toString: function(){ - counter++; - return ""; - } + toString: function() { + counter++; + return ""; + } }; [object, object].sort(); diff --git a/test/built-ins/Array/prototype/sort/bug_596_2.js b/test/built-ins/Array/prototype/sort/bug_596_2.js index 1fbcd77cebe2a75120c66df5c6d479d3f8a92637..ec571de20bb31d587408915f85b2faf0aafeddf7 100644 --- a/test/built-ins/Array/prototype/sort/bug_596_2.js +++ b/test/built-ins/Array/prototype/sort/bug_596_2.js @@ -10,46 +10,46 @@ description: > author: Thomas Dahlstrom (tdahlstrom@gmail.com) ---*/ -var array = ['a',,void 0]; +var array = ['a', , void 0]; //CHECK#1 if (array.length !== 3) { - $ERROR('#1: array.length !== 3. Actual: ' + (array.length)) + $ERROR('#1: array.length !== 3. Actual: ' + (array.length)) } //CHECK#2 if (array.hasOwnProperty('0') !== true) { - $ERROR("#2: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0')); + $ERROR("#2: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0')); } //CHECK#3 if (array.hasOwnProperty('1') !== false) { - $ERROR("#3: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1')); + $ERROR("#3: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1')); } //CHECK#4 if (array.hasOwnProperty('2') !== true) { - $ERROR("#4: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2')); + $ERROR("#4: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2')); } array.sort(); //CHECK#5 if (array.length !== 3) { - $ERROR('#5: array.length !== 3. Actual: ' + (array.length)) + $ERROR('#5: array.length !== 3. Actual: ' + (array.length)) } //CHECK#6 if (array.hasOwnProperty('0') !== true) { - $ERROR("#6: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0')); + $ERROR("#6: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0')); } //CHECK#7 if (array.hasOwnProperty('1') !== true) { - $ERROR("#7: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1')); + $ERROR("#7: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1')); } //CHECK#8 if (array.hasOwnProperty('2') !== false) { - $ERROR("#8: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2')); + $ERROR("#8: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2')); } diff --git a/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js b/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js index c35b0f876e68a2d11e0ae088119241f5de8782c1..62ab296449af37c1fe411d87e9b4dcf769643073 100644 --- a/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js +++ b/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js @@ -23,7 +23,7 @@ var poisoned = { }; assert.throws(TypeError, function() { - sample.sort(null); + sample.sort(null); }, "sample.sort(null);"); assert.throws(TypeError, function() { diff --git a/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js b/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js index 8ec20c11c84e5ae6a051b5a3c9ac907bc7225c55..0e0d144a6a6d15e0b5bdfa3b44c8a5c15cf11886 100644 --- a/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js +++ b/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js @@ -9,8 +9,8 @@ description: > ToString(actualStart+k) in an Array ---*/ - var arrObj = [1, 2, 3]; - var newArrObj = arrObj.splice(-2, 1); +var arrObj = [1, 2, 3]; +var newArrObj = arrObj.splice(-2, 1); assert.sameValue(newArrObj.length, 1, 'newArrObj.length'); assert.sameValue(newArrObj[0], 2, 'newArrObj[0]'); diff --git a/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js b/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js index e911470f0104f5e70f011ab24cc4e820e31048d4..ab59bcf6f59e4176780127d2e90c0386049d51cf 100644 --- a/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js +++ b/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js @@ -10,28 +10,28 @@ description: > less than 'actualDeleteCount (Step 9.c.ii) ---*/ - var arr = ["a", "b", "c"]; - Array.prototype[0] = "test"; - var newArr = arr.splice(2, 1, "d"); +var arr = ["a", "b", "c"]; +Array.prototype[0] = "test"; +var newArr = arr.splice(2, 1, "d"); - var verifyValue = false; - verifyValue = arr.length === 3 && arr[0] === "a" && arr[1] === "b" && arr[2] === "d" - && newArr[0] === "c" && newArr.length === 1; +var verifyValue = false; +verifyValue = arr.length === 3 && arr[0] === "a" && arr[1] === "b" && arr[2] === "d" && + newArr[0] === "c" && newArr.length === 1; - var verifyEnumerable = false; - for (var p in newArr) { - if (newArr.hasOwnProperty("0") && p === "0") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in newArr) { + if (newArr.hasOwnProperty("0") && p === "0") { + verifyEnumerable = true; + } +} - var verifyWritable = false; - newArr[0] = 12; - verifyWritable = newArr[0] === 12; +var verifyWritable = false; +newArr[0] = 12; +verifyWritable = newArr[0] === 12; - var verifyConfigurable = false; - delete newArr[0]; - verifyConfigurable = newArr.hasOwnProperty("0"); +var verifyConfigurable = false; +delete newArr[0]; +verifyConfigurable = newArr.hasOwnProperty("0"); assert(verifyValue, 'verifyValue !== true'); assert.sameValue(verifyConfigurable, false, 'verifyConfigurable'); diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js index 27bc884add4edc74b022f840fb89199d571030eb..5cdd55a4ee9fb7bdab1cc12839c140c6dc9a13ee 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T1 description: length > deleteCount > start = 0, itemCount = 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(0,3); +var x = [0, 1, 2, 3]; +var arr = x.splice(0, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js index 12cd147ecf3a8c39fabc3f29c89c3c5324881252..3685147d672d57cc6c4dbc909a8e5ea227b8814f 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T2 description: length > deleteCount > start = 0, itemCount > 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(0,3,4,5); +var x = [0, 1, 2, 3]; +var arr = x.splice(0, 3, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js index 118d0a82a956f9e60a53422a688a4518adbc4b84..713f6a0416a61720bd496d63803004d10c6a15e3 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T3 description: length = deleteCount > start = 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(0,4); +var x = [0, 1, 2, 3]; +var arr = x.splice(0, 4); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js index 5fb23994248255e86667e56ab9a14cc8dfbfdd8d..0eb829e794d43c104448fe4ce88eb83fac95f11b 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T4 description: length > deleteCount > start > 0, itemCount > 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(1,3,4,5); +var x = [0, 1, 2, 3]; +var arr = x.splice(1, 3, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js index 9e2dac61f73dedda8f287689087460e856930338..652524bd110a34c52c9583a1698792d45b6f916c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T5 description: deleteCount > length > start = 0, itemCount = 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(0,5); +var x = [0, 1, 2, 3]; +var arr = x.splice(0, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js index 0ea1d8bcee5e82d4167806e75682365231a79958..91253b80f131c33a55e4a137f478183bea04d765 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T6 description: length = deleteCount > start > 0, itemCount > 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(1,4,4,5); +var x = [0, 1, 2, 3]; +var arr = x.splice(1, 4, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js index 1929add9474090f116856459ecb05214d95980a8..0db991b3ecb49b09e0cbc9f05fbe59cb11018cd7 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T1 description: -length = start < deleteCount < 0, itemCount = 0 ---*/ -var x = [0,1]; -var arr = x.splice(-2,-1); +var x = [0, 1]; +var arr = x.splice(-2, -1); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js index fddd02dc840ac1ee416027fb664f267ce12215f3..0be3d2398cbb5a4510ed9867dd57282964e9198e 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T2 description: -length < start = deleteCount < 0, itemCount = 0 ---*/ -var x = [0,1]; -var arr = x.splice(-1,-1); +var x = [0, 1]; +var arr = x.splice(-1, -1); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js index f5d24cac350a7d2caf1846c80d9aa005ca95c6ea..89e1ee2b5b9be7964565fef274c737e1a5a92d3f 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T3 description: -length = start < deleteCount < 0, itemCount > 0 ---*/ -var x = [0,1]; -var arr = x.splice(-2,-1,2,3); +var x = [0, 1]; +var arr = x.splice(-2, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js index bb68a76802ac263a256b4960feb7bf501313bfcb..02e2dbea8419188f9ca01a43436f815c37f5f602 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T4 description: -length < start = deleteCount < 0, itemCount > 0 ---*/ -var x = [0,1]; -var arr = x.splice(-1,-1,2,3); +var x = [0, 1]; +var arr = x.splice(-1, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js index f8fc1eccbc20114d8095d4d9993b4f04d6c37178..ed8efafe781cfd9dfb729116cde2f5c20d31bf55 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T5 description: start < -length < deleteCount < 0, itemCount > 0 ---*/ -var x = [0,1]; -var arr = x.splice(-3,-1,2,3); +var x = [0, 1]; +var arr = x.splice(-3, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js index 909d270ac1db00fb87e7dbd1c07dbdf41be8f999..66c3d55e21b230aba6dfc008ce37395afec0bd1d 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T1 description: -length < deleteCount < start = 0, itemCount = 0 ---*/ -var x = [0,1]; -var arr = x.splice(0,-1); +var x = [0, 1]; +var arr = x.splice(0, -1); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js index 44917a67fabd5ad70599faa0cbe9925056aa8b2e..089a2ce8c3022c05f0ae795d1c49e4b1bb1e540c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T2 description: -length = -start < deleteCount < 0, itemCount = 0 ---*/ -var x = [0,1]; -var arr = x.splice(2,-1); +var x = [0, 1]; +var arr = x.splice(2, -1); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js index f4f2678ad97f4c7a5e436aa53923340925dbc8b3..5c56b995ac5d0cd1c0518f5c8267e09aa90f0776 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T3 description: -length < deleteCount < start = 0, itemCount > 0 ---*/ -var x = [0,1]; -var arr = x.splice(0,-1,2,3); +var x = [0, 1]; +var arr = x.splice(0, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js index 13325745382e30d8a2ee52b141f2cdc830d06806..828e21cbbb24a86b63e3e2e4f7a663fabcde8115 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T4 description: -length = -start < deleteCount < 0, itemCount > 0 ---*/ -var x = [0,1]; -var arr = x.splice(2,-1,2,3); +var x = [0, 1]; +var arr = x.splice(2, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js index 8c4475cd7eb29365be38837c5fc6876e883140cf..cd2ccab2ca4a8d0d08a36b472dafa6a21135511a 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T5 description: -start < -length < deleteCount < 0, itemCount > 0 ---*/ -var x = [0,1]; -var arr = x.splice(3,-1,2,3); +var x = [0, 1]; +var arr = x.splice(3, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js index 01605c746de0e5c626243f2b2f811847c9c0d0df..9b4cd2228c4f7a6da7999b8311d8d3ed2ffb35f0 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T1 description: length = -start > deleteCount > 0, itemCount = 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(-4,3); +var x = [0, 1, 2, 3]; +var arr = x.splice(-4, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js index 2862b3f60d0b3019f170c8a023a0f937991056da..d531be2ee14e3429d795cd39db3aeb8b4d8ea3cc 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T2 description: length = -start > deleteCount > 0, itemCount > 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(-4,3,4,5); +var x = [0, 1, 2, 3]; +var arr = x.splice(-4, 3, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js index 4be6a0b978d453d5cf515f3e73be7d81df1f3640..318d33a440040506328715aa3ce75e4cbb31df21 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T3 description: -start > length = deleteCount > 0, itemCount = 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(-5,4); +var x = [0, 1, 2, 3]; +var arr = x.splice(-5, 4); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js index 2dffe18b3d97a707ad14a8d68b6e83d89e2e4d7f..9c2e3c579865d6bb8615ea33e0a993f549dcf9da 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T4 description: length > -start = deleteCount > 0, itemCount > 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(-3,3,4,5); +var x = [0, 1, 2, 3]; +var arr = x.splice(-3, 3, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js index 37ec9f17f0e720658bbe48a2628a2867fd5e12d4..4d051f44c385b0e8082fe59a4ea0975749d88d94 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T5 description: -start > deleteCount > length > 0, itemCount = 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(-9,5); +var x = [0, 1, 2, 3]; +var arr = x.splice(-9, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js index 4fa9aed73e590b5dccbb6d36dc468f03f7aeb647..779089de147a2fbf7831ca3021b46f6a5f50fd20 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js @@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T6 description: length = deleteCount > -start > 0, itemCount > 0 ---*/ -var x = [0,1,2,3]; -var arr = x.splice(-3,4,4,5); +var x = [0, 1, 2, 3]; +var arr = x.splice(-3, 4, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js index ec581518de97bc638188472f0b5d6070bd0bdd96..046f111f8c6dc1d8f717c7a46fba106132546c7e 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js @@ -8,7 +8,7 @@ es5id: 15.4.4.12_A1.5_T1 description: start === undefined, end === undefined ---*/ -var x = [0,1,2,3]; +var x = [0, 1, 2, 3]; var arr = x.splice(undefined, undefined); //CHECK#1 diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js index 5551f3596cc5913c56e73252d69455ca7248ed22..4741352b58188112ee9095e01796d0a6b07c1216 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A1.5_T2 description: end === undefined ---*/ -var x = [0,1,2,3]; -var arr = x.splice(1,undefined); +var x = [0, 1, 2, 3]; +var arr = x.splice(1, undefined); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js index 32848cc6fbf65de734483ad301f70cdbc9a86f1b..2e66e7f34bacac6e56c6e59c26ac12bef2b1847e 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T1 description: start is not integer ---*/ -var x = [0,1,2,3]; -var arr = x.splice(1.5,3); +var x = [0, 1, 2, 3]; +var arr = x.splice(1.5, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js index 4e379cda8f146fce399b2c58f0c001da732fa0ae..94ef13972064af94a2f3a2689838bf2b1f06a01c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T2 description: start = NaN ---*/ -var x = [0,1,2,3]; -var arr = x.splice(NaN,3); +var x = [0, 1, 2, 3]; +var arr = x.splice(NaN, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js index 807c0a41ad0b9b05721ec2a6256c2c0df8abb2c4..eaf3c07a1b4fe05363d3f1a50e288d876637957d 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T3 description: start = Infinity ---*/ -var x = [0,1,2,3]; -var arr = x.splice(Number.POSITIVE_INFINITY,3); +var x = [0, 1, 2, 3]; +var arr = x.splice(Number.POSITIVE_INFINITY, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js index 083ed9ca89a74b111033b97de5c437c52de34736..939454e4887d6cd60e4f5197d503ee1ffb022e8b 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T4 description: start = -Infinity ---*/ -var x = [0,1,2,3]; -var arr = x.splice(Number.NEGATIVE_INFINITY,3); +var x = [0, 1, 2, 3]; +var arr = x.splice(Number.NEGATIVE_INFINITY, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js index 51a7aa7654ca1b35bff599ce19e4a3637e22ebd3..9cf978a5867e9ed380e51e6376887f743f4c1303 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js @@ -8,8 +8,15 @@ es5id: 15.4.4.12_A2.1_T5 description: ToInteger use ToNumber ---*/ -var x = [0,1,2,3]; -var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); +var x = [0, 1, 2, 3]; +var arr = x.splice({ + valueOf: function() { + return 0 + }, + toString: function() { + return 3 + } +}, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js index 8a8cc929dc6ffbcdba4cb610e3b0fa26d3392ec3..4212e9e1f10f2db372e5475d60c97c0445711735 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T1 description: deleteCount is not integer ---*/ -var x = [0,1,2,3]; -var arr = x.splice(1,3.5); +var x = [0, 1, 2, 3]; +var arr = x.splice(1, 3.5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js index c97e14734c970dbeaaedbf40b7483a033b56164b..cbe0fbb78fb0247cf11f64e4a5bfc6073c211505 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T2 description: deleteCount = NaN ---*/ -var x = [0,1]; -var arr = x.splice(0,NaN); +var x = [0, 1]; +var arr = x.splice(0, NaN); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js index 8622ff7654e0079a33d03642ea670aad528b2182..1a2e4fb1e7fdfb5294b9114e7c06dd59c3a83e62 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T3 description: deleteCount = Infinity ---*/ -var x = [0,1,2,3]; -var arr = x.splice(0,Number.POSITIVE_INFINITY); +var x = [0, 1, 2, 3]; +var arr = x.splice(0, Number.POSITIVE_INFINITY); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js index 6c3008074f772f03da0b67b5cec70d951747c63f..d0ec317ce6eadcba8e0ca82bab60d8fb3b09fd03 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js @@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T4 description: deleteCount = -Infinity ---*/ -var x = [0,1]; -var arr = x.splice(0,Number.NEGATIVE_INFINITY); +var x = [0, 1]; +var arr = x.splice(0, Number.NEGATIVE_INFINITY); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js index d42f023fc9f66384c37ebaab4c2927d1bd18095d..911ee8defc8d1982a8d963553ea296689d32f732 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js @@ -8,8 +8,15 @@ es5id: 15.4.4.12_A2.2_T5 description: ToInteger use ToNumber ---*/ -var x = [0,1,2,3]; -var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); +var x = [0, 1, 2, 3]; +var arr = x.splice(0, { + valueOf: function() { + return 3 + }, + toString: function() { + return 0 + } +}); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js index 120d64c816edb9421d87d8a95382cbef1a165d15..53135fec3110507f8bb92d48267868488a605a3b 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js @@ -12,10 +12,15 @@ description: > positive, use min(deleteCount, length - start) ---*/ -var obj = {0:0,1:1,2:2,3:3}; +var obj = { + 0: 0, + 1: 1, + 2: 2, + 3: 3 +}; obj.length = 4; obj.splice = Array.prototype.splice; -var arr = obj.splice(0,3,4,5); +var arr = obj.splice(0, 3, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js index 294da306b6c6a85c5686cb997e7853090adb0308..d0c6aed9b17e3387785aa9579115f70e0039cc94 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js @@ -12,10 +12,13 @@ description: > is negative, use 0 ---*/ -var obj = {0:0,1:1}; +var obj = { + 0: 0, + 1: 1 +}; obj.length = 2; obj.splice = Array.prototype.splice; -var arr = obj.splice(-2,-1,2,3); +var arr = obj.splice(-2, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js index 3131c9a3a7ee193e7418e2892678d398ab8e07f7..4b6fdb4b9495c455ee391a3f3a51911ce86b49ce 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js @@ -12,10 +12,13 @@ description: > negative, use 0 ---*/ -var obj = {0:0,1:1}; +var obj = { + 0: 0, + 1: 1 +}; obj.length = 2; obj.splice = Array.prototype.splice; -var arr = obj.splice(0,-1,2,3); +var arr = obj.splice(0, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js index ca455cad51dbea536f812a5d74706c4c46262e58..1127a7cb64486f9c34aa4b428b426c86bb41c4ae 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js @@ -12,10 +12,15 @@ description: > is positive, use min(deleteCount, length - start) ---*/ -var obj = {0:0,1:1,2:2,3:3}; +var obj = { + 0: 0, + 1: 1, + 2: 2, + 3: 3 +}; obj.length = 4; obj.splice = Array.prototype.splice; -var arr = obj.splice(-4,3,4,5); +var arr = obj.splice(-4, 3, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js index 4d92ace05505cc0b6c902f414fb304ffc7c8b3f9..bf7b3a654ec48d24f5667e80f0848703d62d596d 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js @@ -22,20 +22,20 @@ if (arr.length !== 1) { //CHECK#2 if (obj.length !== 4294967295) { - $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj.length === 4294967295. Actual: ' + (obj.length)); + $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj.length === 4294967295. Actual: ' + (obj.length)); } //CHECK#3 if (obj[0] !== "x") { - $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[0] === "x". Actual: ' + (obj[0])); + $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[0] === "x". Actual: ' + (obj[0])); } //CHECK#4 if (obj[4294967295] !== undefined) { - $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[4294967295] === undefined. Actual: ' + (obj[4294967295])); + $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[4294967295] === undefined. Actual: ' + (obj[4294967295])); } //CHECK#5 if (arr[0] !== "y") { - $ERROR('#5: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); arr[0] === "y". Actual: ' + (arr[0])); + $ERROR('#5: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); arr[0] === "y". Actual: ' + (arr[0])); } diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js index 3232c9a112063e7e45a6c44057bccfc6e56ac46d..309de2f1f4242771954d30aa78f2b3bdd844aca3 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js @@ -12,7 +12,7 @@ var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = -1; -var arr = obj.splice(4294967294,1); +var arr = obj.splice(4294967294, 1); //CHECK#1 if (arr.length !== 0) { @@ -21,15 +21,15 @@ if (arr.length !== 0) { //CHECK#2 if (arr[0] !== undefined) { - $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); arr[0] === undefined. Actual: ' + (arr[0])); + $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); arr[0] === undefined. Actual: ' + (arr[0])); } //CHECK#3 if (obj.length !== 0) { - $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj.length === 0. Actual: ' + (obj.length)); + $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj.length === 0. Actual: ' + (obj.length)); } //CHECK#4 if (obj[4294967294] !== "x") { - $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj[4294967294] === "x". Actual: ' + (obj[4294967294])); + $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj[4294967294] === "x". Actual: ' + (obj[4294967294])); } diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js index ed0ab16aa5d51a92c14302b0f6dd00d81306aced..7754dc3f4fc08452b5e4a9cf74a456cacabad39e 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js @@ -11,8 +11,8 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; -var arr = x.splice(1,1); +var x = [0, 1]; +var arr = x.splice(1, 1); //CHECK#1 if (arr.length !== 1) { @@ -48,8 +48,11 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; -x = {0:0, 1:1}; -var arr = x.splice(1,1); +x = { + 0: 0, + 1: 1 +}; +var arr = x.splice(1, 1); //CHECK#7 if (arr.length !== 1) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js index 3c203ee25196d2e631ee99077281d076787cbdf7..50cf6d031c2662bc9bad49ef2ac51be56be2836d 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js @@ -11,8 +11,8 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; -var arr = x.splice(1,1,2); +var x = [0, 1]; +var arr = x.splice(1, 1, 2); //CHECK#1 if (arr.length !== 1) { @@ -48,8 +48,11 @@ if (x[1] !== 2) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; -x = {0:0, 1:1}; -var arr = x.splice(1,1,2); +x = { + 0: 0, + 1: 1 +}; +var arr = x.splice(1, 1, 2); //CHECK#7 if (arr.length !== 1) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js index db412def3203e3ec9a39545172ca642c23e04773..423c6697304456c13cbf14bf0b634ee18a1b63b6 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js @@ -13,7 +13,7 @@ description: > Array.prototype[0] = -1; var x = []; x.length = 1; -var arr = x.splice(0,1); +var arr = x.splice(0, 1); //CHECK#1 if (arr.length !== 1) { @@ -46,7 +46,7 @@ Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.splice = Array.prototype.splice; x = {}; -var arr = x.splice(0,1); +var arr = x.splice(0, 1); //CHECK#6 if (arr.length !== 1) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js index 3c0ff7998a2d23584d026b30db951f0fbe4834d3..cae54c1da12912e762755db27ca19bd9ac3b4198 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js @@ -13,13 +13,13 @@ var a = [0, 1, 2]; a.splice(1, 2, 4); if (a.length !== 2) { - $ERROR("Expected a.length === 2, actually " + a.length); + $ERROR("Expected a.length === 2, actually " + a.length); } if (a[0] !== 0) { - $ERROR("Expected a[0] === 0, actually " + a[0]); + $ERROR("Expected a[0] === 0, actually " + a[0]); } if (a[1] !== 4) { - $ERROR("Expected a[1] === 4, actually " + a[1]); + $ERROR("Expected a[1] === 4, actually " + a[1]); } diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js index e7567673219b5de30489a778bb2ef2c55f3068fb..cf53a82359cb0deed48e17aa13831c2363312c99 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js @@ -11,7 +11,7 @@ description: Array.prototype.splice throws if `length` is read-only var a = [0, 1, 2]; Object.defineProperty(a, 'length', { - writable: false + writable: false }); assert.throws(TypeError, function() { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js index e568f40d6c63b6cefb09d829d5a2913e719a2f9a..f42c6f00fd795b4cce4c4ae4b05b48440324b4cc 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js @@ -9,15 +9,17 @@ description: Array.prototype.splice throws if `length` is read-only ---*/ var a = { - get length() { return 0; }, - splice: Array.prototype.splice + get length() { + return 0; + }, + splice: Array.prototype.splice }; try { - a.splice(1, 2, 4); - $ERROR("Expected a TypeError"); + a.splice(1, 2, 4); + $ERROR("Expected a TypeError"); } catch (e) { - if (!(e instanceof TypeError)) { - throw e; - } + if (!(e instanceof TypeError)) { + throw e; + } } diff --git a/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js b/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js index a376e42e7129125b8697cfab4fd9516a25d6c61f..24584ba48a78515e9f15d8bc5f4385e72a2c18e5 100644 --- a/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js +++ b/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js @@ -19,18 +19,18 @@ info: | var arrayLike = {}; -arrayLike.length = 2**53 - 1; +arrayLike.length = 2 ** 53 - 1; Array.prototype.splice.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1"); -arrayLike.length = 2**53; +arrayLike.length = 2 ** 53; Array.prototype.splice.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53"); -arrayLike.length = 2**53 + 2; +arrayLike.length = 2 ** 53 + 2; Array.prototype.splice.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2"); arrayLike.length = Infinity; Array.prototype.splice.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity"); diff --git a/test/built-ins/Array/prototype/splice/create-non-array.js b/test/built-ins/Array/prototype/splice/create-non-array.js index 0af93e8c5a1b3c9c0360e91966a706e9c9b4fb52..153e484622a36967dd622f68df883dfcf471adf1 100644 --- a/test/built-ins/Array/prototype/splice/create-non-array.js +++ b/test/built-ins/Array/prototype/splice/create-non-array.js @@ -16,7 +16,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js b/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js index b2f373d6167175f94e1ada26903ea7de85b1d845..f0a5d73ed5486bc1fc98899b30ba316084021c1b 100644 --- a/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js +++ b/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js @@ -28,7 +28,7 @@ function StopSplice() {} var traps = []; var targetLength; -var array = ["no-hole", /* hole */, "stop"]; +var array = ["no-hole", /* hole */ , "stop"]; array.constructor = { [Symbol.species]: function(n) { targetLength = n; @@ -42,7 +42,7 @@ var source = new Proxy(array, allowProxyTraps({ // length property exceeding 2^53-1. if (pk === "length") - return 2**53 + 2; + return 2 ** 53 + 2; return Reflect.get(t, pk, r); }, @@ -66,11 +66,11 @@ var target = new Proxy([], allowProxyTraps({ assert.throws(StopSplice, function() { // deleteCount argument exceeding 2^53-1. - Array.prototype.splice.call(source, 0, 2**53 + 4); + Array.prototype.splice.call(source, 0, 2 ** 53 + 4); }); -assert.sameValue(targetLength, 2**53 - 1, - "length and deleteCount were correctly clamped to 2^53-1"); +assert.sameValue(targetLength, 2 ** 53 - 1, + "length and deleteCount were correctly clamped to 2^53-1"); assert.compareArray(traps, [ "source.[[Get]]:length", diff --git a/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js b/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js index f48e48d9e8cd35a20ea7ba4f0cd4c1d2a60da9f8..7734bb325a2765c0df491a6c63655923ca248843 100644 --- a/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js +++ b/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js @@ -30,25 +30,25 @@ var arrayLike = { "9007199254740989": "9007199254740989", "9007199254740990": "9007199254740990", "9007199254740991": "9007199254740991", - length: 2**53 + 2, + length: 2 ** 53 + 2, }; -var result = Array.prototype.splice.call(arrayLike, 9007199254740989, 2**53 + 4); +var result = Array.prototype.splice.call(arrayLike, 9007199254740989, 2 ** 53 + 4); -assert.compareArray(result, [ "9007199254740989", "9007199254740990" ], - "arrayLike['9007199254740989'] and arrayLike['9007199254740990'] are removed"); +assert.compareArray(result, ["9007199254740989", "9007199254740990"], + "arrayLike['9007199254740989'] and arrayLike['9007199254740990'] are removed"); -assert.sameValue(arrayLike.length, 2**53 - 3, - "New length is 2**53 - 3"); +assert.sameValue(arrayLike.length, 2 ** 53 - 3, + "New length is 2**53 - 3"); assert.sameValue(arrayLike["9007199254740988"], "9007199254740988", - "arrayLike['9007199254740988'] is unchanged"); + "arrayLike['9007199254740988'] is unchanged"); assert.sameValue("9007199254740989" in arrayLike, false, - "arrayLike['9007199254740989'] is removed"); + "arrayLike['9007199254740989'] is removed"); assert.sameValue("9007199254740990" in arrayLike, false, - "arrayLike['9007199254740990'] is removed"); + "arrayLike['9007199254740990'] is removed"); assert.sameValue(arrayLike["9007199254740991"], "9007199254740991", - "arrayLike['9007199254740991'] is unchanged"); + "arrayLike['9007199254740991'] is unchanged"); diff --git a/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js b/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js index e48f292ccb28ff38c28bba9eef87930ac9d979b9..8340b6a29e71b8a0e6a152e87def0a91755d0f10 100644 --- a/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js +++ b/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js @@ -34,31 +34,31 @@ var arrayLike = { /* "9007199254740989": hole */ "9007199254740990": "9007199254740990", "9007199254740991": "9007199254740991", - length: 2**53 + 2, + length: 2 ** 53 + 2, }; var result = Array.prototype.splice.call(arrayLike, 9007199254740987, 1); -assert.compareArray(result, [ "9007199254740987" ], - "arrayLike['9007199254740987'] is removed"); +assert.compareArray(result, ["9007199254740987"], + "arrayLike['9007199254740987'] is removed"); -assert.sameValue(arrayLike.length, 2**53 - 2, - "New length is 2**53 - 2"); +assert.sameValue(arrayLike.length, 2 ** 53 - 2, + "New length is 2**53 - 2"); assert.sameValue(arrayLike["9007199254740986"], "9007199254740986", - "arrayLike['9007199254740986'] is unchanged"); + "arrayLike['9007199254740986'] is unchanged"); assert.sameValue(arrayLike["9007199254740987"], "9007199254740988", - "arrayLike['9007199254740988'] is moved to arrayLike['9007199254740987']"); + "arrayLike['9007199254740988'] is moved to arrayLike['9007199254740987']"); assert.sameValue("9007199254740988" in arrayLike, false, - "arrayLike['9007199254740990'] is removed"); + "arrayLike['9007199254740990'] is removed"); assert.sameValue(arrayLike["9007199254740989"], "9007199254740990", - "arrayLike['9007199254740990'] is moved to arrayLike['9007199254740989']"); + "arrayLike['9007199254740990'] is moved to arrayLike['9007199254740989']"); assert.sameValue("9007199254740990" in arrayLike, false, - "arrayLike['9007199254740990'] is removed"); + "arrayLike['9007199254740990'] is removed"); assert.sameValue(arrayLike["9007199254740991"], "9007199254740991", - "arrayLike['9007199254740991'] is unchanged"); + "arrayLike['9007199254740991'] is unchanged"); diff --git a/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js b/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js index 9f0b857989be56ab4422602a937f0772b247d604..42cf6f9c501914fab5bccd3356ce5d5489ea2475 100644 --- a/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js +++ b/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js @@ -31,32 +31,32 @@ var arrayLike = { "9007199254740989": "9007199254740989", /* "9007199254740990": empty */ "9007199254740991": "9007199254740991", - length: 2**53 - 2, + length: 2 ** 53 - 2, }; var result = Array.prototype.splice.call(arrayLike, 9007199254740986, 0, "new-value"); assert.compareArray(result, [], "No elements are removed"); -assert.sameValue(arrayLike.length, 2**53 - 1, "New length is 2**53 - 1"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "New length is 2**53 - 1"); assert.sameValue(arrayLike["9007199254740985"], "9007199254740985", - "arrayLike['9007199254740985'] is unchanged"); + "arrayLike['9007199254740985'] is unchanged"); assert.sameValue(arrayLike["9007199254740986"], "new-value", - "arrayLike['9007199254740986'] contains the inserted value"); + "arrayLike['9007199254740986'] contains the inserted value"); assert.sameValue(arrayLike["9007199254740987"], "9007199254740986", - "arrayLike['9007199254740986'] is moved to arrayLike['9007199254740987']"); + "arrayLike['9007199254740986'] is moved to arrayLike['9007199254740987']"); assert.sameValue(arrayLike["9007199254740988"], "9007199254740987", - "arrayLike['9007199254740987'] is moved to arrayLike['9007199254740988']"); + "arrayLike['9007199254740987'] is moved to arrayLike['9007199254740988']"); assert.sameValue("9007199254740989" in arrayLike, false, - "arrayLike['9007199254740989'] is removed"); + "arrayLike['9007199254740989'] is removed"); assert.sameValue(arrayLike["9007199254740990"], "9007199254740989", - "arrayLike['9007199254740989'] is moved to arrayLike['9007199254740990']"); + "arrayLike['9007199254740989'] is moved to arrayLike['9007199254740990']"); assert.sameValue(arrayLike["9007199254740991"], "9007199254740991", - "arrayLike['9007199254740991'] is unchanged"); + "arrayLike['9007199254740991'] is unchanged"); diff --git a/test/built-ins/Array/prototype/splice/set_length_no_args.js b/test/built-ins/Array/prototype/splice/set_length_no_args.js index a2c04e0fd80e7c5d351834e7f97306f6a1ee03b7..25dbc37efbe34c2f3ec2a5a4de49306b7fbb4be7 100644 --- a/test/built-ins/Array/prototype/splice/set_length_no_args.js +++ b/test/built-ins/Array/prototype/splice/set_length_no_args.js @@ -14,7 +14,8 @@ es5id: 15.4.4.12 es6id: 22.1.3.25 ---*/ -var getCallCount = 0, setCallCount = 0; +var getCallCount = 0, + setCallCount = 0; var lengthValue; var obj = { diff --git a/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js index 883d0508f385a751eb4ecec2b0d760bde22c6be1..447eb4d0a5b237291a06e2f792733c19165383c8 100644 --- a/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js +++ b/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js @@ -19,17 +19,17 @@ info: | var arrayLike = {}; -arrayLike.length = 2**53 - 1; +arrayLike.length = 2 ** 53 - 1; assert.throws(TypeError, function() { Array.prototype.splice.call(arrayLike, 0, 0, null); }, "Length is 2**53 - 1"); -arrayLike.length = 2**53; +arrayLike.length = 2 ** 53; assert.throws(TypeError, function() { Array.prototype.splice.call(arrayLike, 0, 0, null); }, "Length is 2**53"); -arrayLike.length = 2**53 + 2; +arrayLike.length = 2 ** 53 + 2; assert.throws(TypeError, function() { Array.prototype.splice.call(arrayLike, 0, 0, null); }, "Length is 2**53 + 2"); diff --git a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js index 1aaa20fc0b02bef9b93a3b4310da19ac6188b73e..c2f7a29a5be7b7da34ddc0abf04ca298400d0e4b 100644 --- a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js +++ b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js @@ -13,7 +13,11 @@ description: it is the function that should be invoked ---*/ var n = 0; -var obj = {toLocaleString: function() {n++}}; +var obj = { + toLocaleString: function() { + n++ + } +}; var arr = [undefined, obj, null, obj, obj]; arr.toLocaleString(); diff --git a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js index fd32d7702dd287895d451369fa9a5c7aade9043b..7bf7a44d5333f51b91e26b03334e3daba0025aa2 100644 --- a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js +++ b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js @@ -10,7 +10,11 @@ description: "[[Prototype]] of Array instance is Array.prototype" //CHECK#1 var n = 0; -var obj = {toLocaleString: function() {n++}}; +var obj = { + toLocaleString: function() { + n++ + } +}; Array.prototype[1] = obj; var x = [obj]; x.length = 2; diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js index dbcce931003bb31cca55edc9b481714cb4264770..29ce4d673fb524ddbd8dccce12f300f3aa5ada7c 100644 --- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js +++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js @@ -14,7 +14,7 @@ description: If Result(2) is zero, return the empty string var x = new Array(); if (x.toString() !== x.join()) { $ERROR('#1.1: x = new Array(); x.toString() === x.join(). Actual: ' + (x.toString())); -} else { +} else { if (x.toString() !== "") { $ERROR('#1.2: x = new Array(); x.toString() === "". Actual: ' + (x.toString())); } diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js index 62a82f8b1674ff6a4daa2316b913b95c57853d2c..29e41773436dc1890c4380eef91ba37871628999 100644 --- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js +++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js @@ -15,7 +15,7 @@ description: > ---*/ //CHECK#1 -var x = new Array(0,1,2,3); +var x = new Array(0, 1, 2, 3); if (x.toString() !== x.join()) { $ERROR('#1.1: x = new Array(0,1,2,3); x.toString() === x.join(). Actual: ' + (x.toString())); } else { @@ -37,7 +37,7 @@ if (x.toString() !== x.join()) { } //CHECK#3 -x = Array(undefined,1,null,3); +x = Array(undefined, 1, null, 3); if (x.toString() !== x.join()) { $ERROR('#3.1: x = Array(undefined,1,null,3); x.toString() === x.join(). Actual: ' + (x.toString())); } else { diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js index 96ad8087288c018da69eb05335f156592611d197..c3c93e46c86d45953189be4c5af9a00dd7f0a7c9 100644 --- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js +++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js @@ -11,7 +11,7 @@ description: Operator use ToString from array arguments ---*/ //CHECK#0 -var x = new Array("","",""); +var x = new Array("", "", ""); if (x.toString() !== x.join()) { $ERROR('#0.1: var x = new Array("","",""); x.toString() === x.join(). Actual: ' + (x.toString())); } else { @@ -21,7 +21,7 @@ if (x.toString() !== x.join()) { } //CHECK#1 -var x = new Array("\\","\\","\\"); +var x = new Array("\\", "\\", "\\"); if (x.toString() !== x.join()) { $ERROR('#1.1: var x = new Array("\\","\\","\\"); x.toString() === x.join(). Actual: ' + (x.toString())); } else { @@ -41,51 +41,51 @@ if (x.toString() !== x.join()) { } //CHECK#3 -var x = new Array(true,true,true); +var x = new Array(true, true, true); if (x.toString() !== x.join()) { - $ERROR('#3.1: var x = new Array(true,true,true); x.toString(true,true,true) === x.join(). Actual: ' + (x.toString(true,true,true))); + $ERROR('#3.1: var x = new Array(true,true,true); x.toString(true,true,true) === x.join(). Actual: ' + (x.toString(true, true, true))); } else { if (x.toString() !== "true,true,true") { - $ERROR('#3.2: var x = new Array(true,true,true); x.toString(true,true,true) === "true,true,true". Actual: ' + (x.toString(true,true,true))); + $ERROR('#3.2: var x = new Array(true,true,true); x.toString(true,true,true) === "true,true,true". Actual: ' + (x.toString(true, true, true))); } } //CHECK#4 -var x = new Array(null,null,null); +var x = new Array(null, null, null); if (x.toString() !== x.join()) { - $ERROR('#4.1: var x = new Array(null,null,null); x.toString(null,null,null) === x.join(). Actual: ' + (x.toString(null,null,null))); + $ERROR('#4.1: var x = new Array(null,null,null); x.toString(null,null,null) === x.join(). Actual: ' + (x.toString(null, null, null))); } else { if (x.toString() !== ",,") { - $ERROR('#4.2: var x = new Array(null,null,null); x.toString(null,null,null) === ",,". Actual: ' + (x.toString(null,null,null))); + $ERROR('#4.2: var x = new Array(null,null,null); x.toString(null,null,null) === ",,". Actual: ' + (x.toString(null, null, null))); } } //CHECK#5 -var x = new Array(undefined,undefined,undefined); +var x = new Array(undefined, undefined, undefined); if (x.toString() !== x.join()) { - $ERROR('#5.1: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === x.join(). Actual: ' + (x.toString(undefined,undefined,undefined))); + $ERROR('#5.1: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === x.join(). Actual: ' + (x.toString(undefined, undefined, undefined))); } else { if (x.toString() !== ",,") { - $ERROR('#5.2: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === ",,". Actual: ' + (x.toString(undefined,undefined,undefined))); + $ERROR('#5.2: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === ",,". Actual: ' + (x.toString(undefined, undefined, undefined))); } } //CHECK#6 -var x = new Array(Infinity,Infinity,Infinity); +var x = new Array(Infinity, Infinity, Infinity); if (x.toString() !== x.join()) { - $ERROR('#6.1: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === x.join(). Actual: ' + (x.toString(Infinity,Infinity,Infinity))); + $ERROR('#6.1: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === x.join(). Actual: ' + (x.toString(Infinity, Infinity, Infinity))); } else { if (x.toString() !== "Infinity,Infinity,Infinity") { - $ERROR('#6.2: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.toString(Infinity,Infinity,Infinity))); + $ERROR('#6.2: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.toString(Infinity, Infinity, Infinity))); } } //CHECK#7 -var x = new Array(NaN,NaN,NaN); +var x = new Array(NaN, NaN, NaN); if (x.toString() !== x.join()) { - $ERROR('#7.1: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === x.join(). Actual: ' + (x.toString(NaN,NaN,NaN))); + $ERROR('#7.1: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === x.join(). Actual: ' + (x.toString(NaN, NaN, NaN))); } else { if (x.toString() !== "NaN,NaN,NaN") { - $ERROR('#7.2: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.toString(NaN,NaN,NaN))); + $ERROR('#7.2: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.toString(NaN, NaN, NaN))); } } diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js index 1471739914430401bd6726c3975fd266e3e6f9f0..02045cb350e52a7a4246405244cc7bf6dfbcd9fb 100644 --- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js +++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js @@ -11,7 +11,11 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "+"}}; +var object = { + valueOf: function() { + return "+" + } +}; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#1.1: var object = {valueOf: function() {return "+"}} var x = new Array(object); x.toString() === x.join(). Actual: ' + (x.toString())); @@ -22,7 +26,14 @@ if (x.toString() !== x.join()) { } //CHECK#2 -var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return "*" + } +}; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#2.1: var object = {valueOf: function() {return "+"}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString())); @@ -33,7 +44,14 @@ if (x.toString() !== x.join()) { } //CHECK#3 -var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return {} + } +}; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#3.1: var object = {valueOf: function() {return x.join()}, toString: function() {return {}}} var x = new Array(object); x.toString() === "+". Actual: ' + (x.toString())); @@ -45,7 +63,14 @@ if (x.toString() !== x.join()) { //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "*" + } + }; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString())); @@ -64,7 +89,11 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "*"}}; +var object = { + toString: function() { + return "*" + } +}; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#5.1: var object = {toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString())); @@ -75,7 +104,14 @@ if (x.toString() !== x.join()) { } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "*"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "*" + } +} var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#6.1: var object = {valueOf: function() {return {}}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString())); @@ -87,7 +123,14 @@ if (x.toString() !== x.join()) { //CHECK#7 try { - var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "+" + }, + toString: function() { + throw "error" + } + }; var x = new Array(object); x.toString(); $ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}} var x = new Array(object); x.toString() throw "error". Actual: ' + (x.toString())); @@ -100,7 +143,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var x = new Array(object); x.toString(); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}} var x = new Array(object); x.toString() throw TypeError. Actual: ' + (x.toString())); diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js index 325a8aded2e0b3636d13ab95dab25eed3a5d927d..f45be1170a0c88ba798ae4d68637e0bf6cfe1a92 100644 --- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js +++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js @@ -19,19 +19,19 @@ obj.unshift = Array.prototype.unshift; if (obj.length !== undefined) { $ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length)); } else { - //CHECK#1 - var unshift = obj.unshift(-1); - if (unshift !== 1) { - $ERROR('#1: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1) === 1. Actual: ' + (unshift)); - } - //CHECK#2 - if (obj.length !== 1) { - $ERROR('#2: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj.length === 1. Actual: ' + (obj.length)); - } - //CHECK#3 - if (obj["0"] !== -1) { - $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj["0"] === -1. Actual: ' + (obj["0"])); - } + //CHECK#1 + var unshift = obj.unshift(-1); + if (unshift !== 1) { + $ERROR('#1: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1) === 1. Actual: ' + (unshift)); + } + //CHECK#2 + if (obj.length !== 1) { + $ERROR('#2: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj.length === 1. Actual: ' + (obj.length)); + } + //CHECK#3 + if (obj["0"] !== -1) { + $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj["0"] === -1. Actual: ' + (obj["0"])); + } } //CHECK#4 diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js index c169a2c06f4dfa559427ee3bdff621af55145281..979bc566b238891e2d579a2f414eb879bcd5a6de 100644 --- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js +++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js @@ -16,21 +16,39 @@ var obj = {}; obj.unshift = Array.prototype.unshift; //CHECK#1 -obj.length = {valueOf: function() {return 3}}; +obj.length = { + valueOf: function() { + return 3 + } +}; var unshift = obj.unshift(); if (unshift !== 3) { $ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.unshift() === 3. Actual: ' + (unshift)); } //CHECK#2 -obj.length = {valueOf: function() {return 3}, toString: function() {return 1}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return 1 + } +}; var unshift = obj.unshift(); if (unshift !== 3) { $ERROR('#0: obj.length = {valueOf: function() {return 3}, toString: function() {return 1}} obj.unshift() === 3. Actual: ' + (unshift)); } //CHECK#3 -obj.length = {valueOf: function() {return 3}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return {} + } +}; var unshift = obj.unshift(); if (unshift !== 3) { $ERROR('#1: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.unshift() === 3. Actual: ' + (unshift)); @@ -38,7 +56,14 @@ if (unshift !== 3) { //CHECK#4 try { - obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + throw "error" + } + }; var unshift = obj.unshift(); if (unshift !== 3) { $ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.unshift() === ",". Actual: ' + (unshift)); @@ -53,14 +78,25 @@ catch (e) { } //CHECK#5 -obj.length = {toString: function() {return 1}}; +obj.length = { + toString: function() { + return 1 + } +}; var unshift = obj.unshift(); if (unshift !== 1) { $ERROR('#5: obj.length = {toString: function() {return 1}} obj.unshift() === 1. Actual: ' + (unshift)); } //CHECK#6 -obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} var unshift = obj.unshift(); if (unshift !== 1) { $ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} obj.unshift() === 1. Actual: ' + (unshift)); @@ -69,7 +105,14 @@ if (unshift !== 1) { //CHECK#7 try { - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; var unshift = obj.unshift(); $ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; obj.unshift() throw "error". Actual: ' + (unshift)); } @@ -82,7 +125,14 @@ catch (e) { //CHECK#8 try { - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var unshift = obj.unshift(); $ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.unshift() throw TypeError. Actual: ' + (unshift)); } diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js index fe67c11de35f62dd69c931fcc287aa11af96dc38..fcbbe10dd7c13e229d1266ea48a6b09102540b78 100644 --- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js +++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js @@ -26,20 +26,20 @@ if (obj.length !== 3) { //CHECK#3 if (obj[0] !== "x") { - $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0])); + $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0])); } //CHECK#4 if (obj[1] !== "y") { - $ERROR('#4: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1])); + $ERROR('#4: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1])); } //CHECK#5 if (obj[2] !== "z") { - $ERROR('#5: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2])); + $ERROR('#5: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2])); } //CHECK#6 if (obj[3] !== undefined) { - $ERROR('#6: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[3] === undefined. Actual: ' + (obj[3])); + $ERROR('#6: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[3] === undefined. Actual: ' + (obj[3])); } diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js index 758fbb33865c4ca88998fd0852df622af92d047f..0235e42bbb24062491d6f83cee9502b2c8997d56 100644 --- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js +++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js @@ -40,7 +40,9 @@ if (x[0] !== -1) { Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.unshift = Array.prototype.unshift; -x = {0:1}; +x = { + 0: 1 +}; //CHECK#5 var unshift = x.unshift(0); diff --git a/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js index 4818d2ab82b626d86bc15b327dd77a794fff4d03..9f2e14184594d3fae07a171d47b11a3355542398 100644 --- a/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js +++ b/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js @@ -15,18 +15,18 @@ info: | var arrayLike = {}; -arrayLike.length = 2**53 - 1; +arrayLike.length = 2 ** 53 - 1; Array.prototype.unshift.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1"); -arrayLike.length = 2**53; +arrayLike.length = 2 ** 53; Array.prototype.unshift.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53"); -arrayLike.length = 2**53 + 2; +arrayLike.length = 2 ** 53 + 2; Array.prototype.unshift.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2"); arrayLike.length = Infinity; Array.prototype.unshift.call(arrayLike); -assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity"); +assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity"); diff --git a/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js b/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js index bd4ad9aa6656965477b332b80e479d2a115a0d43..5dff513e40627ff0743f86c02dae19f5d569ab63 100644 --- a/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js +++ b/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js @@ -26,7 +26,7 @@ info: | function StopUnshift() {} var arrayLike = { - get "9007199254740986"() { + get "9007199254740986" () { throw new StopUnshift(); }, "9007199254740987": "9007199254740987", @@ -34,27 +34,27 @@ var arrayLike = { "9007199254740989": "9007199254740989", /* "9007199254740990": empty */ "9007199254740991": "9007199254740991", - length: 2**53 - 2 + length: 2 ** 53 - 2 }; assert.throws(StopUnshift, function() { Array.prototype.unshift.call(arrayLike, null); }); -assert.sameValue(arrayLike.length, 2**53 - 2, - "arrayLike.length is unchanged"); +assert.sameValue(arrayLike.length, 2 ** 53 - 2, + "arrayLike.length is unchanged"); assert.sameValue(arrayLike["9007199254740987"], "9007199254740987", - "arrayLike['9007199254740987'] is unchanged"); + "arrayLike['9007199254740987'] is unchanged"); assert.sameValue(arrayLike["9007199254740988"], "9007199254740987", - "arrayLike['9007199254740988'] is replaced with arrayLike['9007199254740987']"); + "arrayLike['9007199254740988'] is replaced with arrayLike['9007199254740987']"); assert.sameValue("9007199254740989" in arrayLike, false, - "arrayLike['9007199254740989'] is removed"); + "arrayLike['9007199254740989'] is removed"); assert.sameValue(arrayLike["9007199254740990"], "9007199254740989", - "arrayLike['9007199254740990'] is replaced with arrayLike['9007199254740989']"); + "arrayLike['9007199254740990'] is replaced with arrayLike['9007199254740989']"); assert.sameValue(arrayLike["9007199254740991"], "9007199254740991", - "arrayLike['9007199254740991'] is unchanged"); + "arrayLike['9007199254740991'] is unchanged"); diff --git a/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js index a6e0acc306ce63465601c2ce06601dfed6f04b2a..9ad723eca5bdf0a1f579b3885fa75a2d00ed8c7e 100644 --- a/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js +++ b/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js @@ -16,17 +16,17 @@ info: | var arrayLike = {}; -arrayLike.length = 2**53 - 1; +arrayLike.length = 2 ** 53 - 1; assert.throws(TypeError, function() { Array.prototype.unshift.call(arrayLike, null); }, "Length is 2**53 - 1"); -arrayLike.length = 2**53; +arrayLike.length = 2 ** 53; assert.throws(TypeError, function() { Array.prototype.unshift.call(arrayLike, null); }, "Length is 2**53"); -arrayLike.length = 2**53 + 2; +arrayLike.length = 2 ** 53 + 2; assert.throws(TypeError, function() { Array.prototype.unshift.call(arrayLike, null); }, "Length is 2**53 + 2"); diff --git a/test/built-ins/Array/prototype/values/iteration-mutable.js b/test/built-ins/Array/prototype/values/iteration-mutable.js index 15a0170d14ab0a392a3757e06cc26089674c32b4..74142c4b5947ee787fee79621b9ee48bffca635a 100644 --- a/test/built-ins/Array/prototype/values/iteration-mutable.js +++ b/test/built-ins/Array/prototype/values/iteration-mutable.js @@ -20,7 +20,7 @@ var result; array.push('a'); result = iterator.next(); -assert.sameValue(result.done, false , 'First result `done` flag'); +assert.sameValue(result.done, false, 'First result `done` flag'); assert.sameValue(result.value, 'a', 'First result `value`'); result = iterator.next(); diff --git a/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js b/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js index 85cfd57a53abd1a1fe6a8bd45c1e3a02d0851c42..e53c92b1c577955f4513a0134e53e9441e45406e 100644 --- a/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js +++ b/test/built-ins/ArrayBuffer/data-allocation-after-object-creation.js @@ -23,9 +23,9 @@ info: | features: [Reflect.construct] ---*/ -function DummyError() { } +function DummyError() {} -var newTarget = function(){}.bind(null); +var newTarget = function() {}.bind(null); Object.defineProperty(newTarget, "prototype", { get: function() { throw new DummyError(); diff --git a/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js b/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js index a32cf9bd55f97c5ccfc2e094dd338cddcc068eb3..2e17f26bc299c9db272898872baf6419435cc376 100644 --- a/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js +++ b/test/built-ins/ArrayBuffer/newtarget-prototype-is-not-object.js @@ -22,7 +22,7 @@ info: | features: [Reflect.construct, Symbol] ---*/ -function newTarget() { } +function newTarget() {} newTarget.prototype = undefined; var arrayBuffer = Reflect.construct(ArrayBuffer, [1], newTarget); diff --git a/test/built-ins/ArrayBuffer/prototype-from-newtarget.js b/test/built-ins/ArrayBuffer/prototype-from-newtarget.js index 8044f622b22f791bf1e94531315f455cdce4586c..0d6c097d7f6a264dbb345ce7c36412594a2c4d57 100644 --- a/test/built-ins/ArrayBuffer/prototype-from-newtarget.js +++ b/test/built-ins/ArrayBuffer/prototype-from-newtarget.js @@ -25,7 +25,7 @@ features: [Reflect.construct] var arrayBuffer = Reflect.construct(ArrayBuffer, [8], Object); assert.sameValue(Object.getPrototypeOf(arrayBuffer), Object.prototype, "NewTarget is built-in Object constructor"); -var newTarget = function(){}.bind(null); +var newTarget = function() {}.bind(null); Object.defineProperty(newTarget, "prototype", { get: function() { return Array.prototype; diff --git a/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js b/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js index 72534dccf17246e3e6011019adb30b9debcabd15..383aaeb938ead51d1b80022b99f8ebdc1d4a6005 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js @@ -17,6 +17,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 6, end = undefined; +var start = 6, + end = undefined; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js index 10d47bf1882a53267875f131e242b86b93abca8d..5138b910dabea7b0ef17c2f0927b3fe59f0b8694 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 1, end = 12; +var start = 1, + end = 12; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 7, "slice(1, 12)"); -var start = 2, end = 0x100000000; +var start = 2, + end = 0x100000000; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(2, 0x100000000)"); -var start = 3, end = +Infinity; +var start = 3, + end = +Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 5, "slice(3, Infinity)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js index c41245c864ac78dd4ff64b0364c412803de35344..bafdd8a4fc03d02192f46104fc19238b68adf037 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 2, end = -4; +var start = 2, + end = -4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2, "slice(2, -4)"); -var start = 2, end = -10; +var start = 2, + end = -10; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -10)"); -var start = 2, end = -Infinity; +var start = 2, + end = -Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -Infinity)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js index 34781706e05951d720e0d90c9ba6d450657159d9..afc33ffff09ab5baa0b1aaebb06c63fc06cf05a3 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = -5, end = 6; +var start = -5, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 3, "slice(-5, 6)"); -var start = -12, end = 6; +var start = -12, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-12, 6)"); -var start = -Infinity, end = 6; +var start = -Infinity, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-Infinity, 6)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js index 1a3406f85000d4edd5587a9b75c45c51fd8aa4ad..83c2ba3191efdf3a4b1246fc3b05a909e5a643ae 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js @@ -18,4 +18,6 @@ info: | assert.sameValue(Object.prototype.hasOwnProperty.call(ArrayBuffer.prototype.slice, "prototype"), false); var arrayBuffer = new ArrayBuffer(8); -assert.throws(TypeError, function() { new arrayBuffer.slice(); }); +assert.throws(TypeError, function() { + new arrayBuffer.slice(); +}); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js b/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js index ce293de3f8da5fb348d1461f3faf86e2198417a2..94cf973cec75b1ddaa0416d5b59c07f81d4e4acf 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js @@ -26,7 +26,9 @@ features: [Symbol] var arrayBuffer = new ArrayBuffer(8); -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} arrayBuffer.constructor = null; assert.throws(TypeError, callSlice, "`constructor` value is null"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js index a2ae81988e0267db7a008d5c7e6161ae24abcdff..707a12acb0055d72dc0f1cd01b3e2545680b92fb 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js @@ -29,7 +29,9 @@ var speciesConstructor = {}; var arrayBuffer = new ArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = {}; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Object"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js index d358cb90b55dd3cc3ece7521db40125610fc63b3..8a751cd224af114d0fa40f511f5d6a93b9cfe882 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js @@ -29,7 +29,9 @@ var speciesConstructor = {}; var arrayBuffer = new ArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = true; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Boolean"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js b/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js index 65ad471f9bcefc63203922929e697d88a164ca60..35943793412b573e1cac96b79b604971c3c7f471 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js @@ -17,6 +17,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = undefined, end = 6; +var start = undefined, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js index 2731261e098d11bbdfbbc3049917f28e0cf6d112..af0ca352ad83d5453d5c782d893f2074048465de 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js @@ -16,6 +16,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 5, end = 4; +var start = 5, + end = 4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js index b8abf3b5d46fc7a51a77663c178ead814c50431f..70e00c74149fc59a575e36fe0088cba0448f0e2a 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 10, end = 8; +var start = 10, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(10, 8)"); -var start = 0x100000000, end = 7; +var start = 0x100000000, + end = 7; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(0x100000000, 7)"); -var start = +Infinity, end = 6; +var start = +Infinity, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(+Infinity, 6)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js index 4beb7335ff1ff7da2e3559520305193514bc33ac..54e8ab1fa71a9d8c173b62a151cea626bf1127a6 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js @@ -17,10 +17,12 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 0, end = 4.5; +var start = 0, + end = 4.5; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 4, "slice(0, 4.5)"); -var start = 0, end = NaN; +var start = 0, + end = NaN; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(0, NaN)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js index c775d423152911ae3c70781f891c4be4b5ab4fa8..3150213e6a7fe2546d4deedb7985a62b2b03351d 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js @@ -17,10 +17,12 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 4.5, end = 8; +var start = 4.5, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 4, "slice(4.5, 8)"); -var start = NaN, end = 8; +var start = NaN, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 8, "slice(NaN, 8)"); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-construct.js b/test/built-ins/AsyncFunction/AsyncFunction-construct.js index f839e90f01f5456cf0e1cecbe70a613d41397384..bb71ff214b66d41b64ea6d9b72c377729d200bc5 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-construct.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-construct.js @@ -9,7 +9,7 @@ description: > similarly to functions. ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; var fn; fn = AsyncFunction("a", "await 1;"); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js b/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js index f1e790b2a04e29c9c83b38530e0a912a752dbee3..16c64658e690c4b500dc5bf08afa62c73087f370 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-is-extensible.js @@ -8,6 +8,6 @@ description: > %AsyncFunction% is extensible ---*/ -var AsyncFunction = async function() { }.constructor; +var AsyncFunction = async function() {}.constructor; AsyncFunction.x = 1; assert.sameValue(AsyncFunction.x, 1); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js b/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js index 737d3411c03c10b7296ecba70f12dc5cbef2e48e..9eb72139f99d0bd16ec33ca6b582530138806fd3 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js @@ -7,9 +7,8 @@ esid: sec-async-function-constructor description: > %AsyncFunction% is a subclass of Function ---*/ -async function foo() { }; +async function foo() {}; var AsyncFunction = foo.constructor; assert.sameValue(Object.getPrototypeOf(AsyncFunction), Function, "Prototype of constructor is Function"); assert.sameValue(Object.getPrototypeOf(AsyncFunction.prototype), Function.prototype, "Prototype of constructor's prototype is Function.prototype"); assert(foo instanceof Function, 'async function instance is instanceof Function'); - diff --git a/test/built-ins/AsyncFunction/AsyncFunction-length.js b/test/built-ins/AsyncFunction/AsyncFunction-length.js index 60af9c72fdeeaa15caddc54d11801fbcfd2d638f..c6ba9360eb75c606350799921a96bee63e17307c 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-length.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-length.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; assert.sameValue(AsyncFunction.length, 1); verifyNotWritable(AsyncFunction, 'length'); verifyNotEnumerable(AsyncFunction, 'length'); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-name.js b/test/built-ins/AsyncFunction/AsyncFunction-name.js index cdc9ab069a199731c86ed241f1f7b6a78f8ce07f..637d1ece14ac4f42e15f6076582b52bfdf090cdd 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-name.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-name.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; assert.sameValue(AsyncFunction.name, "AsyncFunction"); verifyNotWritable(AsyncFunction, "name"); verifyNotEnumerable(AsyncFunction, "name"); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-prototype.js b/test/built-ins/AsyncFunction/AsyncFunction-prototype.js index 2a2801238d80b27097a326663e65d3f03a6ee96a..99a040b3f308a32975bba931d55e8d0687bd4ea1 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-prototype.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-prototype.js @@ -8,7 +8,7 @@ description: AsyncFunction has a prototype property with writable false, enumera includes: [propertyHelper.js] ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; verifyNotConfigurable(AsyncFunction, 'prototype'); verifyNotWritable(AsyncFunction, 'prototype'); verifyNotEnumerable(AsyncFunction, 'prototype'); diff --git a/test/built-ins/AsyncFunction/AsyncFunction.js b/test/built-ins/AsyncFunction/AsyncFunction.js index 2f958c813eaa119eef696c40a424c92aa9001e1e..77c5aaef3b6792d6bf62296a1d9e7e593d4af89b 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction.js +++ b/test/built-ins/AsyncFunction/AsyncFunction.js @@ -8,5 +8,5 @@ description: > %AsyncFunction% exists and is a function ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; assert.sameValue(typeof AsyncFunction, "function"); diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js index 5dd8cdb97bf2bc89498437a3ba7855b43e88f9d3..f8e4d7dde68ab1b27ba606258e33ff3e271369b9 100644 --- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js +++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js @@ -8,7 +8,6 @@ description: > %AsyncFunctionPrototype% has a [[Extensible]] of true ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; AsyncFunction.prototype.x = 1; assert.sameValue(AsyncFunction.prototype.x, 1); - diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js index a917fbd258d9ba86ebefde037ecb65f0c8185aea..327c5ee0fe54d5260f884a9ba35236084b366535 100644 --- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js +++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js @@ -6,5 +6,5 @@ author: Brian Terlson <brian.terlson@microsoft.com> esid: sec-sync-function-prototype-properties description: AsyncFunction.prototype has a [[prototype]] of Function.prototype ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; assert.sameValue(Object.getPrototypeOf(AsyncFunction.prototype), Function.prototype); diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js index e2a35b2105a66f037cbe3d957535ae68f96f8f6c..d9e8cb1ecf485cbfb190cfa1d116a9588d67d528 100644 --- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js +++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-to-string.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] features: [Symbol.toStringTag] ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; var AFP = AsyncFunction.prototype; assert.sameValue(AFP[Symbol.toStringTag], "AsyncFunction", "toStringTag value"); verifyNotWritable(AFP, Symbol.toStringTag); diff --git a/test/built-ins/AsyncFunction/instance-construct-throws.js b/test/built-ins/AsyncFunction/instance-construct-throws.js index 1ca25171fe1db1e31a2082aca9319951a701aa85..8c5bec687c8c2850090c1af83dbb1dc45ea76917 100644 --- a/test/built-ins/AsyncFunction/instance-construct-throws.js +++ b/test/built-ins/AsyncFunction/instance-construct-throws.js @@ -25,7 +25,7 @@ info: | ... ---*/ -async function foo() { } +async function foo() {} assert.throws(TypeError, function() { new foo(); }); diff --git a/test/built-ins/AsyncFunction/instance-has-name.js b/test/built-ins/AsyncFunction/instance-has-name.js index cf118edae9bb7c59fd95696a423b7652f0719ae3..1def25c881746fa7e4707daab3c826b9b2b989c7 100644 --- a/test/built-ins/AsyncFunction/instance-has-name.js +++ b/test/built-ins/AsyncFunction/instance-has-name.js @@ -8,7 +8,7 @@ description: Async function declarations have a name property includes: [propertyHelper.js] ---*/ -async function foo () { }; +async function foo() {}; assert.sameValue(foo.name, "foo"); verifyNotWritable(foo, "name"); diff --git a/test/built-ins/AsyncFunction/instance-length.js b/test/built-ins/AsyncFunction/instance-length.js index 288ab45343ce9278a7a3f0fe2dd92f0bff970794..dd278bd05bac33709539ddb6d3497d403bb10dfa 100644 --- a/test/built-ins/AsyncFunction/instance-length.js +++ b/test/built-ins/AsyncFunction/instance-length.js @@ -10,9 +10,9 @@ description: > includes: [propertyHelper.js] ---*/ -async function l0() { } -async function l1(a) { } -async function l2(a, b) { } +async function l0() {} +async function l1(a) {} +async function l2(a, b) {} assert.sameValue(l0.length, 0); assert.sameValue(l1.length, 1); assert.sameValue(l2.length, 2) diff --git a/test/built-ins/AsyncFunction/instance-prototype-property.js b/test/built-ins/AsyncFunction/instance-prototype-property.js index 3b631ae28310b0065edc8b01afc31c22bb82847b..6e14bff3f06c29dd3156bf07672504a60c758c1a 100644 --- a/test/built-ins/AsyncFunction/instance-prototype-property.js +++ b/test/built-ins/AsyncFunction/instance-prototype-property.js @@ -7,6 +7,6 @@ esid: sec-async-function-instances description: > Async function instances do not have a prototype property. ---*/ -async function foo() { }; +async function foo() {}; assert.sameValue(foo.prototype, undefined, 'foo.prototype should be undefined'); assert(!foo.hasOwnProperty('prototype'), 'foo.prototype should not exist'); diff --git a/test/built-ins/AsyncFunction/is-not-a-global.js b/test/built-ins/AsyncFunction/is-not-a-global.js index baf5140ff51491dc32437e0adc3b8b7d3f329512..432ebf9a1822c57a15a760d072b9c0913b0e3481 100644 --- a/test/built-ins/AsyncFunction/is-not-a-global.js +++ b/test/built-ins/AsyncFunction/is-not-a-global.js @@ -8,6 +8,6 @@ description: > %AsyncFunction% is not exposed as a global ---*/ -assert.throws(ReferenceError, function () { +assert.throws(ReferenceError, function() { AsyncFunction }, "AsyncFunction should not be present as a global"); diff --git a/test/built-ins/Atomics/add/bad-range.js b/test/built-ins/Atomics/add/bad-range.js index 2139e57c23ff5da1277fb8ed6d22dd1651529f6d..b7aa9cd5abb1d1452ca555a17aadf40b902b0d3e 100644 --- a/test/built-ins/Atomics/add/bad-range.js +++ b/test/built-ins/Atomics/add/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.add(view, Idx, 10)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.add(view, Idx, 10)); + }); }, views); diff --git a/test/built-ins/Atomics/add/good-views.js b/test/built-ins/Atomics/add/good-views.js index 58cf977f05c7b10f94ad25febf42c798c36b9170..ff1805808e1ffd9e815108e1c5362fb8c83b11e6 100644 --- a/test/built-ins/Atomics/add/good-views.js +++ b/test/built-ins/Atomics/add/good-views.js @@ -14,42 +14,42 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - // Add positive number - view[8] = 0; - assert.sameValue(Atomics.add(view, 8, 10), 0); - assert.sameValue(view[8], 10); - - // Add negative number - assert.sameValue(Atomics.add(view, 8, -5), 10); - assert.sameValue(view[8], 5); - - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.add(view, 3, 0), control[0], - "Result is negative and subject to coercion"); - - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.add(view, 3, 0), control[0], - "Result is subject to chopping"); - - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.add(view, 3, 0), control[0], - "Result is subject to chopping"); - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.add(view, Idx, 0), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + // Add positive number + view[8] = 0; + assert.sameValue(Atomics.add(view, 8, 10), 0); + assert.sameValue(view[8], 10); + + // Add negative number + assert.sameValue(Atomics.add(view, 8, -5), 10); + assert.sameValue(view[8], 5); + + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.add(view, 3, 0), control[0], + "Result is negative and subject to coercion"); + + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.add(view, 3, 0), control[0], + "Result is subject to chopping"); + + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.add(view, 3, 0), control[0], + "Result is subject to chopping"); + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.add(view, Idx, 0), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/add/non-views.js b/test/built-ins/Atomics/add/non-views.js index f6c30c5529c4f8b5dc375b67552ed30d9715b75a..e0923889a494a135105f9aeff3945d4a4f4cca34 100644 --- a/test/built-ins/Atomics/add/non-views.js +++ b/test/built-ins/Atomics/add/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.add(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.add(view, 0, 0))); }); diff --git a/test/built-ins/Atomics/add/nonshared-int-views.js b/test/built-ins/Atomics/add/nonshared-int-views.js index 1528abd3a0b007092b82f6802c9b7431b350995d..3719f2f90086a248d3177240c00e1a3f7190f180 100644 --- a/test/built-ins/Atomics/add/nonshared-int-views.js +++ b/test/built-ins/Atomics/add/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.add(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.add(view, 0, 0))); }, int_views); diff --git a/test/built-ins/Atomics/add/shared-nonint-views.js b/test/built-ins/Atomics/add/shared-nonint-views.js index a62233274c66e033d2d7a6ee142a9b4309596015..21d834eae972da28afb97ac4a5c8fc0f508ff4c2 100644 --- a/test/built-ins/Atomics/add/shared-nonint-views.js +++ b/test/built-ins/Atomics/add/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.add(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.add(view, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/and/bad-range.js b/test/built-ins/Atomics/and/bad-range.js index fe91ae80196a8f7a7f3a6318ea7fdbbdb37f90e3..1451092a2d8155ae7b3bab108cc4bed5c891c2e5 100644 --- a/test/built-ins/Atomics/and/bad-range.js +++ b/test/built-ins/Atomics/and/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.and(view, Idx, 10)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.and(view, Idx, 10)); + }); }, views); diff --git a/test/built-ins/Atomics/and/good-views.js b/test/built-ins/Atomics/and/good-views.js index bfad491a02cc994d09e042dc146894519ba4a308..e8435ff2e750c8916d6a018645ae6946ba1049fc 100644 --- a/test/built-ins/Atomics/and/good-views.js +++ b/test/built-ins/Atomics/and/good-views.js @@ -14,49 +14,49 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - view[8] = 0x33333333; - control[0] = 0x33333333; - assert.sameValue(Atomics.and(view, 8, 0x55555555), control[0], - "Result is subject to chopping"); - - control[0] = 0x11111111; - assert.sameValue(view[8], control[0]); - assert.sameValue(Atomics.and(view, 8, 0xF0F0F0F0), control[0], - "Result is subject to chopping"); - - control[0] = 0x10101010; - assert.sameValue(view[8], control[0]); - - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.and(view, 3, 0), control[0], - "Result is negative and subject to coercion"); - assert.sameValue(view[3], 0); - - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.and(view, 3, 0), control[0], - "Result is subjective to chopping"); - assert.sameValue(view[3], 0); - - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.and(view, 3, 0), control[0], - "Result is subjective to chopping"); - assert.sameValue(view[3], 0); - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.and(view, Idx, 0), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + view[8] = 0x33333333; + control[0] = 0x33333333; + assert.sameValue(Atomics.and(view, 8, 0x55555555), control[0], + "Result is subject to chopping"); + + control[0] = 0x11111111; + assert.sameValue(view[8], control[0]); + assert.sameValue(Atomics.and(view, 8, 0xF0F0F0F0), control[0], + "Result is subject to chopping"); + + control[0] = 0x10101010; + assert.sameValue(view[8], control[0]); + + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.and(view, 3, 0), control[0], + "Result is negative and subject to coercion"); + assert.sameValue(view[3], 0); + + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.and(view, 3, 0), control[0], + "Result is subjective to chopping"); + assert.sameValue(view[3], 0); + + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.and(view, 3, 0), control[0], + "Result is subjective to chopping"); + assert.sameValue(view[3], 0); + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.and(view, Idx, 0), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/and/non-views.js b/test/built-ins/Atomics/and/non-views.js index 476238fe7a0d36c882ed727d11367b8887a2256e..bdcfbac7443e1836904c5971ddd138a8a7af5d37 100644 --- a/test/built-ins/Atomics/and/non-views.js +++ b/test/built-ins/Atomics/and/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.and(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.and(view, 0, 0))); }); diff --git a/test/built-ins/Atomics/and/nonshared-int-views.js b/test/built-ins/Atomics/and/nonshared-int-views.js index 7184954bf3856fa34e4d0d1d2064a3a47753bdfb..8d70354874acf1f7692c593ce77a08c05047bd7c 100644 --- a/test/built-ins/Atomics/and/nonshared-int-views.js +++ b/test/built-ins/Atomics/and/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.and(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.and(view, 0, 0))); }, int_views); diff --git a/test/built-ins/Atomics/and/shared-nonint-views.js b/test/built-ins/Atomics/and/shared-nonint-views.js index 9fd8b9ab8cc0747c1e9d008bf77d4d27b43406c2..a7538d011781ffbe5d39aa121b70f66591d2d690 100644 --- a/test/built-ins/Atomics/and/shared-nonint-views.js +++ b/test/built-ins/Atomics/and/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.and(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.and(view, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/compareExchange/bad-range.js b/test/built-ins/Atomics/compareExchange/bad-range.js index 11824fc57668065d872bf956021500ff6fa41f03..b7964e361014e544ba86f5c5f14a9aceb588b78b 100644 --- a/test/built-ins/Atomics/compareExchange/bad-range.js +++ b/test/built-ins/Atomics/compareExchange/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.compareExchange(view, Idx, 10, 0)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.compareExchange(view, Idx, 10, 0)); + }); }, views); diff --git a/test/built-ins/Atomics/compareExchange/good-views.js b/test/built-ins/Atomics/compareExchange/good-views.js index c2d49e1885575bc7414c02f4b4ed65bb03354e80..a803a6f85ba9bd8d4a47df699dd8d5eef58be4e9 100644 --- a/test/built-ins/Atomics/compareExchange/good-views.js +++ b/test/built-ins/Atomics/compareExchange/good-views.js @@ -13,62 +13,67 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; -var good_indices = [ (view) => 0/-1, // -0 - (view) => '-0', - (view) => view.length - 1, - (view) => ({ valueOf: () => 0 }), - (view) => ({ toString: () => '0', valueOf: false }) // non-callable valueOf triggers invocation of toString - ]; +var good_indices = [(view) => 0 / -1, // -0 + (view) => '-0', + (view) => view.length - 1, + (view) => ({ + valueOf: () => 0 + }), + (view) => ({ + toString: () => '0', + valueOf: false + }) // non-callable valueOf triggers invocation of toString +]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. + // Make it interesting - use non-zero byteOffsets and non-zero indexes. - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); - // Performs the exchange - view[8] = 0; - assert.sameValue(Atomics.compareExchange(view, 8, 0, 10), 0); - assert.sameValue(view[8], 10); + // Performs the exchange + view[8] = 0; + assert.sameValue(Atomics.compareExchange(view, 8, 0, 10), 0); + assert.sameValue(view[8], 10); - view[8] = 0; - assert.sameValue(Atomics.compareExchange(view, 8, 1, 10), 0, - "Does not perform the exchange"); - assert.sameValue(view[8], 0); + view[8] = 0; + assert.sameValue(Atomics.compareExchange(view, 8, 1, 10), 0, + "Does not perform the exchange"); + assert.sameValue(view[8], 0); - view[8] = 0; - assert.sameValue(Atomics.compareExchange(view, 8, 0, -5), 0, - "Performs the exchange, coercing the value being stored"); - control[0] = -5; - assert.sameValue(view[8], control[0]); + view[8] = 0; + assert.sameValue(Atomics.compareExchange(view, 8, 0, -5), 0, + "Performs the exchange, coercing the value being stored"); + control[0] = -5; + assert.sameValue(view[8], control[0]); - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.compareExchange(view, 3, -5, 0), control[0], - "Performs the exchange, coercing the value being tested"); - assert.sameValue(view[3], 0); + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.compareExchange(view, 3, -5, 0), control[0], + "Performs the exchange, coercing the value being tested"); + assert.sameValue(view[3], 0); - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.compareExchange(view, 3, 12345, 0), control[0], - "Performs the exchange, chopping the value being tested"); - assert.sameValue(view[3], 0); + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.compareExchange(view, 3, 12345, 0), control[0], + "Performs the exchange, chopping the value being tested"); + assert.sameValue(view[3], 0); - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.compareExchange(view, 3, 123456789, 0), control[0], - "Performs the exchange, chopping the value being tested"); - assert.sameValue(view[3], 0); + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.compareExchange(view, 3, 123456789, 0), control[0], + "Performs the exchange, chopping the value being tested"); + assert.sameValue(view[3], 0); - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.compareExchange(view, Idx, 37, 0), 37); - }); + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.compareExchange(view, Idx, 37, 0), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/compareExchange/non-views.js b/test/built-ins/Atomics/compareExchange/non-views.js index d579034078f3b3b82aca900653a6dd14d88730fa..fc51c91ecade1ab42dfcb263faccc999985009f0 100644 --- a/test/built-ins/Atomics/compareExchange/non-views.js +++ b/test/built-ins/Atomics/compareExchange/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0))); + assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0))); }); diff --git a/test/built-ins/Atomics/compareExchange/nonshared-int-views.js b/test/built-ins/Atomics/compareExchange/nonshared-int-views.js index c3a95b239f1054c1651fb13d695972c18414e115..c616509445098e2f139fad4ca4fff6e41057b597 100644 --- a/test/built-ins/Atomics/compareExchange/nonshared-int-views.js +++ b/test/built-ins/Atomics/compareExchange/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0))); + assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0))); }, int_views); diff --git a/test/built-ins/Atomics/compareExchange/shared-nonint-views.js b/test/built-ins/Atomics/compareExchange/shared-nonint-views.js index 069e45abb98014d24ba17a3e9c524337a9e98652..059c9301e8291297baecddb611be3c8feba1498d 100644 --- a/test/built-ins/Atomics/compareExchange/shared-nonint-views.js +++ b/test/built-ins/Atomics/compareExchange/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0))); + assert.throws(TypeError, (() => Atomics.compareExchange(view, 0, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/exchange/bad-range.js b/test/built-ins/Atomics/exchange/bad-range.js index 4392c1d78278519c7f903f4b0249b846f24f7754..15957b2002b4e82cf7391d6fd901255195564893 100644 --- a/test/built-ins/Atomics/exchange/bad-range.js +++ b/test/built-ins/Atomics/exchange/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.exchange(view, Idx, 10, 0)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.exchange(view, Idx, 10, 0)); + }); }, views); diff --git a/test/built-ins/Atomics/exchange/good-views.js b/test/built-ins/Atomics/exchange/good-views.js index f42c98abe5f1dae9ee7b32a1a0276c37f8562639..d8fd39ee9f6d26c62b90e5a70d5e45e523a8a9ca 100644 --- a/test/built-ins/Atomics/exchange/good-views.js +++ b/test/built-ins/Atomics/exchange/good-views.js @@ -14,43 +14,43 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - view[8] = 0; - assert.sameValue(Atomics.exchange(view, 8, 10), 0, - "Exchange returns the value previously in the array"); - assert.sameValue(view[8], 10); - - assert.sameValue(Atomics.exchange(view, 8, -5), 10, - "Exchange returns the value previously in the array"); - control[0] = -5; - assert.sameValue(view[8], control[0]); - - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.exchange(view, 3, 0), control[0], - "Result is subject to coercion"); - - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.exchange(view, 3, 0), control[0], - "Result is subject to chopping"); - - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.exchange(view, 3, 0), control[0], - "Result is subject to chopping"); - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.exchange(view, Idx, 0), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + view[8] = 0; + assert.sameValue(Atomics.exchange(view, 8, 10), 0, + "Exchange returns the value previously in the array"); + assert.sameValue(view[8], 10); + + assert.sameValue(Atomics.exchange(view, 8, -5), 10, + "Exchange returns the value previously in the array"); + control[0] = -5; + assert.sameValue(view[8], control[0]); + + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.exchange(view, 3, 0), control[0], + "Result is subject to coercion"); + + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.exchange(view, 3, 0), control[0], + "Result is subject to chopping"); + + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.exchange(view, 3, 0), control[0], + "Result is subject to chopping"); + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.exchange(view, Idx, 0), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/exchange/non-views.js b/test/built-ins/Atomics/exchange/non-views.js index b8c2b5463a1526291097e20d06972b534dbc461d..c4d28a2fa160765837a6e164595582aad3c5bdbe 100644 --- a/test/built-ins/Atomics/exchange/non-views.js +++ b/test/built-ins/Atomics/exchange/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0))); }); diff --git a/test/built-ins/Atomics/exchange/nonshared-int-views.js b/test/built-ins/Atomics/exchange/nonshared-int-views.js index 30b7617d1547422428b8be093906e8bc78007eb8..e3f7302617771e5d8b9a1215d1b1b4483d435cc0 100644 --- a/test/built-ins/Atomics/exchange/nonshared-int-views.js +++ b/test/built-ins/Atomics/exchange/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0))); }, int_views); diff --git a/test/built-ins/Atomics/exchange/shared-nonint-views.js b/test/built-ins/Atomics/exchange/shared-nonint-views.js index 03293c2da40c61c47114b4d8befc8381ab9be5fc..a83b0c462397ab66b5cb5eeed39cab7ae2babe2d 100644 --- a/test/built-ins/Atomics/exchange/shared-nonint-views.js +++ b/test/built-ins/Atomics/exchange/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.exchange(view, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/isLockFree/corner-cases.js b/test/built-ins/Atomics/isLockFree/corner-cases.js index fb364030c44ad3ea436da1072543609a072139ac..fe5ab9aad3db72cffb120cc4b925b2e30668fbd7 100644 --- a/test/built-ins/Atomics/isLockFree/corner-cases.js +++ b/test/built-ins/Atomics/isLockFree/corner-cases.js @@ -17,14 +17,21 @@ assert.sameValue(Atomics.isLockFree('3'), Atomics.isLockFree(3)); assert.sameValue(Atomics.isLockFree(true), Atomics.isLockFree(1)); -assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({valueOf: () => 1})); -assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({valueOf: () => 3})); -assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({toString: () => '1'})); -assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({toString: () => '3'})); +assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({ + valueOf: () => 1 +})); +assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({ + valueOf: () => 3 +})); +assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({ + toString: () => '1' +})); +assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({ + toString: () => '3' +})); function hide(k, x) { - if (k) - return hide(k-3, x) + x; - return 0; + if (k) + return hide(k - 3, x) + x; + return 0; } - diff --git a/test/built-ins/Atomics/isLockFree/value.js b/test/built-ins/Atomics/isLockFree/value.js index 4b8164716f5df6d2df5eb9f9036d2cb5d6239838..88eca120e0fb87240443c074db6a927d6149d2c2 100644 --- a/test/built-ins/Atomics/isLockFree/value.js +++ b/test/built-ins/Atomics/isLockFree/value.js @@ -7,41 +7,43 @@ description: > Test isLockFree on nonnegative integer arguments ---*/ -var sizes = [ 1, 2, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12]; -var answers = [ {}, {}, false, true, false, false, false, false, - false, false, false, false]; +var sizes = [1, 2, 3, 4, 5, 6, 7, 8, + 9, 10, 11, 12 +]; +var answers = [{}, {}, false, true, false, false, false, false, + false, false, false, false +]; function testIsLockFree() { - var saved = {}; - - // This should defeat most optimizations. - - for ( var i=0 ; i < sizes.length ; i++ ) { - var v = Atomics.isLockFree(sizes[i]); - var a = answers[i]; - assert.sameValue(typeof v, 'boolean'); - if (typeof a == 'boolean') - assert.sameValue(v, a); - else - saved[sizes[i]] = v; - } - - // This ought to be optimizable. Make sure the answers are the same - // as for the unoptimized case. - - assert.sameValue(Atomics.isLockFree(1), saved[1]); - assert.sameValue(Atomics.isLockFree(2), saved[2]); - assert.sameValue(Atomics.isLockFree(3), false); - assert.sameValue(Atomics.isLockFree(4), true); - assert.sameValue(Atomics.isLockFree(5), false); - assert.sameValue(Atomics.isLockFree(6), false); - assert.sameValue(Atomics.isLockFree(7), false); - assert.sameValue(Atomics.isLockFree(8), false); - assert.sameValue(Atomics.isLockFree(9), false); - assert.sameValue(Atomics.isLockFree(10), false); - assert.sameValue(Atomics.isLockFree(11), false); - assert.sameValue(Atomics.isLockFree(12), false); + var saved = {}; + + // This should defeat most optimizations. + + for (var i = 0; i < sizes.length; i++) { + var v = Atomics.isLockFree(sizes[i]); + var a = answers[i]; + assert.sameValue(typeof v, 'boolean'); + if (typeof a == 'boolean') + assert.sameValue(v, a); + else + saved[sizes[i]] = v; + } + + // This ought to be optimizable. Make sure the answers are the same + // as for the unoptimized case. + + assert.sameValue(Atomics.isLockFree(1), saved[1]); + assert.sameValue(Atomics.isLockFree(2), saved[2]); + assert.sameValue(Atomics.isLockFree(3), false); + assert.sameValue(Atomics.isLockFree(4), true); + assert.sameValue(Atomics.isLockFree(5), false); + assert.sameValue(Atomics.isLockFree(6), false); + assert.sameValue(Atomics.isLockFree(7), false); + assert.sameValue(Atomics.isLockFree(8), false); + assert.sameValue(Atomics.isLockFree(9), false); + assert.sameValue(Atomics.isLockFree(10), false); + assert.sameValue(Atomics.isLockFree(11), false); + assert.sameValue(Atomics.isLockFree(12), false); } testIsLockFree(); diff --git a/test/built-ins/Atomics/load/bad-range.js b/test/built-ins/Atomics/load/bad-range.js index d13ef4b5e3159280ab610b29e5d025e3ead5bf27..7f1c7afc736f3214d206ffe0a7f92faab559a7b9 100644 --- a/test/built-ins/Atomics/load/bad-range.js +++ b/test/built-ins/Atomics/load/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.load(view, Idx)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.load(view, Idx)); + }); }, views); diff --git a/test/built-ins/Atomics/load/good-views.js b/test/built-ins/Atomics/load/good-views.js index 883cd58299f30e33a688020ddbf866a2b8af7882..a4e2ad88060486e932c53337c51686e1c2d222bf 100644 --- a/test/built-ins/Atomics/load/good-views.js +++ b/test/built-ins/Atomics/load/good-views.js @@ -14,33 +14,33 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.load(view, 3), control[0], - "Result is subject to coercion"); - - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.load(view, 3), control[0], - "Result is subject to chopping"); - - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.load(view, 3), control[0], - "Result is subject to chopping"); - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.load(view, Idx), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.load(view, 3), control[0], + "Result is subject to coercion"); + + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.load(view, 3), control[0], + "Result is subject to chopping"); + + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.load(view, 3), control[0], + "Result is subject to chopping"); + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.load(view, Idx), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/load/non-views.js b/test/built-ins/Atomics/load/non-views.js index 28739abbc47feadba095c8a066b9cfa0aec096e8..1c4442dbfb7515c30ef45d20f2627ad50f9e23cd 100644 --- a/test/built-ins/Atomics/load/non-views.js +++ b/test/built-ins/Atomics/load/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.load(view, 0))); + assert.throws(TypeError, (() => Atomics.load(view, 0))); }); diff --git a/test/built-ins/Atomics/load/nonshared-int-views.js b/test/built-ins/Atomics/load/nonshared-int-views.js index 05eff959c4f7bf6aac0a4a193954d44615bf9121..8442ce9493b2c9f99d4f63bd52c794f3ce713751 100644 --- a/test/built-ins/Atomics/load/nonshared-int-views.js +++ b/test/built-ins/Atomics/load/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.load(view, 0))); + assert.throws(TypeError, (() => Atomics.load(view, 0))); }, int_views); diff --git a/test/built-ins/Atomics/load/shared-nonint-views.js b/test/built-ins/Atomics/load/shared-nonint-views.js index 20c33ba16c5fbee4db30f10e48e2bd3430fe147d..726a618d02761c381100cacc8e1117fe98d26f32 100644 --- a/test/built-ins/Atomics/load/shared-nonint-views.js +++ b/test/built-ins/Atomics/load/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.load(view, 0))); + assert.throws(TypeError, (() => Atomics.load(view, 0))); }, other_views); diff --git a/test/built-ins/Atomics/or/bad-range.js b/test/built-ins/Atomics/or/bad-range.js index a9fab884a603094a28dbca7c0b647c4325e177f0..5c3ff9b1b599abe7bbab1427698aab3c58feb8a5 100644 --- a/test/built-ins/Atomics/or/bad-range.js +++ b/test/built-ins/Atomics/or/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.or(view, Idx, 10)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.or(view, Idx, 10)); + }); }, views); diff --git a/test/built-ins/Atomics/or/good-views.js b/test/built-ins/Atomics/or/good-views.js index 9c20459c027f8c8cbea280fdd9343801a364d86b..6fab1d565e41b99aa3053760bedee9e8bc737a9d 100644 --- a/test/built-ins/Atomics/or/good-views.js +++ b/test/built-ins/Atomics/or/good-views.js @@ -13,49 +13,49 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - view[8] = 0x33333333; - control[0] = 0x33333333; - assert.sameValue(Atomics.or(view, 8, 0x55555555), control[0], - "Result is subject to chopping"); - - control[0] = 0x77777777; - assert.sameValue(view[8], control[0]); - assert.sameValue(Atomics.or(view, 8, 0xF0F0F0F0), control[0], - "Result is subject to chopping"); - - control[0] = 0xF7F7F7F7; - assert.sameValue(view[8], control[0]); - - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.or(view, 3, 0), control[0], - "Result is negative and subject to coercion"); - assert.sameValue(view[3], control[0]); - - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.or(view, 3, 0), control[0], - "Result is subject to chopping"); - assert.sameValue(view[3], control[0]); - - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.or(view, 3, 0), control[0], - "Result is subject to chopping"); - assert.sameValue(view[3], control[0]); - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.or(view, Idx, 0), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + view[8] = 0x33333333; + control[0] = 0x33333333; + assert.sameValue(Atomics.or(view, 8, 0x55555555), control[0], + "Result is subject to chopping"); + + control[0] = 0x77777777; + assert.sameValue(view[8], control[0]); + assert.sameValue(Atomics.or(view, 8, 0xF0F0F0F0), control[0], + "Result is subject to chopping"); + + control[0] = 0xF7F7F7F7; + assert.sameValue(view[8], control[0]); + + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.or(view, 3, 0), control[0], + "Result is negative and subject to coercion"); + assert.sameValue(view[3], control[0]); + + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.or(view, 3, 0), control[0], + "Result is subject to chopping"); + assert.sameValue(view[3], control[0]); + + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.or(view, 3, 0), control[0], + "Result is subject to chopping"); + assert.sameValue(view[3], control[0]); + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.or(view, Idx, 0), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/or/non-views.js b/test/built-ins/Atomics/or/non-views.js index ff73caa0cb0884fe18e3eae73c11df2b9b7bc4bd..1135faa8e9e24b77aded1b863803bd00e2894047 100644 --- a/test/built-ins/Atomics/or/non-views.js +++ b/test/built-ins/Atomics/or/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.or(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.or(view, 0, 0))); }); diff --git a/test/built-ins/Atomics/or/nonshared-int-views.js b/test/built-ins/Atomics/or/nonshared-int-views.js index 033174fcf9441d69ee798968fcd1e63c78fcb51f..a4f34569e3942ccfc9464ac0d778c1230609cd61 100644 --- a/test/built-ins/Atomics/or/nonshared-int-views.js +++ b/test/built-ins/Atomics/or/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.or(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.or(view, 0, 0))); }, int_views); diff --git a/test/built-ins/Atomics/or/shared-nonint-views.js b/test/built-ins/Atomics/or/shared-nonint-views.js index bb649c5e65ba9f403fd40139f8882d0cfbf6fea1..0134956277bbccf29f7f5bda73a1e7d63636eff6 100644 --- a/test/built-ins/Atomics/or/shared-nonint-views.js +++ b/test/built-ins/Atomics/or/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.or(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.or(view, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/store/bad-range.js b/test/built-ins/Atomics/store/bad-range.js index 69a402646c9b5a74dda5b461277c5c096a82e679..a13f1f177ab7da945d2c440ee9e47b9b95f0a1ff 100644 --- a/test/built-ins/Atomics/store/bad-range.js +++ b/test/built-ins/Atomics/store/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.store(view, Idx, 10)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.store(view, Idx, 10)); + }); }, views); diff --git a/test/built-ins/Atomics/store/good-views.js b/test/built-ins/Atomics/store/good-views.js index 92e437db344c02ae4906a43cf86e8397b8dfd6d5..c39de60aa872b7347403fb247f0accdd9ac7ceb6 100644 --- a/test/built-ins/Atomics/store/good-views.js +++ b/test/built-ins/Atomics/store/good-views.js @@ -14,43 +14,45 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - for ( let val of [10, - -5, - 12345, - 123456789, - Math.PI, - "33", - { valueOf: () => 33 }, - undefined] ) - { - assert.sameValue(Atomics.store(view, 3, val), ToInteger(val), - "Atomics.store returns its third argument (" + val + ") converted to Integer, not the input value nor the value that was stored"); - - control[0] = val; - assert.sameValue(view[3], control[0]); - } - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.load(view, Idx), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + for (let val of [10, -5, + 12345, + 123456789, + Math.PI, + "33", + { + valueOf: () => 33 + }, + undefined + ]) + { + assert.sameValue(Atomics.store(view, 3, val), ToInteger(val), + "Atomics.store returns its third argument (" + val + ") converted to Integer, not the input value nor the value that was stored"); + + control[0] = val; + assert.sameValue(view[3], control[0]); + } + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.load(view, Idx), 37); + }); }, int_views); function ToInteger(v) { - v = +v; - if (isNaN(v)) - return 0; - if (v == 0 || !isFinite(v)) - return v; - if (v < 0) - return -Math.floor(Math.abs(v)); - return Math.floor(v); + v = +v; + if (isNaN(v)) + return 0; + if (v == 0 || !isFinite(v)) + return v; + if (v < 0) + return -Math.floor(Math.abs(v)); + return Math.floor(v); } diff --git a/test/built-ins/Atomics/store/non-views.js b/test/built-ins/Atomics/store/non-views.js index 19fa071f6cc751a2c21bcc77856f3b1a18b7997b..365a7fbba79301d0b2550a8ed28139ad7242845f 100644 --- a/test/built-ins/Atomics/store/non-views.js +++ b/test/built-ins/Atomics/store/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.store(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.store(view, 0, 0))); }); diff --git a/test/built-ins/Atomics/store/nonshared-int-views.js b/test/built-ins/Atomics/store/nonshared-int-views.js index 0153ed2fc1a1e23b59e98580d2562685c7832a41..7bf2f781e32da985698626fc4a9debe4cf287eec 100644 --- a/test/built-ins/Atomics/store/nonshared-int-views.js +++ b/test/built-ins/Atomics/store/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.store(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.store(view, 0, 0))); }, int_views); diff --git a/test/built-ins/Atomics/store/shared-nonint-views.js b/test/built-ins/Atomics/store/shared-nonint-views.js index 950e1d44267c86d3e727ee285fedb3859174ce9d..c34f86024e396db00e23d23dff0f601110f1e8c8 100644 --- a/test/built-ins/Atomics/store/shared-nonint-views.js +++ b/test/built-ins/Atomics/store/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.store(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.store(view, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/sub/bad-range.js b/test/built-ins/Atomics/sub/bad-range.js index dabd7789e7e1d96fe6dd96aec7a20461751c07b8..700309fffc7ddbca5c13574c9ab5f9b659596079 100644 --- a/test/built-ins/Atomics/sub/bad-range.js +++ b/test/built-ins/Atomics/sub/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.sub(view, Idx, 10)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.sub(view, Idx, 10)); + }); }, views); diff --git a/test/built-ins/Atomics/sub/good-views.js b/test/built-ins/Atomics/sub/good-views.js index efa410344bb36a802762eb457cdcf3fa3179fba4..18b6982d7312d66d48e07223db32fd41240145cf 100644 --- a/test/built-ins/Atomics/sub/good-views.js +++ b/test/built-ins/Atomics/sub/good-views.js @@ -14,42 +14,42 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - view[8] = 100; - assert.sameValue(Atomics.sub(view, 8, 10), 100, - "Subtract positive number"); - assert.sameValue(view[8], 90); - - assert.sameValue(Atomics.sub(view, 8, -5), 90, - "Subtract negative number, though result remains positive"); - assert.sameValue(view[8], 95); - - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.sub(view, 3, 0), control[0], - "Result is negative and subject to coercion"); - - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.sub(view, 3, 0), control[0], - "Result is subject to chopping"); - - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.sub(view, 3, 0), control[0], - "Result is subject to chopping"); - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.sub(view, Idx, 0), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + view[8] = 100; + assert.sameValue(Atomics.sub(view, 8, 10), 100, + "Subtract positive number"); + assert.sameValue(view[8], 90); + + assert.sameValue(Atomics.sub(view, 8, -5), 90, + "Subtract negative number, though result remains positive"); + assert.sameValue(view[8], 95); + + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.sub(view, 3, 0), control[0], + "Result is negative and subject to coercion"); + + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.sub(view, 3, 0), control[0], + "Result is subject to chopping"); + + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.sub(view, 3, 0), control[0], + "Result is subject to chopping"); + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.sub(view, Idx, 0), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/sub/non-views.js b/test/built-ins/Atomics/sub/non-views.js index 55ca5bba85832a759f720b754d87783492163501..985b95c00beb89cfc533c9b350854459db820cb1 100644 --- a/test/built-ins/Atomics/sub/non-views.js +++ b/test/built-ins/Atomics/sub/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.sub(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.sub(view, 0, 0))); }); diff --git a/test/built-ins/Atomics/sub/nonshared-int-views.js b/test/built-ins/Atomics/sub/nonshared-int-views.js index 7383307f7dc71d7995431d9c61172e5bcd80b24a..70ed90a7da34281cb19e185dd70eef0000f960fb 100644 --- a/test/built-ins/Atomics/sub/nonshared-int-views.js +++ b/test/built-ins/Atomics/sub/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.sub(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.sub(view, 0, 0))); }, int_views); diff --git a/test/built-ins/Atomics/sub/shared-nonint-views.js b/test/built-ins/Atomics/sub/shared-nonint-views.js index f6c6801588d9d7d69af966e49ea679c8505e065c..af237d2cdaff0045b21adf47b36a9b657b5f2a67 100644 --- a/test/built-ins/Atomics/sub/shared-nonint-views.js +++ b/test/built-ins/Atomics/sub/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.sub(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.sub(view, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/wait/did-timeout.js b/test/built-ins/Atomics/wait/did-timeout.js index c4e75dd9635bed95846456a1d84d09d3b6f146d9..4779b11c997174d7749dd0f27f7d46194d33aa02 100644 --- a/test/built-ins/Atomics/wait/did-timeout.js +++ b/test/built-ins/Atomics/wait/did-timeout.js @@ -10,7 +10,7 @@ includes: [atomicsHelper.js] ---*/ $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(sab); var then = Date.now(); @@ -24,11 +24,11 @@ var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)); $262.agent.broadcast(ia.buffer); assert.sameValue(getReport(), "timed-out"); -assert.sameValue((getReport()|0) >= 500 - $ATOMICS_MAX_TIME_EPSILON, true); +assert.sameValue((getReport() | 0) >= 500 - $ATOMICS_MAX_TIME_EPSILON, true); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } diff --git a/test/built-ins/Atomics/wait/good-views.js b/test/built-ins/Atomics/wait/good-views.js index ff6dcf3a8c526f75f9538b0f6f4411802a375d4c..ce559e350e0bd08842b35c0c3f70ab30070a4794 100644 --- a/test/built-ins/Atomics/wait/good-views.js +++ b/test/built-ins/Atomics/wait/good-views.js @@ -12,7 +12,7 @@ description: > // even in the shell. $262.agent.start( -` + ` var sab = new SharedArrayBuffer(1024); var ab = new ArrayBuffer(16); @@ -47,11 +47,11 @@ assert.sameValue(getReport(), "A timed-out"); assert.sameValue(getReport(), "B not-equal"); // Even with zero timeout var r; while ((r = getReport()) != "done") - assert.sameValue(r, "C not-equal"); + assert.sameValue(r, "C not-equal"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } diff --git a/test/built-ins/Atomics/wait/nan-timeout.js b/test/built-ins/Atomics/wait/nan-timeout.js index c3e773ef32d7a97444ceb0f3a644fbce0e441885..e1cbdaec91ce77a361cca1c27d318589e5763177 100644 --- a/test/built-ins/Atomics/wait/nan-timeout.js +++ b/test/built-ins/Atomics/wait/nan-timeout.js @@ -8,7 +8,7 @@ description: > ---*/ $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(sab); $262.agent.report(Atomics.wait(ia, 0, 0, NaN)); // NaN => Infinity @@ -19,14 +19,14 @@ $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)); $262.agent.broadcast(ia.buffer); -$262.agent.sleep(500); // Ample time +$262.agent.sleep(500); // Ample time assert.sameValue($262.agent.getReport(), null); Atomics.wake(ia, 0); assert.sameValue(getReport(), "ok"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } diff --git a/test/built-ins/Atomics/wait/negative-timeout.js b/test/built-ins/Atomics/wait/negative-timeout.js index 26c32fd20d2252de25d4df7bcbcf0f8c9af32117..e8cb85f8b23cceddcaed6009a59d8f73beae21d3 100644 --- a/test/built-ins/Atomics/wait/negative-timeout.js +++ b/test/built-ins/Atomics/wait/negative-timeout.js @@ -8,7 +8,7 @@ description: > ---*/ $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(sab); $262.agent.report(Atomics.wait(ia, 0, 0, -5)); // -5 => 0 @@ -22,8 +22,8 @@ $262.agent.broadcast(ia.buffer); assert.sameValue(getReport(), "timed-out"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } diff --git a/test/built-ins/Atomics/wait/no-spurious-wakeup.js b/test/built-ins/Atomics/wait/no-spurious-wakeup.js index edcde9aac15a3de28209f287d39d8f9c16e693a7..405eac8bcd8503a9a2e6f09af503e92684cb2b88 100644 --- a/test/built-ins/Atomics/wait/no-spurious-wakeup.js +++ b/test/built-ins/Atomics/wait/no-spurious-wakeup.js @@ -10,7 +10,7 @@ includes: [atomicsHelper.js] ---*/ $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(sab); var then = Date.now(); @@ -24,15 +24,15 @@ $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)); $262.agent.broadcast(ia.buffer); -$262.agent.sleep(500); // Give the agent a chance to wait -Atomics.store(ia, 0, 1); // Change the value, should not wake the agent -$262.agent.sleep(500); // Wait some more so that we can tell -Atomics.wake(ia, 0); // Really wake it up -assert.sameValue((getReport()|0) >= 1000 - $ATOMICS_MAX_TIME_EPSILON, true); +$262.agent.sleep(500); // Give the agent a chance to wait +Atomics.store(ia, 0, 1); // Change the value, should not wake the agent +$262.agent.sleep(500); // Wait some more so that we can tell +Atomics.wake(ia, 0); // Really wake it up +assert.sameValue((getReport() | 0) >= 1000 - $ATOMICS_MAX_TIME_EPSILON, true); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } diff --git a/test/built-ins/Atomics/wait/non-views.js b/test/built-ins/Atomics/wait/non-views.js index b6e9cf0581a2eda9d1a1af64cbd51449a7096290..4da77da33f9765b07a3b112046b67002f580821e 100644 --- a/test/built-ins/Atomics/wait/non-views.js +++ b/test/built-ins/Atomics/wait/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); // Even with zero timeout + assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); // Even with zero timeout }); diff --git a/test/built-ins/Atomics/wait/nonshared-int-views.js b/test/built-ins/Atomics/wait/nonshared-int-views.js index c4a5fb4b02bd301e9d9c3f0c23e22f32ba852a02..4f6143fc3af5a8b4a50fb526388ab63fa527cabf 100644 --- a/test/built-ins/Atomics/wait/nonshared-int-views.js +++ b/test/built-ins/Atomics/wait/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); // Should fail even if waiting 0ms + assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); // Should fail even if waiting 0ms }, int_views); diff --git a/test/built-ins/Atomics/wait/shared-nonint-views.js b/test/built-ins/Atomics/wait/shared-nonint-views.js index 5a77ba2f4677ad5255c14253df12e59edaf587d0..b327abbda68b0d485594ee4e78988e869a008c6e 100644 --- a/test/built-ins/Atomics/wait/shared-nonint-views.js +++ b/test/built-ins/Atomics/wait/shared-nonint-views.js @@ -12,11 +12,12 @@ features: [TypedArray] var sab = new SharedArrayBuffer(1024); var other_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Uint32Array, - Uint8ClampedArray, Float32Array, Float64Array]; + Uint8ClampedArray, Float32Array, Float64Array +]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - // Even with timout zero this should fail - assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); + // Even with timout zero this should fail + assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/wait/was-woken.js b/test/built-ins/Atomics/wait/was-woken.js index c2e11cb0edce89875b454adecb8344f646f4816c..156b2617f7ff954b7a5c99d270a4e2c5ba135875 100644 --- a/test/built-ins/Atomics/wait/was-woken.js +++ b/test/built-ins/Atomics/wait/was-woken.js @@ -8,7 +8,7 @@ description: > ---*/ $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(sab); $262.agent.report(Atomics.wait(ia, 0, 0)); // No timeout => Infinity @@ -19,14 +19,13 @@ $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)); $262.agent.broadcast(ia.buffer); -$262.agent.sleep(500); // Give the agent a chance to wait +$262.agent.sleep(500); // Give the agent a chance to wait Atomics.wake(ia, 0); assert.sameValue(getReport(), "ok"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } - diff --git a/test/built-ins/Atomics/wake/counts.js b/test/built-ins/Atomics/wake/counts.js index d2ee14e0c37a36fc21894a4e65e34a3e67dd1b4c..43fa0230912df21936a8f7fac2a6fabd1495ac39 100644 --- a/test/built-ins/Atomics/wake/counts.js +++ b/test/built-ins/Atomics/wake/counts.js @@ -14,5 +14,7 @@ assert.sameValue(Atomics.wake(view, 0, -3), 0); assert.sameValue(Atomics.wake(view, 0, Number.POSITIVE_INFINITY), 0); assert.sameValue(Atomics.wake(view, 0, undefined), 0); assert.sameValue(Atomics.wake(view, 0, "33"), 0); -assert.sameValue(Atomics.wake(view, 0, { valueOf: 8 }), 0); +assert.sameValue(Atomics.wake(view, 0, { + valueOf: 8 +}), 0); assert.sameValue(Atomics.wake(view, 0), 0); diff --git a/test/built-ins/Atomics/wake/good-views.js b/test/built-ins/Atomics/wake/good-views.js index 4c704e0e3ca2e9fc08d2b3b406ef4030123574d3..19ad2f2b3760e74cb30da21dfe5e234c93c8fdff 100644 --- a/test/built-ins/Atomics/wake/good-views.js +++ b/test/built-ins/Atomics/wake/good-views.js @@ -20,10 +20,10 @@ assert.sameValue(Atomics.wake(view, 0, 1), 0); // In-bounds boundary cases for indexing testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.wake(view, Idx, 1), 0); + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.wake(view, Idx, 1), 0); }); diff --git a/test/built-ins/Atomics/wake/non-views.js b/test/built-ins/Atomics/wake/non-views.js index 555cd9c8027c8d0aa4e3087bc46394ac05469062..91461303b1e81761b6b39aa1f9c2304ebfffe471 100644 --- a/test/built-ins/Atomics/wake/non-views.js +++ b/test/built-ins/Atomics/wake/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with count == 0 + assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with count == 0 }); diff --git a/test/built-ins/Atomics/wake/nonshared-int-views.js b/test/built-ins/Atomics/wake/nonshared-int-views.js index 8e86e23858052b62046b264b051f91788dfaf7db..cffc184e1237ecd3a1cbb8da25cf7a865f5698c4 100644 --- a/test/built-ins/Atomics/wake/nonshared-int-views.js +++ b/test/built-ins/Atomics/wake/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Should fail even if waking zero waiters + assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Should fail even if waking zero waiters }, int_views); diff --git a/test/built-ins/Atomics/wake/shared-nonint-views.js b/test/built-ins/Atomics/wake/shared-nonint-views.js index c5b4521d31a864bd13df804a5c9fda1a2ad3f973..7f8ab41ed97b79cc5f1832f8987f6f2706c5deac 100644 --- a/test/built-ins/Atomics/wake/shared-nonint-views.js +++ b/test/built-ins/Atomics/wake/shared-nonint-views.js @@ -12,11 +12,12 @@ features: [TypedArray] var sab = new SharedArrayBuffer(1024); var other_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Uint32Array, - Uint8ClampedArray, Float32Array, Float64Array]; + Uint8ClampedArray, Float32Array, Float64Array +]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - // Even with timout zero this should fail - assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with 0 to wake this should fail + // Even with timout zero this should fail + assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with 0 to wake this should fail }, other_views); diff --git a/test/built-ins/Atomics/wake/wake-all-on-loc.js b/test/built-ins/Atomics/wake/wake-all-on-loc.js index 55dbd04869375078a46f05ccc13ab3b9246f705d..f7378b88852d8076b1f7e4edb7a645b8e8c9ce5d 100644 --- a/test/built-ins/Atomics/wake/wake-all-on-loc.js +++ b/test/built-ins/Atomics/wake/wake-all-on-loc.js @@ -8,16 +8,16 @@ description: > wake waiters on other locations. ---*/ -var WAKEUP = 0; // Waiters on this will be woken -var DUMMY = 1; // Waiters on this will not be woken -var RUNNING = 2; // Accounting of live agents +var WAKEUP = 0; // Waiters on this will be woken +var DUMMY = 1; // Waiters on this will not be woken +var RUNNING = 2; // Accounting of live agents var NUMELEM = 3; var NUMAGENT = 3; -for (var i=0; i < NUMAGENT; i++) { -$262.agent.start( -` +for (var i = 0; i < NUMAGENT; i++) { + $262.agent.start( + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); Atomics.add(ia, ${RUNNING}, 1); @@ -28,7 +28,7 @@ $262.agent.receiveBroadcast(function (sab) { } $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); Atomics.add(ia, ${RUNNING}, 1); @@ -42,7 +42,7 @@ var ia = new Int32Array(new SharedArrayBuffer(NUMELEM * Int32Array.BYTES_PER_ELE $262.agent.broadcast(ia.buffer); // Wait for agents to be running. -waitUntil(ia, RUNNING, NUMAGENT+1); +waitUntil(ia, RUNNING, NUMAGENT + 1); // Then wait some more to give the agents a fair chance to wait. If we don't, // we risk sending the wakeup before agents are sleeping, and we hang. @@ -52,26 +52,26 @@ $262.agent.sleep(500); assert.sameValue(Atomics.wake(ia, WAKEUP), NUMAGENT); var rs = []; -for (var i=0; i < NUMAGENT+1; i++) - rs.push(getReport()); +for (var i = 0; i < NUMAGENT + 1; i++) + rs.push(getReport()); rs.sort(); -for (var i=0; i < NUMAGENT; i++) - assert.sameValue(rs[i], "A ok"); +for (var i = 0; i < NUMAGENT; i++) + assert.sameValue(rs[i], "A ok"); assert.sameValue(rs[NUMAGENT], "B timed-out"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } function waitUntil(ia, k, value) { - var i = 0; - while (Atomics.load(ia, k) !== value && i < 15) { - $262.agent.sleep(100); - i++; - } - assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); + var i = 0; + while (Atomics.load(ia, k) !== value && i < 15) { + $262.agent.sleep(100); + i++; + } + assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); } diff --git a/test/built-ins/Atomics/wake/wake-all.js b/test/built-ins/Atomics/wake/wake-all.js index 0e013de278e1023a019e3d16bea9fb5360aa56c3..abafe52ad03db85a4d9b4f890d8981184d40f2b7 100644 --- a/test/built-ins/Atomics/wake/wake-all.js +++ b/test/built-ins/Atomics/wake/wake-all.js @@ -7,16 +7,16 @@ description: > Test that Atomics.wake wakes all waiters if that's what the count is. ---*/ -var WAKEUP = 0; // Waiters on this will be woken -var DUMMY = 1; // Waiters on this will not be woken -var RUNNING = 2; // Accounting of live agents +var WAKEUP = 0; // Waiters on this will be woken +var DUMMY = 1; // Waiters on this will not be woken +var RUNNING = 2; // Accounting of live agents var NUMELEM = 3; var NUMAGENT = 3; -for (var i=0; i < NUMAGENT; i++) { -$262.agent.start( -` +for (var i = 0; i < NUMAGENT; i++) { + $262.agent.start( + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); Atomics.add(ia, ${RUNNING}, 1); @@ -27,7 +27,7 @@ $262.agent.receiveBroadcast(function (sab) { } $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); Atomics.add(ia, ${RUNNING}, 1); @@ -41,7 +41,7 @@ var ia = new Int32Array(new SharedArrayBuffer(NUMELEM * Int32Array.BYTES_PER_ELE $262.agent.broadcast(ia.buffer); // Wait for agents to be running. -waitUntil(ia, RUNNING, NUMAGENT+1); +waitUntil(ia, RUNNING, NUMAGENT + 1); // Then wait some more to give the agents a fair chance to wait. If we don't, // we risk sending the wakeup before agents are sleeping, and we hang. @@ -51,26 +51,26 @@ $262.agent.sleep(500); assert.sameValue(Atomics.wake(ia, WAKEUP), NUMAGENT); var rs = []; -for (var i=0; i < NUMAGENT+1; i++) - rs.push(getReport()); +for (var i = 0; i < NUMAGENT + 1; i++) + rs.push(getReport()); rs.sort(); -for (var i=0; i < NUMAGENT; i++) - assert.sameValue(rs[i], "A ok"); +for (var i = 0; i < NUMAGENT; i++) + assert.sameValue(rs[i], "A ok"); assert.sameValue(rs[NUMAGENT], "B timed-out"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } function waitUntil(ia, k, value) { - var i = 0; - while (Atomics.load(ia, k) !== value && i < 15) { - $262.agent.sleep(100); - i++; - } - assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); + var i = 0; + while (Atomics.load(ia, k) !== value && i < 15) { + $262.agent.sleep(100); + i++; + } + assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); } diff --git a/test/built-ins/Atomics/wake/wake-in-order.js b/test/built-ins/Atomics/wake/wake-in-order.js index db56eedc2a5c2ccf8d97c687114abb5a40e255fd..f61eca099c8c3b76ddedd58e392336f188d153db 100644 --- a/test/built-ins/Atomics/wake/wake-in-order.js +++ b/test/built-ins/Atomics/wake/wake-in-order.js @@ -9,18 +9,18 @@ description: > var NUMAGENT = 3; -var WAKEUP = 0; // Waiters on this will be woken -var SPIN = 1; // Worker i (zero-based) spins on location SPIN+i -var RUNNING = SPIN + NUMAGENT; // Accounting of live agents +var WAKEUP = 0; // Waiters on this will be woken +var SPIN = 1; // Worker i (zero-based) spins on location SPIN+i +var RUNNING = SPIN + NUMAGENT; // Accounting of live agents var NUMELEM = RUNNING + 1; // Create workers and start them all spinning. We set atomic slots to make // them go into a wait, thus controlling the waiting order. Then we wake them // one by one and observe the wakeup order. -for ( var i=0 ; i < NUMAGENT ; i++ ) { -$262.agent.start( -` +for (var i = 0; i < NUMAGENT; i++) { + $262.agent.start( + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); Atomics.add(ia, ${RUNNING}, 1); @@ -43,29 +43,29 @@ waitUntil(ia, RUNNING, NUMAGENT); $262.agent.sleep(500); // Make them sleep in order 0 1 2 on ia[0] -for ( var i=0 ; i < NUMAGENT ; i++ ) { +for (var i = 0; i < NUMAGENT; i++) { Atomics.store(ia, SPIN + i, 1); $262.agent.sleep(500); } // Wake them up one at a time and check the order is 0 1 2 -for ( var i=0 ; i < NUMAGENT ; i++ ) { +for (var i = 0; i < NUMAGENT; i++) { assert.sameValue(Atomics.wake(ia, WAKEUP, 1), 1); assert.sameValue(getReport(), i + "ok"); } function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } function waitUntil(ia, k, value) { - var i = 0; - while (Atomics.load(ia, k) !== value && i < 15) { - $262.agent.sleep(100); - i++; - } - assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); + var i = 0; + while (Atomics.load(ia, k) !== value && i < 15) { + $262.agent.sleep(100); + i++; + } + assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); } diff --git a/test/built-ins/Atomics/wake/wake-nan.js b/test/built-ins/Atomics/wake/wake-nan.js index a4e8868ade4ad2f11d0e45d4b82d8128bc667acb..252fa91f967a8e5e5ef62325def612169dee13d5 100644 --- a/test/built-ins/Atomics/wake/wake-nan.js +++ b/test/built-ins/Atomics/wake/wake-nan.js @@ -8,7 +8,7 @@ description: > ---*/ $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); $262.agent.report(Atomics.wait(ia, 0, 0, 1000)); // We will timeout eventually @@ -19,13 +19,13 @@ $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)); $262.agent.broadcast(ia.buffer); -$262.agent.sleep(500); // Give the agent a chance to wait -assert.sameValue(Atomics.wake(ia, 0, NaN), 0); // Don't actually wake it +$262.agent.sleep(500); // Give the agent a chance to wait +assert.sameValue(Atomics.wake(ia, 0, NaN), 0); // Don't actually wake it assert.sameValue(getReport(), "timed-out"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } diff --git a/test/built-ins/Atomics/wake/wake-negative.js b/test/built-ins/Atomics/wake/wake-negative.js index 49cb0609270bf8c31bd67b7a5340e13746f313ae..de30c7cef307a91f0c5364e78a83ea91c5e8d3b6 100644 --- a/test/built-ins/Atomics/wake/wake-negative.js +++ b/test/built-ins/Atomics/wake/wake-negative.js @@ -8,7 +8,7 @@ description: > ---*/ $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); $262.agent.report(Atomics.wait(ia, 0, 0, 1000)); // We will timeout eventually @@ -19,13 +19,13 @@ $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)); $262.agent.broadcast(ia.buffer); -$262.agent.sleep(500); // Give the agent a chance to wait -assert.sameValue(Atomics.wake(ia, 0, -1), 0); // Don't actually wake it +$262.agent.sleep(500); // Give the agent a chance to wait +assert.sameValue(Atomics.wake(ia, 0, -1), 0); // Don't actually wake it assert.sameValue(getReport(), "timed-out"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } diff --git a/test/built-ins/Atomics/wake/wake-one.js b/test/built-ins/Atomics/wake/wake-one.js index fee30a9549c98c7ddbd5561790796a22aa9598f8..8223683b9cf94e279be04815b19e39c0cfa51510 100644 --- a/test/built-ins/Atomics/wake/wake-one.js +++ b/test/built-ins/Atomics/wake/wake-one.js @@ -9,15 +9,15 @@ description: > var NUMAGENT = 3; -var WAKEUP = 0; // Agents wait here -var RUNNING = 1; // Accounting of live agents here +var WAKEUP = 0; // Agents wait here +var RUNNING = 1; // Accounting of live agents here var NUMELEM = 2; var WAKECOUNT = 1; -for ( var i=0 ; i < NUMAGENT ; i++ ) { -$262.agent.start( -` +for (var i = 0; i < NUMAGENT; i++) { + $262.agent.start( + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); Atomics.add(ia, ${RUNNING}, 1); @@ -45,27 +45,27 @@ assert.sameValue(Atomics.wake(ia, 0, WAKECOUNT), WAKECOUNT); // Collect and check results var rs = []; -for ( var i=0; i < NUMAGENT; i++ ) - rs.push(getReport()); +for (var i = 0; i < NUMAGENT; i++) + rs.push(getReport()); rs.sort(); -for ( var i=0; i < WAKECOUNT; i++ ) - assert.sameValue(rs[i], "ok"); -for ( var i=WAKECOUNT; i < NUMAGENT; i++ ) - assert.sameValue(rs[i], "timed-out"); +for (var i = 0; i < WAKECOUNT; i++) + assert.sameValue(rs[i], "ok"); +for (var i = WAKECOUNT; i < NUMAGENT; i++) + assert.sameValue(rs[i], "timed-out"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } function waitUntil(ia, k, value) { - var i = 0; - while (Atomics.load(ia, k) !== value && i < 15) { - $262.agent.sleep(100); - i++; - } - assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); + var i = 0; + while (Atomics.load(ia, k) !== value && i < 15) { + $262.agent.sleep(100); + i++; + } + assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); } diff --git a/test/built-ins/Atomics/wake/wake-two.js b/test/built-ins/Atomics/wake/wake-two.js index 5d436facb1c406c9d67e5769748ec3f647647b67..75419e067f8c7b6e72ba4afd6762208746526673 100644 --- a/test/built-ins/Atomics/wake/wake-two.js +++ b/test/built-ins/Atomics/wake/wake-two.js @@ -10,15 +10,15 @@ description: > var NUMAGENT = 3; -var WAKEUP = 0; // Agents wait here -var RUNNING = 1; // Accounting of live agents here +var WAKEUP = 0; // Agents wait here +var RUNNING = 1; // Accounting of live agents here var NUMELEM = 2; var WAKECOUNT = 2; -for ( var i=0 ; i < NUMAGENT ; i++ ) { -$262.agent.start( -` +for (var i = 0; i < NUMAGENT; i++) { + $262.agent.start( + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); Atomics.add(ia, ${RUNNING}, 1); @@ -46,27 +46,27 @@ assert.sameValue(Atomics.wake(ia, 0, WAKECOUNT), WAKECOUNT); // Collect and check results var rs = []; -for ( var i=0; i < NUMAGENT; i++ ) - rs.push(getReport()); +for (var i = 0; i < NUMAGENT; i++) + rs.push(getReport()); rs.sort(); -for ( var i=0; i < WAKECOUNT; i++ ) - assert.sameValue(rs[i], "ok"); -for ( var i=WAKECOUNT; i < NUMAGENT; i++ ) - assert.sameValue(rs[i], "timed-out"); +for (var i = 0; i < WAKECOUNT; i++) + assert.sameValue(rs[i], "ok"); +for (var i = WAKECOUNT; i < NUMAGENT; i++) + assert.sameValue(rs[i], "timed-out"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } function waitUntil(ia, k, value) { - var i = 0; - while (Atomics.load(ia, k) !== value && i < 15) { - $262.agent.sleep(100); - i++; - } - assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); + var i = 0; + while (Atomics.load(ia, k) !== value && i < 15) { + $262.agent.sleep(100); + i++; + } + assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); } diff --git a/test/built-ins/Atomics/wake/wake-zero.js b/test/built-ins/Atomics/wake/wake-zero.js index f2df4033a57b2fde1e23c4ef631dc2de94e285f4..fa76081d36ef50b9a427c1756184cd578d92b077 100644 --- a/test/built-ins/Atomics/wake/wake-zero.js +++ b/test/built-ins/Atomics/wake/wake-zero.js @@ -10,15 +10,15 @@ description: > var NUMAGENT = 3; -var WAKEUP = 0; // Agents wait here -var RUNNING = 1; // Accounting of live agents here +var WAKEUP = 0; // Agents wait here +var RUNNING = 1; // Accounting of live agents here var NUMELEM = 2; var WAKECOUNT = 0; -for ( var i=0 ; i < NUMAGENT ; i++ ) { -$262.agent.start( -` +for (var i = 0; i < NUMAGENT; i++) { + $262.agent.start( + ` $262.agent.receiveBroadcast(function (sab) { var ia = new Int32Array(sab); Atomics.add(ia, ${RUNNING}, 1); @@ -46,27 +46,27 @@ assert.sameValue(Atomics.wake(ia, 0, WAKECOUNT), WAKECOUNT); // Collect and check results var rs = []; -for ( var i=0; i < NUMAGENT; i++ ) - rs.push(getReport()); +for (var i = 0; i < NUMAGENT; i++) + rs.push(getReport()); rs.sort(); -for ( var i=0; i < WAKECOUNT; i++ ) - assert.sameValue(rs[i], "ok"); -for ( var i=WAKECOUNT; i < NUMAGENT; i++ ) - assert.sameValue(rs[i], "timed-out"); +for (var i = 0; i < WAKECOUNT; i++) + assert.sameValue(rs[i], "ok"); +for (var i = WAKECOUNT; i < NUMAGENT; i++) + assert.sameValue(rs[i], "timed-out"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } function waitUntil(ia, k, value) { - var i = 0; - while (Atomics.load(ia, k) !== value && i < 15) { - $262.agent.sleep(100); - i++; - } - assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); + var i = 0; + while (Atomics.load(ia, k) !== value && i < 15) { + $262.agent.sleep(100); + i++; + } + assert.sameValue(Atomics.load(ia, k), value, "All agents are running"); } diff --git a/test/built-ins/Atomics/xor/bad-range.js b/test/built-ins/Atomics/xor/bad-range.js index 151986926308d66a1a31af0950ff8dca3127cd02..c51cf02ee00e5ef93180903ac9533fbdbfb0a4d4 100644 --- a/test/built-ins/Atomics/xor/bad-range.js +++ b/test/built-ins/Atomics/xor/bad-range.js @@ -18,9 +18,9 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - let view = new View(sab); - testWithAtomicsOutOfBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - assert.throws(RangeError, () => Atomics.xor(view, Idx, 0)); - }); + let view = new View(sab); + testWithAtomicsOutOfBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + assert.throws(RangeError, () => Atomics.xor(view, Idx, 0)); + }); }, views); diff --git a/test/built-ins/Atomics/xor/good-views.js b/test/built-ins/Atomics/xor/good-views.js index 395eaeacb49b40c87132604e7c8cbe5320e5a60a..73a3535cbd0559dd0766c7575ef5a3032236a877 100644 --- a/test/built-ins/Atomics/xor/good-views.js +++ b/test/built-ins/Atomics/xor/good-views.js @@ -13,50 +13,50 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - view[8] = 0x33333333; - control[0] = 0x33333333; - assert.sameValue(Atomics.xor(view, 8, 0x55555555), control[0], - "Result is subject to chopping"); - - control[0] = 0x66666666; - assert.sameValue(view[8], control[0]); - assert.sameValue(Atomics.xor(view, 8, 0xF0F0F0F0), control[0], - "Result is subject to chopping"); - - control[0] = 0x96969696; - assert.sameValue(view[8], control[0]); - - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.xor(view, 3, 0), control[0], - "Result is negative and subject to coercion"); - assert.sameValue(view[3], control[0]); - - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.xor(view, 3, 0), control[0], - "Result is subject to chopping"); - assert.sameValue(view[3], control[0]); - - // And again - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.xor(view, 3, 0), control[0], - "Result is subject to chopping"); - assert.sameValue(view[3], control[0]); - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.xor(view, Idx, 0), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + view[8] = 0x33333333; + control[0] = 0x33333333; + assert.sameValue(Atomics.xor(view, 8, 0x55555555), control[0], + "Result is subject to chopping"); + + control[0] = 0x66666666; + assert.sameValue(view[8], control[0]); + assert.sameValue(Atomics.xor(view, 8, 0xF0F0F0F0), control[0], + "Result is subject to chopping"); + + control[0] = 0x96969696; + assert.sameValue(view[8], control[0]); + + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.xor(view, 3, 0), control[0], + "Result is negative and subject to coercion"); + assert.sameValue(view[3], control[0]); + + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.xor(view, 3, 0), control[0], + "Result is subject to chopping"); + assert.sameValue(view[3], control[0]); + + // And again + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.xor(view, 3, 0), control[0], + "Result is subject to chopping"); + assert.sameValue(view[3], control[0]); + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.xor(view, Idx, 0), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/xor/non-views.js b/test/built-ins/Atomics/xor/non-views.js index 195baba02e55d0ea81f41e95912dc036227ae521..6cbec2e5e562d1e9df4f01189a1a5342b7bf6d90 100644 --- a/test/built-ins/Atomics/xor/non-views.js +++ b/test/built-ins/Atomics/xor/non-views.js @@ -10,5 +10,5 @@ features: [SharedArrayBuffer, ArrayBuffer, DataView, Atomics, arrow-function, le ---*/ testWithAtomicsNonViewValues(function(view) { - assert.throws(TypeError, (() => Atomics.xor(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.xor(view, 0, 0))); }); diff --git a/test/built-ins/Atomics/xor/nonshared-int-views.js b/test/built-ins/Atomics/xor/nonshared-int-views.js index 0ab8b408e006375fd90153bd3e5ea259d8767b1f..145286c89fbf78b14948ca3b26f4974c03116d53 100644 --- a/test/built-ins/Atomics/xor/nonshared-int-views.js +++ b/test/built-ins/Atomics/xor/nonshared-int-views.js @@ -19,7 +19,7 @@ if (typeof BigInt !== "undefined") { } testWithTypedArrayConstructors(function(View) { - var view = new View(ab); + var view = new View(ab); - assert.throws(TypeError, (() => Atomics.xor(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.xor(view, 0, 0))); }, int_views); diff --git a/test/built-ins/Atomics/xor/shared-nonint-views.js b/test/built-ins/Atomics/xor/shared-nonint-views.js index 29e742048358ec6faeb1d1e2b555cb723fcd1bc7..b9b683f3b8441e9968cefd106e1c3950dfc45592 100644 --- a/test/built-ins/Atomics/xor/shared-nonint-views.js +++ b/test/built-ins/Atomics/xor/shared-nonint-views.js @@ -14,7 +14,7 @@ var sab = new SharedArrayBuffer(1024); var other_views = [Uint8ClampedArray, Float32Array, Float64Array]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - assert.throws(TypeError, (() => Atomics.xor(view, 0, 0))); + assert.throws(TypeError, (() => Atomics.xor(view, 0, 0))); }, other_views); diff --git a/test/built-ins/BigInt/asIntN/arithmetic.js b/test/built-ins/BigInt/asIntN/arithmetic.js index cc786ec7f8cd21a5417b520033e4373e47231de3..de67259c4d72d517ece29b08ef9e030eb7830cc2 100644 --- a/test/built-ins/BigInt/asIntN/arithmetic.js +++ b/test/built-ins/BigInt/asIntN/arithmetic.js @@ -14,57 +14,53 @@ features: [BigInt] assert.sameValue(BigInt.asIntN(0, -2n), 0n); assert.sameValue(BigInt.asIntN(0, -1n), 0n); -assert.sameValue(BigInt.asIntN(0, 0n), 0n); -assert.sameValue(BigInt.asIntN(0, 1n), 0n); -assert.sameValue(BigInt.asIntN(0, 2n), 0n); +assert.sameValue(BigInt.asIntN(0, 0n), 0n); +assert.sameValue(BigInt.asIntN(0, 1n), 0n); +assert.sameValue(BigInt.asIntN(0, 2n), 0n); assert.sameValue(BigInt.asIntN(1, -3n), -1n); -assert.sameValue(BigInt.asIntN(1, -2n), 0n); +assert.sameValue(BigInt.asIntN(1, -2n), 0n); assert.sameValue(BigInt.asIntN(1, -1n), -1n); -assert.sameValue(BigInt.asIntN(1, 0n), 0n); -assert.sameValue(BigInt.asIntN(1, 1n), -1n); -assert.sameValue(BigInt.asIntN(1, 2n), 0n); -assert.sameValue(BigInt.asIntN(1, 3n), -1n); +assert.sameValue(BigInt.asIntN(1, 0n), 0n); +assert.sameValue(BigInt.asIntN(1, 1n), -1n); +assert.sameValue(BigInt.asIntN(1, 2n), 0n); +assert.sameValue(BigInt.asIntN(1, 3n), -1n); assert.sameValue(BigInt.asIntN(1, -123456789012345678901n), -1n); -assert.sameValue(BigInt.asIntN(1, -123456789012345678900n), 0n); -assert.sameValue(BigInt.asIntN(1, 123456789012345678900n), 0n); -assert.sameValue(BigInt.asIntN(1, 123456789012345678901n), -1n); +assert.sameValue(BigInt.asIntN(1, -123456789012345678900n), 0n); +assert.sameValue(BigInt.asIntN(1, 123456789012345678900n), 0n); +assert.sameValue(BigInt.asIntN(1, 123456789012345678901n), -1n); -assert.sameValue(BigInt.asIntN(2, -3n), 1n); +assert.sameValue(BigInt.asIntN(2, -3n), 1n); assert.sameValue(BigInt.asIntN(2, -2n), -2n); assert.sameValue(BigInt.asIntN(2, -1n), -1n); -assert.sameValue(BigInt.asIntN(2, 0n), 0n); -assert.sameValue(BigInt.asIntN(2, 1n), 1n); -assert.sameValue(BigInt.asIntN(2, 2n), -2n); -assert.sameValue(BigInt.asIntN(2, 3n), -1n); +assert.sameValue(BigInt.asIntN(2, 0n), 0n); +assert.sameValue(BigInt.asIntN(2, 1n), 1n); +assert.sameValue(BigInt.asIntN(2, 2n), -2n); +assert.sameValue(BigInt.asIntN(2, 3n), -1n); assert.sameValue(BigInt.asIntN(2, -123456789012345678901n), -1n); -assert.sameValue(BigInt.asIntN(2, -123456789012345678900n), 0n); -assert.sameValue(BigInt.asIntN(2, 123456789012345678900n), 0n); -assert.sameValue(BigInt.asIntN(2, 123456789012345678901n), 1n); +assert.sameValue(BigInt.asIntN(2, -123456789012345678900n), 0n); +assert.sameValue(BigInt.asIntN(2, 123456789012345678900n), 0n); +assert.sameValue(BigInt.asIntN(2, 123456789012345678901n), 1n); assert.sameValue(BigInt.asIntN(8, 0xabn), -0x55n); assert.sameValue(BigInt.asIntN(8, 0xabcdn), -0x33n); assert.sameValue(BigInt.asIntN(8, 0xabcdef01n), 0x01n); -assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0123n), 0x23n); +assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0123n), 0x23n); assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0183n), -0x7dn); assert.sameValue(BigInt.asIntN(64, 0xabcdef0123456789abcdefn), 0x0123456789abcdefn); assert.sameValue(BigInt.asIntN(65, 0xabcdef0123456789abcdefn), -0xfedcba9876543211n); assert.sameValue(BigInt.asIntN(200, - 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), - -0x00000000000000000000000000000000000000000000000001n -); + 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), -0x00000000000000000000000000000000000000000000000001n); assert.sameValue(BigInt.asIntN(201, - 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), - 0xffffffffffffffffffffffffffffffffffffffffffffffffffn + 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), + 0xffffffffffffffffffffffffffffffffffffffffffffffffffn ); assert.sameValue(BigInt.asIntN(200, - 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), - -0x761f7e209749a0124cd3001599f1aa2069fa9af59fc52a03acn -); + 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), -0x761f7e209749a0124cd3001599f1aa2069fa9af59fc52a03acn); assert.sameValue(BigInt.asIntN(201, - 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), - 0x89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n + 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), + 0x89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n ); diff --git a/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js b/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js index e2663a00b6e0c4158d3265ae18364b79b9ed26b5..5846d39f9a6b6cf610962e6bc3fffbf6cdba6685 100644 --- a/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js +++ b/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asIntN(2, { }, valueOf: err, toString: err -}), 1n, "ToPrimitive: @@toPrimitive takes precedence"); +}), 1 n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return "1"; }, toString: err -}), 1n, "ToPrimitive: valueOf takes precedence over toString"); +}), 1 n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: toString with no valueOf"); +}), 1 n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: undefined, valueOf: function() { return "1"; } -}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: null, valueOf: function() { return "1"; } -}), 1n, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asIntN(2, { valueOf: null, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN(2, { valueOf: 1, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN(2, { valueOf: {}, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return Object(12345); @@ -79,7 +79,7 @@ assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asIntN(0, { [Symbol.toPrimitive]: 1 diff --git a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js index 2ee3a6c6bb74f766fc2f3879ecb1affd2fc88bd1..f0cd9807d04fb4943f93df0712149e3e302a2ae6 100644 --- a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js +++ b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js @@ -10,53 +10,53 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asIntN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asIntN(2, Object(0 n)), 0 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: @@toPrimitive"); +}), 0 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: valueOf"); +}), 0 n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asIntN(2, { toString: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asIntN(2, Object(true)), 1n, +}), 0 n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asIntN(2, Object(true)), 1 n, "ToBigInt: unbox object with internal slot => true => 1n"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { return true; } -}), 1n, "ToBigInt: @@toPrimitive => true => 1n"); +}), 1 n, "ToBigInt: @@toPrimitive => true => 1n"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return true; } -}), 1n, "ToBigInt: valueOf => true => 1n"); +}), 1 n, "ToBigInt: valueOf => true => 1n"); assert.sameValue(BigInt.asIntN(2, { toString: function() { return true; } -}), 1n, "ToBigInt: toString => true => 1n"); -assert.sameValue(BigInt.asIntN(2, Object("1")), 1n, +}), 1 n, "ToBigInt: toString => true => 1n"); +assert.sameValue(BigInt.asIntN(2, Object("1")), 1 n, "ToBigInt: unbox object with internal slot => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { return "1"; } -}), 1n, "ToBigInt: @@toPrimitive => parse BigInt"); +}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return "1"; } -}), 1n, "ToBigInt: valueOf => parse BigInt"); +}), 1 n, "ToBigInt: valueOf => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1n, "ToBigInt: toString => parse BigInt"); +}), 1 n, "ToBigInt: toString => parse BigInt"); diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-errors.js b/test/built-ins/BigInt/asIntN/bits-toindex-errors.js index 892c480175ca6f717d5449b242f4fadcb63310e0..24c1317be74f273a2f39ff76ff7f91aa9da86952 100644 --- a/test/built-ins/BigInt/asIntN/bits-toindex-errors.js +++ b/test/built-ins/BigInt/asIntN/bits-toindex-errors.js @@ -11,74 +11,74 @@ features: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names] ---*/ assert.throws(RangeError, function() { - BigInt.asIntN(-1, 0n); + BigInt.asIntN(-1, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asIntN(-2.5, 0n); + BigInt.asIntN(-2.5, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asIntN("-2.5", 0n); + BigInt.asIntN("-2.5", 0 n); }, "ToIndex: parse Number => throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asIntN(-Infinity, 0n); + BigInt.asIntN(-Infinity, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asIntN(9007199254740992, 0n); + BigInt.asIntN(9007199254740992, 0 n); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(RangeError, function() { - BigInt.asIntN(Infinity, 0n); + BigInt.asIntN(Infinity, 0 n); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(TypeError, function() { - BigInt.asIntN(0n, 0n); + BigInt.asIntN(0 n, 0 n); }, "ToIndex: BigInt => TypeError"); assert.throws(TypeError, function() { - BigInt.asIntN(Object(0n), 0n); + BigInt.asIntN(Object(0 n), 0 n); }, "ToIndex: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ toString: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: toString => BigInt => TypeError"); assert.throws(TypeError, function() { - BigInt.asIntN(Symbol("1"), 0n); + BigInt.asIntN(Symbol("1"), 0 n); }, "ToIndex: Symbol => TypeError"); assert.throws(TypeError, function() { - BigInt.asIntN(Object(Symbol("1")), 0n); + BigInt.asIntN(Object(Symbol("1")), 0 n); }, "ToIndex: unbox object with internal slot => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: @@toPrimitive => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: valueOf => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ toString: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: toString => Symbol => TypeError"); diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js b/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js index c6b874a84e7e50b47989bbca8c8c0fa0b3328f47..49b0a3041180bce78badc206d02ca0d7da54a4bf 100644 --- a/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js +++ b/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asIntN({ }, valueOf: err, toString: err -}, 1n), -1n, "ToPrimitive: @@toPrimitive takes precedence"); +}, 1 n), -1 n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return 1; }, toString: err -}, 1n), -1n, "ToPrimitive: valueOf takes precedence over toString"); +}, 1 n), -1 n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asIntN({ toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: toString with no valueOf"); +}, 1 n), -1 n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: undefined, valueOf: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}, 1 n), -1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: null, valueOf: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip @@toPrimitive when it's null"); +}, 1 n), -1 n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asIntN({ valueOf: null, toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN({ valueOf: 1, toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN({ valueOf: {}, toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asIntN({ toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it returns an object"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return Object(12345); @@ -79,69 +79,69 @@ assert.sameValue(BigInt.asIntN({ toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it returns an object"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: 1 - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive is not callable"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: {} - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive is not callable"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { return Object(1); } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive returns an object"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { return {}; } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive returns an object"); assert.throws(MyError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from @@toPrimitive"); assert.throws(MyError, function() { BigInt.asIntN({ valueOf: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from valueOf"); assert.throws(MyError, function() { BigInt.asIntN({ toString: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from toString"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: null, toString: null - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: 1, toString: 1 - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: {}, toString: {} - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asIntN({ @@ -151,7 +151,7 @@ assert.throws(TypeError, function() { toString: function() { return Object(1); } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asIntN({ @@ -161,5 +161,5 @@ assert.throws(TypeError, function() { toString: function() { return {}; } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js b/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js index cb9a5832a150be498e9701709e902979dc54e82a..647829e64103842e445f23be9d53f692b1471af0 100644 --- a/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js +++ b/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js @@ -10,100 +10,100 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asIntN(Object(0), 1n), 0n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asIntN(Object(0), 1 n), 0 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return 0; } -}, 1n), 0n, "ToPrimitive: @@toPrimitive"); +}, 1 n), 0 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return 0; } -}, 1n), 0n, "ToPrimitive: valueOf"); +}, 1 n), 0 n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asIntN({ toString: function() { return 0; } -}, 1n), 0n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asIntN(Object(NaN), 1n), 0n, +}, 1 n), 0 n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asIntN(Object(NaN), 1 n), 0 n, "ToIndex: unbox object with internal slot => NaN => 0"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return NaN; } -}, 1n), 0n, "ToIndex: @@toPrimitive => NaN => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => NaN => 0"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return NaN; } -}, 1n), 0n, "ToIndex: valueOf => NaN => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => NaN => 0"); assert.sameValue(BigInt.asIntN({ toString: function() { return NaN; } -}, 1n), 0n, "ToIndex: toString => NaN => 0"); +}, 1 n), 0 n, "ToIndex: toString => NaN => 0"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return undefined; } -}, 1n), 0n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return undefined; } -}, 1n), 0n, "ToIndex: valueOf => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => undefined => NaN => 0"); assert.sameValue(BigInt.asIntN({ toString: function() { return undefined; } -}, 1n), 0n, "ToIndex: toString => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: toString => undefined => NaN => 0"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return null; } -}, 1n), 0n, "ToIndex: @@toPrimitive => null => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => null => 0"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return null; } -}, 1n), 0n, "ToIndex: valueOf => null => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => null => 0"); assert.sameValue(BigInt.asIntN({ toString: function() { return null; } -}, 1n), 0n, "ToIndex: toString => null => 0"); -assert.sameValue(BigInt.asIntN(Object(true), 1n), -1n, +}, 1 n), 0 n, "ToIndex: toString => null => 0"); +assert.sameValue(BigInt.asIntN(Object(true), 1 n), -1 n, "ToIndex: unbox object with internal slot => true => 1"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return true; } -}, 1n), -1n, "ToIndex: @@toPrimitive => true => 1"); +}, 1 n), -1 n, "ToIndex: @@toPrimitive => true => 1"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return true; } -}, 1n), -1n, "ToIndex: valueOf => true => 1"); +}, 1 n), -1 n, "ToIndex: valueOf => true => 1"); assert.sameValue(BigInt.asIntN({ toString: function() { return true; } -}, 1n), -1n, "ToIndex: toString => true => 1"); -assert.sameValue(BigInt.asIntN(Object("1"), 1n), -1n, +}, 1 n), -1 n, "ToIndex: toString => true => 1"); +assert.sameValue(BigInt.asIntN(Object("1"), 1 n), -1 n, "ToIndex: unbox object with internal slot => parse Number"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return "1"; } -}, 1n), -1n, "ToIndex: @@toPrimitive => parse Number"); +}, 1 n), -1 n, "ToIndex: @@toPrimitive => parse Number"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return "1"; } -}, 1n), -1n, "ToIndex: valueOf => parse Number"); +}, 1 n), -1 n, "ToIndex: valueOf => parse Number"); assert.sameValue(BigInt.asIntN({ toString: function() { return "1"; } -}, 1n), -1n, "ToIndex: toString => parse Number"); +}, 1 n), -1 n, "ToIndex: toString => parse Number"); diff --git a/test/built-ins/BigInt/asIntN/bits-toindex.js b/test/built-ins/BigInt/asIntN/bits-toindex.js index b3b8acad927641605f6ec883b41aee936c84008d..c2646fbabea66db66028ff2554b6d96d555dc9ef 100644 --- a/test/built-ins/BigInt/asIntN/bits-toindex.js +++ b/test/built-ins/BigInt/asIntN/bits-toindex.js @@ -16,7 +16,7 @@ assert.sameValue(BigInt.asIntN(-0.9, 1n), 0n, "ToIndex: truncate towards 0"); assert.sameValue(BigInt.asIntN(0.9, 1n), 0n, "ToIndex: truncate towards 0"); assert.sameValue(BigInt.asIntN(NaN, 1n), 0n, "ToIndex: NaN => 0"); assert.sameValue(BigInt.asIntN(undefined, 1n), 0n, "ToIndex: undefined => NaN => 0"); -assert.sameValue(BigInt.asIntN(null, 1n), 0n, "ToIndex: null => 0"); +assert.sameValue(BigInt.asIntN(null, 1n), 0n, "ToIndex:null => 0"); assert.sameValue(BigInt.asIntN(false, 1n), 0n, "ToIndex: false => 0"); assert.sameValue(BigInt.asIntN(true, 1n), -1n, "ToIndex: true => 1"); assert.sameValue(BigInt.asIntN("0", 1n), 0n, "ToIndex: parse Number"); diff --git a/test/built-ins/BigInt/asUintN/arithmetic.js b/test/built-ins/BigInt/asUintN/arithmetic.js index 5ab7b235c97737bbf1c287d554c00cb49ce256c8..9e8154f7b5deb77269b215614eb20f473afc3f6e 100644 --- a/test/built-ins/BigInt/asUintN/arithmetic.js +++ b/test/built-ins/BigInt/asUintN/arithmetic.js @@ -13,33 +13,33 @@ features: [BigInt] assert.sameValue(BigInt.asUintN(0, -2n), 0n); assert.sameValue(BigInt.asUintN(0, -1n), 0n); -assert.sameValue(BigInt.asUintN(0, 0n), 0n); -assert.sameValue(BigInt.asUintN(0, 1n), 0n); -assert.sameValue(BigInt.asUintN(0, 2n), 0n); +assert.sameValue(BigInt.asUintN(0, 0n), 0n); +assert.sameValue(BigInt.asUintN(0, 1n), 0n); +assert.sameValue(BigInt.asUintN(0, 2n), 0n); assert.sameValue(BigInt.asUintN(1, -3n), 1n); assert.sameValue(BigInt.asUintN(1, -2n), 0n); assert.sameValue(BigInt.asUintN(1, -1n), 1n); -assert.sameValue(BigInt.asUintN(1, 0n), 0n); -assert.sameValue(BigInt.asUintN(1, 1n), 1n); -assert.sameValue(BigInt.asUintN(1, 2n), 0n); -assert.sameValue(BigInt.asUintN(1, 3n), 1n); +assert.sameValue(BigInt.asUintN(1, 0n), 0n); +assert.sameValue(BigInt.asUintN(1, 1n), 1n); +assert.sameValue(BigInt.asUintN(1, 2n), 0n); +assert.sameValue(BigInt.asUintN(1, 3n), 1n); assert.sameValue(BigInt.asUintN(1, -123456789012345678901n), 1n); assert.sameValue(BigInt.asUintN(1, -123456789012345678900n), 0n); -assert.sameValue(BigInt.asUintN(1, 123456789012345678900n), 0n); -assert.sameValue(BigInt.asUintN(1, 123456789012345678901n), 1n); +assert.sameValue(BigInt.asUintN(1, 123456789012345678900n), 0n); +assert.sameValue(BigInt.asUintN(1, 123456789012345678901n), 1n); assert.sameValue(BigInt.asUintN(2, -3n), 1n); assert.sameValue(BigInt.asUintN(2, -2n), 2n); assert.sameValue(BigInt.asUintN(2, -1n), 3n); -assert.sameValue(BigInt.asUintN(2, 0n), 0n); -assert.sameValue(BigInt.asUintN(2, 1n), 1n); -assert.sameValue(BigInt.asUintN(2, 2n), 2n); -assert.sameValue(BigInt.asUintN(2, 3n), 3n); +assert.sameValue(BigInt.asUintN(2, 0n), 0n); +assert.sameValue(BigInt.asUintN(2, 1n), 1n); +assert.sameValue(BigInt.asUintN(2, 2n), 2n); +assert.sameValue(BigInt.asUintN(2, 3n), 3n); assert.sameValue(BigInt.asUintN(2, -123456789012345678901n), 3n); assert.sameValue(BigInt.asUintN(2, -123456789012345678900n), 0n); -assert.sameValue(BigInt.asUintN(2, 123456789012345678900n), 0n); -assert.sameValue(BigInt.asUintN(2, 123456789012345678901n), 1n); +assert.sameValue(BigInt.asUintN(2, 123456789012345678900n), 0n); +assert.sameValue(BigInt.asUintN(2, 123456789012345678901n), 1n); assert.sameValue(BigInt.asUintN(8, 0xabn), 0xabn); assert.sameValue(BigInt.asUintN(8, 0xabcdn), 0xcdn); @@ -47,23 +47,23 @@ assert.sameValue(BigInt.asUintN(8, 0xabcdef01n), 0x01n); assert.sameValue(BigInt.asUintN(8, 0xabcdef0123456789abcdef0123n), 0x23n); assert.sameValue(BigInt.asUintN(8, 0xabcdef0123456789abcdef0183n), 0x83n); -assert.sameValue(BigInt.asUintN(64, 0xabcdef0123456789abcdefn), 0x0123456789abcdefn); +assert.sameValue(BigInt.asUintN(64, 0xabcdef0123456789abcdefn), 0x0123456789abcdefn); assert.sameValue(BigInt.asUintN(65, 0xabcdef0123456789abcdefn), 0x10123456789abcdefn); assert.sameValue(BigInt.asUintN(200, - 0xbffffffffffffffffffffffffffffffffffffffffffffffffffn), + 0xbffffffffffffffffffffffffffffffffffffffffffffffffffn), 0x0ffffffffffffffffffffffffffffffffffffffffffffffffffn ); assert.sameValue(BigInt.asUintN(201, - 0xbffffffffffffffffffffffffffffffffffffffffffffffffffn), + 0xbffffffffffffffffffffffffffffffffffffffffffffffffffn), 0x1ffffffffffffffffffffffffffffffffffffffffffffffffffn ); assert.sameValue(BigInt.asUintN(200, - 0xb89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), + 0xb89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), 0x089e081df68b65fedb32cffea660e55df9605650a603ad5fc54n ); assert.sameValue(BigInt.asUintN(201, - 0xb89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), + 0xb89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), 0x189e081df68b65fedb32cffea660e55df9605650a603ad5fc54n ); diff --git a/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js b/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js index 15bfa4775930c8487126474e8f943baad4c32c0e..65008e1aafac7395b4002740f2856e2d1c1f008e 100644 --- a/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js +++ b/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asUintN(2, { }, valueOf: err, toString: err -}), 1n, "ToPrimitive: @@toPrimitive takes precedence"); +}), 1 n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return "1"; }, toString: err -}), 1n, "ToPrimitive: valueOf takes precedence over toString"); +}), 1 n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: toString with no valueOf"); +}), 1 n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: undefined, valueOf: function() { return "1"; } -}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: null, valueOf: function() { return "1"; } -}), 1n, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asUintN(2, { valueOf: null, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: 1, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: {}, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return Object(12345); @@ -79,7 +79,7 @@ assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asUintN(0, { [Symbol.toPrimitive]: 1 diff --git a/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js b/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js index 49741b93978516fb2dd6f52e08b07ce0bdaec511..f7750a4204cc5ccd5afb9f5eb1a787d025ea398e 100644 --- a/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js +++ b/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js @@ -10,53 +10,53 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asUintN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asUintN(2, Object(0 n)), 0 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: @@toPrimitive"); +}), 0 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: valueOf"); +}), 0 n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asUintN(2, { toString: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asUintN(2, Object(true)), 1n, +}), 0 n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asUintN(2, Object(true)), 1 n, "ToBigInt: unbox object with internal slot => true => 1n"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: function() { return true; } -}), 1n, "ToBigInt: @@toPrimitive => true => 1n"); +}), 1 n, "ToBigInt: @@toPrimitive => true => 1n"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return true; } -}), 1n, "ToBigInt: valueOf => true => 1n"); +}), 1 n, "ToBigInt: valueOf => true => 1n"); assert.sameValue(BigInt.asUintN(2, { toString: function() { return true; } -}), 1n, "ToBigInt: toString => true => 1n"); -assert.sameValue(BigInt.asUintN(2, Object("1")), 1n, +}), 1 n, "ToBigInt: toString => true => 1n"); +assert.sameValue(BigInt.asUintN(2, Object("1")), 1 n, "ToBigInt: unbox object with internal slot => parse BigInt"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: function() { return "1"; } -}), 1n, "ToBigInt: @@toPrimitive => parse BigInt"); +}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return "1"; } -}), 1n, "ToBigInt: valueOf => parse BigInt"); +}), 1 n, "ToBigInt: valueOf => parse BigInt"); assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1n, "ToBigInt: toString => parse BigInt"); +}), 1 n, "ToBigInt: toString => parse BigInt"); diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-errors.js b/test/built-ins/BigInt/asUintN/bits-toindex-errors.js index 9b42b295d1089ea9b0a69c16bd6cf18d24796601..4ee6e8e731b50546e87502d90c3c215d4909d204 100644 --- a/test/built-ins/BigInt/asUintN/bits-toindex-errors.js +++ b/test/built-ins/BigInt/asUintN/bits-toindex-errors.js @@ -11,74 +11,74 @@ features: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names] ---*/ assert.throws(RangeError, function() { - BigInt.asUintN(-1, 0n); + BigInt.asUintN(-1, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asUintN(-2.5, 0n); + BigInt.asUintN(-2.5, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asUintN("-2.5", 0n); + BigInt.asUintN("-2.5", 0 n); }, "ToIndex: parse Number => throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asUintN(-Infinity, 0n); + BigInt.asUintN(-Infinity, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asUintN(9007199254740992, 0n); + BigInt.asUintN(9007199254740992, 0 n); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(RangeError, function() { - BigInt.asUintN(Infinity, 0n); + BigInt.asUintN(Infinity, 0 n); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(TypeError, function() { - BigInt.asUintN(0n, 0n); + BigInt.asUintN(0 n, 0 n); }, "ToIndex: BigInt => TypeError"); assert.throws(TypeError, function() { - BigInt.asUintN(Object(0n), 0n); + BigInt.asUintN(Object(0 n), 0 n); }, "ToIndex: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ toString: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: toString => BigInt => TypeError"); assert.throws(TypeError, function() { - BigInt.asUintN(Symbol("1"), 0n); + BigInt.asUintN(Symbol("1"), 0 n); }, "ToIndex: Symbol => TypeError"); assert.throws(TypeError, function() { - BigInt.asUintN(Object(Symbol("1")), 0n); + BigInt.asUintN(Object(Symbol("1")), 0 n); }, "ToIndex: unbox object with internal slot => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: @@toPrimitive => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: valueOf => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ toString: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: toString => Symbol => TypeError"); diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js b/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js index 68a0421a9015ca3c909c1f3dd4f249421f313657..d8cde7652a64d184f9501a71b4e765f2cc9b6306 100644 --- a/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js +++ b/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asUintN({ }, valueOf: err, toString: err -}, 1n), 1n, "ToPrimitive: @@toPrimitive takes precedence"); +}, 1 n), 1 n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return 1; }, toString: err -}, 1n), 1n, "ToPrimitive: valueOf takes precedence over toString"); +}, 1 n), 1 n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asUintN({ toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: toString with no valueOf"); +}, 1 n), 1 n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: undefined, valueOf: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}, 1 n), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: null, valueOf: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip @@toPrimitive when it's null"); +}, 1 n), 1 n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asUintN({ valueOf: null, toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN({ valueOf: 1, toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN({ valueOf: {}, toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asUintN({ toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return Object(12345); @@ -79,69 +79,69 @@ assert.sameValue(BigInt.asUintN({ toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: 1 - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive is not callable"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: {} - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive is not callable"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { return Object(1); } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive returns an object"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { return {}; } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive returns an object"); assert.throws(MyError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from @@toPrimitive"); assert.throws(MyError, function() { BigInt.asUintN({ valueOf: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from valueOf"); assert.throws(MyError, function() { BigInt.asUintN({ toString: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from toString"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: null, toString: null - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: 1, toString: 1 - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: {}, toString: {} - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asUintN({ @@ -151,7 +151,7 @@ assert.throws(TypeError, function() { toString: function() { return Object(1); } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asUintN({ @@ -161,5 +161,5 @@ assert.throws(TypeError, function() { toString: function() { return {}; } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js b/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js index 3b78835cd0feaa6ca90b7e985f04ee9bbfd23353..d6d78b3178819d142c361d41ea5c408dbd221e0b 100644 --- a/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js +++ b/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js @@ -10,100 +10,100 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asUintN(Object(0), 1n), 0n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asUintN(Object(0), 1 n), 0 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return 0; } -}, 1n), 0n, "ToPrimitive: @@toPrimitive"); +}, 1 n), 0 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return 0; } -}, 1n), 0n, "ToPrimitive: valueOf"); +}, 1 n), 0 n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asUintN({ toString: function() { return 0; } -}, 1n), 0n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asUintN(Object(NaN), 1n), 0n, +}, 1 n), 0 n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asUintN(Object(NaN), 1 n), 0 n, "ToIndex: unbox object with internal slot => NaN => 0"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return NaN; } -}, 1n), 0n, "ToIndex: @@toPrimitive => NaN => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => NaN => 0"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return NaN; } -}, 1n), 0n, "ToIndex: valueOf => NaN => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => NaN => 0"); assert.sameValue(BigInt.asUintN({ toString: function() { return NaN; } -}, 1n), 0n, "ToIndex: toString => NaN => 0"); +}, 1 n), 0 n, "ToIndex: toString => NaN => 0"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return undefined; } -}, 1n), 0n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return undefined; } -}, 1n), 0n, "ToIndex: valueOf => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => undefined => NaN => 0"); assert.sameValue(BigInt.asUintN({ toString: function() { return undefined; } -}, 1n), 0n, "ToIndex: toString => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: toString => undefined => NaN => 0"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return null; } -}, 1n), 0n, "ToIndex: @@toPrimitive => null => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => null => 0"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return null; } -}, 1n), 0n, "ToIndex: valueOf => null => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => null => 0"); assert.sameValue(BigInt.asUintN({ toString: function() { return null; } -}, 1n), 0n, "ToIndex: toString => null => 0"); -assert.sameValue(BigInt.asUintN(Object(true), 1n), 1n, +}, 1 n), 0 n, "ToIndex: toString => null => 0"); +assert.sameValue(BigInt.asUintN(Object(true), 1 n), 1 n, "ToIndex: unbox object with internal slot => true => 1"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return true; } -}, 1n), 1n, "ToIndex: @@toPrimitive => true => 1"); +}, 1 n), 1 n, "ToIndex: @@toPrimitive => true => 1"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return true; } -}, 1n), 1n, "ToIndex: valueOf => true => 1"); +}, 1 n), 1 n, "ToIndex: valueOf => true => 1"); assert.sameValue(BigInt.asUintN({ toString: function() { return true; } -}, 1n), 1n, "ToIndex: toString => true => 1"); -assert.sameValue(BigInt.asUintN(Object("1"), 1n), 1n, +}, 1 n), 1 n, "ToIndex: toString => true => 1"); +assert.sameValue(BigInt.asUintN(Object("1"), 1 n), 1 n, "ToIndex: unbox object with internal slot => parse Number"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return "1"; } -}, 1n), 1n, "ToIndex: @@toPrimitive => parse Number"); +}, 1 n), 1 n, "ToIndex: @@toPrimitive => parse Number"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return "1"; } -}, 1n), 1n, "ToIndex: valueOf => parse Number"); +}, 1 n), 1 n, "ToIndex: valueOf => parse Number"); assert.sameValue(BigInt.asUintN({ toString: function() { return "1"; } -}, 1n), 1n, "ToIndex: toString => parse Number"); +}, 1 n), 1 n, "ToIndex: toString => parse Number"); diff --git a/test/built-ins/BigInt/asUintN/bits-toindex.js b/test/built-ins/BigInt/asUintN/bits-toindex.js index 7d774bc33e52b6db49389f9f220ff0f8c40a5c42..7318fc88e8e4636012b31856c22437698f2a2013 100644 --- a/test/built-ins/BigInt/asUintN/bits-toindex.js +++ b/test/built-ins/BigInt/asUintN/bits-toindex.js @@ -16,7 +16,7 @@ assert.sameValue(BigInt.asUintN(-0.9, 1n), 0n, "ToIndex: truncate towards 0"); assert.sameValue(BigInt.asUintN(0.9, 1n), 0n, "ToIndex: truncate towards 0"); assert.sameValue(BigInt.asUintN(NaN, 1n), 0n, "ToIndex: NaN => 0"); assert.sameValue(BigInt.asUintN(undefined, 1n), 0n, "ToIndex: undefined => NaN => 0"); -assert.sameValue(BigInt.asUintN(null, 1n), 0n, "ToIndex: null => 0"); +assert.sameValue(BigInt.asUintN(null, 1n), 0n, "ToIndex:null => 0"); assert.sameValue(BigInt.asUintN(false, 1n), 0n, "ToIndex: false => 0"); assert.sameValue(BigInt.asUintN(true, 1n), 1n, "ToIndex: true => 1"); assert.sameValue(BigInt.asUintN("0", 1n), 0n, "ToIndex: parse Number"); diff --git a/test/built-ins/BigInt/call-value-of-when-to-string-present.js b/test/built-ins/BigInt/call-value-of-when-to-string-present.js index 95b89af322d0212c84bba98261918af384deeef6..b3a02ab0b8bac824fe55ac228ba7439d873bfa84 100644 --- a/test/built-ins/BigInt/call-value-of-when-to-string-present.js +++ b/test/built-ins/BigInt/call-value-of-when-to-string-present.js @@ -22,4 +22,3 @@ let o = { } assert.sameValue(BigInt(o), 44n); - diff --git a/test/built-ins/BigInt/constructor-empty-string.js b/test/built-ins/BigInt/constructor-empty-string.js index 73abca3735100c773d8671d91c76f13ce7549bbd..e8b2fb52b4c2d970fb89aa377e9b3c5a0db45674 100644 --- a/test/built-ins/BigInt/constructor-empty-string.js +++ b/test/built-ins/BigInt/constructor-empty-string.js @@ -14,4 +14,3 @@ features: [BigInt] assert.sameValue(BigInt(""), 0n); assert.sameValue(BigInt(" "), 0n); - diff --git a/test/built-ins/BigInt/constructor-from-binary-string.js b/test/built-ins/BigInt/constructor-from-binary-string.js index 6e30de3bf445f0d593116e540852bef645d3ce72..35cfda0acbd12f26a2f9c0e13cb2f6bcc301747c 100644 --- a/test/built-ins/BigInt/constructor-from-binary-string.js +++ b/test/built-ins/BigInt/constructor-from-binary-string.js @@ -20,7 +20,7 @@ assert.sameValue(BigInt("0b1"), 1n); let binaryString = "0b1"; for (let i = 0; i < 128; i++) - binaryString += "0"; + binaryString += "0"; assert.sameValue(BigInt(binaryString), 340282366920938463463374607431768211456n); @@ -31,7 +31,6 @@ assert.sameValue(BigInt("0B1"), 1n); binaryString = "0B1"; for (let i = 0; i < 128; i++) - binaryString += "0"; + binaryString += "0"; assert.sameValue(BigInt(binaryString), 340282366920938463463374607431768211456n); - diff --git a/test/built-ins/BigInt/constructor-from-decimal-string.js b/test/built-ins/BigInt/constructor-from-decimal-string.js index 34ad017956da642e67e7484e794108c33d307dfe..c732b7f7aa064c828e31e85696b9a0af78d644cc 100644 --- a/test/built-ins/BigInt/constructor-from-decimal-string.js +++ b/test/built-ins/BigInt/constructor-from-decimal-string.js @@ -24,4 +24,3 @@ assert.sameValue(BigInt("-18446744073709551616"), -18446744073709551616n); assert.sameValue(BigInt("-7"), -7n); assert.sameValue(BigInt("-88"), -88n); assert.sameValue(BigInt("-900"), -900n); - diff --git a/test/built-ins/BigInt/constructor-from-hex-string.js b/test/built-ins/BigInt/constructor-from-hex-string.js index 4ae408ee2ab78ac1958534d1e1a744216cf1d5d3..f26b9d269834e4efad31423ef6b5b1eebd059975 100644 --- a/test/built-ins/BigInt/constructor-from-hex-string.js +++ b/test/built-ins/BigInt/constructor-from-hex-string.js @@ -22,4 +22,3 @@ assert.sameValue(BigInt("0Xa"), 10n); assert.sameValue(BigInt("0Xff"), 255n); assert.sameValue(BigInt("0Xfabc"), 64188n); assert.sameValue(BigInt("0Xfffffffffffffffffff"), 75557863725914323419135n); - diff --git a/test/built-ins/BigInt/constructor-from-octal-string.js b/test/built-ins/BigInt/constructor-from-octal-string.js index aada81a52dbf8873b1bc82cd1b1047f2a54f2e90..59d18c64d1337595239505bac8654ca7863f0f7f 100644 --- a/test/built-ins/BigInt/constructor-from-octal-string.js +++ b/test/built-ins/BigInt/constructor-from-octal-string.js @@ -20,4 +20,3 @@ assert.sameValue(BigInt("0o20"), 16n); assert.sameValue(BigInt("0O7"), 7n); assert.sameValue(BigInt("0O10"), 8n); assert.sameValue(BigInt("0O20"), 16n); - diff --git a/test/built-ins/BigInt/constructor-trailing-leading-spaces.js b/test/built-ins/BigInt/constructor-trailing-leading-spaces.js index ccdad852be0195e9ef317bc2b6f6ab82eb3859d3..8db1a76ea633d319622498cd6fa41857302df2b6 100644 --- a/test/built-ins/BigInt/constructor-trailing-leading-spaces.js +++ b/test/built-ins/BigInt/constructor-trailing-leading-spaces.js @@ -18,4 +18,3 @@ assert.sameValue(BigInt("18446744073709551616 "), 18446744073709551616n); assert.sameValue(BigInt(" 7 "), 7n); assert.sameValue(BigInt(" -197 "), -197n); assert.sameValue(BigInt(" "), 0n); - diff --git a/test/built-ins/BigInt/new-target-throws.js b/test/built-ins/BigInt/new-target-throws.js index a240eecb7de17aec6a308ccdbcb8338e7b8ace24..aaf91b1174d0015b8e0ede0600fc9e2bba563ebf 100644 --- a/test/built-ins/BigInt/new-target-throws.js +++ b/test/built-ins/BigInt/new-target-throws.js @@ -16,6 +16,8 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { new BigInt({ - valueOf: function() { throw new Test262Error("unreachable"); } + valueOf: function() { + throw new Test262Error("unreachable"); + } }); }); diff --git a/test/built-ins/BigInt/prototype/Symbol.toStringTag.js b/test/built-ins/BigInt/prototype/Symbol.toStringTag.js index 14636971928bf40bacedde2574ce1185ed3de068..835e35224ccb3c453a3260d4675788332c535af9 100644 --- a/test/built-ins/BigInt/prototype/Symbol.toStringTag.js +++ b/test/built-ins/BigInt/prototype/Symbol.toStringTag.js @@ -21,8 +21,8 @@ verifyProperty(BigInt.prototype, Symbol.toStringTag, { configurable: true }); -assert.sameValue(Object.prototype.toString.call(3n), "[object BigInt]"); -assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object BigInt]"); +assert.sameValue(Object.prototype.toString.call(3 n), "[object BigInt]"); +assert.sameValue(Object.prototype.toString.call(Object(3 n)), "[object BigInt]"); // Verify that Object.prototype.toString does not have special casing for BigInt // as it does for most other primitive types @@ -33,5 +33,5 @@ Object.defineProperty(BigInt.prototype, Symbol.toStringTag, { configurable: true }); -assert.sameValue(Object.prototype.toString.call(3n), "[object FooBar]"); -assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object FooBar]"); +assert.sameValue(Object.prototype.toString.call(3 n), "[object FooBar]"); +assert.sameValue(Object.prototype.toString.call(Object(3 n)), "[object FooBar]"); diff --git a/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js b/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js index 78ae9bd6807660d6002435cc390b9e57917b0b4e..f67ca293c43008a173f8ae61d120b9321398fd77 100644 --- a/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js +++ b/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js @@ -22,17 +22,25 @@ features: [BigInt, Symbol.toPrimitive] var toString = BigInt.prototype.toString; assert.throws(TypeError, function() { - toString.call({x: 1n}); + toString.call({ + x: 1 n + }); }, '{x: 1n}'); assert.throws(TypeError, function() { - toString.call([1n]); + toString.call([1 n]); }, '[1n]'); var obj = { - valueOf: function() { throw new Test262Error('no [[BigIntData]]') }, - toString: function() { throw new Test262Error('no [[BigIntData]]') }, - [Symbol.toPrimitive]: function() { throw new Test262Error('no [[BigIntData]]') } + valueOf: function() { + throw new Test262Error('no [[BigIntData]]') + }, + toString: function() { + throw new Test262Error('no [[BigIntData]]') + }, + [Symbol.toPrimitive]: function() { + throw new Test262Error('no [[BigIntData]]') + } }; assert.throws(TypeError, function() { toString.call(obj); diff --git a/test/built-ins/BigInt/prototype/valueOf/return.js b/test/built-ins/BigInt/prototype/valueOf/return.js index de7336057ceb1f47b234f282846766839870e362..887b5f921e2ca2c94bb7ea36d1235c4d4bab4d10 100644 --- a/test/built-ins/BigInt/prototype/valueOf/return.js +++ b/test/built-ins/BigInt/prototype/valueOf/return.js @@ -8,7 +8,7 @@ description: > info: | BigInt.prototype.valueOf ( ) - Return ? thisBigIntValue(this value). + Return ? thisBigIntValue(this value). features: [BigInt] ---*/ diff --git a/test/built-ins/BigInt/value-of-throws.js b/test/built-ins/BigInt/value-of-throws.js index 690b0fa9448c95749edf972eea8c8f4545d15ef2..671a9b94ca51e0c0c6aa3602841b5a1599d33131 100644 --- a/test/built-ins/BigInt/value-of-throws.js +++ b/test/built-ins/BigInt/value-of-throws.js @@ -14,13 +14,16 @@ features: [BigInt] assert.throws(Test262Error, function() { BigInt({ - valueOf: function() { throw new Test262Error(); } + valueOf: function() { + throw new Test262Error(); + } }); }); assert.throws(Test262Error, function() { BigInt({ - toString: function() { throw new Test262Error(); } + toString: function() { + throw new Test262Error(); + } }); }); - diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T1.js b/test/built-ins/Boolean/S15.6.1.1_A1_T1.js index 64461bc2ebfdc740a1247c382f4adea7f85e6efe..c19b7eefe553dc046acb1aafaf73bab571c0c33b 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T1.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T1.js @@ -13,21 +13,21 @@ description: > ---*/ //CHECK#1 -if( typeof Boolean() !== "boolean" ) { - $ERROR('#1: typeof Boolean() should be "boolean", actual is "'+typeof Boolean()+'"'); +if (typeof Boolean() !== "boolean") { + $ERROR('#1: typeof Boolean() should be "boolean", actual is "' + typeof Boolean() + '"'); } //CHECK#2 -if( typeof Boolean(1) !== "boolean" ) { - $ERROR('#2: typeof Boolean(1) should be "boolean", actual is "'+typeof Boolean(1)+'"'); +if (typeof Boolean(1) !== "boolean") { + $ERROR('#2: typeof Boolean(1) should be "boolean", actual is "' + typeof Boolean(1) + '"'); } //CHECK#3 -if( typeof Boolean(new String("1")) !== "boolean" ) { - $ERROR('#3: typeof Boolean(new String("1")) should be "boolean", actual is "'+typeof Boolean(new String("1"))+'"'); +if (typeof Boolean(new String("1")) !== "boolean") { + $ERROR('#3: typeof Boolean(new String("1")) should be "boolean", actual is "' + typeof Boolean(new String("1")) + '"'); } //CHECK#4 -if( typeof Boolean(new Object(1)) !== "boolean" ) { - $ERROR('#4: typeof Boolean(new Object(1)) should be "boolean", actual is "'+typeof Boolean(new Object(1))+'"'); +if (typeof Boolean(new Object(1)) !== "boolean") { + $ERROR('#4: typeof Boolean(new Object(1)) should be "boolean", actual is "' + typeof Boolean(new Object(1)) + '"'); } diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T2.js b/test/built-ins/Boolean/S15.6.1.1_A1_T2.js index 375786f57c825db80fb9dbaf9da0764028347627..e9dc0bb55bac9301cf08017753158e8f8988fd95 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T2.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T2.js @@ -11,33 +11,33 @@ description: Used various number values as argument ---*/ //CHECK#1 -if( typeof Boolean(0) !== "boolean" ) { - $ERROR('#1.1: typeof Boolean(0) should be "boolean", actual is "'+typeof Boolean(0)+'"'); +if (typeof Boolean(0) !== "boolean") { + $ERROR('#1.1: typeof Boolean(0) should be "boolean", actual is "' + typeof Boolean(0) + '"'); } -if( Boolean(0) !== false ) { - $ERROR('#1.2: Boolean(0) should be false, actual is '+Boolean(0)); +if (Boolean(0) !== false) { + $ERROR('#1.2: Boolean(0) should be false, actual is ' + Boolean(0)); } //CHECK#2 -if( typeof Boolean(-1) !== "boolean" ) { - $ERROR('#2.1: typeof Boolean(-1) should be "boolean", actual is "'+typeof Boolean(-1)+'"'); +if (typeof Boolean(-1) !== "boolean") { + $ERROR('#2.1: typeof Boolean(-1) should be "boolean", actual is "' + typeof Boolean(-1) + '"'); } -if( Boolean(-1) !== true ) { - $ERROR('#2.2: Boolean(-1) should be true, actual is '+Boolean(-1)); +if (Boolean(-1) !== true) { + $ERROR('#2.2: Boolean(-1) should be true, actual is ' + Boolean(-1)); } //CHECK#3 -if( typeof Boolean(-Infinity) !== "boolean" ) { - $ERROR('#3.1: typeof Boolean(-Infinity) should be "boolean", actual is "'+typeof Boolean(-Infinity)+'"'); +if (typeof Boolean(-Infinity) !== "boolean") { + $ERROR('#3.1: typeof Boolean(-Infinity) should be "boolean", actual is "' + typeof Boolean(-Infinity) + '"'); } -if( Boolean(-Infinity) !== true ) { - $ERROR('#3.2: Boolean(-Infinity) should be true, actual is '+Boolean(-Infinity)); +if (Boolean(-Infinity) !== true) { + $ERROR('#3.2: Boolean(-Infinity) should be true, actual is ' + Boolean(-Infinity)); } //CHECK#4 -if( typeof Boolean(NaN) !== "boolean" ) { - $ERROR('#4.1: typeof Boolean(NaN) should be "boolean", actual is "'+typeof Boolean(NaN)+'"'); +if (typeof Boolean(NaN) !== "boolean") { + $ERROR('#4.1: typeof Boolean(NaN) should be "boolean", actual is "' + typeof Boolean(NaN) + '"'); } -if( Boolean(NaN) !== false ) { - $ERROR('#4.2: Boolean(NaN) should be false, actual is '+Boolean(NaN)); +if (Boolean(NaN) !== false) { + $ERROR('#4.2: Boolean(NaN) should be false, actual is ' + Boolean(NaN)); } diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T3.js b/test/built-ins/Boolean/S15.6.1.1_A1_T3.js index 56e6633672fd5f59a84ef8fb978996c8e69264c7..ab9b2a1b3398e3bd117e11fff90bb15395c2ce6f 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T3.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T3.js @@ -11,41 +11,41 @@ description: Used various string values as argument ---*/ //CHECK#1 -if( typeof Boolean("0") !== "boolean" ) { - $ERROR('#1.1: typeof Boolean("0") should be "boolean", actual is "'+typeof Boolean("0")+'"'); +if (typeof Boolean("0") !== "boolean") { + $ERROR('#1.1: typeof Boolean("0") should be "boolean", actual is "' + typeof Boolean("0") + '"'); } -if( Boolean("0") !== true ) { +if (Boolean("0") !== true) { $ERROR('#1.2: Boolean("0") should be true'); } //CHECK#2 -if( typeof Boolean("-1") !== "boolean" ) { - $ERROR('#2.1: typeof Boolean("-1") should be "boolean", actual is "'+typeof Boolean("-1")+'"'); +if (typeof Boolean("-1") !== "boolean") { + $ERROR('#2.1: typeof Boolean("-1") should be "boolean", actual is "' + typeof Boolean("-1") + '"'); } -if( Boolean("-1") !== true ) { +if (Boolean("-1") !== true) { $ERROR('#2.2: Boolean("-1") should be true'); } //CHECK#3 -if( typeof Boolean("1") !== "boolean" ) { - $ERROR('#3.1: typeof Boolean("1") should be "boolean", actual is "'+typeof Boolean("1")+'"'); +if (typeof Boolean("1") !== "boolean") { + $ERROR('#3.1: typeof Boolean("1") should be "boolean", actual is "' + typeof Boolean("1") + '"'); } -if( Boolean("1") !== true ) { +if (Boolean("1") !== true) { $ERROR('#3.2: Boolean("1") should be true'); } //CHECK#4 -if( typeof Boolean("false") !== "boolean" ) { - $ERROR('#4.1: typeof Boolean("false") should be "boolean", actual is "'+typeof Boolean("false")+'"'); +if (typeof Boolean("false") !== "boolean") { + $ERROR('#4.1: typeof Boolean("false") should be "boolean", actual is "' + typeof Boolean("false") + '"'); } -if( Boolean("false") !== true ) { +if (Boolean("false") !== true) { $ERROR('#4.2: Boolean("false") should be true'); } //CHECK#5 -if( typeof Boolean("true") !== "boolean" ) { - $ERROR('#5.1: typeof Boolean("true") should be "boolean", actual is "'+typeof Boolean("true")+'"'); +if (typeof Boolean("true") !== "boolean") { + $ERROR('#5.1: typeof Boolean("true") should be "boolean", actual is "' + typeof Boolean("true") + '"'); } -if( Boolean("true") !== true ) { +if (Boolean("true") !== true) { $ERROR('#5.2: Boolean("true") should be true'); } diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T4.js b/test/built-ins/Boolean/S15.6.1.1_A1_T4.js index dc85899bf0d13ddac7e17485e57a19a9796fc65a..18a8bf587b1ff3b98d1e2ec96a639ca1c087e648 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T4.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T4.js @@ -11,42 +11,42 @@ description: Used various undefined values and null as argument ---*/ //CHECK#1 -if( typeof Boolean(undefined) !== "boolean" ) { - $ERROR('#1.1: typeof Boolean(undefined) should be "boolean", actual is "'+typeof Boolean(undefined)+'"'); +if (typeof Boolean(undefined) !== "boolean") { + $ERROR('#1.1: typeof Boolean(undefined) should be "boolean", actual is "' + typeof Boolean(undefined) + '"'); } -if( Boolean(undefined) !== false ) { +if (Boolean(undefined) !== false) { $ERROR('#1.2: Boolean(undefined) should be false'); } //CHECK#2 -if( typeof Boolean(void 0) !== "boolean" ) { - $ERROR('#2.1: typeof Boolean(void 0) should be "boolean", actual is "'+typeof Boolean(void 0)+'"'); +if (typeof Boolean(void 0) !== "boolean") { + $ERROR('#2.1: typeof Boolean(void 0) should be "boolean", actual is "' + typeof Boolean(void 0) + '"'); } -if( Boolean(void 0) !== false ) { +if (Boolean(void 0) !== false) { $ERROR('#2.2: Boolean(void 0) should be false'); } //CHECK#3 -if( typeof Boolean(function(){}()) !== "boolean" ) { - $ERROR('#3.1: typeof Boolean(function(){}()) should be "boolean", actual is "'+typeof Boolean(function(){}())+'"'); +if (typeof Boolean(function() {}()) !== "boolean") { + $ERROR('#3.1: typeof Boolean(function(){}()) should be "boolean", actual is "' + typeof Boolean(function() {}()) + '"'); } -if( Boolean(function(){}()) !== false ) { +if (Boolean(function() {}()) !== false) { $ERROR('#3.2: Boolean(function(){}()) should be false'); } //CHECK#4 -if( typeof Boolean(null) !== "boolean" ) { - $ERROR('#4.1: typeof Boolean(null) should be "boolean", actual is "'+typeof Boolean(null)+'"'); +if (typeof Boolean(null) !== "boolean") { + $ERROR('#4.1: typeof Boolean(null) should be "boolean", actual is "' + typeof Boolean(null) + '"'); } -if( Boolean(null) !== false ) { +if (Boolean(null) !== false) { $ERROR('#4.2: Boolean(null) should be false'); } //CHECK#5 -if( typeof Boolean(x) !== "boolean" ) { - $ERROR('#5.1: var x; typeof Boolean(x) should be "boolean", actual is "'+typeof Boolean(x)+'"'); +if (typeof Boolean(x) !== "boolean") { + $ERROR('#5.1: var x; typeof Boolean(x) should be "boolean", actual is "' + typeof Boolean(x) + '"'); } -if( Boolean(x) !== false ) { +if (Boolean(x) !== false) { $ERROR('#5.2: var x; Boolean(x) should be false'); } var x; diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js index cd1686531b09ed08c1f9033d4593cb39625e32a7..f465fbb22a2f9269977735ad817fd3caabdb1557 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A1_T5.js +++ b/test/built-ins/Boolean/S15.6.1.1_A1_T5.js @@ -13,41 +13,41 @@ description: Used various assigning values to any variable as argument var x; //CHECK#1 -if( typeof Boolean(x=0) !== "boolean" ) { - $ERROR('#1.1: typeof Boolean(x=0) should be "boolean", actual is "'+typeof Boolean(x=0)+'"'); +if (typeof Boolean(x = 0) !== "boolean") { + $ERROR('#1.1: typeof Boolean(x=0) should be "boolean", actual is "' + typeof Boolean(x = 0) + '"'); } -if( Boolean(x=0) !== false ) { +if (Boolean(x = 0) !== false) { $ERROR('#1.2: Boolean(x=0) should be false'); } //CHECK#2 -if( typeof Boolean(x=1) !== "boolean" ) { - $ERROR('#2.1: typeof Boolean(x=1) should be "boolean", actual is "'+typeof Boolean(x=1)+'"'); +if (typeof Boolean(x = 1) !== "boolean") { + $ERROR('#2.1: typeof Boolean(x=1) should be "boolean", actual is "' + typeof Boolean(x = 1) + '"'); } -if( Boolean(x=1) !== true ) { +if (Boolean(x = 1) !== true) { $ERROR('#2.2: Boolean(x=1) should be true'); } //CHECK#3 -if( typeof Boolean(x=false) !== "boolean" ) { - $ERROR('#3.1: typeof Boolean(x=false) should be "boolean", actual is "'+typeof Boolean(x=false)+'"'); +if (typeof Boolean(x = false) !== "boolean") { + $ERROR('#3.1: typeof Boolean(x=false) should be "boolean", actual is "' + typeof Boolean(x = false) + '"'); } -if( Boolean(x=false) !== false ) { +if (Boolean(x = false) !== false) { $ERROR('#3.2: Boolean(x=false) should be false'); } //CHECK#4 -if( typeof Boolean(x=true) !== "boolean" ) { - $ERROR('#4.1: typeof Boolean(x=true) should be "boolean", actual is "'+typeof Boolean(x=true)+'"'); +if (typeof Boolean(x = true) !== "boolean") { + $ERROR('#4.1: typeof Boolean(x=true) should be "boolean", actual is "' + typeof Boolean(x = true) + '"'); } -if( Boolean(x=true) !== true ) { +if (Boolean(x = true) !== true) { $ERROR('#4.2: Boolean(x=true) should be true'); } //CHECK#5 -if( typeof Boolean(x=null) !== "boolean" ) { - $ERROR('#5.1: typeof Boolean(x=null) should be "boolean", actual is "'+typeof Boolean(x=null)+'"'); +if (typeof Boolean(x = null) !== "boolean") { + $ERROR('#5.1: typeof Boolean(x=null) should be "boolean", actual is "' + typeof Boolean(x = null) + '"'); } -if( Boolean(x=null) !== false ) { +if (Boolean(x = null) !== false) { $ERROR('#5.2: Boolean(x=null) should be false'); } diff --git a/test/built-ins/Boolean/S15.6.1.1_A2.js b/test/built-ins/Boolean/S15.6.1.1_A2.js index 9e5aa40618e577cce13e17324d61a1110f806158..6d91cb6d75096da834df6bcc1779aa9646e0b6ae 100644 --- a/test/built-ins/Boolean/S15.6.1.1_A2.js +++ b/test/built-ins/Boolean/S15.6.1.1_A2.js @@ -9,11 +9,11 @@ description: Call Boolean() and check result ---*/ //CHECK#1 -if( typeof Boolean() !== "boolean" ) { - $ERROR('#1: typeof Boolean() should be "boolean", actual is "'+typeof Boolean()+'"'); +if (typeof Boolean() !== "boolean") { + $ERROR('#1: typeof Boolean() should be "boolean", actual is "' + typeof Boolean() + '"'); } //CHECK#2 -if( Boolean() !== false ) { +if (Boolean() !== false) { $ERROR('#2: Boolean() should be false'); } diff --git a/test/built-ins/Boolean/S15.6.2.1_A1.js b/test/built-ins/Boolean/S15.6.2.1_A1.js index 787b6a1c7dd946bc87db720a08008e9760098538..fc5d516d5a0303905d149894ec79951966502ad2 100644 --- a/test/built-ins/Boolean/S15.6.2.1_A1.js +++ b/test/built-ins/Boolean/S15.6.2.1_A1.js @@ -22,13 +22,13 @@ if (new Boolean() === undefined) { //CHECK#3 var x3 = new Boolean(); -if(typeof x3 !== "object"){ +if (typeof x3 !== "object") { $ERROR("#3: typeof new Boolean() !== 'object'"); } //CHECK#4 var x4 = new Boolean(); -if(x4 === undefined){ +if (x4 === undefined) { $ERROR("#4: new Boolean() should not be undefined"); } @@ -44,12 +44,12 @@ if (new Boolean(1) === undefined) { //CHECK#7 var x7 = new Boolean(1); -if(typeof x7 !== "object"){ +if (typeof x7 !== "object") { $ERROR("#7: typeof new Boolean(1) !== 'object'"); } //CHECK#8 var x8 = new Boolean(1); -if(x8 === undefined){ +if (x8 === undefined) { $ERROR("#8: new Boolean(1) should not be undefined"); } diff --git a/test/built-ins/Boolean/S15.6.3_A1.js b/test/built-ins/Boolean/S15.6.3_A1.js index 25168c58d93578e2f33a243aface1581f5f947b6..6d56be832df54a633d7ea2d7c742d76efc96a8fd 100644 --- a/test/built-ins/Boolean/S15.6.3_A1.js +++ b/test/built-ins/Boolean/S15.6.3_A1.js @@ -8,6 +8,6 @@ es5id: 15.6.3_A1 description: Checking existence of the property "prototype" ---*/ -if(!Boolean.hasOwnProperty("prototype")){ +if (!Boolean.hasOwnProperty("prototype")) { $ERROR('#1: The Boolean constructor has the property "prototype"'); } diff --git a/test/built-ins/Boolean/S15.6.3_A3.js b/test/built-ins/Boolean/S15.6.3_A3.js index 097fff4fbb0069b9f5e9c14a4e2a61cdc487ea5c..5937d38e5ccd9e4aecc9229213e9ca6a756bd044 100644 --- a/test/built-ins/Boolean/S15.6.3_A3.js +++ b/test/built-ins/Boolean/S15.6.3_A3.js @@ -9,7 +9,7 @@ description: Checking Boolean.length property ---*/ //CHECK#1 -if (!Boolean.hasOwnProperty("length")){ +if (!Boolean.hasOwnProperty("length")) { $ERROR('#1: Boolean constructor has length property'); } diff --git a/test/built-ins/Boolean/prototype/S15.6.3.1_A4.js b/test/built-ins/Boolean/prototype/S15.6.3.1_A4.js index 980936ebe91653fef9647cba6574d441360f25fb..7dc740ee173ec0eaaea34889f4eddd0a4ca4e2e7 100644 --- a/test/built-ins/Boolean/prototype/S15.6.3.1_A4.js +++ b/test/built-ins/Boolean/prototype/S15.6.3.1_A4.js @@ -9,8 +9,8 @@ description: Checking if enumerating the Boolean.prototype property fails ---*/ //CHECK#1 -for(x in Boolean) { - if(x === "prototype") { +for (x in Boolean) { + if (x === "prototype") { $ERROR('#1: Boolean.prototype has the attribute DontEnum'); } } diff --git a/test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js b/test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js index 080daa3eb8d7bc31ef810da0665d920202dbda0f..218632c66000724e5af0b1658adcc13adf34ff46 100644 --- a/test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js +++ b/test/built-ins/Boolean/prototype/constructor/S15.6.4.1_A1.js @@ -11,6 +11,6 @@ description: Compare Boolean.prototype.constructor with Boolean ---*/ //CHECK#1 -if(Boolean.prototype.constructor !== Boolean){ +if (Boolean.prototype.constructor !== Boolean) { $ERROR('#1: Boolean.prototype.constructor === Boolean'); } diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js index fa1b305389968dacd086b647468ba1ce2d7b83d0..cf32db61abd7cda1d41f3192054cc9c9af05a5cf 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T1.js @@ -12,36 +12,36 @@ description: no arguments ---*/ //CHECK#1 -if(Boolean.prototype.toString() !== "false"){ +if (Boolean.prototype.toString() !== "false") { $ERROR('#1: Boolean.prototype.toString() === "false"'); } //CHECK#2 -if((new Boolean()).toString() !== "false"){ +if ((new Boolean()).toString() !== "false") { $ERROR('#2: (new Boolean()).toString() === "false"'); } //CHECK#3 -if((new Boolean(false)).toString() !== "false"){ +if ((new Boolean(false)).toString() !== "false") { $ERROR('#3: (new Boolean(false)).toString() === "false"'); } //CHECK#4 -if((new Boolean(true)).toString() !== "true"){ +if ((new Boolean(true)).toString() !== "true") { $ERROR('#4: (new Boolean(true)).toString() === "true"'); } //CHECK#5 -if((new Boolean(1)).toString() !== "true"){ +if ((new Boolean(1)).toString() !== "true") { $ERROR('#5: (new Boolean(1)).toString() === "true"'); } //CHECK#6 -if((new Boolean(0)).toString() !== "false"){ +if ((new Boolean(0)).toString() !== "false") { $ERROR('#6: (new Boolean(0)).toString() === "false"'); } //CHECK#7 -if((new Boolean(new Object())).toString() !== "true"){ +if ((new Boolean(new Object())).toString() !== "true") { $ERROR('#7: (new Boolean(new Object())).toString() === "true"'); } diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js index d949b83b624525f318125380faeee177615e12c5..399a3676c8c8e9bc4d9b633294515943e074e4aa 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A1_T2.js @@ -12,36 +12,36 @@ description: with some argument ---*/ //CHECK#1 -if(Boolean.prototype.toString(true) !== "false"){ +if (Boolean.prototype.toString(true) !== "false") { $ERROR('#1: Boolean.prototype.toString(true) === "false"'); } //CHECK#2 -if((new Boolean()).toString(true) !== "false"){ +if ((new Boolean()).toString(true) !== "false") { $ERROR('#2: (new Boolean()).toString(true) === "false"'); } //CHECK#3 -if((new Boolean(false)).toString(true) !== "false"){ +if ((new Boolean(false)).toString(true) !== "false") { $ERROR('#3: (new Boolean(false)).toString(true) === "false"'); } //CHECK#4 -if((new Boolean(true)).toString(false) !== "true"){ +if ((new Boolean(true)).toString(false) !== "true") { $ERROR('#4: (new Boolean(true)).toString(false) === "true"'); } //CHECK#5 -if((new Boolean(1)).toString(false) !== "true"){ +if ((new Boolean(1)).toString(false) !== "true") { $ERROR('#5: (new Boolean(1)).toString(false) === "true"'); } //CHECK#6 -if((new Boolean(0)).toString(true) !== "false"){ +if ((new Boolean(0)).toString(true) !== "false") { $ERROR('#6: (new Boolean(0)).toString(true) === "false"'); } //CHECK#7 -if((new Boolean(new Object())).toString(false) !== "true"){ +if ((new Boolean(new Object())).toString(false) !== "true") { $ERROR('#7: (new Boolean(new Object())).toString(false) === "true"'); } diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js index 7331619e9f444db28294a1731d0976d6010bf05f..df5ad2fe8071c63a3b2dc57e844639b56613d4c4 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T1.js @@ -12,27 +12,27 @@ description: transferring to the String objects ---*/ //CHECK#1 -try{ +try { var s1 = new String(); s1.toString = Boolean.prototype.toString; var v1 = s1.toString(); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new String(); s2.myToString = Boolean.prototype.toString; var v2 = s2.myToString(); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js index ae3cded491c174368d282ecf069b9d25763253cb..8ada5d746276b5d7cbf230a26435289ab8d4e6c1 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T2.js @@ -12,27 +12,27 @@ description: transferring to the Number objects ---*/ //CHECK#1 -try{ +try { var s1 = new Number(); s1.toString = Boolean.prototype.toString; var v1 = s1.toString(); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ +try { var s2 = new Number(); s2.myToString = Boolean.prototype.toString; var v2 = s2.myToString(); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js index c13b361d1b018286c5b179faaf06462095437a78..f3df79be205f1caa001b4d28a2dcd524b1de10a0 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T3.js @@ -12,27 +12,27 @@ description: transferring to the Date objects ---*/ //CHECK#1 -try{ +try { var s1 = new Date(); s1.toString = Boolean.prototype.toString; var v1 = s1.toString(); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ +try { var s2 = new Date(); s2.myToString = Boolean.prototype.toString; var v2 = s2.myToString(); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js index 382dc7cd28417a96272d0eb54c1d216027e72423..277cf2646b18377e3dc0308037599f9eca5d53da 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js @@ -12,27 +12,27 @@ description: transferring to the Object objects ---*/ //CHECK#1 -try{ +try { var s1 = new Object(); s1.toString = Boolean.prototype.toString; var v1 = s1.toString(); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ +try { var s2 = new Object(); s2.myToString = Boolean.prototype.toString; var v2 = s2.myToString(); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js index a6dca911df2992532eca48e5c948c1b50574c19a..99776dd85f4070ff14ecb0959650dab2192c786a 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js @@ -12,27 +12,31 @@ description: transferring to the other objects ---*/ //CHECK#1 -try{ - var s1 = {x: 1}; +try { + var s1 = { + x: 1 + }; s1.toString = Boolean.prototype.toString; var v1 = s1.toString(); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ - var s2 = {x: 1}; +try { + var s2 = { + x: 1 + }; s2.myToString = Boolean.prototype.toString; var v2 = s2.myToString(); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js index 257721b86679641ffb7ecf0bbcd3fbe0b00baa7a..743e1966c0ec9042ddc65608c25c295684b70317 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js @@ -9,31 +9,31 @@ description: no arguments ---*/ //CHECK#1 -if(Boolean.prototype.valueOf() !== false){ +if (Boolean.prototype.valueOf() !== false) { $ERROR('#1: Boolean.prototype.valueOf() === false'); } //CHECK#2 -if((new Boolean()).valueOf() !== false){ +if ((new Boolean()).valueOf() !== false) { $ERROR('#2: (new Boolean()).valueOf() === false'); } //CHECK#3 -if((new Boolean(0)).valueOf() !== false){ +if ((new Boolean(0)).valueOf() !== false) { $ERROR('#3: (new Boolean(0)).valueOf() === false'); } //CHECK#4 -if((new Boolean(-1)).valueOf() !== true){ +if ((new Boolean(-1)).valueOf() !== true) { $ERROR('#4: (new Boolean(-1)).valueOf() === true'); } //CHECK#5 -if((new Boolean(1)).valueOf() !== true){ +if ((new Boolean(1)).valueOf() !== true) { $ERROR('#5: (new Boolean(1)).valueOf() === true'); } //CHECK#6 -if((new Boolean(new Object())).valueOf() !== true){ +if ((new Boolean(new Object())).valueOf() !== true) { $ERROR('#6: (new Boolean(new Object())).valueOf() === true'); } diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js index 2cdc5fe692626d0ba643a53a7f3f65375758f47a..095d0daaaabfe920c08e94160cab69b794e27941 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T2.js @@ -9,31 +9,31 @@ description: calling with argument ---*/ //CHECK#1 -if(Boolean.prototype.valueOf(true) !== false){ +if (Boolean.prototype.valueOf(true) !== false) { $ERROR('#1: Boolean.prototype.valueOf(true) === false'); } //CHECK#2 -if((new Boolean()).valueOf(true) !== false){ +if ((new Boolean()).valueOf(true) !== false) { $ERROR('#2: (new Boolean()).valueOf(true) === false'); } //CHECK#3 -if((new Boolean(0)).valueOf(true) !== false){ +if ((new Boolean(0)).valueOf(true) !== false) { $ERROR('#3: (new Boolean(0)).valueOf(true) === false'); } //CHECK#4 -if((new Boolean(-1)).valueOf(false) !== true){ +if ((new Boolean(-1)).valueOf(false) !== true) { $ERROR('#4: (new Boolean(-1)).valueOf(false) === true'); } //CHECK#5 -if((new Boolean(1)).valueOf(false) !== true){ +if ((new Boolean(1)).valueOf(false) !== true) { $ERROR('#5: (new Boolean(1)).valueOf(false) === true'); } //CHECK#6 -if((new Boolean(new Object())).valueOf(false) !== true){ +if ((new Boolean(new Object())).valueOf(false) !== true) { $ERROR('#6: (new Boolean(new Object())).valueOf(false) === true'); } diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js index f878faef28255c18f54975861a4fe4e72b6d3dba..0651f8cb3554db36ff7e607dd11608a92e0cc451 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T1.js @@ -12,27 +12,27 @@ description: transferring to the String objects ---*/ //CHECK#1 -try{ +try { var s1 = new String(); s1.valueOf = Boolean.prototype.valueOf; var v1 = s1.valueOf(); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ +try { var s2 = new String(); s2.myValueOf = Boolean.prototype.valueOf; var v2 = s2.myValueOf(); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js index 3596de93bbe05dfe83ac4af11c4a16cd0833e057..6e2af85b2ea1551e1017a84bfa8828663efd54ce 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T2.js @@ -12,27 +12,27 @@ description: transferring to the Number objects ---*/ //CHECK#1 -try{ +try { var s1 = new Number(); s1.valueOf = Boolean.prototype.valueOf; var v1 = s1.valueOf(); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ +try { var s2 = new Number(); s2.myValueOf = Boolean.prototype.valueOf; var v2 = s2.myValueOf(); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js index 560843e415404330b7f7c9dbabd16719258ef067..f66950631b6da202755e12916d74c5cbe4ad88e3 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T3.js @@ -12,27 +12,27 @@ description: transferring to the Date objects ---*/ //CHECK#1 -try{ +try { var s1 = new Date(); s1.valueOf = Boolean.prototype.valueOf; var v1 = s1.valueOf(); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ +try { var s2 = new Date(); s2.myValueOf = Boolean.prototype.valueOf; var v2 = s2.myValueOf(); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js index 93f19a68ae2e5267d74479a01a2b487cc08a60c0..816ef97d7197f439a3b64ea35e72a6881a491d39 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T4.js @@ -12,27 +12,27 @@ description: transferring to the Object objects ---*/ //CHECK#1 -try{ +try { var s1 = new Object(); s1.valueOf = Boolean.prototype.valueOf; var v1 = s1.valueOf(); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ +try { var s2 = new Object(); s2.myValueOf = Boolean.prototype.valueOf; var v2 = s2.myValueOf(); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js index 138ed48c22093323c82c309c1b1119af2887ca1d..3f645a0bf0164a80e34783bcdf321a5ce4bf484d 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js @@ -12,27 +12,31 @@ description: transferring to the other objects ---*/ //CHECK#1 -try{ - var s1 = {x: 1}; +try { + var s1 = { + x: 1 + }; s1.valueOf = Boolean.prototype.valueOf; var v1 = s1.valueOf(); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ - var s2 = {x: 1}; +try { + var s2 = { + x: 1 + }; s2.myValueOf = Boolean.prototype.valueOf; var v2 = s2.myValueOf(); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js index 163513c7704ed3e123881baa9e7b5a3a0fa2c214..2e493d64efd3223b731db5adc0a14f9ad5d430eb 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js @@ -30,7 +30,7 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); assert.throws(RangeError, () => sample.getBigInt64(Infinity), - "DataView access at index Infinity should throw"); + "DataView access at index Infinity should throw"); assert.throws(RangeError, () => sample.getBigInt64(-1), - "DataView access at index -1 should throw"); + "DataView access at index -1 should throw"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js index e2aae643596371193b4da0608fb27140dac6ecc4..b25d05470b2f5cd41a70a42f0b90447fc09dc0c8 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js @@ -32,4 +32,4 @@ sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); assert.throws(TypeError, () => sample.getBigInt64(13), - "detached DataView access should throw"); + "detached DataView access should throw"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js index ed1b5a8c643e23e651ca3165fbeb6db69195ab12..53fd563ae3888703e6930a77b598963a21ba57c2 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js +++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js @@ -27,4 +27,4 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); assert.throws(TypeError, () => sample.getBigInt64(0), - "detached DataView access should throw"); + "detached DataView access should throw"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js b/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js index 57e75e8e95121bb8b46c7648bb03756b7947f57b..5172653142fbdba0478d08b3aaf339bc36f639a6 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js +++ b/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js @@ -30,7 +30,7 @@ var buffer = new ArrayBuffer(12); sample = new DataView(buffer, 0); assert.throws(RangeError, () => sample.getBigInt64(Infinity), - "DataView access at index Infinity should throw"); + "DataView access at index Infinity should throw"); assert.throws(RangeError, () => sample.getBigInt64(13), "13 + 8 > 12"); @@ -52,24 +52,24 @@ assert.throws(RangeError, () => sample.getBigInt64(5), "5 + 8 > 12"); sample = new DataView(buffer, 8); assert.throws(RangeError, () => sample.getBigInt64(1), - "1 + 8 > 4 (offset)"); + "1 + 8 > 4 (offset)"); sample = new DataView(buffer, 9); assert.throws(RangeError, () => sample.getBigInt64(0), - "0 + 8 > 3 (offset)"); + "0 + 8 > 3 (offset)"); sample = new DataView(buffer, 0, 8); assert.throws(RangeError, () => sample.getBigInt64(1), - "1 + 8 > 8 (length)"); + "1 + 8 > 8 (length)"); sample = new DataView(buffer, 0, 7); assert.throws(RangeError, () => sample.getBigInt64(0), - "0 + 8 > 7 (length)"); + "0 + 8 > 7 (length)"); sample = new DataView(buffer, 4, 8); assert.throws(RangeError, () => sample.getBigInt64(1), - "1 + 8 > 8 (offset+length)"); + "1 + 8 > 8 (offset+length)"); sample = new DataView(buffer, 4, 7); assert.throws(RangeError, () => sample.getBigInt64(0), - "0 + 8 > 7 (offset+length)"); + "0 + 8 > 7 (offset+length)"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js index eb466a69d18661a0374042fc0f38ce0b9eb0b8f5..2b17f822b3873d626dad1fc2e47db1a24b5231b5 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js +++ b/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js @@ -24,7 +24,7 @@ var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); assert.throws(RangeError, () => sample.getBigInt64(-1), - "DataView access at index -1 should throw"); + "DataView access at index -1 should throw"); assert.throws(RangeError, () => sample.getBigInt64(-Infinity), - "DataView access at index -Infinity should throw"); + "DataView access at index -Infinity should throw"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js index 51a723d82ed9fd93378b605d87106f7b951fdbf7..6e71746c8db0e586ce098bc860c4d2780356bbee 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js @@ -23,8 +23,16 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function] var buffer = new ArrayBuffer(1); var sample = new DataView(buffer, 0); -var bo1 = { valueOf() { throw new Test262Error(); } }; -var bo2 = { toString() { throw new Test262Error(); } }; +var bo1 = { + valueOf() { + throw new Test262Error(); + } +}; +var bo2 = { + toString() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, () => sample.getBigInt64(bo1), "valueOf"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js b/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js index ceb13110417173da595835fc818e6dbda38f5476..14e27dad61cbc829e4ef12f37b9bfb4bb96ad333 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js +++ b/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js @@ -36,13 +36,13 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); -assert.sameValue(sample.getBigInt64(0, true), 0n, "sample.getBigInt64(0, true)"); -assert.sameValue(sample.getBigInt64(1, true), 0n, "sample.getBigInt64(1, true)"); -assert.sameValue(sample.getBigInt64(2, true), 0n, "sample.getBigInt64(2, true)"); -assert.sameValue(sample.getBigInt64(3, true), 0n, "sample.getBigInt64(3, true)"); -assert.sameValue(sample.getBigInt64(4, true), 0n, "sample.getBigInt64(4, true)"); -assert.sameValue(sample.getBigInt64(0, false), 0n, "sample.getBigInt64(0, false)"); -assert.sameValue(sample.getBigInt64(1, false), 0n, "sample.getBigInt64(1, false)"); -assert.sameValue(sample.getBigInt64(2, false), 0n, "sample.getBigInt64(2, false)"); -assert.sameValue(sample.getBigInt64(3, false), 0n, "sample.getBigInt64(3, false)"); -assert.sameValue(sample.getBigInt64(4, false), 0n, "sample.getBigInt64(4, false)"); +assert.sameValue(sample.getBigInt64(0, true), 0 n, "sample.getBigInt64(0, true)"); +assert.sameValue(sample.getBigInt64(1, true), 0 n, "sample.getBigInt64(1, true)"); +assert.sameValue(sample.getBigInt64(2, true), 0 n, "sample.getBigInt64(2, true)"); +assert.sameValue(sample.getBigInt64(3, true), 0 n, "sample.getBigInt64(3, true)"); +assert.sameValue(sample.getBigInt64(4, true), 0 n, "sample.getBigInt64(4, true)"); +assert.sameValue(sample.getBigInt64(0, false), 0 n, "sample.getBigInt64(0, false)"); +assert.sameValue(sample.getBigInt64(1, false), 0 n, "sample.getBigInt64(1, false)"); +assert.sameValue(sample.getBigInt64(2, false), 0 n, "sample.getBigInt64(2, false)"); +assert.sameValue(sample.getBigInt64(3, false), 0 n, "sample.getBigInt64(3, false)"); +assert.sameValue(sample.getBigInt64(4, false), 0 n, "sample.getBigInt64(4, false)"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js b/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js index daa5790ae903a15603ebbafe9623de0de4301c5f..d6fcf8f7109bffa2cb9d03963bd823cf75f3fff6 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js @@ -55,14 +55,14 @@ sample.setUint8(15, 0x80); sample = new DataView(buffer, 4); -assert.sameValue(sample.getBigInt64(0, false), -0x7fff7ffe80fffefen, "0, false"); -assert.sameValue(sample.getBigInt64(1, false), 0x80017f00010280n, "1, false"); -assert.sameValue(sample.getBigInt64(2, false), -0x7ffe80fffefd7f81n, "2, false"); -assert.sameValue(sample.getBigInt64(3, false), 0x17f000102807fffn, "3, false"); -assert.sameValue(sample.getBigInt64(4, false), 0x7f000102807fff80n, "4, false"); +assert.sameValue(sample.getBigInt64(0, false), -0x7fff7ffe80fffefe n, "0, false"); +assert.sameValue(sample.getBigInt64(1, false), 0x80017f00010280 n, "1, false"); +assert.sameValue(sample.getBigInt64(2, false), -0x7ffe80fffefd7f81 n, "2, false"); +assert.sameValue(sample.getBigInt64(3, false), 0x17f000102807fff n, "3, false"); +assert.sameValue(sample.getBigInt64(4, false), 0x7f000102807fff80 n, "4, false"); -assert.sameValue(sample.getBigInt64(0, true), 0x201007f01800080n, "0, true"); -assert.sameValue(sample.getBigInt64(1, true), -0x7ffdfeff80fe8000n, "1, true"); -assert.sameValue(sample.getBigInt64(2, true), 0x7f800201007f0180n, "2, true"); -assert.sameValue(sample.getBigInt64(3, true), -0x807ffdfeff80ffn, "3, true"); -assert.sameValue(sample.getBigInt64(4, true), -0x7f00807ffdfeff81n, "4, true"); +assert.sameValue(sample.getBigInt64(0, true), 0x201007f01800080 n, "0, true"); +assert.sameValue(sample.getBigInt64(1, true), -0x7ffdfeff80fe8000 n, "1, true"); +assert.sameValue(sample.getBigInt64(2, true), 0x7f800201007f0180 n, "2, true"); +assert.sameValue(sample.getBigInt64(3, true), -0x807ffdfeff80ff n, "3, true"); +assert.sameValue(sample.getBigInt64(4, true), -0x7f00807ffdfeff81 n, "4, true"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-values.js b/test/built-ins/DataView/prototype/getBigInt64/return-values.js index a9b6fdd836c741b2b77b65b2caca8e018a1b17f3..66a7ee0082ade62e19177032aa0f58524e0e5b53 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/return-values.js +++ b/test/built-ins/DataView/prototype/getBigInt64/return-values.js @@ -48,22 +48,22 @@ sample.setUint8(13, 0x7f); sample.setUint8(14, 0xff); sample.setUint8(15, 0x80); -assert.sameValue(sample.getBigInt64(0, false), 0x2702060280008001n, "0, false"); -assert.sameValue(sample.getBigInt64(1, false), 0x20602800080017fn, "1, false"); -assert.sameValue(sample.getBigInt64(2, false), 0x602800080017f00n, "2, false"); -assert.sameValue(sample.getBigInt64(3, false), 0x2800080017f0001n, "3, false"); -assert.sameValue(sample.getBigInt64(4, false), -0x7fff7ffe80fffefen, "4, false"); -assert.sameValue(sample.getBigInt64(5, false), 0x80017f00010280n, "5, false"); -assert.sameValue(sample.getBigInt64(6, false), -0x7ffe80fffefd7f81n, "6, false"); -assert.sameValue(sample.getBigInt64(7, false), 0x17f000102807fffn, "7, false"); -assert.sameValue(sample.getBigInt64(8, false), 0x7f000102807fff80n, "8, false"); +assert.sameValue(sample.getBigInt64(0, false), 0x2702060280008001 n, "0, false"); +assert.sameValue(sample.getBigInt64(1, false), 0x20602800080017f n, "1, false"); +assert.sameValue(sample.getBigInt64(2, false), 0x602800080017f00 n, "2, false"); +assert.sameValue(sample.getBigInt64(3, false), 0x2800080017f0001 n, "3, false"); +assert.sameValue(sample.getBigInt64(4, false), -0x7fff7ffe80fffefe n, "4, false"); +assert.sameValue(sample.getBigInt64(5, false), 0x80017f00010280 n, "5, false"); +assert.sameValue(sample.getBigInt64(6, false), -0x7ffe80fffefd7f81 n, "6, false"); +assert.sameValue(sample.getBigInt64(7, false), 0x17f000102807fff n, "7, false"); +assert.sameValue(sample.getBigInt64(8, false), 0x7f000102807fff80 n, "8, false"); -assert.sameValue(sample.getBigInt64(0, true), 0x180008002060227n, "0, true"); -assert.sameValue(sample.getBigInt64(1, true), 0x7f01800080020602n, "1, true"); -assert.sameValue(sample.getBigInt64(2, true), 0x7f018000800206n, "2, true"); -assert.sameValue(sample.getBigInt64(3, true), 0x1007f0180008002n, "3, true"); -assert.sameValue(sample.getBigInt64(4, true), 0x201007f01800080n, "4, true"); -assert.sameValue(sample.getBigInt64(5, true), -0x7ffdfeff80fe8000n, "5, true"); -assert.sameValue(sample.getBigInt64(6, true), 0x7f800201007f0180n, "6, true"); -assert.sameValue(sample.getBigInt64(7, true), -0x807ffdfeff80ffn, "7, true"); -assert.sameValue(sample.getBigInt64(8, true), -0x7f00807ffdfeff81n, "8, true"); +assert.sameValue(sample.getBigInt64(0, true), 0x180008002060227 n, "0, true"); +assert.sameValue(sample.getBigInt64(1, true), 0x7f01800080020602 n, "1, true"); +assert.sameValue(sample.getBigInt64(2, true), 0x7f018000800206 n, "2, true"); +assert.sameValue(sample.getBigInt64(3, true), 0x1007f0180008002 n, "3, true"); +assert.sameValue(sample.getBigInt64(4, true), 0x201007f01800080 n, "4, true"); +assert.sameValue(sample.getBigInt64(5, true), -0x7ffdfeff80fe8000 n, "5, true"); +assert.sameValue(sample.getBigInt64(6, true), 0x7f800201007f0180 n, "6, true"); +assert.sameValue(sample.getBigInt64(7, true), -0x807ffdfeff80ff n, "7, true"); +assert.sameValue(sample.getBigInt64(8, true), -0x7f00807ffdfeff81 n, "8, true"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js b/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js index 1dad1108dd90453901f77ad1f9591b28e49d71cd..cf8682a050a11a94585b019347d9af0e6615d6cf 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js +++ b/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js @@ -21,7 +21,7 @@ features: [DataView, ArrayBuffer, Symbol, BigInt, arrow-function] var getBigInt64 = DataView.prototype.getBigInt64; assert.throws(TypeError, () => getBigInt64.call(undefined), - "undefined"); + "undefined"); assert.throws(TypeError, () => getBigInt64.call(null), "null"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js b/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js index 9ab87b5e159641745f4299aed829879863cafb6a..d0be65d63d2268c5771a1c2d35ab584f87bc286d 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js +++ b/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js @@ -36,32 +36,32 @@ features: [ArrayBuffer, BigInt, DataView, DataView.prototype.setUint8, Symbol] var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); sample.setUint8(7, 0xff); -assert.sameValue(sample.getBigInt64(0), 0xffn, "no argument"); +assert.sameValue(sample.getBigInt64(0), 0xff n, "no argument"); -assert.sameValue(sample.getBigInt64(0, false), 0xffn); -assert.sameValue(sample.getBigInt64(0, true), -0x100000000000000n); -assert.sameValue(sample.getBigInt64(0, 0), 0xffn, "ToBoolean: 0 => false"); -assert.sameValue(sample.getBigInt64(0, -0), 0xffn, "ToBoolean: -0 => false"); -assert.sameValue(sample.getBigInt64(0, 1), -0x100000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigInt64(0, -1), -0x100000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigInt64(0, 0.1), -0x100000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigInt64(0, Infinity), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, false), 0xff n); +assert.sameValue(sample.getBigInt64(0, true), -0x100000000000000 n); +assert.sameValue(sample.getBigInt64(0, 0), 0xff n, "ToBoolean: 0 => false"); +assert.sameValue(sample.getBigInt64(0, -0), 0xff n, "ToBoolean: -0 => false"); +assert.sameValue(sample.getBigInt64(0, 1), -0x100000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigInt64(0, -1), -0x100000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigInt64(0, 0.1), -0x100000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigInt64(0, Infinity), -0x100000000000000 n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigInt64(0, NaN), 0xffn, "ToBoolean: NaN => false"); -assert.sameValue(sample.getBigInt64(0, undefined), 0xffn, "ToBoolean: undefined => false"); -assert.sameValue(sample.getBigInt64(0, null), 0xffn, "ToBoolean: null => false"); -assert.sameValue(sample.getBigInt64(0, ""), 0xffn, "ToBoolean: String .length == 0 => false"); -assert.sameValue(sample.getBigInt64(0, "string"), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, NaN), 0xff n, "ToBoolean: NaN => false"); +assert.sameValue(sample.getBigInt64(0, undefined), 0xff n, "ToBoolean: undefined => false"); +assert.sameValue(sample.getBigInt64(0, null), 0xff n, "ToBoolean: null => false"); +assert.sameValue(sample.getBigInt64(0, ""), 0xff n, "ToBoolean: String .length == 0 => false"); +assert.sameValue(sample.getBigInt64(0, "string"), -0x100000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigInt64(0, "false"), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, "false"), -0x100000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigInt64(0, " "), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, " "), -0x100000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigInt64(0, Symbol("1")), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, Symbol("1")), -0x100000000000000 n, "ToBoolean: Symbol => true"); -assert.sameValue(sample.getBigInt64(0, 0n), 0xffn, "ToBoolean: 0n => false"); -assert.sameValue(sample.getBigInt64(0, 1n), -0x100000000000000n, "ToBoolean: BigInt != 0n => true"); -assert.sameValue(sample.getBigInt64(0, []), -0x100000000000000n, "ToBoolean: any object => true"); -assert.sameValue(sample.getBigInt64(0, {}), -0x100000000000000n, "ToBoolean: any object => true"); -assert.sameValue(sample.getBigInt64(0, Object(false)), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, 0 n), 0xff n, "ToBoolean: 0n => false"); +assert.sameValue(sample.getBigInt64(0, 1 n), -0x100000000000000 n, "ToBoolean: BigInt != 0n => true"); +assert.sameValue(sample.getBigInt64(0, []), -0x100000000000000 n, "ToBoolean: any object => true"); +assert.sameValue(sample.getBigInt64(0, {}), -0x100000000000000 n, "ToBoolean: any object => true"); +assert.sameValue(sample.getBigInt64(0, Object(false)), -0x100000000000000 n, "ToBoolean: any object => true; no ToPrimitive"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js index c96648cec20a1f12f88fc7e0a3f756667d81b205..bfa9c9c99da47b0644ad9cecb3b7cce905cddea7 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js +++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js @@ -52,29 +52,29 @@ assert.throws(RangeError, function() { sample.getBigInt64(Infinity); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(TypeError, function() { - sample.getBigInt64(0n); + sample.getBigInt64(0 n); }, "ToIndex: BigInt => TypeError"); assert.throws(TypeError, function() { - sample.getBigInt64(Object(0n)); + sample.getBigInt64(Object(0 n)); }, "ToIndex: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigInt64({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } }); }, "ToIndex: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigInt64({ valueOf: function() { - return 0n; + return 0 n; } }); }, "ToIndex: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigInt64({ toString: function() { - return 0n; + return 0 n; } }); }, "ToIndex: toString => BigInt => TypeError"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js index f5476694a8a311d114cfafbb1dac8669890e602b..9d345ac24554d58ec5825d83ef65c6521980bf8a 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js +++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js @@ -45,48 +45,48 @@ assert.sameValue(sample.getBigInt64({ }, valueOf: err, toString: err -}), 0x20602800080017fn, "ToPrimitive: @@toPrimitive takes precedence"); +}), 0x20602800080017f n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return 1; }, toString: err -}), 0x20602800080017fn, "ToPrimitive: valueOf takes precedence over toString"); +}), 0x20602800080017f n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(sample.getBigInt64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: toString with no valueOf"); +}), 0x20602800080017f n, "ToPrimitive: toString with no valueOf"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: undefined, valueOf: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: null, valueOf: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(sample.getBigInt64({ valueOf: null, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigInt64({ valueOf: 1, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigInt64({ valueOf: {}, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return {}; @@ -94,7 +94,7 @@ assert.sameValue(sample.getBigInt64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return Object(12345); @@ -102,7 +102,7 @@ assert.sameValue(sample.getBigInt64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { sample.getBigInt64({ [Symbol.toPrimitive]: 1 diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js index cddda9ee48837b32fd865756f04e2266bb527228..b0baccc944d32011a7afa979b646bb7a7d127b70 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js +++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js @@ -33,101 +33,101 @@ sample.setUint8(9, 0x00); sample.setUint8(10, 0x01); sample.setUint8(11, 0x02); -assert.sameValue(sample.getBigInt64(Object(0)), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64(Object(0)), 0x2702060280008001 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: @@toPrimitive"); +}), 0x2702060280008001 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: valueOf"); +}), 0x2702060280008001 n, "ToPrimitive: valueOf"); assert.sameValue(sample.getBigInt64({ toString: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: toString"); -assert.sameValue(sample.getBigInt64(Object(NaN)), 0x2702060280008001n, +}), 0x2702060280008001 n, "ToPrimitive: toString"); +assert.sameValue(sample.getBigInt64(Object(NaN)), 0x2702060280008001 n, "ToIndex: unbox object with internal slot => NaN => 0"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => NaN => 0"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: valueOf => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => NaN => 0"); assert.sameValue(sample.getBigInt64({ toString: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: toString => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: toString => NaN => 0"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: valueOf => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => undefined => NaN => 0"); assert.sameValue(sample.getBigInt64({ toString: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: toString => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: toString => undefined => NaN => 0"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return null; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => null => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => null => 0"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return null; } -}), 0x2702060280008001n, "ToIndex: valueOf => null => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => null => 0"); assert.sameValue(sample.getBigInt64({ toString: function() { return null; } -}), 0x2702060280008001n, "ToIndex: toString => null => 0"); -assert.sameValue(sample.getBigInt64(Object(true)), 0x20602800080017fn, +}), 0x2702060280008001 n, "ToIndex: toString => null => 0"); +assert.sameValue(sample.getBigInt64(Object(true)), 0x20602800080017f n, "ToIndex: unbox object with internal slot => true => 1"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return true; } -}), 0x20602800080017fn, "ToIndex: @@toPrimitive => true => 1"); +}), 0x20602800080017f n, "ToIndex: @@toPrimitive => true => 1"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return true; } -}), 0x20602800080017fn, "ToIndex: valueOf => true => 1"); +}), 0x20602800080017f n, "ToIndex: valueOf => true => 1"); assert.sameValue(sample.getBigInt64({ toString: function() { return true; } -}), 0x20602800080017fn, "ToIndex: toString => true => 1"); -assert.sameValue(sample.getBigInt64(Object("1")), 0x20602800080017fn, +}), 0x20602800080017f n, "ToIndex: toString => true => 1"); +assert.sameValue(sample.getBigInt64(Object("1")), 0x20602800080017f n, "ToIndex: unbox object with internal slot => parse Number"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: @@toPrimitive => parse Number"); +}), 0x20602800080017f n, "ToIndex: @@toPrimitive => parse Number"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: valueOf => parse Number"); +}), 0x20602800080017f n, "ToIndex: valueOf => parse Number"); assert.sameValue(sample.getBigInt64({ toString: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: toString => parse Number"); +}), 0x20602800080017f n, "ToIndex: toString => parse Number"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js index 70a5cdba8a4672b2e781ad077038423b403ede31..d9367fd3cb245536a5ce201d82b7dbd9314bfb45 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js @@ -33,38 +33,38 @@ sample.setUint8(9, 0x00); sample.setUint8(10, 0x01); sample.setUint8(11, 0x02); -assert.sameValue(sample.getBigInt64(0), 0x2702060280008001n); -assert.sameValue(sample.getBigInt64(1), 0x20602800080017fn); -assert.sameValue(sample.getBigInt64(-0.9), 0x2702060280008001n, "ToIndex: truncate towards 0"); -assert.sameValue(sample.getBigInt64(0.9), 0x2702060280008001n, "ToIndex: truncate towards 0"); -assert.sameValue(sample.getBigInt64(NaN), 0x2702060280008001n, "ToIndex: NaN => 0"); -assert.sameValue(sample.getBigInt64(undefined), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64(0), 0x2702060280008001 n); +assert.sameValue(sample.getBigInt64(1), 0x20602800080017f n); +assert.sameValue(sample.getBigInt64(-0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0"); +assert.sameValue(sample.getBigInt64(0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0"); +assert.sameValue(sample.getBigInt64(NaN), 0x2702060280008001 n, "ToIndex: NaN => 0"); +assert.sameValue(sample.getBigInt64(undefined), 0x2702060280008001 n, "ToIndex: undefined => NaN => 0"); -assert.sameValue(sample.getBigInt64(null), 0x2702060280008001n, "ToIndex: null => 0"); -assert.sameValue(sample.getBigInt64(false), 0x2702060280008001n, "ToIndex: false => 0"); -assert.sameValue(sample.getBigInt64(true), 0x20602800080017fn, "ToIndex: true => 1"); -assert.sameValue(sample.getBigInt64("0"), 0x2702060280008001n, "ToIndex: parse Number"); -assert.sameValue(sample.getBigInt64("1"), 0x20602800080017fn, "ToIndex: parse Number"); -assert.sameValue(sample.getBigInt64(""), 0x2702060280008001n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigInt64("foo"), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64(null), 0x2702060280008001 n, "ToIndex: null => 0"); +assert.sameValue(sample.getBigInt64(false), 0x2702060280008001 n, "ToIndex: false => 0"); +assert.sameValue(sample.getBigInt64(true), 0x20602800080017f n, "ToIndex: true => 1"); +assert.sameValue(sample.getBigInt64("0"), 0x2702060280008001 n, "ToIndex: parse Number"); +assert.sameValue(sample.getBigInt64("1"), 0x20602800080017f n, "ToIndex: parse Number"); +assert.sameValue(sample.getBigInt64(""), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); +assert.sameValue(sample.getBigInt64("foo"), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigInt64("true"), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64("true"), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigInt64(2), 0x602800080017F00n); -assert.sameValue(sample.getBigInt64("2"), 0x602800080017F00n, "toIndex: parse Number"); -assert.sameValue(sample.getBigInt64(2.9), 0x602800080017F00n, "toIndex: truncate towards 0"); -assert.sameValue(sample.getBigInt64("2.9"), 0x602800080017F00n, +assert.sameValue(sample.getBigInt64(2), 0x602800080017F00 n); +assert.sameValue(sample.getBigInt64("2"), 0x602800080017F00 n, "toIndex: parse Number"); +assert.sameValue(sample.getBigInt64(2.9), 0x602800080017F00 n, "toIndex: truncate towards 0"); +assert.sameValue(sample.getBigInt64("2.9"), 0x602800080017F00 n, "toIndex: parse Number => truncate towards 0"); -assert.sameValue(sample.getBigInt64(3), 0x2800080017F0001n); -assert.sameValue(sample.getBigInt64("3"), 0x2800080017F0001n, "toIndex: parse Number"); -assert.sameValue(sample.getBigInt64(3.9), 0x2800080017F0001n, "toIndex: truncate towards 0"); -assert.sameValue(sample.getBigInt64("3.9"), 0x2800080017F0001n, +assert.sameValue(sample.getBigInt64(3), 0x2800080017F0001 n); +assert.sameValue(sample.getBigInt64("3"), 0x2800080017F0001 n, "toIndex: parse Number"); +assert.sameValue(sample.getBigInt64(3.9), 0x2800080017F0001 n, "toIndex: truncate towards 0"); +assert.sameValue(sample.getBigInt64("3.9"), 0x2800080017F0001 n, "toIndex: parse Number => truncate towards 0"); -assert.sameValue(sample.getBigInt64([0]), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64([0]), 0x2702060280008001 n, 'ToIndex: [0].toString() => "0" => 0'); -assert.sameValue(sample.getBigInt64(["1"]), 0x20602800080017fn, +assert.sameValue(sample.getBigInt64(["1"]), 0x20602800080017f n, 'ToIndex: ["1"].toString() => "1" => 1'); -assert.sameValue(sample.getBigInt64({}), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64({}), 0x2702060280008001 n, 'ToIndex: ({}).toString() => "[object Object]" => NaN => 0'); -assert.sameValue(sample.getBigInt64([]), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64([]), 0x2702060280008001 n, 'ToIndex: [].toString() => "" => NaN => 0'); diff --git a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js index a96d8c9c5c01286074a464e2dcfe5619c443e1a6..894b55068701572d86b969d8d884026ccabc3a20 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js @@ -15,7 +15,7 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); assert.throws(RangeError, () => sample.getBigUint64(Infinity), - "DataView access at index Infinity should throw"); + "DataView access at index Infinity should throw"); assert.throws(RangeError, () => sample.getBigUint64(-1), - "DataView access at index -1 should throw"); + "DataView access at index -1 should throw"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js index 9b0fb3d27263c57cf67c8875f2cfa848a6451df8..4155c6d698de0d09219cc067cbfc3e63cb6d8572 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-before-outofrange-byteoffset.js @@ -17,4 +17,4 @@ sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); assert.throws(TypeError, () => sample.getBigUint64(13), - "detached DataView access should throw"); + "detached DataView access should throw"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js index b3fdb8b29dca10f433a7f1652601f386d39d3110..de42ea29819addca71e3cd09a547a4835e66bdd6 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js +++ b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer.js @@ -14,4 +14,4 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); assert.throws(TypeError, () => sample.getBigUint64(0), - "detached DataView access should throw"); + "detached DataView access should throw"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js b/test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js index 88f38cb64a22332d6073507491e8f781cbf1b2a9..7f25d2e67755cdfeacf4289ee23ec8ff4715a3c5 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js +++ b/test/built-ins/DataView/prototype/getBigUint64/index-is-out-of-range.js @@ -14,7 +14,7 @@ var buffer = new ArrayBuffer(12); sample = new DataView(buffer, 0); assert.throws(RangeError, () => sample.getBigUint64(Infinity), - "DataView access at index Infinity should throw"); + "DataView access at index Infinity should throw"); assert.throws(RangeError, () => sample.getBigUint64(13), "13 + 8 > 12"); @@ -36,24 +36,24 @@ assert.throws(RangeError, () => sample.getBigUint64(5), "5 + 8 > 12"); sample = new DataView(buffer, 8); assert.throws(RangeError, () => sample.getBigUint64(1), - "1 + 8 > 4 (offset)"); + "1 + 8 > 4 (offset)"); sample = new DataView(buffer, 9); assert.throws(RangeError, () => sample.getBigUint64(0), - "0 + 8 > 3 (offset)"); + "0 + 8 > 3 (offset)"); sample = new DataView(buffer, 0, 8); assert.throws(RangeError, () => sample.getBigUint64(1), - "1 + 8 > 8 (length)"); + "1 + 8 > 8 (length)"); sample = new DataView(buffer, 0, 7); assert.throws(RangeError, () => sample.getBigUint64(0), - "0 + 8 > 7 (length)"); + "0 + 8 > 7 (length)"); sample = new DataView(buffer, 4, 8); assert.throws(RangeError, () => sample.getBigUint64(1), - "1 + 8 > 8 (offset+length)"); + "1 + 8 > 8 (offset+length)"); sample = new DataView(buffer, 4, 7); assert.throws(RangeError, () => sample.getBigUint64(0), - "0 + 8 > 7 (offset+length)"); + "0 + 8 > 7 (offset+length)"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js index 3216d86c888b021575a04dbe599915b4fa66f8aa..ea981f6878585855e09e22cf5ca2fc87b4dcd07f 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js +++ b/test/built-ins/DataView/prototype/getBigUint64/negative-byteoffset-throws.js @@ -12,7 +12,7 @@ var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); assert.throws(RangeError, () => sample.getBigUint64(-1), - "DataView access at index -1 should throw"); + "DataView access at index -1 should throw"); assert.throws(RangeError, () => sample.getBigUint64(-Infinity), - "DataView access at index -Infinity should throw"); + "DataView access at index -Infinity should throw"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js index 4f7bb959600d2e714be69642a3b8d3c3c78ce7bc..5482c5d1b65193313c9bad551b1430e5565c414d 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js @@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function] var buffer = new ArrayBuffer(1); var sample = new DataView(buffer, 0); -var bo1 = { valueOf() { throw new Test262Error(); } }; -var bo2 = { toString() { throw new Test262Error(); } }; +var bo1 = { + valueOf() { + throw new Test262Error(); + } +}; +var bo2 = { + toString() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, () => sample.getBigUint64(bo1), "valueOf"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js b/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js index 25ee7766d23fa0bd76094fb4ef90f6268d2212c6..37de5946ef38ea53cff2097f32b7ab757adf9b38 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js +++ b/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js @@ -11,13 +11,13 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); -assert.sameValue(sample.getBigUint64(0, true), 0n, "sample.getBigUint64(0, true)"); -assert.sameValue(sample.getBigUint64(1, true), 0n, "sample.getBigUint64(1, true)"); -assert.sameValue(sample.getBigUint64(2, true), 0n, "sample.getBigUint64(2, true)"); -assert.sameValue(sample.getBigUint64(3, true), 0n, "sample.getBigUint64(3, true)"); -assert.sameValue(sample.getBigUint64(4, true), 0n, "sample.getBigUint64(4, true)"); -assert.sameValue(sample.getBigUint64(0, false), 0n, "sample.getBigUint64(0, false)"); -assert.sameValue(sample.getBigUint64(1, false), 0n, "sample.getBigUint64(1, false)"); -assert.sameValue(sample.getBigUint64(2, false), 0n, "sample.getBigUint64(2, false)"); -assert.sameValue(sample.getBigUint64(3, false), 0n, "sample.getBigUint64(3, false)"); -assert.sameValue(sample.getBigUint64(4, false), 0n, "sample.getBigUint64(4, false)"); +assert.sameValue(sample.getBigUint64(0, true), 0 n, "sample.getBigUint64(0, true)"); +assert.sameValue(sample.getBigUint64(1, true), 0 n, "sample.getBigUint64(1, true)"); +assert.sameValue(sample.getBigUint64(2, true), 0 n, "sample.getBigUint64(2, true)"); +assert.sameValue(sample.getBigUint64(3, true), 0 n, "sample.getBigUint64(3, true)"); +assert.sameValue(sample.getBigUint64(4, true), 0 n, "sample.getBigUint64(4, true)"); +assert.sameValue(sample.getBigUint64(0, false), 0 n, "sample.getBigUint64(0, false)"); +assert.sameValue(sample.getBigUint64(1, false), 0 n, "sample.getBigUint64(1, false)"); +assert.sameValue(sample.getBigUint64(2, false), 0 n, "sample.getBigUint64(2, false)"); +assert.sameValue(sample.getBigUint64(3, false), 0 n, "sample.getBigUint64(3, false)"); +assert.sameValue(sample.getBigUint64(4, false), 0 n, "sample.getBigUint64(4, false)"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js b/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js index 074c8a2799601b8d49653404de49928b792d35b4..26cb5349f7d22c7ee18d18df1a7d407a7d738cf2 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js +++ b/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js @@ -30,14 +30,14 @@ sample.setUint8(15, 0x80); sample = new DataView(buffer, 4); -assert.sameValue(sample.getBigUint64(0, false), 0x800080017f000102n, "0, false"); -assert.sameValue(sample.getBigUint64(1, false), 0x80017f00010280n, "1, false"); -assert.sameValue(sample.getBigUint64(2, false), 0x80017f000102807fn, "2, false"); -assert.sameValue(sample.getBigUint64(3, false), 0x17f000102807fffn, "3, false"); -assert.sameValue(sample.getBigUint64(4, false), 0x7f000102807fff80n, "4, false"); +assert.sameValue(sample.getBigUint64(0, false), 0x800080017f000102 n, "0, false"); +assert.sameValue(sample.getBigUint64(1, false), 0x80017f00010280 n, "1, false"); +assert.sameValue(sample.getBigUint64(2, false), 0x80017f000102807f n, "2, false"); +assert.sameValue(sample.getBigUint64(3, false), 0x17f000102807fff n, "3, false"); +assert.sameValue(sample.getBigUint64(4, false), 0x7f000102807fff80 n, "4, false"); -assert.sameValue(sample.getBigUint64(0, true), 0x201007f01800080n, "0, true"); -assert.sameValue(sample.getBigUint64(1, true), 0x800201007f018000n, "1, true"); -assert.sameValue(sample.getBigUint64(2, true), 0x7f800201007f0180n, "2, true"); -assert.sameValue(sample.getBigUint64(3, true), 0xff7f800201007f01n, "3, true"); -assert.sameValue(sample.getBigUint64(4, true), 0x80ff7f800201007fn, "4, true"); +assert.sameValue(sample.getBigUint64(0, true), 0x201007f01800080 n, "0, true"); +assert.sameValue(sample.getBigUint64(1, true), 0x800201007f018000 n, "1, true"); +assert.sameValue(sample.getBigUint64(2, true), 0x7f800201007f0180 n, "2, true"); +assert.sameValue(sample.getBigUint64(3, true), 0xff7f800201007f01 n, "3, true"); +assert.sameValue(sample.getBigUint64(4, true), 0x80ff7f800201007f n, "4, true"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-values.js b/test/built-ins/DataView/prototype/getBigUint64/return-values.js index 7b6b4250b40a803d1d48be7d62b263b28a14d70a..4ed45b127d97a1764549fa0a67969e89aa9649c0 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/return-values.js +++ b/test/built-ins/DataView/prototype/getBigUint64/return-values.js @@ -28,22 +28,22 @@ sample.setUint8(13, 0x7f); sample.setUint8(14, 0xff); sample.setUint8(15, 0x80); -assert.sameValue(sample.getBigUint64(0, false), 0x2702060280008001n, "0, false"); -assert.sameValue(sample.getBigUint64(1, false), 0x20602800080017fn, "1, false"); -assert.sameValue(sample.getBigUint64(2, false), 0x602800080017f00n, "2, false"); -assert.sameValue(sample.getBigUint64(3, false), 0x2800080017f0001n, "3, false"); -assert.sameValue(sample.getBigUint64(4, false), 0x800080017f000102n, "4, false"); -assert.sameValue(sample.getBigUint64(5, false), 0x80017f00010280n, "5, false"); -assert.sameValue(sample.getBigUint64(6, false), 0x80017f000102807fn, "6, false"); -assert.sameValue(sample.getBigUint64(7, false), 0x17f000102807fffn, "7, false"); -assert.sameValue(sample.getBigUint64(8, false), 0x7f000102807fff80n, "8, false"); +assert.sameValue(sample.getBigUint64(0, false), 0x2702060280008001 n, "0, false"); +assert.sameValue(sample.getBigUint64(1, false), 0x20602800080017f n, "1, false"); +assert.sameValue(sample.getBigUint64(2, false), 0x602800080017f00 n, "2, false"); +assert.sameValue(sample.getBigUint64(3, false), 0x2800080017f0001 n, "3, false"); +assert.sameValue(sample.getBigUint64(4, false), 0x800080017f000102 n, "4, false"); +assert.sameValue(sample.getBigUint64(5, false), 0x80017f00010280 n, "5, false"); +assert.sameValue(sample.getBigUint64(6, false), 0x80017f000102807f n, "6, false"); +assert.sameValue(sample.getBigUint64(7, false), 0x17f000102807fff n, "7, false"); +assert.sameValue(sample.getBigUint64(8, false), 0x7f000102807fff80 n, "8, false"); -assert.sameValue(sample.getBigUint64(0, true), 0x180008002060227n, "0, true"); -assert.sameValue(sample.getBigUint64(1, true), 0x7f01800080020602n, "1, true"); -assert.sameValue(sample.getBigUint64(2, true), 0x7f018000800206n, "2, true"); -assert.sameValue(sample.getBigUint64(3, true), 0x1007f0180008002n, "3, true"); -assert.sameValue(sample.getBigUint64(4, true), 0x201007f01800080n, "4, true"); -assert.sameValue(sample.getBigUint64(5, true), 0x800201007F018000n, "5, true"); -assert.sameValue(sample.getBigUint64(6, true), 0x7f800201007f0180n, "6, true"); -assert.sameValue(sample.getBigUint64(7, true), 0xff7f800201007f01n, "7, true"); -assert.sameValue(sample.getBigUint64(8, true), 0x80ff7f800201007fn, "8, true"); +assert.sameValue(sample.getBigUint64(0, true), 0x180008002060227 n, "0, true"); +assert.sameValue(sample.getBigUint64(1, true), 0x7f01800080020602 n, "1, true"); +assert.sameValue(sample.getBigUint64(2, true), 0x7f018000800206 n, "2, true"); +assert.sameValue(sample.getBigUint64(3, true), 0x1007f0180008002 n, "3, true"); +assert.sameValue(sample.getBigUint64(4, true), 0x201007f01800080 n, "4, true"); +assert.sameValue(sample.getBigUint64(5, true), 0x800201007F018000 n, "5, true"); +assert.sameValue(sample.getBigUint64(6, true), 0x7f800201007f0180 n, "6, true"); +assert.sameValue(sample.getBigUint64(7, true), 0xff7f800201007f01 n, "7, true"); +assert.sameValue(sample.getBigUint64(8, true), 0x80ff7f800201007f n, "8, true"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js b/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js index a60b3cca3ecf13e6ac288d1c388c06f692cb0fe3..4c3d250c6904e5b38b7fbc5fe0bc2ff519491cbb 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js +++ b/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js @@ -10,7 +10,7 @@ features: [DataView, ArrayBuffer, Symbol, BigInt, arrow-function] var getBigUint64 = DataView.prototype.getBigUint64; assert.throws(TypeError, () => getBigUint64.call(undefined), - "undefined"); + "undefined"); assert.throws(TypeError, () => getBigUint64.call(null), "null"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js b/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js index 4885dfe416f86465e8a97f1dd2e2052f5f8c2d46..fd14414eb3c22a7b48b37017aeed3a237f8033ff 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js +++ b/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js @@ -9,32 +9,32 @@ features: [ArrayBuffer, BigInt, DataView, DataView.prototype.setUint8, Symbol] var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); sample.setUint8(7, 0xff); -assert.sameValue(sample.getBigUint64(0), 0xffn, "no argument"); +assert.sameValue(sample.getBigUint64(0), 0xff n, "no argument"); -assert.sameValue(sample.getBigUint64(0, false), 0xffn); -assert.sameValue(sample.getBigUint64(0, true), 0xff00000000000000n); -assert.sameValue(sample.getBigUint64(0, 0), 0xffn, "ToBoolean: 0 => false"); -assert.sameValue(sample.getBigUint64(0, -0), 0xffn, "ToBoolean: -0 => false"); -assert.sameValue(sample.getBigUint64(0, 1), 0xff00000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigUint64(0, -1), 0xff00000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigUint64(0, 0.1), 0xff00000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigUint64(0, Infinity), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, false), 0xff n); +assert.sameValue(sample.getBigUint64(0, true), 0xff00000000000000 n); +assert.sameValue(sample.getBigUint64(0, 0), 0xff n, "ToBoolean: 0 => false"); +assert.sameValue(sample.getBigUint64(0, -0), 0xff n, "ToBoolean: -0 => false"); +assert.sameValue(sample.getBigUint64(0, 1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigUint64(0, -1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigUint64(0, 0.1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigUint64(0, Infinity), 0xff00000000000000 n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigUint64(0, NaN), 0xffn, "ToBoolean: NaN => false"); -assert.sameValue(sample.getBigUint64(0, undefined), 0xffn, "ToBoolean: undefined => false"); -assert.sameValue(sample.getBigUint64(0, null), 0xffn, "ToBoolean: null => false"); -assert.sameValue(sample.getBigUint64(0, ""), 0xffn, "ToBoolean: String .length == 0 => false"); -assert.sameValue(sample.getBigUint64(0, "string"), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, NaN), 0xff n, "ToBoolean: NaN => false"); +assert.sameValue(sample.getBigUint64(0, undefined), 0xff n, "ToBoolean: undefined => false"); +assert.sameValue(sample.getBigUint64(0, null), 0xff n, "ToBoolean: null => false"); +assert.sameValue(sample.getBigUint64(0, ""), 0xff n, "ToBoolean: String .length == 0 => false"); +assert.sameValue(sample.getBigUint64(0, "string"), 0xff00000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigUint64(0, "false"), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, "false"), 0xff00000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigUint64(0, " "), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, " "), 0xff00000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigUint64(0, Symbol("1")), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, Symbol("1")), 0xff00000000000000 n, "ToBoolean: Symbol => true"); -assert.sameValue(sample.getBigUint64(0, 0n), 0xffn, "ToBoolean: 0n => false"); -assert.sameValue(sample.getBigUint64(0, 1n), 0xff00000000000000n, "ToBoolean: BigInt != 0n => true"); -assert.sameValue(sample.getBigUint64(0, []), 0xff00000000000000n, "ToBoolean: any object => true"); -assert.sameValue(sample.getBigUint64(0, {}), 0xff00000000000000n, "ToBoolean: any object => true"); -assert.sameValue(sample.getBigUint64(0, Object(false)), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, 0 n), 0xff n, "ToBoolean: 0n => false"); +assert.sameValue(sample.getBigUint64(0, 1 n), 0xff00000000000000 n, "ToBoolean: BigInt != 0n => true"); +assert.sameValue(sample.getBigUint64(0, []), 0xff00000000000000 n, "ToBoolean: any object => true"); +assert.sameValue(sample.getBigUint64(0, {}), 0xff00000000000000 n, "ToBoolean: any object => true"); +assert.sameValue(sample.getBigUint64(0, Object(false)), 0xff00000000000000 n, "ToBoolean: any object => true; no ToPrimitive"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js index c11af740c2164dea473da0e5ff08fe82c6558918..2dcbcacfc886459752dc5d667b85d5dc293bf40a 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js +++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js @@ -40,29 +40,29 @@ assert.throws(RangeError, function() { sample.getBigUint64(Infinity); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(TypeError, function() { - sample.getBigUint64(0n); + sample.getBigUint64(0 n); }, "ToIndex: BigInt => TypeError"); assert.throws(TypeError, function() { - sample.getBigUint64(Object(0n)); + sample.getBigUint64(Object(0 n)); }, "ToIndex: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigUint64({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } }); }, "ToIndex: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigUint64({ valueOf: function() { - return 0n; + return 0 n; } }); }, "ToIndex: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigUint64({ toString: function() { - return 0n; + return 0 n; } }); }, "ToIndex: toString => BigInt => TypeError"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js index 243e230154f1c3b137e2c22997f38bc3d7883a25..33d9f8307cfdbad113f76da74881afbe858173d4 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js +++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js @@ -33,48 +33,48 @@ assert.sameValue(sample.getBigUint64({ }, valueOf: err, toString: err -}), 0x20602800080017fn, "ToPrimitive: @@toPrimitive takes precedence"); +}), 0x20602800080017f n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return 1; }, toString: err -}), 0x20602800080017fn, "ToPrimitive: valueOf takes precedence over toString"); +}), 0x20602800080017f n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(sample.getBigUint64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: toString with no valueOf"); +}), 0x20602800080017f n, "ToPrimitive: toString with no valueOf"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: undefined, valueOf: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: null, valueOf: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(sample.getBigUint64({ valueOf: null, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigUint64({ valueOf: 1, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigUint64({ valueOf: {}, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return {}; @@ -82,7 +82,7 @@ assert.sameValue(sample.getBigUint64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return Object(12345); @@ -90,7 +90,7 @@ assert.sameValue(sample.getBigUint64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { sample.getBigUint64({ [Symbol.toPrimitive]: 1 diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js index 8803f393c828028d94ac04466c7809b457bdbbaf..c59cdba2c6caceb449032f92c4941ac6dc34957f 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js +++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js @@ -21,101 +21,101 @@ sample.setUint8(9, 0x00); sample.setUint8(10, 0x01); sample.setUint8(11, 0x02); -assert.sameValue(sample.getBigUint64(Object(0)), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64(Object(0)), 0x2702060280008001 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: @@toPrimitive"); +}), 0x2702060280008001 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: valueOf"); +}), 0x2702060280008001 n, "ToPrimitive: valueOf"); assert.sameValue(sample.getBigUint64({ toString: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: toString"); -assert.sameValue(sample.getBigUint64(Object(NaN)), 0x2702060280008001n, +}), 0x2702060280008001 n, "ToPrimitive: toString"); +assert.sameValue(sample.getBigUint64(Object(NaN)), 0x2702060280008001 n, "ToIndex: unbox object with internal slot => NaN => 0"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => NaN => 0"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: valueOf => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => NaN => 0"); assert.sameValue(sample.getBigUint64({ toString: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: toString => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: toString => NaN => 0"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: valueOf => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => undefined => NaN => 0"); assert.sameValue(sample.getBigUint64({ toString: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: toString => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: toString => undefined => NaN => 0"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return null; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => null => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => null => 0"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return null; } -}), 0x2702060280008001n, "ToIndex: valueOf => null => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => null => 0"); assert.sameValue(sample.getBigUint64({ toString: function() { return null; } -}), 0x2702060280008001n, "ToIndex: toString => null => 0"); -assert.sameValue(sample.getBigUint64(Object(true)), 0x20602800080017fn, +}), 0x2702060280008001 n, "ToIndex: toString => null => 0"); +assert.sameValue(sample.getBigUint64(Object(true)), 0x20602800080017f n, "ToIndex: unbox object with internal slot => true => 1"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return true; } -}), 0x20602800080017fn, "ToIndex: @@toPrimitive => true => 1"); +}), 0x20602800080017f n, "ToIndex: @@toPrimitive => true => 1"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return true; } -}), 0x20602800080017fn, "ToIndex: valueOf => true => 1"); +}), 0x20602800080017f n, "ToIndex: valueOf => true => 1"); assert.sameValue(sample.getBigUint64({ toString: function() { return true; } -}), 0x20602800080017fn, "ToIndex: toString => true => 1"); -assert.sameValue(sample.getBigUint64(Object("1")), 0x20602800080017fn, +}), 0x20602800080017f n, "ToIndex: toString => true => 1"); +assert.sameValue(sample.getBigUint64(Object("1")), 0x20602800080017f n, "ToIndex: unbox object with internal slot => parse Number"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: @@toPrimitive => parse Number"); +}), 0x20602800080017f n, "ToIndex: @@toPrimitive => parse Number"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: valueOf => parse Number"); +}), 0x20602800080017f n, "ToIndex: valueOf => parse Number"); assert.sameValue(sample.getBigUint64({ toString: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: toString => parse Number"); +}), 0x20602800080017f n, "ToIndex: toString => parse Number"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js index fbc74dd2fcecf5f861c325f3d98395d47cd1b0be..e43ab67de86fb3fedfd53fc286a972282a9203ea 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js @@ -21,38 +21,38 @@ sample.setUint8(9, 0x00); sample.setUint8(10, 0x01); sample.setUint8(11, 0x02); -assert.sameValue(sample.getBigUint64(0), 0x2702060280008001n); -assert.sameValue(sample.getBigUint64(1), 0x20602800080017fn); -assert.sameValue(sample.getBigUint64(-0.9), 0x2702060280008001n, "ToIndex: truncate towards 0"); -assert.sameValue(sample.getBigUint64(0.9), 0x2702060280008001n, "ToIndex: truncate towards 0"); -assert.sameValue(sample.getBigUint64(NaN), 0x2702060280008001n, "ToIndex: NaN => 0"); -assert.sameValue(sample.getBigUint64(undefined), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64(0), 0x2702060280008001 n); +assert.sameValue(sample.getBigUint64(1), 0x20602800080017f n); +assert.sameValue(sample.getBigUint64(-0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0"); +assert.sameValue(sample.getBigUint64(0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0"); +assert.sameValue(sample.getBigUint64(NaN), 0x2702060280008001 n, "ToIndex: NaN => 0"); +assert.sameValue(sample.getBigUint64(undefined), 0x2702060280008001 n, "ToIndex: undefined => NaN => 0"); -assert.sameValue(sample.getBigUint64(null), 0x2702060280008001n, "ToIndex: null => 0"); -assert.sameValue(sample.getBigUint64(false), 0x2702060280008001n, "ToIndex: false => 0"); -assert.sameValue(sample.getBigUint64(true), 0x20602800080017fn, "ToIndex: true => 1"); -assert.sameValue(sample.getBigUint64("0"), 0x2702060280008001n, "ToIndex: parse Number"); -assert.sameValue(sample.getBigUint64("1"), 0x20602800080017fn, "ToIndex: parse Number"); -assert.sameValue(sample.getBigUint64(""), 0x2702060280008001n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigUint64("foo"), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64(null), 0x2702060280008001 n, "ToIndex: null => 0"); +assert.sameValue(sample.getBigUint64(false), 0x2702060280008001 n, "ToIndex: false => 0"); +assert.sameValue(sample.getBigUint64(true), 0x20602800080017f n, "ToIndex: true => 1"); +assert.sameValue(sample.getBigUint64("0"), 0x2702060280008001 n, "ToIndex: parse Number"); +assert.sameValue(sample.getBigUint64("1"), 0x20602800080017f n, "ToIndex: parse Number"); +assert.sameValue(sample.getBigUint64(""), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); +assert.sameValue(sample.getBigUint64("foo"), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigUint64("true"), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64("true"), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigUint64(2), 0x602800080017F00n); -assert.sameValue(sample.getBigUint64("2"), 0x602800080017F00n, "toIndex: parse Number"); -assert.sameValue(sample.getBigUint64(2.9), 0x602800080017F00n, "toIndex: truncate towards 0"); -assert.sameValue(sample.getBigUint64("2.9"), 0x602800080017F00n, +assert.sameValue(sample.getBigUint64(2), 0x602800080017F00 n); +assert.sameValue(sample.getBigUint64("2"), 0x602800080017F00 n, "toIndex: parse Number"); +assert.sameValue(sample.getBigUint64(2.9), 0x602800080017F00 n, "toIndex: truncate towards 0"); +assert.sameValue(sample.getBigUint64("2.9"), 0x602800080017F00 n, "toIndex: parse Number => truncate towards 0"); -assert.sameValue(sample.getBigUint64(3), 0x2800080017F0001n); -assert.sameValue(sample.getBigUint64("3"), 0x2800080017F0001n, "toIndex: parse Number"); -assert.sameValue(sample.getBigUint64(3.9), 0x2800080017F0001n, "toIndex: truncate towards 0"); -assert.sameValue(sample.getBigUint64("3.9"), 0x2800080017F0001n, +assert.sameValue(sample.getBigUint64(3), 0x2800080017F0001 n); +assert.sameValue(sample.getBigUint64("3"), 0x2800080017F0001 n, "toIndex: parse Number"); +assert.sameValue(sample.getBigUint64(3.9), 0x2800080017F0001 n, "toIndex: truncate towards 0"); +assert.sameValue(sample.getBigUint64("3.9"), 0x2800080017F0001 n, "toIndex: parse Number => truncate towards 0"); -assert.sameValue(sample.getBigUint64([0]), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64([0]), 0x2702060280008001 n, 'ToIndex: [0].toString() => "0" => 0'); -assert.sameValue(sample.getBigUint64(["1"]), 0x20602800080017fn, +assert.sameValue(sample.getBigUint64(["1"]), 0x20602800080017f n, 'ToIndex: ["1"].toString() => "1" => 1'); -assert.sameValue(sample.getBigUint64({}), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64({}), 0x2702060280008001 n, 'ToIndex: ({}).toString() => "[object Object]" => NaN => 0'); -assert.sameValue(sample.getBigUint64([]), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64([]), 0x2702060280008001 n, 'ToIndex: [].toString() => "" => NaN => 0'); diff --git a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js index 7a96e21ca8a3acfb976888f8aeb3fa32bfc975e6..48a491cb6c023be746635d5be19f5e9e1d2e5f4c 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js +++ b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js @@ -12,7 +12,11 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); -var v = { valueOf() { throw new Test262Error(); } }; +var v = { + valueOf() { + throw new Test262Error(); + } +}; $DETACHBUFFER(buffer); assert.throws(Test262Error, function() { diff --git a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js index 3b25b949793004a809f93a053a372f693e7d96a9..4361bb71af842349463a1820cea9ca912a3bb137 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js +++ b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js @@ -14,5 +14,5 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); assert.throws(TypeError, function() { - sample.setBigInt64(0, 0n); + sample.setBigInt64(0, 0 n); }); diff --git a/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js b/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js index a092a47c3cab9a0784d653f9f3b3f5f2116a0385..0852b549855adf79c1dd9b708c249b8af582adc9 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js +++ b/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js @@ -12,7 +12,9 @@ features: [DataView, ArrayBuffer, BigInt] var dataView = new DataView(new ArrayBuffer(8), 0); var poisoned = { - valueOf() { throw new Test262Error("valueOf called"); } + valueOf() { + throw new Test262Error("valueOf called"); + } }; assert.throws(RangeError, function() { diff --git a/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js b/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js index 17664246e77ffbf467d17ccbb32a5c05c9476a56..420adff59e3e788d09f4d6952165e3a7fab8769c 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js +++ b/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js @@ -14,75 +14,75 @@ var buffer = new ArrayBuffer(12); sample = new DataView(buffer, 0); assert.throws(RangeError, function() { - sample.setBigInt64(Infinity, 39n); + sample.setBigInt64(Infinity, 39 n); }, "getIndex == Infinity"); assert.throws(RangeError, function() { - sample.setBigInt64(13, 39n); + sample.setBigInt64(13, 39 n); }, "13 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(12, 39n); + sample.setBigInt64(12, 39 n); }, "12 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(11, 39n); + sample.setBigInt64(11, 39 n); }, "11 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(10, 39n); + sample.setBigInt64(10, 39 n); }, "10 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(9, 39n); + sample.setBigInt64(9, 39 n); }, "9 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(8, 39n); + sample.setBigInt64(8, 39 n); }, "8 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(7, 39n); + sample.setBigInt64(7, 39 n); }, "7 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(6, 39n); + sample.setBigInt64(6, 39 n); }, "6 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(5, 39n); + sample.setBigInt64(5, 39 n); }, "5 + 8 > 12"); sample = new DataView(buffer, 8); assert.throws(RangeError, function() { - sample.setBigInt64(1, 39n); + sample.setBigInt64(1, 39 n); }, "1 + 8 > 4 (offset)"); sample = new DataView(buffer, 9); assert.throws(RangeError, function() { - sample.setBigInt64(0, 39n); + sample.setBigInt64(0, 39 n); }, "0 + 8 > 3 (offset)"); sample = new DataView(buffer, 0, 8); assert.throws(RangeError, function() { - sample.setBigInt64(1, 39n); + sample.setBigInt64(1, 39 n); }, "1 + 8 > 8 (length)"); sample = new DataView(buffer, 0, 7); assert.throws(RangeError, function() { - sample.setBigInt64(0, 39n); + sample.setBigInt64(0, 39 n); }, "0 + 8 > 7 (length)"); sample = new DataView(buffer, 4, 8); assert.throws(RangeError, function() { - sample.setBigInt64(1, 39n); + sample.setBigInt64(1, 39 n); }, "1 + 8 > 8 (offset+length)"); sample = new DataView(buffer, 4, 7); assert.throws(RangeError, function() { - sample.setBigInt64(0, 39n); + sample.setBigInt64(0, 39 n); }, "0 + 8 > 7 (offset+length)"); sample = new DataView(buffer, 0); -assert.sameValue(sample.getBigInt64(0), 0n, "[0] no value was set"); -assert.sameValue(sample.getBigInt64(4), 0n, "[1] no value was set"); +assert.sameValue(sample.getBigInt64(0), 0 n, "[0] no value was set"); +assert.sameValue(sample.getBigInt64(4), 0 n, "[1] no value was set"); diff --git a/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js index fcb35cf21f5c199e8859dd1e708884a71fcd2214..9ad011062163a02e540d136504fb484c84194216 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js +++ b/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js @@ -12,11 +12,11 @@ var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); assert.throws(RangeError, function() { - sample.setBigInt64(-1, 39n); + sample.setBigInt64(-1, 39 n); }, "DataView access at index -1 should throw"); -assert.sameValue(sample.getBigInt64(0), 0n, "-1 - no value was set"); +assert.sameValue(sample.getBigInt64(0), 0 n, "-1 - no value was set"); assert.throws(RangeError, function() { - sample.setBigInt64(-Infinity, 39n); + sample.setBigInt64(-Infinity, 39 n); }, "DataView access at index -Infinity should throw"); -assert.sameValue(sample.getBigInt64(0), 0n, "-Infinity - no value was set"); +assert.sameValue(sample.getBigInt64(0), 0 n, "-Infinity - no value was set"); diff --git a/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js b/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js index 85e88974cc9b973565c1ffe961920989b5a8d425..6c05febdd853ce857580c9c41b37a902c37e1585 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js +++ b/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js @@ -10,7 +10,11 @@ features: [DataView, ArrayBuffer, BigInt] var dataView = new DataView(new ArrayBuffer(8), 0); -var poisoned = { valueOf() { throw new Test262Error(); } }; +var poisoned = { + valueOf() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, function() { dataView.setBigInt64(100, poisoned); diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js index 0411fe56b02a7f401c1c8de02b0abc8fd318f453..d09e12b13a65a8d93b55bbf9a7331b6624c639bc 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js +++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js @@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); -var bo1 = { valueOf() { throw new Test262Error(); } }; -var bo2 = { toString() { throw new Test262Error(); } }; +var bo1 = { + valueOf() { + throw new Test262Error(); + } +}; +var bo2 = { + toString() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, function() { sample.setBigInt64(0, bo1); diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js index caddbafdb89af5e76e6fa0fe358c0a0ee02fcef1..566a7d54f5c79427e87fd27cd31de6afe8a738be 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js +++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js @@ -14,5 +14,5 @@ var sample = new DataView(buffer, 0); var s = Symbol("1"); assert.throws(TypeError, function() { - sample.setBigInt64(s, 1n); + sample.setBigInt64(s, 1 n); }); diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js index c54224decf242ac0c41ff7c98f1c335fdc194ad7..52ae143fd9d7b8bf7fb2404cb1a9c7aad7db33a4 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js +++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js @@ -11,13 +11,21 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(1); var sample = new DataView(buffer, 0); -var bo1 = { valueOf() { throw new Test262Error(); } }; -var bo2 = { toString() { throw new Test262Error(); } }; +var bo1 = { + valueOf() { + throw new Test262Error(); + } +}; +var bo2 = { + toString() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, function() { - sample.setBigInt64(bo1, 1n); + sample.setBigInt64(bo1, 1 n); }, "valueOf"); assert.throws(Test262Error, function() { - sample.setBigInt64(bo2, 1n); + sample.setBigInt64(bo2, 1 n); }, "toString"); diff --git a/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js b/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js index 9edb9da5b366f2906761541af4702bf7300ebcaf..7716f66a36626ae38d8dc7db2b5c5f0345360581 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js +++ b/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js @@ -13,26 +13,26 @@ var sample = new DataView(buffer, 0); var result; -result = sample.setBigInt64(0, -0x6f80ff08n, true); +result = sample.setBigInt64(0, -0x6f80ff08 n, true); assert.sameValue(result, undefined, "returns undefined #1"); -assert.sameValue(sample.getBigInt64(0), -0x7ff806f00000001n); +assert.sameValue(sample.getBigInt64(0), -0x7ff806f00000001 n); -result = sample.setBigInt64(0, -0x7ff8070n, true); +result = sample.setBigInt64(0, -0x7ff8070 n, true); assert.sameValue(result, undefined, "returns undefined #2"); -assert.sameValue(sample.getBigInt64(0), -0x6f80ff0700000001n); +assert.sameValue(sample.getBigInt64(0), -0x6f80ff0700000001 n); -result = sample.setBigInt64(0, 0x6f80ff08n, true); +result = sample.setBigInt64(0, 0x6f80ff08 n, true); assert.sameValue(result, undefined, "returns undefined #3"); -assert.sameValue(sample.getBigInt64(0), 0x8ff806f00000000n); +assert.sameValue(sample.getBigInt64(0), 0x8ff806f00000000 n); -result = sample.setBigInt64(0, 0x8ff806fn, true); +result = sample.setBigInt64(0, 0x8ff806f n, true); assert.sameValue(result, undefined, "returns undefined #4"); -assert.sameValue(sample.getBigInt64(0), 0x6f80ff0800000000n); +assert.sameValue(sample.getBigInt64(0), 0x6f80ff0800000000 n); -result = sample.setBigInt64(0, 0xf8007f90n, true); +result = sample.setBigInt64(0, 0xf8007f90 n, true); assert.sameValue(result, undefined, "returns undefined #5"); -assert.sameValue(sample.getBigInt64(0), -0x6f80ff0800000000n); +assert.sameValue(sample.getBigInt64(0), -0x6f80ff0800000000 n); -result = sample.setBigInt64(0, 0x907f00f8n, true); +result = sample.setBigInt64(0, 0x907f00f8 n, true); assert.sameValue(result, undefined, "returns undefined #6"); -assert.sameValue(sample.getBigInt64(0), -0x7ff807000000000n); +assert.sameValue(sample.getBigInt64(0), -0x7ff807000000000 n); diff --git a/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js b/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js index a92ede6c6992447fb0a83ad869578e2a801b3924..4e2d481c1f0a8eefd4559178f8ff853b7f25fdaa 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js +++ b/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js @@ -17,13 +17,13 @@ var values = byteConversionValues.values; values.forEach(function(value, i) { if (value === undefined) { assert.throws(TypeError, - () => sample.setBigInt64(0, BigInt(value), false), - "value: " + value); + () => sample.setBigInt64(0, BigInt(value), false), + "value: " + value); return; } else if (!Number.isInteger(value) || value > 9007199254740991) { assert.throws(RangeError, - () => sample.setBigInt64(0, BigInt(value), false), - "value " + value); + () => sample.setBigInt64(0, BigInt(value), false), + "value " + value); return; } diff --git a/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js b/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js index 760dd8f625e2293d4d6630926373d41cc6e37790..8311d9b3df55bb5547f9d2980c71ee4f946348e0 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js +++ b/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js @@ -12,23 +12,23 @@ var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); // False -sample.setBigInt64(0, 1n); -assert.sameValue(sample.getBigInt64(0), 1n, "no arg"); -sample.setBigInt64(0, 2n, undefined); -assert.sameValue(sample.getBigInt64(0), 2n, "undefined"); -sample.setBigInt64(0, 3n, null); -assert.sameValue(sample.getBigInt64(0), 3n, "null"); -sample.setBigInt64(0, 4n, 0); -assert.sameValue(sample.getBigInt64(0), 4n, "0"); -sample.setBigInt64(0, 5n, ""); -assert.sameValue(sample.getBigInt64(0), 5n, "the empty string"); +sample.setBigInt64(0, 1 n); +assert.sameValue(sample.getBigInt64(0), 1 n, "no arg"); +sample.setBigInt64(0, 2 n, undefined); +assert.sameValue(sample.getBigInt64(0), 2 n, "undefined"); +sample.setBigInt64(0, 3 n, null); +assert.sameValue(sample.getBigInt64(0), 3 n, "null"); +sample.setBigInt64(0, 4 n, 0); +assert.sameValue(sample.getBigInt64(0), 4 n, "0"); +sample.setBigInt64(0, 5 n, ""); +assert.sameValue(sample.getBigInt64(0), 5 n, "the empty string"); // True -sample.setBigInt64(0, 6n, {}); -assert.sameValue(sample.getBigInt64(0), 0x600000000000000n, "{}"); -sample.setBigInt64(0, 7n, Symbol("1")); -assert.sameValue(sample.getBigInt64(0), 0x700000000000000n, "symbol"); -sample.setBigInt64(0, 8n, 1); -assert.sameValue(sample.getBigInt64(0), 0x800000000000000n, "1"); -sample.setBigInt64(0, 9n, "string"); -assert.sameValue(sample.getBigInt64(0), 0x900000000000000n, "string"); +sample.setBigInt64(0, 6 n, {}); +assert.sameValue(sample.getBigInt64(0), 0x600000000000000 n, "{}"); +sample.setBigInt64(0, 7 n, Symbol("1")); +assert.sameValue(sample.getBigInt64(0), 0x700000000000000 n, "symbol"); +sample.setBigInt64(0, 8 n, 1); +assert.sameValue(sample.getBigInt64(0), 0x800000000000000 n, "1"); +sample.setBigInt64(0, 9 n, "string"); +assert.sameValue(sample.getBigInt64(0), 0x900000000000000 n, "string"); diff --git a/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js index a55f905ae3971ba11444e9900e5e4a844ee0f3bf..169aba7d1dc42568a208569e09f9bfc210fe3685 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js @@ -11,73 +11,81 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); -var obj1 = { valueOf() { return 3; } }; -var obj2 = { toString() { return 4; } }; - -sample.setBigInt64(0, 0n); -sample.setBigInt64(-0, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "-0"); - -sample.setBigInt64(3, 0n); -sample.setBigInt64(obj1, 42n); -assert.sameValue(sample.getBigInt64(3), 42n, "object's valueOf"); - -sample.setBigInt64(4, 0n); -sample.setBigInt64(obj2, 42n); -assert.sameValue(sample.getBigInt64(4), 42n, "object's toString"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64("", 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "the Empty string"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64("0", 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "string '0'"); - -sample.setBigInt64(2, 0n); -sample.setBigInt64("2", 42n); -assert.sameValue(sample.getBigInt64(2), 42n, "string '2'"); - -sample.setBigInt64(1, 0n); -sample.setBigInt64(true, 42n); -assert.sameValue(sample.getBigInt64(1), 42n, "true"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(false, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "false"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(NaN, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "NaN"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(null, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "null"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(0.1, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "0.1"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(0.9, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "0.9"); - -sample.setBigInt64(1, 0n); -sample.setBigInt64(1.1, 42n); -assert.sameValue(sample.getBigInt64(1), 42n, "1.1"); - -sample.setBigInt64(1, 0n); -sample.setBigInt64(1.9, 42n); -assert.sameValue(sample.getBigInt64(1), 42n, "1.9"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(-0.1, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "-0.1"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(-0.99999, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "-0.99999"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(undefined, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "undefined"); +var obj1 = { + valueOf() { + return 3; + } +}; +var obj2 = { + toString() { + return 4; + } +}; + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(-0, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "-0"); + +sample.setBigInt64(3, 0 n); +sample.setBigInt64(obj1, 42 n); +assert.sameValue(sample.getBigInt64(3), 42 n, "object's valueOf"); + +sample.setBigInt64(4, 0 n); +sample.setBigInt64(obj2, 42 n); +assert.sameValue(sample.getBigInt64(4), 42 n, "object's toString"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64("", 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "the Empty string"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64("0", 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "string '0'"); + +sample.setBigInt64(2, 0 n); +sample.setBigInt64("2", 42 n); +assert.sameValue(sample.getBigInt64(2), 42 n, "string '2'"); + +sample.setBigInt64(1, 0 n); +sample.setBigInt64(true, 42 n); +assert.sameValue(sample.getBigInt64(1), 42 n, "true"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(false, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "false"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(NaN, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "NaN"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(null, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "null"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(0.1, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "0.1"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(0.9, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "0.9"); + +sample.setBigInt64(1, 0 n); +sample.setBigInt64(1.1, 42 n); +assert.sameValue(sample.getBigInt64(1), 42 n, "1.1"); + +sample.setBigInt64(1, 0 n); +sample.setBigInt64(1.9, 42 n); +assert.sameValue(sample.getBigInt64(1), 42 n, "1.9"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(-0.1, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "-0.1"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(-0.99999, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "-0.99999"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(undefined, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "undefined"); diff --git a/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js b/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js index f5b45a5ae978bab08dbf158c0f50e5e8c3e7872a..0d71d4dfbcea0a198543fd0358df9dcea5f0d826 100644 --- a/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js @@ -106,4 +106,4 @@ assert.sameValue(sample.getInt32(0), 42, "undefined"); sample.setInt32(0, 7); sample.setInt32(); -assert.sameValue(sample.getInt32(0), 0, "no arg"); \ No newline at end of file +assert.sameValue(sample.getInt32(0), 0, "no arg"); diff --git a/test/built-ins/Date/15.9.1.15-1.js b/test/built-ins/Date/15.9.1.15-1.js index b2f1f1c01fd5360a8600a1a90f4ebe428ea0423c..395a20bbc8f9de48f21b6b920db497c2b15d1280 100644 --- a/test/built-ins/Date/15.9.1.15-1.js +++ b/test/built-ins/Date/15.9.1.15-1.js @@ -10,10 +10,10 @@ description: > absent ---*/ - var result = false; - var expectedDateTimeStr = "1970-01-01T00:00:00.000Z"; - var dateObj = new Date("1970"); - var dateStr = dateObj.toISOString(); - result = dateStr === expectedDateTimeStr; +var result = false; +var expectedDateTimeStr = "1970-01-01T00:00:00.000Z"; +var dateObj = new Date("1970"); +var dateStr = dateObj.toISOString(); +result = dateStr === expectedDateTimeStr; assert(result, 'result !== true'); diff --git a/test/built-ins/Date/S15.9.2.1_A1.js b/test/built-ins/Date/S15.9.2.1_A1.js index fd49157378645392f17e4fe67a0aec04b4f29ec9..24722c8ddd5c33da48ddb2be3937e43bb21bc484 100644 --- a/test/built-ins/Date/S15.9.2.1_A1.js +++ b/test/built-ins/Date/S15.9.2.1_A1.js @@ -11,71 +11,71 @@ description: Checking type of returned value ---*/ //CHECK#1 -if( typeof Date() !== "string" ) { - $ERROR('#1: typeof Date() should be "string", actual is '+(typeof Date())); +if (typeof Date() !== "string") { + $ERROR('#1: typeof Date() should be "string", actual is ' + (typeof Date())); } //CHECK#2 -if( typeof Date(1) !== "string" ) { - $ERROR('#2: typeof Date(1) should be "string", actual is '+(typeof Date(1))); +if (typeof Date(1) !== "string") { + $ERROR('#2: typeof Date(1) should be "string", actual is ' + (typeof Date(1))); } //CHECK#3 -if( typeof Date(1970, 1) !== "string" ) { - $ERROR('#3: typeof Date(1970, 1) should be "string", actual is '+(typeof Date(1970, 1))); +if (typeof Date(1970, 1) !== "string") { + $ERROR('#3: typeof Date(1970, 1) should be "string", actual is ' + (typeof Date(1970, 1))); } //CHECK#4 -if( typeof Date(1970, 1, 1) !== "string" ) { - $ERROR('#4: typeof Date(1970, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1))); +if (typeof Date(1970, 1, 1) !== "string") { + $ERROR('#4: typeof Date(1970, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1))); } //CHECK#5 -if( typeof Date(1970, 1, 1, 1) !== "string" ) { - $ERROR('#5: typeof Date(1970, 1, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1, 1))); +if (typeof Date(1970, 1, 1, 1) !== "string") { + $ERROR('#5: typeof Date(1970, 1, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1))); } //CHECK#6 -if( typeof Date(1970, 1, 1, 1) !== "string" ) { - $ERROR('#7: typeof Date(1970, 1, 1, 1) should be "string", actual is '+(typeof Date(1970, 1, 1, 1))); +if (typeof Date(1970, 1, 1, 1) !== "string") { + $ERROR('#7: typeof Date(1970, 1, 1, 1) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1))); } //CHECK#8 -if( typeof Date(1970, 1, 1, 1, 0) !== "string" ) { - $ERROR('#8: typeof Date(1970, 1, 1, 1, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0))); +if (typeof Date(1970, 1, 1, 1, 0) !== "string") { + $ERROR('#8: typeof Date(1970, 1, 1, 1, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0))); } //CHECK#9 -if( typeof Date(1970, 1, 1, 1, 0, 0) !== "string" ) { - $ERROR('#9: typeof Date(1970, 1, 1, 1, 0, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0, 0))); +if (typeof Date(1970, 1, 1, 1, 0, 0) !== "string") { + $ERROR('#9: typeof Date(1970, 1, 1, 1, 0, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0, 0))); } //CHECK#10 -if( typeof Date(1970, 1, 1, 1, 0, 0, 0) !== "string" ) { - $ERROR('#10: typeof Date(1970, 1, 1, 1, 0, 0, 0) should be "string", actual is '+(typeof Date(1970, 1, 1, 1, 0, 0, 0))); +if (typeof Date(1970, 1, 1, 1, 0, 0, 0) !== "string") { + $ERROR('#10: typeof Date(1970, 1, 1, 1, 0, 0, 0) should be "string", actual is ' + (typeof Date(1970, 1, 1, 1, 0, 0, 0))); } //CHECK#11 -if( typeof Date(Number.NaN) !== "string" ) { - $ERROR('#11: typeof Date(Number.NaN) should be "string", actual is '+(typeof Date(Number.NaN))); +if (typeof Date(Number.NaN) !== "string") { + $ERROR('#11: typeof Date(Number.NaN) should be "string", actual is ' + (typeof Date(Number.NaN))); } //CHECK#12 -if( typeof Date(Number.POSITIVE_INFINITY) !== "string" ) { - $ERROR('#12: typeof Date(Number.POSITIVE_INFINITY) should be "string", actual is '+(typeof Date(Number.POSITIVE_INFINITY))); +if (typeof Date(Number.POSITIVE_INFINITY) !== "string") { + $ERROR('#12: typeof Date(Number.POSITIVE_INFINITY) should be "string", actual is ' + (typeof Date(Number.POSITIVE_INFINITY))); } //CHECK#13 -if( typeof Date(Number.NEGATIVE_INFINITY) !== "string" ) { - $ERROR('#13: typeof Date(Number.NEGATIVE_INFINITY) should be "string", actual is '+(typeof Date(Number.NEGATIVE_INFINITY))); +if (typeof Date(Number.NEGATIVE_INFINITY) !== "string") { + $ERROR('#13: typeof Date(Number.NEGATIVE_INFINITY) should be "string", actual is ' + (typeof Date(Number.NEGATIVE_INFINITY))); } //CHECK#14 -if( typeof Date(undefined) !== "string" ) { - $ERROR('#14: typeof Date(undefined) should be "string", actual is '+(typeof Date(undefined))); +if (typeof Date(undefined) !== "string") { + $ERROR('#14: typeof Date(undefined) should be "string", actual is ' + (typeof Date(undefined))); } //CHECK#15 -if( typeof Date(null) !== "string" ) { - $ERROR('#15: typeof Date(null) should be "string", actual is '+(typeof Date(null))); +if (typeof Date(null) !== "string") { + $ERROR('#15: typeof Date(null) should be "string", actual is ' + (typeof Date(null))); } diff --git a/test/built-ins/Date/S15.9.2.1_A2.js b/test/built-ins/Date/S15.9.2.1_A2.js index c461b0e875f01d2b368dcc4bc6e5fbdd5efce511..4d627a8091ee1894663c3abcf6f9c217049f2680 100644 --- a/test/built-ins/Date/S15.9.2.1_A2.js +++ b/test/built-ins/Date/S15.9.2.1_A2.js @@ -22,71 +22,71 @@ function isEqual(d1, d2) { } //CHECK#1 -if( !isEqual(Date(), (new Date()).toString()) ) { +if (!isEqual(Date(), (new Date()).toString())) { $ERROR('#1: Date() is equal to (new Date()).toString()'); } //CHECK#2 -if( !isEqual(Date(1), (new Date()).toString()) ) { +if (!isEqual(Date(1), (new Date()).toString())) { $ERROR('#2: Date(1) is equal to (new Date()).toString()'); } //CHECK#3 -if( !isEqual(Date(1970, 1), (new Date()).toString()) ) { +if (!isEqual(Date(1970, 1), (new Date()).toString())) { $ERROR('#3: Date(1970, 1) is equal to (new Date()).toString()'); } //CHECK#4 -if( !isEqual(Date(1970, 1, 1), (new Date()).toString()) ) { +if (!isEqual(Date(1970, 1, 1), (new Date()).toString())) { $ERROR('#4: Date(1970, 1, 1) is equal to (new Date()).toString()'); } //CHECK#5 -if( !isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) ) { +if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) { $ERROR('#5: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); } //CHECK#6 -if( !isEqual(Date(1970, 1, 1, 1), (new Date()).toString()) ) { +if (!isEqual(Date(1970, 1, 1, 1), (new Date()).toString())) { $ERROR('#7: Date(1970, 1, 1, 1) is equal to (new Date()).toString()'); } //CHECK#8 -if( !isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString()) ) { +if (!isEqual(Date(1970, 1, 1, 1, 0), (new Date()).toString())) { $ERROR('#8: Date(1970, 1, 1, 1, 0) is equal to (new Date()).toString()'); } //CHECK#9 -if( !isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString()) ) { +if (!isEqual(Date(1970, 1, 1, 1, 0, 0), (new Date()).toString())) { $ERROR('#9: Date(1970, 1, 1, 1, 0, 0) is equal to (new Date()).toString()'); } //CHECK#10 -if( !isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString()) ) { +if (!isEqual(Date(1970, 1, 1, 1, 0, 0, 0), (new Date()).toString())) { $ERROR('#10: Date(1970, 1, 1, 1, 0, 0, 0) is equal to (new Date()).toString()'); } //CHECK#11 -if( !isEqual(Date(Number.NaN), (new Date()).toString()) ) { +if (!isEqual(Date(Number.NaN), (new Date()).toString())) { $ERROR('#11: Date(Number.NaN) is equal to (new Date()).toString()'); } //CHECK#12 -if( !isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString()) ) { +if (!isEqual(Date(Number.POSITIVE_INFINITY), (new Date()).toString())) { $ERROR('#12: Date(Number.POSITIVE_INFINITY) is equal to (new Date()).toString()'); } //CHECK#13 -if( !isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString()) ) { +if (!isEqual(Date(Number.NEGATIVE_INFINITY), (new Date()).toString())) { $ERROR('#13: Date(Number.NEGATIVE_INFINITY) is equal to (new Date()).toString()'); } //CHECK#14 -if( !isEqual(Date(undefined), (new Date()).toString()) ) { +if (!isEqual(Date(undefined), (new Date()).toString())) { $ERROR('#14: Date(undefined) is equal to (new Date()).toString()'); } //CHECK#15 -if( !isEqual(Date(null), (new Date()).toString()) ) { +if (!isEqual(Date(null), (new Date()).toString())) { $ERROR('#15: Date(null) is equal to (new Date()).toString()'); } diff --git a/test/built-ins/Date/S15.9.3.1_A1_T1.js b/test/built-ins/Date/S15.9.3.1_A1_T1.js index af7e4e3e6767bb4b7e8873b3d0f35f8c2ab5a90a..7e6baff635e5257b951d8ef9b261ec6c071ca4fc 100644 --- a/test/built-ins/Date/S15.9.3.1_A1_T1.js +++ b/test/built-ins/Date/S15.9.3.1_A1_T1.js @@ -19,12 +19,12 @@ if (new Date(1899, 11) === undefined) { } var x13 = new Date(1899, 11); -if(typeof x13 !== "object"){ +if (typeof x13 !== "object") { $ERROR("#1.3: typeof new Date(1899, 11) should be 'object'"); } var x14 = new Date(1899, 11); -if(x14 === undefined){ +if (x14 === undefined) { $ERROR("#1.4: new Date(1899, 11) should not be undefined"); } @@ -37,12 +37,12 @@ if (new Date(1899, 12) === undefined) { } var x23 = new Date(1899, 12); -if(typeof x23 !== "object"){ +if (typeof x23 !== "object") { $ERROR("#2.3: typeof new Date(1899, 12) should be 'object'"); } var x24 = new Date(1899, 12); -if(x24 === undefined){ +if (x24 === undefined) { $ERROR("#2.4: new Date(1899, 12) should not be undefined"); } @@ -55,12 +55,12 @@ if (new Date(1900, 0) === undefined) { } var x33 = new Date(1900, 0); -if(typeof x33 !== "object"){ +if (typeof x33 !== "object") { $ERROR("#3.3: typeof new Date(1900, 0) should be 'object'"); } var x34 = new Date(1900, 0); -if(x34 === undefined){ +if (x34 === undefined) { $ERROR("#3.4: new Date(1900, 0) should not be undefined"); } @@ -73,12 +73,12 @@ if (new Date(1969, 11) === undefined) { } var x43 = new Date(1969, 11); -if(typeof x43 !== "object"){ +if (typeof x43 !== "object") { $ERROR("#4.3: typeof new Date(1969, 11) should be 'object'"); } var x44 = new Date(1969, 11); -if(x44 === undefined){ +if (x44 === undefined) { $ERROR("#4.4: new Date(1969, 11) should not be undefined"); } @@ -91,12 +91,12 @@ if (new Date(1969, 12) === undefined) { } var x53 = new Date(1969, 12); -if(typeof x53 !== "object"){ +if (typeof x53 !== "object") { $ERROR("#5.3: typeof new Date(1969, 12) should be 'object'"); } var x54 = new Date(1969, 12); -if(x54 === undefined){ +if (x54 === undefined) { $ERROR("#5.4: new Date(1969, 12) should not be undefined"); } @@ -109,12 +109,12 @@ if (new Date(1970, 0) === undefined) { } var x63 = new Date(1970, 0); -if(typeof x63 !== "object"){ +if (typeof x63 !== "object") { $ERROR("#6.3: typeof new Date(1970, 0) should be 'object'"); } var x64 = new Date(1970, 0); -if(x64 === undefined){ +if (x64 === undefined) { $ERROR("#6.4: new Date(1970, 0) should not be undefined"); } @@ -127,12 +127,12 @@ if (new Date(1999, 11) === undefined) { } var x73 = new Date(1999, 11); -if(typeof x73 !== "object"){ +if (typeof x73 !== "object") { $ERROR("#7.3: typeof new Date(1999, 11) should be 'object'"); } var x74 = new Date(1999, 11); -if(x74 === undefined){ +if (x74 === undefined) { $ERROR("#7.4: new Date(1999, 11) should not be undefined"); } @@ -145,12 +145,12 @@ if (new Date(1999, 12) === undefined) { } var x83 = new Date(1999, 12); -if(typeof x83 !== "object"){ +if (typeof x83 !== "object") { $ERROR("#8.3: typeof new Date(1999, 12) should be 'object'"); } var x84 = new Date(1999, 12); -if(x84 === undefined){ +if (x84 === undefined) { $ERROR("#8.4: new Date(1999, 12) should not be undefined"); } @@ -163,12 +163,12 @@ if (new Date(2000, 0) === undefined) { } var x93 = new Date(2000, 0); -if(typeof x93 !== "object"){ +if (typeof x93 !== "object") { $ERROR("#9.3: typeof new Date(2000, 0) should be 'object'"); } var x94 = new Date(2000, 0); -if(x94 === undefined){ +if (x94 === undefined) { $ERROR("#9.4: new Date(2000, 0) should not be undefined"); } @@ -181,12 +181,12 @@ if (new Date(2099, 11) === undefined) { } var x103 = new Date(2099, 11); -if(typeof x103 !== "object"){ +if (typeof x103 !== "object") { $ERROR("#10.3: typeof new Date(2099, 11) should be 'object'"); } var x104 = new Date(2099, 11); -if(x104 === undefined){ +if (x104 === undefined) { $ERROR("#10.4: new Date(2099, 11) should not be undefined"); } @@ -199,12 +199,12 @@ if (new Date(2099, 12) === undefined) { } var x113 = new Date(2099, 12); -if(typeof x113 !== "object"){ +if (typeof x113 !== "object") { $ERROR("#11.3: typeof new Date(2099, 12) should be 'object'"); } var x114 = new Date(2099, 12); -if(x114 === undefined){ +if (x114 === undefined) { $ERROR("#11.4: new Date(2099, 12) should not be undefined"); } @@ -217,11 +217,11 @@ if (new Date(2100, 0) === undefined) { } var x123 = new Date(2100, 0); -if(typeof x123 !== "object"){ +if (typeof x123 !== "object") { $ERROR("#12.3: typeof new Date(2100, 0) should be 'object'"); } var x124 = new Date(2100, 0); -if(x124 === undefined){ +if (x124 === undefined) { $ERROR("#12.4: new Date(2100, 0) should not be undefined"); } diff --git a/test/built-ins/Date/S15.9.3.1_A1_T2.js b/test/built-ins/Date/S15.9.3.1_A1_T2.js index a787643e81c39a708b810d2a962d999024f6565a..3265980f92924874b7ea46260cbc86e615a7dbd3 100644 --- a/test/built-ins/Date/S15.9.3.1_A1_T2.js +++ b/test/built-ins/Date/S15.9.3.1_A1_T2.js @@ -19,12 +19,12 @@ if (new Date(1899, 11, 31) === undefined) { } var x13 = new Date(1899, 11, 31); -if(typeof x13 !== "object"){ +if (typeof x13 !== "object") { $ERROR("#1.3: typeof new Date(1899, 11, 31) should be 'object'"); } var x14 = new Date(1899, 11, 31); -if(x14 === undefined){ +if (x14 === undefined) { $ERROR("#1.4: new Date(1899, 11, 31) should not be undefined"); } @@ -37,12 +37,12 @@ if (new Date(1899, 12, 1) === undefined) { } var x23 = new Date(1899, 12, 1); -if(typeof x23 !== "object"){ +if (typeof x23 !== "object") { $ERROR("#2.3: typeof new Date(1899, 12, 1) should be 'object'"); } var x24 = new Date(1899, 12, 1); -if(x24 === undefined){ +if (x24 === undefined) { $ERROR("#2.4: new Date(1899, 12, 1) should not be undefined"); } @@ -55,12 +55,12 @@ if (new Date(1900, 0, 1) === undefined) { } var x33 = new Date(1900, 0, 1); -if(typeof x33 !== "object"){ +if (typeof x33 !== "object") { $ERROR("#3.3: typeof new Date(1900, 0, 1) should be 'object'"); } var x34 = new Date(1900, 0, 1); -if(x34 === undefined){ +if (x34 === undefined) { $ERROR("#3.4: new Date(1900, 0, 1) should not be undefined"); } @@ -73,12 +73,12 @@ if (new Date(1969, 11, 31) === undefined) { } var x43 = new Date(1969, 11, 31); -if(typeof x43 !== "object"){ +if (typeof x43 !== "object") { $ERROR("#4.3: typeof new Date(1969, 11, 31) should be 'object'"); } var x44 = new Date(1969, 11, 31); -if(x44 === undefined){ +if (x44 === undefined) { $ERROR("#4.4: new Date(1969, 11, 31) should not be undefined"); } @@ -91,12 +91,12 @@ if (new Date(1969, 12, 1) === undefined) { } var x53 = new Date(1969, 12, 1); -if(typeof x53 !== "object"){ +if (typeof x53 !== "object") { $ERROR("#5.3: typeof new Date(1969, 12, 1) should be 'object'"); } var x54 = new Date(1969, 12, 1); -if(x54 === undefined){ +if (x54 === undefined) { $ERROR("#5.4: new Date(1969, 12, 1) should not be undefined"); } @@ -109,12 +109,12 @@ if (new Date(1970, 0, 1) === undefined) { } var x63 = new Date(1970, 0, 1); -if(typeof x63 !== "object"){ +if (typeof x63 !== "object") { $ERROR("#6.3: typeof new Date(1970, 0, 1) should be 'object'"); } var x64 = new Date(1970, 0, 1); -if(x64 === undefined){ +if (x64 === undefined) { $ERROR("#6.4: new Date(1970, 0, 1) should not be undefined"); } @@ -127,12 +127,12 @@ if (new Date(1999, 11, 31) === undefined) { } var x73 = new Date(1999, 11, 31); -if(typeof x73 !== "object"){ +if (typeof x73 !== "object") { $ERROR("#7.3: typeof new Date(1999, 11, 31) should be 'object'"); } var x74 = new Date(1999, 11, 31); -if(x74 === undefined){ +if (x74 === undefined) { $ERROR("#7.4: new Date(1999, 11, 31) should not be undefined"); } @@ -145,12 +145,12 @@ if (new Date(1999, 12, 1) === undefined) { } var x83 = new Date(1999, 12, 1); -if(typeof x83 !== "object"){ +if (typeof x83 !== "object") { $ERROR("#8.3: typeof new Date(1999, 12, 1) should be 'object'"); } var x84 = new Date(1999, 12, 1); -if(x84 === undefined){ +if (x84 === undefined) { $ERROR("#8.4: new Date(1999, 12, 1) should not be undefined"); } @@ -163,12 +163,12 @@ if (new Date(2000, 0, 1) === undefined) { } var x93 = new Date(2000, 0, 1); -if(typeof x93 !== "object"){ +if (typeof x93 !== "object") { $ERROR("#9.3: typeof new Date(2000, 0, 1) should be 'object'"); } var x94 = new Date(2000, 0, 1); -if(x94 === undefined){ +if (x94 === undefined) { $ERROR("#9.4: new Date(2000, 0, 1) should not be undefined"); } @@ -181,12 +181,12 @@ if (new Date(2099, 11, 31) === undefined) { } var x103 = new Date(2099, 11, 31); -if(typeof x103 !== "object"){ +if (typeof x103 !== "object") { $ERROR("#10.3: typeof new Date(2099, 11, 31) should be 'object'"); } var x104 = new Date(2099, 11, 31); -if(x104 === undefined){ +if (x104 === undefined) { $ERROR("#10.4: new Date(2099, 11, 31) should not be undefined"); } @@ -199,12 +199,12 @@ if (new Date(2099, 12, 1) === undefined) { } var x113 = new Date(2099, 12, 1); -if(typeof x113 !== "object"){ +if (typeof x113 !== "object") { $ERROR("#11.3: typeof new Date(2099, 12, 1) should be 'object'"); } var x114 = new Date(2099, 12, 1); -if(x114 === undefined){ +if (x114 === undefined) { $ERROR("#11.4: new Date(2099, 12, 1) should not be undefined"); } @@ -217,11 +217,11 @@ if (new Date(2100, 0, 1) === undefined) { } var x123 = new Date(2100, 0, 1); -if(typeof x123 !== "object"){ +if (typeof x123 !== "object") { $ERROR("#12.3: typeof new Date(2100, 0, 1) should be 'object'"); } var x124 = new Date(2100, 0, 1); -if(x124 === undefined){ +if (x124 === undefined) { $ERROR("#12.4: new Date(2100, 0, 1) should not be undefined"); } diff --git a/test/built-ins/Date/S15.9.3.1_A1_T3.js b/test/built-ins/Date/S15.9.3.1_A1_T3.js index 648c8bbce795442e41fc31aac59b4bb1c7e6ed2b..875e3a8a4d53f53c612255f6edd181e9b7b33b4e 100644 --- a/test/built-ins/Date/S15.9.3.1_A1_T3.js +++ b/test/built-ins/Date/S15.9.3.1_A1_T3.js @@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23) === undefined) { } var x13 = new Date(1899, 11, 31, 23); -if(typeof x13 !== "object"){ +if (typeof x13 !== "object") { $ERROR("#1.3: typeof new Date(1899, 11, 31, 23) should be 'object'"); } var x14 = new Date(1899, 11, 31, 23); -if(x14 === undefined){ +if (x14 === undefined) { $ERROR("#1.4: new Date(1899, 11, 31, 23) should not be undefined"); } @@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0) === undefined) { } var x23 = new Date(1899, 12, 1, 0); -if(typeof x23 !== "object"){ +if (typeof x23 !== "object") { $ERROR("#2.3: typeof new Date(1899, 12, 1, 0) should be 'object'"); } var x24 = new Date(1899, 12, 1, 0); -if(x24 === undefined){ +if (x24 === undefined) { $ERROR("#2.4: new Date(1899, 12, 1, 0) should not be undefined"); } @@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0) === undefined) { } var x33 = new Date(1900, 0, 1, 0); -if(typeof x33 !== "object"){ +if (typeof x33 !== "object") { $ERROR("#3.3: typeof new Date(1900, 0, 1, 0) should be 'object'"); } var x34 = new Date(1900, 0, 1, 0); -if(x34 === undefined){ +if (x34 === undefined) { $ERROR("#3.4: new Date(1900, 0, 1, 0) should not be undefined"); } @@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23) === undefined) { } var x43 = new Date(1969, 11, 31, 23); -if(typeof x43 !== "object"){ +if (typeof x43 !== "object") { $ERROR("#4.3: typeof new Date(1969, 11, 31, 23) should be 'object'"); } var x44 = new Date(1969, 11, 31, 23); -if(x44 === undefined){ +if (x44 === undefined) { $ERROR("#4.4: new Date(1969, 11, 31, 23) should not be undefined"); } @@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0) === undefined) { } var x53 = new Date(1969, 12, 1, 0); -if(typeof x53 !== "object"){ +if (typeof x53 !== "object") { $ERROR("#5.3: typeof new Date(1969, 12, 1, 0) should be 'object'"); } var x54 = new Date(1969, 12, 1, 0); -if(x54 === undefined){ +if (x54 === undefined) { $ERROR("#5.4: new Date(1969, 12, 1, 0) should not be undefined"); } @@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0) === undefined) { } var x63 = new Date(1970, 0, 1, 0); -if(typeof x63 !== "object"){ +if (typeof x63 !== "object") { $ERROR("#6.3: typeof new Date(1970, 0, 1, 0) should be 'object'"); } var x64 = new Date(1970, 0, 1, 0); -if(x64 === undefined){ +if (x64 === undefined) { $ERROR("#6.4: new Date(1970, 0, 1, 0) should not be undefined"); } @@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23) === undefined) { } var x73 = new Date(1999, 11, 31, 23); -if(typeof x73 !== "object"){ +if (typeof x73 !== "object") { $ERROR("#7.3: typeof new Date(1999, 11, 31, 23) should be 'object'"); } var x74 = new Date(1999, 11, 31, 23); -if(x74 === undefined){ +if (x74 === undefined) { $ERROR("#7.4: new Date(1999, 11, 31, 23) should not be undefined"); } @@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0) === undefined) { } var x83 = new Date(1999, 12, 1, 0); -if(typeof x83 !== "object"){ +if (typeof x83 !== "object") { $ERROR("#8.3: typeof new Date(1999, 12, 1, 0) should be 'object'"); } var x84 = new Date(1999, 12, 1, 0); -if(x84 === undefined){ +if (x84 === undefined) { $ERROR("#8.4: new Date(1999, 12, 1, 0) should not be undefined"); } @@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0) === undefined) { } var x93 = new Date(2000, 0, 1, 0); -if(typeof x93 !== "object"){ +if (typeof x93 !== "object") { $ERROR("#9.3: typeof new Date(2000, 0, 1, 0) should be 'object'"); } var x94 = new Date(2000, 0, 1, 0); -if(x94 === undefined){ +if (x94 === undefined) { $ERROR("#9.4: new Date(2000, 0, 1, 0) should not be undefined"); } @@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23) === undefined) { } var x103 = new Date(2099, 11, 31, 23); -if(typeof x103 !== "object"){ +if (typeof x103 !== "object") { $ERROR("#10.3: typeof new Date(2099, 11, 31, 23) should be 'object'"); } var x104 = new Date(2099, 11, 31, 23); -if(x104 === undefined){ +if (x104 === undefined) { $ERROR("#10.4: new Date(2099, 11, 31, 23) should not be undefined"); } @@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0) === undefined) { } var x113 = new Date(2099, 12, 1, 0); -if(typeof x113 !== "object"){ +if (typeof x113 !== "object") { $ERROR("#11.3: typeof new Date(2099, 12, 1, 0) should be 'object'"); } var x114 = new Date(2099, 12, 1, 0); -if(x114 === undefined){ +if (x114 === undefined) { $ERROR("#11.4: new Date(2099, 12, 1, 0) should not be undefined"); } @@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0) === undefined) { } var x123 = new Date(2100, 0, 1, 0); -if(typeof x123 !== "object"){ +if (typeof x123 !== "object") { $ERROR("#12.3: typeof new Date(2100, 0, 1, 0) should be 'object'"); } var x124 = new Date(2100, 0, 1, 0); -if(x124 === undefined){ +if (x124 === undefined) { $ERROR("#12.4: new Date(2100, 0, 1, 0) should not be undefined"); } diff --git a/test/built-ins/Date/S15.9.3.1_A1_T4.js b/test/built-ins/Date/S15.9.3.1_A1_T4.js index 086ed9a6ca919a1f152661109ff0d0b96630e67f..ef574b965103c77fe1f54743cd8c9d52dd3dc179 100644 --- a/test/built-ins/Date/S15.9.3.1_A1_T4.js +++ b/test/built-ins/Date/S15.9.3.1_A1_T4.js @@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59) === undefined) { } var x13 = new Date(1899, 11, 31, 23, 59); -if(typeof x13 !== "object"){ +if (typeof x13 !== "object") { $ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59) should be 'object'"); } var x14 = new Date(1899, 11, 31, 23, 59); -if(x14 === undefined){ +if (x14 === undefined) { $ERROR("#1.4: new Date(1899, 11, 31, 23, 59) should not be undefined"); } @@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0) === undefined) { } var x23 = new Date(1899, 12, 1, 0, 0); -if(typeof x23 !== "object"){ +if (typeof x23 !== "object") { $ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0) should be 'object'"); } var x24 = new Date(1899, 12, 1, 0, 0); -if(x24 === undefined){ +if (x24 === undefined) { $ERROR("#2.4: new Date(1899, 12, 1, 0, 0) should not be undefined"); } @@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0) === undefined) { } var x33 = new Date(1900, 0, 1, 0, 0); -if(typeof x33 !== "object"){ +if (typeof x33 !== "object") { $ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0) should be 'object'"); } var x34 = new Date(1900, 0, 1, 0, 0); -if(x34 === undefined){ +if (x34 === undefined) { $ERROR("#3.4: new Date(1900, 0, 1, 0, 0) should not be undefined"); } @@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59) === undefined) { } var x43 = new Date(1969, 11, 31, 23, 59); -if(typeof x43 !== "object"){ +if (typeof x43 !== "object") { $ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59) should be 'object'"); } var x44 = new Date(1969, 11, 31, 23, 59); -if(x44 === undefined){ +if (x44 === undefined) { $ERROR("#4.4: new Date(1969, 11, 31, 23, 59) should not be undefined"); } @@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0) === undefined) { } var x53 = new Date(1969, 12, 1, 0, 0); -if(typeof x53 !== "object"){ +if (typeof x53 !== "object") { $ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0) should be 'object'"); } var x54 = new Date(1969, 12, 1, 0, 0); -if(x54 === undefined){ +if (x54 === undefined) { $ERROR("#5.4: new Date(1969, 12, 1, 0, 0) should not be undefined"); } @@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0) === undefined) { } var x63 = new Date(1970, 0, 1, 0, 0); -if(typeof x63 !== "object"){ +if (typeof x63 !== "object") { $ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0) should be 'object'"); } var x64 = new Date(1970, 0, 1, 0, 0); -if(x64 === undefined){ +if (x64 === undefined) { $ERROR("#6.4: new Date(1970, 0, 1, 0, 0) should not be undefined"); } @@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59) === undefined) { } var x73 = new Date(1999, 11, 31, 23, 59); -if(typeof x73 !== "object"){ +if (typeof x73 !== "object") { $ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59) should be 'object'"); } var x74 = new Date(1999, 11, 31, 23, 59); -if(x74 === undefined){ +if (x74 === undefined) { $ERROR("#7.4: new Date(1999, 11, 31, 23, 59) should not be undefined"); } @@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0) === undefined) { } var x83 = new Date(1999, 12, 1, 0, 0); -if(typeof x83 !== "object"){ +if (typeof x83 !== "object") { $ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0) should be 'object'"); } var x84 = new Date(1999, 12, 1, 0, 0); -if(x84 === undefined){ +if (x84 === undefined) { $ERROR("#8.4: new Date(1999, 12, 1, 0, 0) should not be undefined"); } @@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0) === undefined) { } var x93 = new Date(2000, 0, 1, 0, 0); -if(typeof x93 !== "object"){ +if (typeof x93 !== "object") { $ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0) should be 'object'"); } var x94 = new Date(2000, 0, 1, 0, 0); -if(x94 === undefined){ +if (x94 === undefined) { $ERROR("#9.4: new Date(2000, 0, 1, 0, 0) should not be undefined"); } @@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59) === undefined) { } var x103 = new Date(2099, 11, 31, 23, 59); -if(typeof x103 !== "object"){ +if (typeof x103 !== "object") { $ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59) should be 'object'"); } var x104 = new Date(2099, 11, 31, 23, 59); -if(x104 === undefined){ +if (x104 === undefined) { $ERROR("#10.4: new Date(2099, 11, 31, 23, 59) should not be undefined"); } @@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0) === undefined) { } var x113 = new Date(2099, 12, 1, 0, 0); -if(typeof x113 !== "object"){ +if (typeof x113 !== "object") { $ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0) should be 'object'"); } var x114 = new Date(2099, 12, 1, 0, 0); -if(x114 === undefined){ +if (x114 === undefined) { $ERROR("#11.4: new Date(2099, 12, 1, 0, 0) should not be undefined"); } @@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0) === undefined) { } var x123 = new Date(2100, 0, 1, 0, 0); -if(typeof x123 !== "object"){ +if (typeof x123 !== "object") { $ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0) should be 'object'"); } var x124 = new Date(2100, 0, 1, 0, 0); -if(x124 === undefined){ +if (x124 === undefined) { $ERROR("#12.4: new Date(2100, 0, 1, 0, 0) should not be undefined"); } diff --git a/test/built-ins/Date/S15.9.3.1_A1_T5.js b/test/built-ins/Date/S15.9.3.1_A1_T5.js index 6a6ed02fdf44b97445e662bbcbe8398db68c1329..0f1d0df2c82917e13b2f2b000a1497a9ed1ae4d6 100644 --- a/test/built-ins/Date/S15.9.3.1_A1_T5.js +++ b/test/built-ins/Date/S15.9.3.1_A1_T5.js @@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59, 59) === undefined) { } var x13 = new Date(1899, 11, 31, 23, 59, 59); -if(typeof x13 !== "object"){ +if (typeof x13 !== "object") { $ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59) should be 'object'"); } var x14 = new Date(1899, 11, 31, 23, 59, 59); -if(x14 === undefined){ +if (x14 === undefined) { $ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59) should not be undefined"); } @@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0, 0) === undefined) { } var x23 = new Date(1899, 12, 1, 0, 0, 0); -if(typeof x23 !== "object"){ +if (typeof x23 !== "object") { $ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0) should be 'object'"); } var x24 = new Date(1899, 12, 1, 0, 0, 0); -if(x24 === undefined){ +if (x24 === undefined) { $ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0) should not be undefined"); } @@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0, 0) === undefined) { } var x33 = new Date(1900, 0, 1, 0, 0, 0); -if(typeof x33 !== "object"){ +if (typeof x33 !== "object") { $ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0) should be 'object'"); } var x34 = new Date(1900, 0, 1, 0, 0, 0); -if(x34 === undefined){ +if (x34 === undefined) { $ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0) should not be undefined"); } @@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59, 59) === undefined) { } var x43 = new Date(1969, 11, 31, 23, 59, 59); -if(typeof x43 !== "object"){ +if (typeof x43 !== "object") { $ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59) should be 'object'"); } var x44 = new Date(1969, 11, 31, 23, 59, 59); -if(x44 === undefined){ +if (x44 === undefined) { $ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59) should not be undefined"); } @@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0, 0) === undefined) { } var x53 = new Date(1969, 12, 1, 0, 0, 0); -if(typeof x53 !== "object"){ +if (typeof x53 !== "object") { $ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0) should be 'object'"); } var x54 = new Date(1969, 12, 1, 0, 0, 0); -if(x54 === undefined){ +if (x54 === undefined) { $ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0) should not be undefined"); } @@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0, 0) === undefined) { } var x63 = new Date(1970, 0, 1, 0, 0, 0); -if(typeof x63 !== "object"){ +if (typeof x63 !== "object") { $ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0) should be 'object'"); } var x64 = new Date(1970, 0, 1, 0, 0, 0); -if(x64 === undefined){ +if (x64 === undefined) { $ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0) should not be undefined"); } @@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59, 59) === undefined) { } var x73 = new Date(1999, 11, 31, 23, 59, 59); -if(typeof x73 !== "object"){ +if (typeof x73 !== "object") { $ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59) should be 'object'"); } var x74 = new Date(1999, 11, 31, 23, 59, 59); -if(x74 === undefined){ +if (x74 === undefined) { $ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59) should not be undefined"); } @@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0, 0) === undefined) { } var x83 = new Date(1999, 12, 1, 0, 0, 0); -if(typeof x83 !== "object"){ +if (typeof x83 !== "object") { $ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0) should be 'object'"); } var x84 = new Date(1999, 12, 1, 0, 0, 0); -if(x84 === undefined){ +if (x84 === undefined) { $ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0) should not be undefined"); } @@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0, 0) === undefined) { } var x93 = new Date(2000, 0, 1, 0, 0, 0); -if(typeof x93 !== "object"){ +if (typeof x93 !== "object") { $ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0) should be 'object'"); } var x94 = new Date(2000, 0, 1, 0, 0, 0); -if(x94 === undefined){ +if (x94 === undefined) { $ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0) should not be undefined"); } @@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59, 59) === undefined) { } var x103 = new Date(2099, 11, 31, 23, 59, 59); -if(typeof x103 !== "object"){ +if (typeof x103 !== "object") { $ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59) should be 'object'"); } var x104 = new Date(2099, 11, 31, 23, 59, 59); -if(x104 === undefined){ +if (x104 === undefined) { $ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59) should not be undefined"); } @@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0, 0) === undefined) { } var x113 = new Date(2099, 12, 1, 0, 0, 0); -if(typeof x113 !== "object"){ +if (typeof x113 !== "object") { $ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0) should be 'object'"); } var x114 = new Date(2099, 12, 1, 0, 0, 0); -if(x114 === undefined){ +if (x114 === undefined) { $ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0) should not be undefined"); } @@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0, 0) === undefined) { } var x123 = new Date(2100, 0, 1, 0, 0, 0); -if(typeof x123 !== "object"){ +if (typeof x123 !== "object") { $ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0) should be 'object'"); } var x124 = new Date(2100, 0, 1, 0, 0, 0); -if(x124 === undefined){ +if (x124 === undefined) { $ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0) should not be undefined"); } diff --git a/test/built-ins/Date/S15.9.3.1_A1_T6.js b/test/built-ins/Date/S15.9.3.1_A1_T6.js index 5288bf7b977b73e0d25005e9af6233409f1281f2..dac4065f5e882627258cfb6c4cd21671f475b3d6 100644 --- a/test/built-ins/Date/S15.9.3.1_A1_T6.js +++ b/test/built-ins/Date/S15.9.3.1_A1_T6.js @@ -19,12 +19,12 @@ if (new Date(1899, 11, 31, 23, 59, 59, 999) === undefined) { } var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); -if(typeof x13 !== "object"){ +if (typeof x13 !== "object") { $ERROR("#1.3: typeof new Date(1899, 11, 31, 23, 59, 59, 999) should be 'object'"); } var x14 = new Date(1899, 11, 31, 23, 59, 59, 999); -if(x14 === undefined){ +if (x14 === undefined) { $ERROR("#1.4: new Date(1899, 11, 31, 23, 59, 59, 999) should not be undefined"); } @@ -37,12 +37,12 @@ if (new Date(1899, 12, 1, 0, 0, 0, 0) === undefined) { } var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); -if(typeof x23 !== "object"){ +if (typeof x23 !== "object") { $ERROR("#2.3: typeof new Date(1899, 12, 1, 0, 0, 0, 0) should be 'object'"); } var x24 = new Date(1899, 12, 1, 0, 0, 0, 0); -if(x24 === undefined){ +if (x24 === undefined) { $ERROR("#2.4: new Date(1899, 12, 1, 0, 0, 0, 0) should not be undefined"); } @@ -55,12 +55,12 @@ if (new Date(1900, 0, 1, 0, 0, 0, 0) === undefined) { } var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); -if(typeof x33 !== "object"){ +if (typeof x33 !== "object") { $ERROR("#3.3: typeof new Date(1900, 0, 1, 0, 0, 0, 0) should be 'object'"); } var x34 = new Date(1900, 0, 1, 0, 0, 0, 0); -if(x34 === undefined){ +if (x34 === undefined) { $ERROR("#3.4: new Date(1900, 0, 1, 0, 0, 0, 0) should not be undefined"); } @@ -73,12 +73,12 @@ if (new Date(1969, 11, 31, 23, 59, 59, 999) === undefined) { } var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); -if(typeof x43 !== "object"){ +if (typeof x43 !== "object") { $ERROR("#4.3: typeof new Date(1969, 11, 31, 23, 59, 59, 999) should be 'object'"); } var x44 = new Date(1969, 11, 31, 23, 59, 59, 999); -if(x44 === undefined){ +if (x44 === undefined) { $ERROR("#4.4: new Date(1969, 11, 31, 23, 59, 59, 999) should not be undefined"); } @@ -91,12 +91,12 @@ if (new Date(1969, 12, 1, 0, 0, 0, 0) === undefined) { } var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); -if(typeof x53 !== "object"){ +if (typeof x53 !== "object") { $ERROR("#5.3: typeof new Date(1969, 12, 1, 0, 0, 0, 0) should be 'object'"); } var x54 = new Date(1969, 12, 1, 0, 0, 0, 0); -if(x54 === undefined){ +if (x54 === undefined) { $ERROR("#5.4: new Date(1969, 12, 1, 0, 0, 0, 0) should not be undefined"); } @@ -109,12 +109,12 @@ if (new Date(1970, 0, 1, 0, 0, 0, 0) === undefined) { } var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); -if(typeof x63 !== "object"){ +if (typeof x63 !== "object") { $ERROR("#6.3: typeof new Date(1970, 0, 1, 0, 0, 0, 0) should be 'object'"); } var x64 = new Date(1970, 0, 1, 0, 0, 0, 0); -if(x64 === undefined){ +if (x64 === undefined) { $ERROR("#6.4: new Date(1970, 0, 1, 0, 0, 0, 0) should not be undefined"); } @@ -127,12 +127,12 @@ if (new Date(1999, 11, 31, 23, 59, 59, 999) === undefined) { } var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); -if(typeof x73 !== "object"){ +if (typeof x73 !== "object") { $ERROR("#7.3: typeof new Date(1999, 11, 31, 23, 59, 59, 999) should be 'object'"); } var x74 = new Date(1999, 11, 31, 23, 59, 59, 999); -if(x74 === undefined){ +if (x74 === undefined) { $ERROR("#7.4: new Date(1999, 11, 31, 23, 59, 59, 999) should not be undefined"); } @@ -145,12 +145,12 @@ if (new Date(1999, 12, 1, 0, 0, 0, 0) === undefined) { } var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); -if(typeof x83 !== "object"){ +if (typeof x83 !== "object") { $ERROR("#8.3: typeof new Date(1999, 12, 1, 0, 0, 0, 0) should be 'object'"); } var x84 = new Date(1999, 12, 1, 0, 0, 0, 0); -if(x84 === undefined){ +if (x84 === undefined) { $ERROR("#8.4: new Date(1999, 12, 1, 0, 0, 0, 0) should not be undefined"); } @@ -163,12 +163,12 @@ if (new Date(2000, 0, 1, 0, 0, 0, 0) === undefined) { } var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); -if(typeof x93 !== "object"){ +if (typeof x93 !== "object") { $ERROR("#9.3: typeof new Date(2000, 0, 1, 0, 0, 0, 0) should be 'object'"); } var x94 = new Date(2000, 0, 1, 0, 0, 0, 0); -if(x94 === undefined){ +if (x94 === undefined) { $ERROR("#9.4: new Date(2000, 0, 1, 0, 0, 0, 0) should not be undefined"); } @@ -181,12 +181,12 @@ if (new Date(2099, 11, 31, 23, 59, 59, 999) === undefined) { } var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); -if(typeof x103 !== "object"){ +if (typeof x103 !== "object") { $ERROR("#10.3: typeof new Date(2099, 11, 31, 23, 59, 59, 999) should be 'object'"); } var x104 = new Date(2099, 11, 31, 23, 59, 59, 999); -if(x104 === undefined){ +if (x104 === undefined) { $ERROR("#10.4: new Date(2099, 11, 31, 23, 59, 59, 999) should not be undefined"); } @@ -199,12 +199,12 @@ if (new Date(2099, 12, 1, 0, 0, 0, 0) === undefined) { } var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); -if(typeof x113 !== "object"){ +if (typeof x113 !== "object") { $ERROR("#11.3: typeof new Date(2099, 12, 1, 0, 0, 0, 0) should be 'object'"); } var x114 = new Date(2099, 12, 1, 0, 0, 0, 0); -if(x114 === undefined){ +if (x114 === undefined) { $ERROR("#11.4: new Date(2099, 12, 1, 0, 0, 0, 0) should not be undefined"); } @@ -217,11 +217,11 @@ if (new Date(2100, 0, 1, 0, 0, 0, 0) === undefined) { } var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); -if(typeof x123 !== "object"){ +if (typeof x123 !== "object") { $ERROR("#12.3: typeof new Date(2100, 0, 1, 0, 0, 0, 0) should be 'object'"); } var x124 = new Date(2100, 0, 1, 0, 0, 0, 0); -if(x124 === undefined){ +if (x124 === undefined) { $ERROR("#12.4: new Date(2100, 0, 1, 0, 0, 0, 0) should not be undefined"); } diff --git a/test/built-ins/Date/S15.9.3.1_A2_T1.js b/test/built-ins/Date/S15.9.3.1_A2_T1.js index 6f31096ca0a13eb2f46c0a2d331fe262273d3ca4..cf02c44a1a8269987596f32d378be0848f3e7097 100644 --- a/test/built-ins/Date/S15.9.3.1_A2_T1.js +++ b/test/built-ins/Date/S15.9.3.1_A2_T1.js @@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) { } var x13 = new Date(1899, 11); -if(Date.prototype !== x13.constructor.prototype){ +if (Date.prototype !== x13.constructor.prototype) { $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); } @@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) { } var x23 = new Date(1899, 12); -if(Date.prototype !== x23.constructor.prototype){ +if (Date.prototype !== x23.constructor.prototype) { $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); } @@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) { } var x33 = new Date(1900, 0); -if(Date.prototype !== x33.constructor.prototype){ +if (Date.prototype !== x33.constructor.prototype) { $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); } @@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) { } var x43 = new Date(1969, 11); -if(Date.prototype !== x43.constructor.prototype){ +if (Date.prototype !== x43.constructor.prototype) { $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); } @@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) { } var x53 = new Date(1969, 12); -if(Date.prototype !== x53.constructor.prototype){ +if (Date.prototype !== x53.constructor.prototype) { $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); } @@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) { } var x63 = new Date(1970, 0); -if(Date.prototype !== x63.constructor.prototype){ +if (Date.prototype !== x63.constructor.prototype) { $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); } @@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) { } var x73 = new Date(1999, 11); -if(Date.prototype !== x73.constructor.prototype){ +if (Date.prototype !== x73.constructor.prototype) { $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); } @@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) { } var x83 = new Date(1999, 12); -if(Date.prototype !== x83.constructor.prototype){ +if (Date.prototype !== x83.constructor.prototype) { $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); } @@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) { } var x93 = new Date(2000, 0); -if(Date.prototype !== x93.constructor.prototype){ +if (Date.prototype !== x93.constructor.prototype) { $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); } @@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) { } var x103 = new Date(2099, 11); -if(Date.prototype !== x103.constructor.prototype){ +if (Date.prototype !== x103.constructor.prototype) { $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); } @@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) { } var x113 = new Date(2099, 12); -if(Date.prototype !== x113.constructor.prototype){ +if (Date.prototype !== x113.constructor.prototype) { $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); } @@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) { } var x123 = new Date(2100, 0); -if(Date.prototype !== x123.constructor.prototype){ +if (Date.prototype !== x123.constructor.prototype) { $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.3.1_A2_T2.js b/test/built-ins/Date/S15.9.3.1_A2_T2.js index d94064962fc46828178ce717ea7046023413eeb0..b10c645855ccf83f76efa3d1fda9c84787f50350 100644 --- a/test/built-ins/Date/S15.9.3.1_A2_T2.js +++ b/test/built-ins/Date/S15.9.3.1_A2_T2.js @@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) { } var x13 = new Date(1899, 11, 31); -if(Date.prototype !== x13.constructor.prototype){ +if (Date.prototype !== x13.constructor.prototype) { $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); } @@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) { } var x23 = new Date(1899, 12, 1); -if(Date.prototype !== x23.constructor.prototype){ +if (Date.prototype !== x23.constructor.prototype) { $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); } @@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) { } var x33 = new Date(1900, 0, 1); -if(Date.prototype !== x33.constructor.prototype){ +if (Date.prototype !== x33.constructor.prototype) { $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); } @@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) { } var x43 = new Date(1969, 11, 31); -if(Date.prototype !== x43.constructor.prototype){ +if (Date.prototype !== x43.constructor.prototype) { $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); } @@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) { } var x53 = new Date(1969, 12, 1); -if(Date.prototype !== x53.constructor.prototype){ +if (Date.prototype !== x53.constructor.prototype) { $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); } @@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) { } var x63 = new Date(1970, 0, 1); -if(Date.prototype !== x63.constructor.prototype){ +if (Date.prototype !== x63.constructor.prototype) { $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); } @@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) { } var x73 = new Date(1999, 11, 31); -if(Date.prototype !== x73.constructor.prototype){ +if (Date.prototype !== x73.constructor.prototype) { $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); } @@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) { } var x83 = new Date(1999, 12, 1); -if(Date.prototype !== x83.constructor.prototype){ +if (Date.prototype !== x83.constructor.prototype) { $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); } @@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) { } var x93 = new Date(2000, 0, 1); -if(Date.prototype !== x93.constructor.prototype){ +if (Date.prototype !== x93.constructor.prototype) { $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); } @@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) { } var x103 = new Date(2099, 11, 31); -if(Date.prototype !== x103.constructor.prototype){ +if (Date.prototype !== x103.constructor.prototype) { $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); } @@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) { } var x113 = new Date(2099, 12, 1); -if(Date.prototype !== x113.constructor.prototype){ +if (Date.prototype !== x113.constructor.prototype) { $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); } @@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) { } var x123 = new Date(2100, 0, 1); -if(Date.prototype !== x123.constructor.prototype){ +if (Date.prototype !== x123.constructor.prototype) { $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.3.1_A2_T3.js b/test/built-ins/Date/S15.9.3.1_A2_T3.js index cf4ed45a9b5ec01bddc328bf3b3ca7a591f62f09..bb2848b632c0e902ecb4c24c7ba2a40979c5c4df 100644 --- a/test/built-ins/Date/S15.9.3.1_A2_T3.js +++ b/test/built-ins/Date/S15.9.3.1_A2_T3.js @@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) { } var x13 = new Date(1899, 11, 31, 23); -if(Date.prototype !== x13.constructor.prototype){ +if (Date.prototype !== x13.constructor.prototype) { $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); } @@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) { } var x23 = new Date(1899, 12, 1, 0); -if(Date.prototype !== x23.constructor.prototype){ +if (Date.prototype !== x23.constructor.prototype) { $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); } @@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) { } var x33 = new Date(1900, 0, 1, 0); -if(Date.prototype !== x33.constructor.prototype){ +if (Date.prototype !== x33.constructor.prototype) { $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); } @@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) { } var x43 = new Date(1969, 11, 31, 23); -if(Date.prototype !== x43.constructor.prototype){ +if (Date.prototype !== x43.constructor.prototype) { $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); } @@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) { } var x53 = new Date(1969, 12, 1, 0); -if(Date.prototype !== x53.constructor.prototype){ +if (Date.prototype !== x53.constructor.prototype) { $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); } @@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) { } var x63 = new Date(1970, 0, 1, 0); -if(Date.prototype !== x63.constructor.prototype){ +if (Date.prototype !== x63.constructor.prototype) { $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); } @@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) { } var x73 = new Date(1999, 11, 31, 23); -if(Date.prototype !== x73.constructor.prototype){ +if (Date.prototype !== x73.constructor.prototype) { $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); } @@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) { } var x83 = new Date(1999, 12, 1, 0); -if(Date.prototype !== x83.constructor.prototype){ +if (Date.prototype !== x83.constructor.prototype) { $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); } @@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) { } var x93 = new Date(2000, 0, 1, 0); -if(Date.prototype !== x93.constructor.prototype){ +if (Date.prototype !== x93.constructor.prototype) { $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); } @@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) { } var x103 = new Date(2099, 11, 31, 23); -if(Date.prototype !== x103.constructor.prototype){ +if (Date.prototype !== x103.constructor.prototype) { $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); } @@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) { } var x113 = new Date(2099, 12, 1, 0); -if(Date.prototype !== x113.constructor.prototype){ +if (Date.prototype !== x113.constructor.prototype) { $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); } @@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) { } var x123 = new Date(2100, 0, 1, 0); -if(Date.prototype !== x123.constructor.prototype){ +if (Date.prototype !== x123.constructor.prototype) { $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.3.1_A2_T4.js b/test/built-ins/Date/S15.9.3.1_A2_T4.js index 1b2c23946ac27e8316b46d76ef36ba52ae2c7d87..b1549d400bba8c98879f08eab75862ac12f8d7d0 100644 --- a/test/built-ins/Date/S15.9.3.1_A2_T4.js +++ b/test/built-ins/Date/S15.9.3.1_A2_T4.js @@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) { } var x13 = new Date(1899, 11, 31, 23, 59); -if(Date.prototype !== x13.constructor.prototype){ +if (Date.prototype !== x13.constructor.prototype) { $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); } @@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) { } var x23 = new Date(1899, 12, 1, 0, 0); -if(Date.prototype !== x23.constructor.prototype){ +if (Date.prototype !== x23.constructor.prototype) { $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); } @@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) { } var x33 = new Date(1900, 0, 1, 0, 0); -if(Date.prototype !== x33.constructor.prototype){ +if (Date.prototype !== x33.constructor.prototype) { $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); } @@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) { } var x43 = new Date(1969, 11, 31, 23, 59); -if(Date.prototype !== x43.constructor.prototype){ +if (Date.prototype !== x43.constructor.prototype) { $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); } @@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) { } var x53 = new Date(1969, 12, 1, 0, 0); -if(Date.prototype !== x53.constructor.prototype){ +if (Date.prototype !== x53.constructor.prototype) { $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); } @@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) { } var x63 = new Date(1970, 0, 1, 0, 0); -if(Date.prototype !== x63.constructor.prototype){ +if (Date.prototype !== x63.constructor.prototype) { $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); } @@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) { } var x73 = new Date(1999, 11, 31, 23, 59); -if(Date.prototype !== x73.constructor.prototype){ +if (Date.prototype !== x73.constructor.prototype) { $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); } @@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) { } var x83 = new Date(1999, 12, 1, 0, 0); -if(Date.prototype !== x83.constructor.prototype){ +if (Date.prototype !== x83.constructor.prototype) { $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); } @@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) { } var x93 = new Date(2000, 0, 1, 0, 0); -if(Date.prototype !== x93.constructor.prototype){ +if (Date.prototype !== x93.constructor.prototype) { $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); } @@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) { } var x103 = new Date(2099, 11, 31, 23, 59); -if(Date.prototype !== x103.constructor.prototype){ +if (Date.prototype !== x103.constructor.prototype) { $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); } @@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) { } var x113 = new Date(2099, 12, 1, 0, 0); -if(Date.prototype !== x113.constructor.prototype){ +if (Date.prototype !== x113.constructor.prototype) { $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); } @@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) { } var x123 = new Date(2100, 0, 1, 0, 0); -if(Date.prototype !== x123.constructor.prototype){ +if (Date.prototype !== x123.constructor.prototype) { $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.3.1_A2_T5.js b/test/built-ins/Date/S15.9.3.1_A2_T5.js index d1b0a43fa5be8429e8f41e2053567aa4a8777653..8b34dd84b448a23d682ccce5aec23044a429d8dd 100644 --- a/test/built-ins/Date/S15.9.3.1_A2_T5.js +++ b/test/built-ins/Date/S15.9.3.1_A2_T5.js @@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) { } var x13 = new Date(1899, 11, 31, 23, 59, 59); -if(Date.prototype !== x13.constructor.prototype){ +if (Date.prototype !== x13.constructor.prototype) { $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); } @@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) { } var x23 = new Date(1899, 12, 1, 0, 0, 0); -if(Date.prototype !== x23.constructor.prototype){ +if (Date.prototype !== x23.constructor.prototype) { $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); } @@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) { } var x33 = new Date(1900, 0, 1, 0, 0, 0); -if(Date.prototype !== x33.constructor.prototype){ +if (Date.prototype !== x33.constructor.prototype) { $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); } @@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) { } var x43 = new Date(1969, 11, 31, 23, 59, 59); -if(Date.prototype !== x43.constructor.prototype){ +if (Date.prototype !== x43.constructor.prototype) { $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); } @@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) { } var x53 = new Date(1969, 12, 1, 0, 0, 0); -if(Date.prototype !== x53.constructor.prototype){ +if (Date.prototype !== x53.constructor.prototype) { $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); } @@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) { } var x63 = new Date(1970, 0, 1, 0, 0, 0); -if(Date.prototype !== x63.constructor.prototype){ +if (Date.prototype !== x63.constructor.prototype) { $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); } @@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) { } var x73 = new Date(1999, 11, 31, 23, 59, 59); -if(Date.prototype !== x73.constructor.prototype){ +if (Date.prototype !== x73.constructor.prototype) { $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); } @@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) { } var x83 = new Date(1999, 12, 1, 0, 0, 0); -if(Date.prototype !== x83.constructor.prototype){ +if (Date.prototype !== x83.constructor.prototype) { $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); } @@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) { } var x93 = new Date(2000, 0, 1, 0, 0, 0); -if(Date.prototype !== x93.constructor.prototype){ +if (Date.prototype !== x93.constructor.prototype) { $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); } @@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) { } var x103 = new Date(2099, 11, 31, 23, 59, 59); -if(Date.prototype !== x103.constructor.prototype){ +if (Date.prototype !== x103.constructor.prototype) { $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); } @@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) { } var x113 = new Date(2099, 12, 1, 0, 0, 0); -if(Date.prototype !== x113.constructor.prototype){ +if (Date.prototype !== x113.constructor.prototype) { $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); } @@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) { } var x123 = new Date(2100, 0, 1, 0, 0, 0); -if(Date.prototype !== x123.constructor.prototype){ +if (Date.prototype !== x123.constructor.prototype) { $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.3.1_A2_T6.js b/test/built-ins/Date/S15.9.3.1_A2_T6.js index b3ff5fc8cc231e7c657adfabb21cba32b7bef861..8fde48a2fa379035464efbb6aaa9e9689af0e36b 100644 --- a/test/built-ins/Date/S15.9.3.1_A2_T6.js +++ b/test/built-ins/Date/S15.9.3.1_A2_T6.js @@ -22,7 +22,7 @@ if (!Date.prototype.isPrototypeOf(x12)) { } var x13 = new Date(1899, 11, 31, 23, 59, 59, 999); -if(Date.prototype !== x13.constructor.prototype){ +if (Date.prototype !== x13.constructor.prototype) { $ERROR("#1.3: Date.prototype === x13.constructor.prototype"); } @@ -37,7 +37,7 @@ if (!Date.prototype.isPrototypeOf(x22)) { } var x23 = new Date(1899, 12, 1, 0, 0, 0, 0); -if(Date.prototype !== x23.constructor.prototype){ +if (Date.prototype !== x23.constructor.prototype) { $ERROR("#2.3: Date.prototype === x23.constructor.prototype"); } @@ -52,7 +52,7 @@ if (!Date.prototype.isPrototypeOf(x32)) { } var x33 = new Date(1900, 0, 1, 0, 0, 0, 0); -if(Date.prototype !== x33.constructor.prototype){ +if (Date.prototype !== x33.constructor.prototype) { $ERROR("#3.3: Date.prototype === x33.constructor.prototype"); } @@ -67,7 +67,7 @@ if (!Date.prototype.isPrototypeOf(x42)) { } var x43 = new Date(1969, 11, 31, 23, 59, 59, 999); -if(Date.prototype !== x43.constructor.prototype){ +if (Date.prototype !== x43.constructor.prototype) { $ERROR("#4.3: Date.prototype === x43.constructor.prototype"); } @@ -82,7 +82,7 @@ if (!Date.prototype.isPrototypeOf(x52)) { } var x53 = new Date(1969, 12, 1, 0, 0, 0, 0); -if(Date.prototype !== x53.constructor.prototype){ +if (Date.prototype !== x53.constructor.prototype) { $ERROR("#5.3: Date.prototype === x53.constructor.prototype"); } @@ -97,7 +97,7 @@ if (!Date.prototype.isPrototypeOf(x62)) { } var x63 = new Date(1970, 0, 1, 0, 0, 0, 0); -if(Date.prototype !== x63.constructor.prototype){ +if (Date.prototype !== x63.constructor.prototype) { $ERROR("#6.3: Date.prototype === x63.constructor.prototype"); } @@ -112,7 +112,7 @@ if (!Date.prototype.isPrototypeOf(x72)) { } var x73 = new Date(1999, 11, 31, 23, 59, 59, 999); -if(Date.prototype !== x73.constructor.prototype){ +if (Date.prototype !== x73.constructor.prototype) { $ERROR("#7.3: Date.prototype === x73.constructor.prototype"); } @@ -127,7 +127,7 @@ if (!Date.prototype.isPrototypeOf(x82)) { } var x83 = new Date(1999, 12, 1, 0, 0, 0, 0); -if(Date.prototype !== x83.constructor.prototype){ +if (Date.prototype !== x83.constructor.prototype) { $ERROR("#8.3: Date.prototype === x83.constructor.prototype"); } @@ -142,7 +142,7 @@ if (!Date.prototype.isPrototypeOf(x92)) { } var x93 = new Date(2000, 0, 1, 0, 0, 0, 0); -if(Date.prototype !== x93.constructor.prototype){ +if (Date.prototype !== x93.constructor.prototype) { $ERROR("#9.3: Date.prototype === x93.constructor.prototype"); } @@ -157,7 +157,7 @@ if (!Date.prototype.isPrototypeOf(x102)) { } var x103 = new Date(2099, 11, 31, 23, 59, 59, 999); -if(Date.prototype !== x103.constructor.prototype){ +if (Date.prototype !== x103.constructor.prototype) { $ERROR("#10.3: Date.prototype === x103.constructor.prototype"); } @@ -172,7 +172,7 @@ if (!Date.prototype.isPrototypeOf(x112)) { } var x113 = new Date(2099, 12, 1, 0, 0, 0, 0); -if(Date.prototype !== x113.constructor.prototype){ +if (Date.prototype !== x113.constructor.prototype) { $ERROR("#11.3: Date.prototype === x113.constructor.prototype"); } @@ -187,6 +187,6 @@ if (!Date.prototype.isPrototypeOf(x122)) { } var x123 = new Date(2100, 0, 1, 0, 0, 0, 0); -if(Date.prototype !== x123.constructor.prototype){ +if (Date.prototype !== x123.constructor.prototype) { $ERROR("#12.3: Date.prototype === x123.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T1.js b/test/built-ins/Date/S15.9.3.1_A4_T1.js index 6f7174902b61c9d35098ebdd74b131ac3ad38995..890ce66430e3dd764cf734dff7d9499f62d96e63 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T1.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T1.js @@ -17,30 +17,34 @@ es5id: 15.9.3.1_A4_T1 description: 2 arguments, (year, month) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T2.js b/test/built-ins/Date/S15.9.3.1_A4_T2.js index 3dbe78ff75af97e6f02cac4079ad0f4b5d102b02..bc3fc250374fd9bd98d18389c410117124db4526 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T2.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T2.js @@ -17,41 +17,45 @@ es5id: 15.9.3.1_A4_T2 description: 3 arguments, (year, month, date) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T3.js b/test/built-ins/Date/S15.9.3.1_A4_T3.js index ff59c4e69b9e02ea648350c78dca429f73ef3ce2..2280edf5df4af5c195fbb5a16f64f7153be000d9 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T3.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T3.js @@ -17,52 +17,56 @@ es5id: 15.9.3.1_A4_T3 description: 4 arguments, (year, month, date, hours) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3), new myObj(4)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 -try{ +try { var x4 = new Date(1, 2, 3, new myObj(4)); $ERROR("#4: The 4th step is calling ToNumber(hours)"); } -catch(e){ - if(e !== "valueOf-4"){ +catch (e) { + if (e !== "valueOf-4") { $ERROR("#4: The 4th step is calling ToNumber(hours)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T4.js b/test/built-ins/Date/S15.9.3.1_A4_T4.js index c9377d5993e06845be1fbafefa1d496090be88cb..49a0d15d2df79b2185e37ea312594d2c1b6875c7 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T4.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T4.js @@ -17,63 +17,67 @@ es5id: 15.9.3.1_A4_T4 description: 5 arguments, (year, month, date, hours, minutes) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 -try{ +try { var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5)); $ERROR("#4: The 4th step is calling ToNumber(hours)"); } -catch(e){ - if(e !== "valueOf-4"){ +catch (e) { + if (e !== "valueOf-4") { $ERROR("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 -try{ +try { var x5 = new Date(1, 2, 3, 4, new myObj(5)); $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } -catch(e){ - if(e !== "valueOf-5"){ +catch (e) { + if (e !== "valueOf-5") { $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T5.js b/test/built-ins/Date/S15.9.3.1_A4_T5.js index 646a93696fd1d60e4cfd452317702ed41a561b41..f7bf7f204203f733c3168cc4bc3a712ade235700 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T5.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T5.js @@ -17,74 +17,78 @@ es5id: 15.9.3.1_A4_T5 description: 6 arguments, (year, month, date, hours, minutes, seconds) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 -try{ +try { var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6)); $ERROR("#4: The 4th step is calling ToNumber(hours)"); } -catch(e){ - if(e !== "valueOf-4"){ +catch (e) { + if (e !== "valueOf-4") { $ERROR("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 -try{ +try { var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6)); $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } -catch(e){ - if(e !== "valueOf-5"){ +catch (e) { + if (e !== "valueOf-5") { $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } } //CHECK#6 -try{ +try { var x6 = new Date(1, 2, 3, 4, 5, new myObj(6)); $ERROR("#6: The 6th step is calling ToNumber(seconds)"); } -catch(e){ - if(e !== "valueOf-6"){ +catch (e) { + if (e !== "valueOf-6") { $ERROR("#6: The 6th step is calling ToNumber(seconds)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T6.js b/test/built-ins/Date/S15.9.3.1_A4_T6.js index 16f6dedb88dd7ba916ecbea7e5f86e2901c4b469..8eebc2ec66d391d13f28e29dbe84c18870f8ff54 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T6.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T6.js @@ -17,85 +17,89 @@ es5id: 15.9.3.1_A4_T6 description: 7 arguments, (year, month, date, hours, minutes, seconds, ms) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 -try{ +try { var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6), new myObj(7)); $ERROR("#4: The 4th step is calling ToNumber(hours)"); } -catch(e){ - if(e !== "valueOf-4"){ +catch (e) { + if (e !== "valueOf-4") { $ERROR("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 -try{ +try { var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6), new myObj(7)); $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } -catch(e){ - if(e !== "valueOf-5"){ +catch (e) { + if (e !== "valueOf-5") { $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } } //CHECK#6 -try{ +try { var x6 = new Date(1, 2, 3, 4, 5, new myObj(6), new myObj(7)); $ERROR("#6: The 6th step is calling ToNumber(seconds)"); } -catch(e){ - if(e !== "valueOf-6"){ +catch (e) { + if (e !== "valueOf-6") { $ERROR("#6: The 6th step is calling ToNumber(seconds)"); } } //CHECK#7 -try{ +try { var x7 = new Date(1, 2, 3, 4, 5, 6, new myObj(7)); $ERROR("#7: The 7th step is calling ToNumber(ms)"); } -catch(e){ - if(e !== "valueOf-7"){ +catch (e) { + if (e !== "valueOf-7") { $ERROR("#7: The 7th step is calling ToNumber(ms)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A5_T1.js b/test/built-ins/Date/S15.9.3.1_A5_T1.js index 9c98a6a640b26ead59347c29f3eca670c4b36d81..e9f2d545c614b23d1fd82b38e6ca73ff6fd1a71b 100644 --- a/test/built-ins/Date/S15.9.3.1_A5_T1.js +++ b/test/built-ins/Date/S15.9.3.1_A5_T1.js @@ -33,7 +33,7 @@ assertRelativeDateMs(new Date(1999, 11), 944006400000); assertRelativeDateMs(new Date(1999, 12), 946684800000); -assertRelativeDateMs(new Date(2000, 0), 946684800000); +assertRelativeDateMs(new Date(2000, 0), 946684800000); assertRelativeDateMs(new Date(2099, 11), 4099766400000); diff --git a/test/built-ins/Date/S15.9.3.1_A6_T1.js b/test/built-ins/Date/S15.9.3.1_A6_T1.js index 28a0f459f7beb91ba114654a5eda5465c8dd1b93..90c8ac12d701bc67e16d9880e08eefa5879749de 100644 --- a/test/built-ins/Date/S15.9.3.1_A6_T1.js +++ b/test/built-ins/Date/S15.9.3.1_A6_T1.js @@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T1 description: 2 arguments, (year, month) ---*/ -function DateValue(year, month, date, hours, minutes, seconds, ms){ +function DateValue(year, month, date, hours, minutes, seconds, ms) { return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); } diff --git a/test/built-ins/Date/S15.9.3.1_A6_T2.js b/test/built-ins/Date/S15.9.3.1_A6_T2.js index 83e35fd24537cf65db1d808c59926c717f51c05e..cc3c1a28942f116c3d02bc61c3ca9e07f345097b 100644 --- a/test/built-ins/Date/S15.9.3.1_A6_T2.js +++ b/test/built-ins/Date/S15.9.3.1_A6_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T2 description: 3 arguments, (year, month, date) ---*/ -function DateValue(year, month, date, hours, minutes, seconds, ms){ +function DateValue(year, month, date, hours, minutes, seconds, ms) { return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); } diff --git a/test/built-ins/Date/S15.9.3.1_A6_T3.js b/test/built-ins/Date/S15.9.3.1_A6_T3.js index aec94cc4063d1352b218f3f829ee8b05e2d2a91d..f7d549bb995879a37559597a8747b53df9a556ff 100644 --- a/test/built-ins/Date/S15.9.3.1_A6_T3.js +++ b/test/built-ins/Date/S15.9.3.1_A6_T3.js @@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T3 description: 4 arguments, (year, month, date, hours) ---*/ -function DateValue(year, month, date, hours, minutes, seconds, ms){ +function DateValue(year, month, date, hours, minutes, seconds, ms) { return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); } diff --git a/test/built-ins/Date/S15.9.3.1_A6_T4.js b/test/built-ins/Date/S15.9.3.1_A6_T4.js index db3d3e99074a945b5c83bd916ab160965597b24a..69d00640c312ad98821a84ca85dce24b5d1ae250 100644 --- a/test/built-ins/Date/S15.9.3.1_A6_T4.js +++ b/test/built-ins/Date/S15.9.3.1_A6_T4.js @@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T4 description: 5 arguments, (year, month, date, hours, minutes) ---*/ -function DateValue(year, month, date, hours, minutes, seconds, ms){ +function DateValue(year, month, date, hours, minutes, seconds, ms) { return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); } diff --git a/test/built-ins/Date/S15.9.3.1_A6_T5.js b/test/built-ins/Date/S15.9.3.1_A6_T5.js index e222772c24df14a828de534642f339757b36e928..ae5c324d77d699c319fd361c6390d44d255ed011 100644 --- a/test/built-ins/Date/S15.9.3.1_A6_T5.js +++ b/test/built-ins/Date/S15.9.3.1_A6_T5.js @@ -10,7 +10,7 @@ es5id: 15.9.3.1_A6_T5 description: 6 arguments, (year, month, date, hours, minutes, seconds) ---*/ -function DateValue(year, month, date, hours, minutes, seconds, ms){ +function DateValue(year, month, date, hours, minutes, seconds, ms) { return new Date(year, month, date, hours, minutes, seconds, ms).valueOf(); } diff --git a/test/built-ins/Date/S15.9.3.2_A1_T1.js b/test/built-ins/Date/S15.9.3.2_A1_T1.js index ebde6e4bd480109ea47cc03a198f418563ecba49..bd82eadd9a082b46ef9decca07127ca0270d3526 100644 --- a/test/built-ins/Date/S15.9.3.2_A1_T1.js +++ b/test/built-ins/Date/S15.9.3.2_A1_T1.js @@ -20,12 +20,12 @@ if (new Date(date_1899_end) === undefined) { } var x13 = new Date(date_1899_end); -if(typeof x13 !== "object"){ +if (typeof x13 !== "object") { $ERROR("#1.3: typeof new Date(date_1899_end) !== 'object'"); } var x14 = new Date(date_1899_end); -if(x14 === undefined){ +if (x14 === undefined) { $ERROR("#1.4: new Date(date_1899_end) !== undefined"); } @@ -38,12 +38,12 @@ if (new Date(date_1900_start) === undefined) { } var x23 = new Date(date_1900_start); -if(typeof x23 !== "object"){ +if (typeof x23 !== "object") { $ERROR("#2.3: typeof new Date(date_1900_start) !== 'object'"); } var x24 = new Date(date_1900_start); -if(x24 === undefined){ +if (x24 === undefined) { $ERROR("#2.4: new Date(date_1900_start) !== undefined"); } @@ -56,12 +56,12 @@ if (new Date(date_1969_end) === undefined) { } var x33 = new Date(date_1969_end); -if(typeof x33 !== "object"){ +if (typeof x33 !== "object") { $ERROR("#3.3: typeof new Date(date_1969_end) !== 'object'"); } var x34 = new Date(date_1969_end); -if(x34 === undefined){ +if (x34 === undefined) { $ERROR("#3.4: new Date(date_1969_end) !== undefined"); } @@ -74,12 +74,12 @@ if (new Date(date_1970_start) === undefined) { } var x43 = new Date(date_1970_start); -if(typeof x43 !== "object"){ +if (typeof x43 !== "object") { $ERROR("#4.3: typeof new Date(date_1970_start) !== 'object'"); } var x44 = new Date(date_1970_start); -if(x44 === undefined){ +if (x44 === undefined) { $ERROR("#4.4: new Date(date_1970_start) !== undefined"); } @@ -92,12 +92,12 @@ if (new Date(date_1999_end) === undefined) { } var x53 = new Date(date_1999_end); -if(typeof x53 !== "object"){ +if (typeof x53 !== "object") { $ERROR("#5.3: typeof new Date(date_1999_end) !== 'object'"); } var x54 = new Date(date_1999_end); -if(x54 === undefined){ +if (x54 === undefined) { $ERROR("#5.4: new Date(date_1999_end) !== undefined"); } @@ -110,12 +110,12 @@ if (new Date(date_2000_start) === undefined) { } var x63 = new Date(date_2000_start); -if(typeof x63 !== "object"){ +if (typeof x63 !== "object") { $ERROR("#6.3: typeof new Date(date_2000_start) !== 'object'"); } var x64 = new Date(date_2000_start); -if(x64 === undefined){ +if (x64 === undefined) { $ERROR("#6.4: new Date(date_2000_start) !== undefined"); } @@ -128,12 +128,12 @@ if (new Date(date_2099_end) === undefined) { } var x73 = new Date(date_2099_end); -if(typeof x73 !== "object"){ +if (typeof x73 !== "object") { $ERROR("#7.3: typeof new Date(date_2099_end) !== 'object'"); } var x74 = new Date(date_2099_end); -if(x74 === undefined){ +if (x74 === undefined) { $ERROR("#7.4: new Date(date_2099_end) !== undefined"); } @@ -146,11 +146,11 @@ if (new Date(date_2100_start) === undefined) { } var x83 = new Date(date_2100_start); -if(typeof x83 !== "object"){ +if (typeof x83 !== "object") { $ERROR("#8.3: typeof new Date(date_2100_start) !== 'object'"); } var x84 = new Date(date_2100_start); -if(x84 === undefined){ +if (x84 === undefined) { $ERROR("#8.4: new Date(date_2100_start) !== undefined"); } diff --git a/test/built-ins/Date/S15.9.3.2_A2_T1.js b/test/built-ins/Date/S15.9.3.2_A2_T1.js index 3cc1825c616776827984e48838a30ca0c6898247..80e2dacd8701786df893c748c15482131f3a6b6e 100644 --- a/test/built-ins/Date/S15.9.3.2_A2_T1.js +++ b/test/built-ins/Date/S15.9.3.2_A2_T1.js @@ -23,7 +23,7 @@ if (!Date.prototype.isPrototypeOf(x12)) { } var x13 = new Date(date_1899_end); -if(Date.prototype !== x13.constructor.prototype){ +if (Date.prototype !== x13.constructor.prototype) { $ERROR("#1.3: Date.prototype !== x13.constructor.prototype"); } @@ -38,7 +38,7 @@ if (!Date.prototype.isPrototypeOf(x22)) { } var x23 = new Date(date_1900_start); -if(Date.prototype !== x23.constructor.prototype){ +if (Date.prototype !== x23.constructor.prototype) { $ERROR("#2.3: Date.prototype !== x23.constructor.prototype"); } @@ -53,7 +53,7 @@ if (!Date.prototype.isPrototypeOf(x32)) { } var x33 = new Date(date_1969_end); -if(Date.prototype !== x33.constructor.prototype){ +if (Date.prototype !== x33.constructor.prototype) { $ERROR("#3.3: Date.prototype !== x33.constructor.prototype"); } @@ -68,7 +68,7 @@ if (!Date.prototype.isPrototypeOf(x42)) { } var x43 = new Date(date_1970_start); -if(Date.prototype !== x43.constructor.prototype){ +if (Date.prototype !== x43.constructor.prototype) { $ERROR("#4.3: Date.prototype !== x43.constructor.prototype"); } @@ -83,7 +83,7 @@ if (!Date.prototype.isPrototypeOf(x52)) { } var x53 = new Date(date_1999_end); -if(Date.prototype !== x53.constructor.prototype){ +if (Date.prototype !== x53.constructor.prototype) { $ERROR("#5.3: Date.prototype !== x53.constructor.prototype"); } @@ -98,7 +98,7 @@ if (!Date.prototype.isPrototypeOf(x62)) { } var x63 = new Date(date_2000_start); -if(Date.prototype !== x63.constructor.prototype){ +if (Date.prototype !== x63.constructor.prototype) { $ERROR("#6.3: Date.prototype !== x63.constructor.prototype"); } @@ -113,7 +113,7 @@ if (!Date.prototype.isPrototypeOf(x72)) { } var x73 = new Date(date_2099_end); -if(Date.prototype !== x73.constructor.prototype){ +if (Date.prototype !== x73.constructor.prototype) { $ERROR("#7.3: Date.prototype !== x73.constructor.prototype"); } @@ -128,6 +128,6 @@ if (!Date.prototype.isPrototypeOf(x82)) { } var x83 = new Date(date_2100_start); -if(Date.prototype !== x83.constructor.prototype){ +if (Date.prototype !== x83.constructor.prototype) { $ERROR("#8.3: Date.prototype !== x83.constructor.prototype"); } diff --git a/test/built-ins/Date/S15.9.4_A1.js b/test/built-ins/Date/S15.9.4_A1.js index 02b7842b7ea6ef1dc219979b5532902b77879ef8..7957670f630d48a7fd386564e6a2a400f609b6b4 100644 --- a/test/built-ins/Date/S15.9.4_A1.js +++ b/test/built-ins/Date/S15.9.4_A1.js @@ -8,6 +8,6 @@ es5id: 15.9.4_A1 description: Checking existence of the property "prototype" ---*/ -if(!Date.hasOwnProperty("prototype")){ +if (!Date.hasOwnProperty("prototype")) { $ERROR('#1: The Date constructor has the property "prototype"'); } diff --git a/test/built-ins/Date/S15.9.4_A2.js b/test/built-ins/Date/S15.9.4_A2.js index 3090a39e02d5f444e5ae0695f2542570919b1545..dd0652d8874b0801cc726538acd777e647a1ec3d 100644 --- a/test/built-ins/Date/S15.9.4_A2.js +++ b/test/built-ins/Date/S15.9.4_A2.js @@ -8,6 +8,6 @@ es5id: 15.9.4_A2 description: Checking existence of the property "parse" ---*/ -if(!Date.hasOwnProperty("parse")){ +if (!Date.hasOwnProperty("parse")) { $ERROR('#1: The Date constructor has the property "parse"'); } diff --git a/test/built-ins/Date/S15.9.4_A3.js b/test/built-ins/Date/S15.9.4_A3.js index 0c863386127888ccb6e244b63e675f866489dd8a..162bf922fb3cb32c25ed469f5f310ca5934ec81a 100644 --- a/test/built-ins/Date/S15.9.4_A3.js +++ b/test/built-ins/Date/S15.9.4_A3.js @@ -8,6 +8,6 @@ es5id: 15.9.4_A3 description: Checking existence of the property "UTC" ---*/ -if(!Date.hasOwnProperty("UTC")){ +if (!Date.hasOwnProperty("UTC")) { $ERROR('#1: The Date constructor has the property "UTC"'); } diff --git a/test/built-ins/Date/S15.9.4_A5.js b/test/built-ins/Date/S15.9.4_A5.js index 96d9b652f8116abcf391f513345fe45cf8c5b57c..066e575b0c8b19dd8075041b0165edb740ca257d 100644 --- a/test/built-ins/Date/S15.9.4_A5.js +++ b/test/built-ins/Date/S15.9.4_A5.js @@ -9,7 +9,7 @@ description: Checking Date.length property ---*/ //CHECK#1 -if (!Date.hasOwnProperty("length")){ +if (!Date.hasOwnProperty("length")) { $ERROR('#1: Date constructor has length property'); } diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js b/test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js index 8f30c29885171e9aa5781e1f501d691f8ad7ad4d..7def6880c720f62d86e24b4c62118e84feed2d58 100644 --- a/test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js +++ b/test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.UTC; -if(x === 1) +if (x === 1) Date.UTC = 2; else Date.UTC = 1; diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js b/test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js index 6a930ef7f41ee99d593b61a738cc65049d74e828..a6c590a8149481e25753bcf6546faa86c393a795 100644 --- a/test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js +++ b/test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.4.3_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.UTC === false) { +if (delete Date.UTC === false) { $ERROR('#1: The Date.UTC property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js b/test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js index af50c5f72b9cb5d0b03aac27212520ac4ca2a169..3db47612a184976333034aa8c4444ef1e4ea7a92 100644 --- a/test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js +++ b/test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js @@ -12,8 +12,8 @@ if (Date.propertyIsEnumerable('UTC')) { $ERROR('#1: The Date.UTC property has the attribute DontEnum'); } -for(var x in Date) { - if(x === "UTC") { +for (var x in Date) { + if (x === "UTC") { $ERROR('#2: The Date.UTC has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js b/test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js index 3846946cdc2c6d79d5899ccac0da2bd94b54eb2d..ced511687820c0e058f89cb26c2b0dd27ab4d5cf 100644 --- a/test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js +++ b/test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.4.3_A2_T1 description: The "length" property of the "UTC" is 7 ---*/ -if(Date.UTC.hasOwnProperty("length") !== true){ +if (Date.UTC.hasOwnProperty("length") !== true) { $ERROR('#1: The UTC has a "length" property'); } -if(Date.UTC.length !== 7){ +if (Date.UTC.length !== 7) { $ERROR('#2: The "length" property of the UTC is 7'); } diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js b/test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js index ce29d4b9dd38bf936d2a52610727c93f5ab41bef..79d0468c7449794c6bf81a334220a75b7b9ab809 100644 --- a/test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js +++ b/test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.4.3_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.UTC.length !== true) { +if (delete Date.UTC.length !== true) { $ERROR('#1: The Date.UTC.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js b/test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js index e14dccda3051e0b0a67891a9d87357d90f34387e..99fc8db1be099280be1820674e21805f8e66f5aa 100644 --- a/test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js +++ b/test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js @@ -14,8 +14,8 @@ if (Date.UTC.propertyIsEnumerable('length')) { $ERROR('#1: The Date.UTC.length property has the attribute DontEnum'); } -for(var x in Date.UTC) { - if(x === "length") { +for (var x in Date.UTC) { + if (x === "length") { $ERROR('#2: The Date.UTC.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/UTC/coercion-errors.js b/test/built-ins/Date/UTC/coercion-errors.js index bbca1753e4ba93b4b5a1d19c47ef1eaff36a94fe..ccdefb1d18c0730911e1db26c6d18df38ff2f79f 100644 --- a/test/built-ins/Date/UTC/coercion-errors.js +++ b/test/built-ins/Date/UTC/coercion-errors.js @@ -17,8 +17,16 @@ info: | 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). ---*/ -var thrower = { toString: function() { throw new Test262Error(); } }; -var counter = { toString: function() { callCount += 1; } }; +var thrower = { + toString: function() { + throw new Test262Error(); + } +}; +var counter = { + toString: function() { + callCount += 1; + } +}; var callCount = 0; assert.throws(Test262Error, function() { diff --git a/test/built-ins/Date/UTC/coercion-order.js b/test/built-ins/Date/UTC/coercion-order.js index eb1d00c5f836700e13de9bbf824a6690fcb925dc..ec0bcd940fecdf04d9667ad6fecbb710f2e41590 100644 --- a/test/built-ins/Date/UTC/coercion-order.js +++ b/test/built-ins/Date/UTC/coercion-order.js @@ -18,14 +18,49 @@ info: | ---*/ var log = ''; -var year = { toString: function() { log += 'year'; return 0; } }; -var month = { toString: function() { log += 'month'; return 0; } }; -var date = { toString: function() { log += 'date'; return 1; } }; -var hours = { toString: function() { log += 'hours'; return 0; } }; -var minutes = { toString: function() { log += 'minutes'; return 0; } }; -var seconds = { toString: function() { log += 'seconds'; return 0; } }; -var ms = { toString: function() { log += 'ms'; return 0; } }; +var year = { + toString: function() { + log += 'year'; + return 0; + } +}; +var month = { + toString: function() { + log += 'month'; + return 0; + } +}; +var date = { + toString: function() { + log += 'date'; + return 1; + } +}; +var hours = { + toString: function() { + log += 'hours'; + return 0; + } +}; +var minutes = { + toString: function() { + log += 'minutes'; + return 0; + } +}; +var seconds = { + toString: function() { + log += 'seconds'; + return 0; + } +}; +var ms = { + toString: function() { + log += 'ms'; + return 0; + } +}; -Date.UTC(year, month, date, hours,minutes, seconds, ms); +Date.UTC(year, month, date, hours, minutes, seconds, ms); assert.sameValue(log, 'yearmonthdatehoursminutessecondsms'); diff --git a/test/built-ins/Date/UTC/infinity-make-day.js b/test/built-ins/Date/UTC/infinity-make-day.js index f0362a4c0428a9c8d3962b7c05c52f144d3a1102..0fee93fd6f0e28112e00262ee11d1a55cdd2a0e7 100644 --- a/test/built-ins/Date/UTC/infinity-make-day.js +++ b/test/built-ins/Date/UTC/infinity-make-day.js @@ -25,4 +25,3 @@ assert.sameValue(Date.UTC(0, -Infinity), NaN, 'month: -Infinity'); assert.sameValue(Date.UTC(0, 0, Infinity), NaN, 'date: Infinity'); assert.sameValue(Date.UTC(0, 0, -Infinity), NaN, 'date: -Infinity'); - diff --git a/test/built-ins/Date/coercion-errors.js b/test/built-ins/Date/coercion-errors.js index 70aef638285d9903b2a90cc53aed2f27d8a45899..32f11d81554b5ea50ce01ce1670daeb5c55b72d8 100644 --- a/test/built-ins/Date/coercion-errors.js +++ b/test/built-ins/Date/coercion-errors.js @@ -21,8 +21,16 @@ info: | l. Return O. ---*/ -var thrower = { toString: function() { throw new Test262Error(); } }; -var counter = { toString: function() { callCount += 1; } }; +var thrower = { + toString: function() { + throw new Test262Error(); + } +}; +var counter = { + toString: function() { + callCount += 1; + } +}; var callCount = 0; assert.throws(Test262Error, function() { diff --git a/test/built-ins/Date/coercion-order.js b/test/built-ins/Date/coercion-order.js index f794b4d911875436dc0571ec641224ff07b8e03f..6ecba56b9d2097d17a87041d813436d9ebe1a867 100644 --- a/test/built-ins/Date/coercion-order.js +++ b/test/built-ins/Date/coercion-order.js @@ -22,14 +22,49 @@ info: | ---*/ var log = ''; -var year = { toString: function() { log += 'year'; return 0; } }; -var month = { toString: function() { log += 'month'; return 0; } }; -var date = { toString: function() { log += 'date'; return 1; } }; -var hours = { toString: function() { log += 'hours'; return 0; } }; -var minutes = { toString: function() { log += 'minutes'; return 0; } }; -var seconds = { toString: function() { log += 'seconds'; return 0; } }; -var ms = { toString: function() { log += 'ms'; return 0; } }; +var year = { + toString: function() { + log += 'year'; + return 0; + } +}; +var month = { + toString: function() { + log += 'month'; + return 0; + } +}; +var date = { + toString: function() { + log += 'date'; + return 1; + } +}; +var hours = { + toString: function() { + log += 'hours'; + return 0; + } +}; +var minutes = { + toString: function() { + log += 'minutes'; + return 0; + } +}; +var seconds = { + toString: function() { + log += 'seconds'; + return 0; + } +}; +var ms = { + toString: function() { + log += 'ms'; + return 0; + } +}; -new Date(year, month, date, hours,minutes, seconds, ms); +new Date(year, month, date, hours, minutes, seconds, ms); assert.sameValue(log, 'yearmonthdatehoursminutessecondsms'); diff --git a/test/built-ins/Date/now/15.9.4.4-0-3.js b/test/built-ins/Date/now/15.9.4.4-0-3.js index bafb8bcddec07954e89ec7ad84a7546c18c919a4..49c7ac4259eafef3db5c0d80a18b1804cfd200a7 100644 --- a/test/built-ins/Date/now/15.9.4.4-0-3.js +++ b/test/built-ins/Date/now/15.9.4.4-0-3.js @@ -7,6 +7,6 @@ es5id: 15.9.4.4-0-3 description: Date.now must exist as a function ---*/ - var fun = Date.now; +var fun = Date.now; -assert.sameValue(typeof (fun), "function", 'typeof (fun)'); +assert.sameValue(typeof(fun), "function", 'typeof (fun)'); diff --git a/test/built-ins/Date/parse/S15.9.4.2_A1_T1.js b/test/built-ins/Date/parse/S15.9.4.2_A1_T1.js index 48587d9d69f549bc9d197a90340eb0e1f76d979f..e820b95d02d7dedd61f13a46df4c197f87e37112 100644 --- a/test/built-ins/Date/parse/S15.9.4.2_A1_T1.js +++ b/test/built-ins/Date/parse/S15.9.4.2_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.parse; -if(x === 1) +if (x === 1) Date.parse = 2; else Date.parse = 1; diff --git a/test/built-ins/Date/parse/S15.9.4.2_A1_T2.js b/test/built-ins/Date/parse/S15.9.4.2_A1_T2.js index 1b7e25f8d73194ce0eb74e5c6c53fd4a6016db16..65bb436f509072fe03e243638b8fff186ce3e400 100644 --- a/test/built-ins/Date/parse/S15.9.4.2_A1_T2.js +++ b/test/built-ins/Date/parse/S15.9.4.2_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.4.2_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.parse === false) { +if (delete Date.parse === false) { $ERROR('#1: The Date.parse property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/parse/S15.9.4.2_A1_T3.js b/test/built-ins/Date/parse/S15.9.4.2_A1_T3.js index b91821807ad2f0412e9837e23f86e49ef7db37b9..28de1c49735f5ce07140568d9b37035ee76acc19 100644 --- a/test/built-ins/Date/parse/S15.9.4.2_A1_T3.js +++ b/test/built-ins/Date/parse/S15.9.4.2_A1_T3.js @@ -12,8 +12,8 @@ if (Date.propertyIsEnumerable('parse')) { $ERROR('#1: The Date.parse property has the attribute DontEnum'); } -for(var x in Date) { - if(x === "parse") { +for (var x in Date) { + if (x === "parse") { $ERROR('#2: The Date.parse has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/parse/S15.9.4.2_A2_T1.js b/test/built-ins/Date/parse/S15.9.4.2_A2_T1.js index bfec5f90878d7a0393f6df8ab422be3305c15b19..83b526abcda82acec73cfc5d62fe5858b1698954 100644 --- a/test/built-ins/Date/parse/S15.9.4.2_A2_T1.js +++ b/test/built-ins/Date/parse/S15.9.4.2_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.4.2_A2_T1 description: The "length" property of the "parse" is 1 ---*/ -if(Date.parse.hasOwnProperty("length") !== true){ +if (Date.parse.hasOwnProperty("length") !== true) { $ERROR('#1: The parse has a "length" property'); } -if(Date.parse.length !== 1){ +if (Date.parse.length !== 1) { $ERROR('#2: The "length" property of the parse is 1'); } diff --git a/test/built-ins/Date/parse/S15.9.4.2_A3_T2.js b/test/built-ins/Date/parse/S15.9.4.2_A3_T2.js index dc2af6291a678e10f7d19d67f794a6071c39e42d..50c4f3128ee75a1ea8bd850f6c0a87dcc4e9acfa 100644 --- a/test/built-ins/Date/parse/S15.9.4.2_A3_T2.js +++ b/test/built-ins/Date/parse/S15.9.4.2_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.4.2_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.parse.length !== true) { +if (delete Date.parse.length !== true) { $ERROR('#1: The Date.parse.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js b/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js index 404fbfa2511c92a4e796b88ee387b9e4c278aa1f..5e2de082f6e78f1089077c240e3255cc270396c6 100644 --- a/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js +++ b/test/built-ins/Date/parse/S15.9.4.2_A3_T3.js @@ -14,8 +14,8 @@ if (Date.parse.propertyIsEnumerable('length')) { $ERROR('#1: The Date.parse.length property has the attribute DontEnum'); } -for(var x in Date.parse) { - if(x === "length") { +for (var x in Date.parse) { + if (x === "length") { $ERROR('#2: The Date.parse.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js b/test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js index e40edd102d7e94e529c24d5b41933304295cdeda..584534f08d2a8ef4c0bcfdfab6000a7b64248f68 100644 --- a/test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js +++ b/test/built-ins/Date/prototype/S15.9.4.1_A1_T3.js @@ -14,8 +14,8 @@ if (Date.propertyIsEnumerable('prototype')) { $ERROR('#1: The Date.prototype property has the attribute DontEnum'); } -for(var x in Date) { - if(x === "prototype") { +for (var x in Date) { + if (x === "prototype") { $ERROR('#2: The Date.prototype has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/S15.9.5_A01_T1.js b/test/built-ins/Date/prototype/S15.9.5_A01_T1.js index 03fa78a01bb961add35624559735a27e6261c2fc..4e8aa39a4bec686ba586e0316f66a4a3cd1f5d48 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A01_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A01_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A01_T1 description: The Date.prototype has the property "constructor" ---*/ -if(Date.prototype.hasOwnProperty("constructor") !== true){ +if (Date.prototype.hasOwnProperty("constructor") !== true) { $ERROR('#1: The Date.prototype has the property "constructor"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A02_T1.js b/test/built-ins/Date/prototype/S15.9.5_A02_T1.js index dc4be9ce967eb45476bed0a595e410bfa4bbf8ba..2eed4f1eb324083dba54a3d93eb8fc63d2aeaea3 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A02_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A02_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A02_T1 description: The Date.prototype has the property "toString" ---*/ -if(Date.prototype.hasOwnProperty("toString") !== true){ +if (Date.prototype.hasOwnProperty("toString") !== true) { $ERROR('#1: The Date.prototype has the property "toString"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A03_T1.js b/test/built-ins/Date/prototype/S15.9.5_A03_T1.js index 9aefb6afe50d5a9b4cf83fc7799f725334bd2c39..0ee361179e52166f920f1bfcb8be3436dd3d4d08 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A03_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A03_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A03_T1 description: The Date.prototype has the property "toDateString" ---*/ -if(Date.prototype.hasOwnProperty("toDateString") !== true){ +if (Date.prototype.hasOwnProperty("toDateString") !== true) { $ERROR('#1: The Date.prototype has the property "toDateString"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A04_T1.js b/test/built-ins/Date/prototype/S15.9.5_A04_T1.js index 45f26ff7b30529d5628ccc023a7997204f716b2d..c069dc245b7f14427243858acfe4f7c3fe23e913 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A04_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A04_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A04_T1 description: The Date.prototype has the property "toTimeString" ---*/ -if(Date.prototype.hasOwnProperty("toTimeString") !== true){ +if (Date.prototype.hasOwnProperty("toTimeString") !== true) { $ERROR('#1: The Date.prototype has the property "toTimeString"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A05_T1.js b/test/built-ins/Date/prototype/S15.9.5_A05_T1.js index 748d927ddb1db36a2919454b869f0991bf9f02cf..93d0473d5f4c6c00b79027c0b9eddea811322864 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A05_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A05_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A05_T1 description: The Date.prototype has the property "toLocaleString" ---*/ -if(Date.prototype.hasOwnProperty("toLocaleString") !== true){ +if (Date.prototype.hasOwnProperty("toLocaleString") !== true) { $ERROR('#1: The Date.prototype has the property "toLocaleString"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A06_T1.js b/test/built-ins/Date/prototype/S15.9.5_A06_T1.js index 1c3a6f0fa27e350697edd4ef8276afdf3d67dfcd..03d792523b6f83e00ee04115f72b0279a6ee8f63 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A06_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A06_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A06_T1 description: The Date.prototype has the property "toLocaleDateString" ---*/ -if(Date.prototype.hasOwnProperty("toLocaleDateString") !== true){ +if (Date.prototype.hasOwnProperty("toLocaleDateString") !== true) { $ERROR('#1: The Date.prototype has the property "toLocaleDateString"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A07_T1.js b/test/built-ins/Date/prototype/S15.9.5_A07_T1.js index eb79567f32c52200a7a8c513e317ea332f976e58..d4e616a3b0f436bc41eb58ac0547991bfd03354b 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A07_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A07_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A07_T1 description: The Date.prototype has the property "toLocaleTimeString" ---*/ -if(Date.prototype.hasOwnProperty("toLocaleTimeString") !== true){ +if (Date.prototype.hasOwnProperty("toLocaleTimeString") !== true) { $ERROR('#1: The Date.prototype has the property "toLocaleTimeString"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A08_T1.js b/test/built-ins/Date/prototype/S15.9.5_A08_T1.js index bb69276387595aff32909b08b7c1a412a2661727..956c54030059999b499d3e1515ccf461e719cb1b 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A08_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A08_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A08_T1 description: The Date.prototype has the property "valueOf" ---*/ -if(Date.prototype.hasOwnProperty("valueOf") !== true){ +if (Date.prototype.hasOwnProperty("valueOf") !== true) { $ERROR('#1: The Date.prototype has the property "valueOf"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A09_T1.js b/test/built-ins/Date/prototype/S15.9.5_A09_T1.js index 7f28f0e7e7a4af08b4e7e4f3de30c0080c2017a0..1702b4f796870367323feac4a4c55e7a6a7d846d 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A09_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A09_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A09_T1 description: The Date.prototype has the property "getTime" ---*/ -if(Date.prototype.hasOwnProperty("getTime") !== true){ +if (Date.prototype.hasOwnProperty("getTime") !== true) { $ERROR('#1: The Date.prototype has the property "getTime"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A10_T1.js b/test/built-ins/Date/prototype/S15.9.5_A10_T1.js index 4c6c2369d259fe14a62fea03479cfe96d64629a8..a97e2830e6a98035753a1793754ffc4bd18eb8fe 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A10_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A10_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A10_T1 description: The Date.prototype has the property "getFullYear" ---*/ -if(Date.prototype.hasOwnProperty("getFullYear") !== true){ +if (Date.prototype.hasOwnProperty("getFullYear") !== true) { $ERROR('#1: The Date.prototype has the property "getFullYear"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A11_T1.js b/test/built-ins/Date/prototype/S15.9.5_A11_T1.js index 2e12494f1933db3c439d51f9e7dc2c7ed3481609..a808725adfe256f7db1d74150c67b1dbb2527aa1 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A11_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A11_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A11_T1 description: The Date.prototype has the property "getUTCFullYear" ---*/ -if(Date.prototype.hasOwnProperty("getUTCFullYear") !== true){ +if (Date.prototype.hasOwnProperty("getUTCFullYear") !== true) { $ERROR('#1: The Date.prototype has the property "getUTCFullYear"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A12_T1.js b/test/built-ins/Date/prototype/S15.9.5_A12_T1.js index 22a6ea411d49a305e78caf1931f992cd728aa833..8d697d66598f088082a6e1ac089b7ca3392c6b9e 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A12_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A12_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A12_T1 description: The Date.prototype has the property "getMonth" ---*/ -if(Date.prototype.hasOwnProperty("getMonth") !== true){ +if (Date.prototype.hasOwnProperty("getMonth") !== true) { $ERROR('#1: The Date.prototype has the property "getMonth"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A13_T1.js b/test/built-ins/Date/prototype/S15.9.5_A13_T1.js index f99b87ae63a8f0d8afc11759eff9468d468c2be1..4e8e7e1c6dc87156638f20127bce4eb118bd1f15 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A13_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A13_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A13_T1 description: The Date.prototype has the property "getUTCMonth" ---*/ -if(Date.prototype.hasOwnProperty("getUTCMonth") !== true){ +if (Date.prototype.hasOwnProperty("getUTCMonth") !== true) { $ERROR('#1: The Date.prototype has the property "getUTCMonth"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A14_T1.js b/test/built-ins/Date/prototype/S15.9.5_A14_T1.js index 6decf276d59887c9214820892117fac3b36b5301..901af6df6bddfcd48b05197aa7c4a85ecc15b409 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A14_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A14_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A14_T1 description: The Date.prototype has the property "getDate" ---*/ -if(Date.prototype.hasOwnProperty("getDate") !== true){ +if (Date.prototype.hasOwnProperty("getDate") !== true) { $ERROR('#1: The Date.prototype has the property "getDate"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A15_T1.js b/test/built-ins/Date/prototype/S15.9.5_A15_T1.js index 8ea5416202783bfdb8815a5da64632f3c80b2675..1ea076f8b7ea8b43f6df1255f4e1a2ffbb5a0b40 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A15_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A15_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A15_T1 description: The Date.prototype has the property "getUTCDate" ---*/ -if(Date.prototype.hasOwnProperty("getUTCDate") !== true){ +if (Date.prototype.hasOwnProperty("getUTCDate") !== true) { $ERROR('#1: The Date.prototype has the property "getUTCDate"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A16_T1.js b/test/built-ins/Date/prototype/S15.9.5_A16_T1.js index f45c81f911e2da66f1e075600ade654f3c3ab4b6..e6e74d724cef466cd5b2382fdd4ae671b372e041 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A16_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A16_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A16_T1 description: The Date.prototype has the property "getDay" ---*/ -if(Date.prototype.hasOwnProperty("getDay") !== true){ +if (Date.prototype.hasOwnProperty("getDay") !== true) { $ERROR('#1: The Date.prototype has the property "getDay"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A17_T1.js b/test/built-ins/Date/prototype/S15.9.5_A17_T1.js index f4131a38708d70e7de655010cf562085cbc0fee8..a1bfd2a829852354d8896edf53af3c6a40dcb8d6 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A17_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A17_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A17_T1 description: The Date.prototype has the property "getUTCDay" ---*/ -if(Date.prototype.hasOwnProperty("getUTCDay") !== true){ +if (Date.prototype.hasOwnProperty("getUTCDay") !== true) { $ERROR('#1: The Date.prototype has the property "getUTCDay"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A18_T1.js b/test/built-ins/Date/prototype/S15.9.5_A18_T1.js index 1bfad7edddc20185266cc58727ee18c7eb92d731..b0c5d991482de785724fb99be62af9cd6f52d18f 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A18_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A18_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A18_T1 description: The Date.prototype has the property "getHours" ---*/ -if(Date.prototype.hasOwnProperty("getHours") !== true){ +if (Date.prototype.hasOwnProperty("getHours") !== true) { $ERROR('#1: The Date.prototype has the property "getHours"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A19_T1.js b/test/built-ins/Date/prototype/S15.9.5_A19_T1.js index d023a173d9ad8e5b2376896924274e19932dbae0..121995f933de3d6e777fdf9c2e1ecb23dbd0a0c7 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A19_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A19_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A19_T1 description: The Date.prototype has the property "getUTCHours" ---*/ -if(Date.prototype.hasOwnProperty("getUTCHours") !== true){ +if (Date.prototype.hasOwnProperty("getUTCHours") !== true) { $ERROR('#1: The Date.prototype has the property "getUTCHours"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A20_T1.js b/test/built-ins/Date/prototype/S15.9.5_A20_T1.js index fa1eb9a9624dc0f408cca7553952c0b31ebe5fde..91af4cab85e7cbf5129d640ca6bd7f17b7c21d1d 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A20_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A20_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A20_T1 description: The Date.prototype has the property "getMinutes" ---*/ -if(Date.prototype.hasOwnProperty("getMinutes") !== true){ +if (Date.prototype.hasOwnProperty("getMinutes") !== true) { $ERROR('#1: The Date.prototype has the property "getMinutes"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A21_T1.js b/test/built-ins/Date/prototype/S15.9.5_A21_T1.js index 004239f0b23db2d39c44fd098459ef8efdde1b86..f6b144d329588ecd053fcf85abfdbc2655013d76 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A21_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A21_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A21_T1 description: The Date.prototype has the property "getUTCMinutes" ---*/ -if(Date.prototype.hasOwnProperty("getUTCMinutes") !== true){ +if (Date.prototype.hasOwnProperty("getUTCMinutes") !== true) { $ERROR('#1: The Date.prototype has the property "getUTCMinutes"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A22_T1.js b/test/built-ins/Date/prototype/S15.9.5_A22_T1.js index 77de3c9645cf96061bcca0195030317f54e054fd..7e06d802039837fc674f92dd21ad691facac366b 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A22_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A22_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A22_T1 description: The Date.prototype has the property "getSeconds" ---*/ -if(Date.prototype.hasOwnProperty("getSeconds") !== true){ +if (Date.prototype.hasOwnProperty("getSeconds") !== true) { $ERROR('#1: The Date.prototype has the property "getSeconds"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A23_T1.js b/test/built-ins/Date/prototype/S15.9.5_A23_T1.js index 63cc5485304d8fc218a6b9e791bd43cd9d56cfd0..8dab8344e2bbe095e3b233d7593d32696ecb643e 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A23_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A23_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A23_T1 description: The Date.prototype has the property "getUTCSeconds" ---*/ -if(Date.prototype.hasOwnProperty("getUTCSeconds") !== true){ +if (Date.prototype.hasOwnProperty("getUTCSeconds") !== true) { $ERROR('#1: The Date.prototype has the property "getUTCSeconds"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A24_T1.js b/test/built-ins/Date/prototype/S15.9.5_A24_T1.js index 745978484b7598452e4d26d69843611248fb7602..62bf0c5fe896079974525a3c535ada2d005000fc 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A24_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A24_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A24_T1 description: The Date.prototype has the property "getMilliseconds" ---*/ -if(Date.prototype.hasOwnProperty("getMilliseconds") !== true){ +if (Date.prototype.hasOwnProperty("getMilliseconds") !== true) { $ERROR('#1: The Date.prototype has the property "getMilliseconds"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A25_T1.js b/test/built-ins/Date/prototype/S15.9.5_A25_T1.js index 945c9f4951dfb1c7901c635cf3d638661e38b550..a3fa23e11e089ed2a3b07a5daf9a097ef0dbb15e 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A25_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A25_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A25_T1 description: The Date.prototype has the property "getUTCMilliseconds" ---*/ -if(Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true){ +if (Date.prototype.hasOwnProperty("getUTCMilliseconds") !== true) { $ERROR('#1: The Date.prototype has the property "getUTCMilliseconds"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A26_T1.js b/test/built-ins/Date/prototype/S15.9.5_A26_T1.js index 2b04f057b0b914c90c583f0a50f1dc98c7fb04e8..dce48a446ea6f15dfeb2b1df5cafc61aa3e5321d 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A26_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A26_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A26_T1 description: The Date.prototype has the property "getTimezoneOffset" ---*/ -if(Date.prototype.hasOwnProperty("getTimezoneOffset") !== true){ +if (Date.prototype.hasOwnProperty("getTimezoneOffset") !== true) { $ERROR('#1: The Date.prototype has the property "getTimezoneOffset"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A27_T1.js b/test/built-ins/Date/prototype/S15.9.5_A27_T1.js index 29ca2ca87423824d69bbfa75ddba948537df67fd..5cfb076ede019a1ff71badedc3c3abb2caa2acea 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A27_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A27_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A27_T1 description: The Date.prototype has the property "setTime" ---*/ -if(Date.prototype.hasOwnProperty("setTime") !== true){ +if (Date.prototype.hasOwnProperty("setTime") !== true) { $ERROR('#1: The Date.prototype has the property "setTime"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A28_T1.js b/test/built-ins/Date/prototype/S15.9.5_A28_T1.js index 757515d0ac036a967b57ea3a9abad2731a8b9f99..9477085b7a3b3e8f20632a2e8c465f14e880de8c 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A28_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A28_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A28_T1 description: The Date.prototype has the property "setMilliseconds" ---*/ -if(Date.prototype.hasOwnProperty("setMilliseconds") !== true){ +if (Date.prototype.hasOwnProperty("setMilliseconds") !== true) { $ERROR('#1: The Date.prototype has the property "setMilliseconds"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A29_T1.js b/test/built-ins/Date/prototype/S15.9.5_A29_T1.js index 73e634993ccd8354fb9050b0ab759617201fd24a..c9fe329cb454a47944c3afff16e3561da5201061 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A29_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A29_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A29_T1 description: The Date.prototype has the property "setUTCMilliseconds" ---*/ -if(Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true){ +if (Date.prototype.hasOwnProperty("setUTCMilliseconds") !== true) { $ERROR('#1: The Date.prototype has the property "setUTCMilliseconds"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A30_T1.js b/test/built-ins/Date/prototype/S15.9.5_A30_T1.js index 87df1a9224c162bfa7c3512c89efbd23848ac661..e65718a734841db117fd24749c8fa2899daee771 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A30_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A30_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A30_T1 description: The Date.prototype has the property "setSeconds" ---*/ -if(Date.prototype.hasOwnProperty("setSeconds") !== true){ +if (Date.prototype.hasOwnProperty("setSeconds") !== true) { $ERROR('#1: The Date.prototype has the property "setSeconds"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A31_T1.js b/test/built-ins/Date/prototype/S15.9.5_A31_T1.js index 332509563ce6a56c3d092552f5d036478bfc2b8a..64f801900c3858c6365fd5e88b5177961cbb1292 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A31_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A31_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A31_T1 description: The Date.prototype has the property "setUTCSeconds" ---*/ -if(Date.prototype.hasOwnProperty("setUTCSeconds") !== true){ +if (Date.prototype.hasOwnProperty("setUTCSeconds") !== true) { $ERROR('#1: The Date.prototype has the property "setUTCSeconds"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A32_T1.js b/test/built-ins/Date/prototype/S15.9.5_A32_T1.js index 086486601e23b89cffc41a41ce90111c4178f6a5..19e349e8b1e174dec7b80ec6b1afbd5034a8e758 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A32_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A32_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A32_T1 description: The Date.prototype has the property "setMinutes" ---*/ -if(Date.prototype.hasOwnProperty("setMinutes") !== true){ +if (Date.prototype.hasOwnProperty("setMinutes") !== true) { $ERROR('#1: The Date.prototype has the property "setMinutes"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A33_T1.js b/test/built-ins/Date/prototype/S15.9.5_A33_T1.js index e64d4dade1d0a1dea41664ed2c9b25d5c0335446..85f07b5f2f898818774fe5a815ea2ac602b561db 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A33_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A33_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A33_T1 description: The Date.prototype has the property "setUTCMinutes" ---*/ -if(Date.prototype.hasOwnProperty("setUTCMinutes") !== true){ +if (Date.prototype.hasOwnProperty("setUTCMinutes") !== true) { $ERROR('#1: The Date.prototype has the property "setUTCMinutes"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A34_T1.js b/test/built-ins/Date/prototype/S15.9.5_A34_T1.js index 887364be2852e515883d36f767d30481f7b5293b..4810950ba981ae0fa78f8f77bf819ebe816213ff 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A34_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A34_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A34_T1 description: The Date.prototype has the property "setHours" ---*/ -if(Date.prototype.hasOwnProperty("setHours") !== true){ +if (Date.prototype.hasOwnProperty("setHours") !== true) { $ERROR('#1: The Date.prototype has the property "setHours"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A35_T1.js b/test/built-ins/Date/prototype/S15.9.5_A35_T1.js index ef6a352ada384dc59ff2e8fb15403af5a238fd35..c2a98b41441f216f8b277a633c84da89f91ad046 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A35_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A35_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A35_T1 description: The Date.prototype has the property "setUTCHours" ---*/ -if(Date.prototype.hasOwnProperty("setUTCHours") !== true){ +if (Date.prototype.hasOwnProperty("setUTCHours") !== true) { $ERROR('#1: The Date.prototype has the property "setUTCHours"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A36_T1.js b/test/built-ins/Date/prototype/S15.9.5_A36_T1.js index 7eff330465337055e438476123c4827f9f25c89a..4fa278360c9491a4d15e862379925d56a625f624 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A36_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A36_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A36_T1 description: The Date.prototype has the property "setDate" ---*/ -if(Date.prototype.hasOwnProperty("setDate") !== true){ +if (Date.prototype.hasOwnProperty("setDate") !== true) { $ERROR('#1: The Date.prototype has the property "setDate"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A37_T1.js b/test/built-ins/Date/prototype/S15.9.5_A37_T1.js index 2d76fab1122fd80c45789779dc31bace2066cb2e..1c88f55bd95c93c2672defa7a936e08e0cd95e6e 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A37_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A37_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A37_T1 description: The Date.prototype has the property "setUTCDate" ---*/ -if(Date.prototype.hasOwnProperty("setUTCDate") !== true){ +if (Date.prototype.hasOwnProperty("setUTCDate") !== true) { $ERROR('#1: The Date.prototype has the property "setUTCDate"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A38_T1.js b/test/built-ins/Date/prototype/S15.9.5_A38_T1.js index 562c03ec128cff76b2346c198fd96edc0f51fb20..1b4ce8b06a0535d4f2c8e89d7e14a9c6484a9493 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A38_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A38_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A38_T1 description: The Date.prototype has the property "setMonth" ---*/ -if(Date.prototype.hasOwnProperty("setMonth") !== true){ +if (Date.prototype.hasOwnProperty("setMonth") !== true) { $ERROR('#1: The Date.prototype has the property "setMonth"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A39_T1.js b/test/built-ins/Date/prototype/S15.9.5_A39_T1.js index b5d13f4bfff37145c168571102fe570d701e1f55..0798b71487298aa257f46a0d80a2a08cad974a2e 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A39_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A39_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A39_T1 description: The Date.prototype has the property "setUTCMonth" ---*/ -if(Date.prototype.hasOwnProperty("setUTCMonth") !== true){ +if (Date.prototype.hasOwnProperty("setUTCMonth") !== true) { $ERROR('#1: The Date.prototype has the property "setUTCMonth"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A40_T1.js b/test/built-ins/Date/prototype/S15.9.5_A40_T1.js index 096cb7f6218434e811e6398b0d424a59235037a2..b32f6858f77ce072d6e051805b7815eec54538bf 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A40_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A40_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A40_T1 description: The Date.prototype has the property "setFullYear" ---*/ -if(Date.prototype.hasOwnProperty("setFullYear") !== true){ +if (Date.prototype.hasOwnProperty("setFullYear") !== true) { $ERROR('#1: The Date.prototype has the property "setFullYear"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A41_T1.js b/test/built-ins/Date/prototype/S15.9.5_A41_T1.js index af8535a377b7d5c91f360accfbba97a76ab113d4..879e1bfc914737c111d94aad7b87cdec32929937 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A41_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A41_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A41_T1 description: The Date.prototype has the property "setUTCFullYear" ---*/ -if(Date.prototype.hasOwnProperty("setUTCFullYear") !== true){ +if (Date.prototype.hasOwnProperty("setUTCFullYear") !== true) { $ERROR('#1: The Date.prototype has the property "setUTCFullYear"'); } diff --git a/test/built-ins/Date/prototype/S15.9.5_A42_T1.js b/test/built-ins/Date/prototype/S15.9.5_A42_T1.js index c6c4eb4b44233667d8b880c894b23d53d71f8193..61dc0ef4cb1629d762efb1853c3e7b54aaa1c075 100644 --- a/test/built-ins/Date/prototype/S15.9.5_A42_T1.js +++ b/test/built-ins/Date/prototype/S15.9.5_A42_T1.js @@ -8,6 +8,6 @@ es5id: 15.9.5_A42_T1 description: The Date.prototype has the property "toUTCString" ---*/ -if(Date.prototype.hasOwnProperty("toUTCString") !== true){ +if (Date.prototype.hasOwnProperty("toUTCString") !== true) { $ERROR('#1: The Date.prototype has the property "toUTCString"'); } diff --git a/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js b/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js index 61e0ee127bb1ae887ea655d1f79608e492340b67..207f28c6adb60cfaa659c4b3461a508bf132a906 100644 --- a/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js +++ b/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js @@ -48,5 +48,9 @@ assert.throws(TypeError, function() { }); assert.throws(TypeError, function() { - d[Symbol.toPrimitive]({ toString: function() { 'number'; } }); + d[Symbol.toPrimitive]({ + toString: function() { + 'number'; + } + }); }); diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js index 015869e8754baa6c399d92dedbd7589e2496aff3..7b31914c456ba73f1059f8dbc89a0025ce4c5f89 100644 --- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js +++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.constructor; -if(x === 1) +if (x === 1) Date.prototype.constructor = 2; else Date.prototype.constructor = 1; diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js index 1969ffc3e66330fbfb0273778a7ee4109f8e336d..fb7f6381386d5399ac7208e0ec42b25b95aa442f 100644 --- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js +++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.1_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.constructor === false) { +if (delete Date.prototype.constructor === false) { $ERROR('#1: The Date.prototype.constructor property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js index 4c0bd7cb3920b196b33c44d64df32492a029eefe..585613408afa4605a72c981231a9381022460ec8 100644 --- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js +++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('constructor')) { $ERROR('#1: The Date.prototype.constructor property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "constructor") { +for (var x in Date.prototype) { + if (x === "constructor") { $ERROR('#2: The Date.prototype.constructor has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js index e7fe30436bd9151a5dafd343c767fc3d0a5e0e5b..49cd15ab2640ca18ab06599775015e50c0ebb693 100644 --- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js +++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.1_A2_T1 description: The "length" property of the "constructor" is 7 ---*/ -if(Date.prototype.constructor.hasOwnProperty("length") !== true){ +if (Date.prototype.constructor.hasOwnProperty("length") !== true) { $ERROR('#1: The constructor has a "length" property'); } -if(Date.prototype.constructor.length !== 7){ +if (Date.prototype.constructor.length !== 7) { $ERROR('#2: The "length" property of the constructor is 7'); } diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js index 529e66b44deb3cd675d9ada0065382887d14e425..b5beb2284de111fe243350ec98d0a6286b1156b6 100644 --- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js +++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.1_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.constructor.length !== true) { +if (delete Date.prototype.constructor.length !== true) { $ERROR('#1: The Date.prototype.constructor.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js index e913c47d3061a12df7d69325ee5f79bf4f0291d0..d920a2e81620fe911df4b3cbf7c725b54e5a7b1b 100644 --- a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js +++ b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.constructor.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.constructor.length property has the attribute DontEnum'); } -for(var x in Date.prototype.constructor) { - if(x === "length") { +for (var x in Date.prototype.constructor) { + if (x === "length") { $ERROR('#2: The Date.prototype.constructor.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js index 602a86f0e6b65c3c9216b1b408cf075512ada4d0..3a75f29c6e713bd25bff6b5cafa68fc7831811b5 100644 --- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js +++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getDate; -if(x === 1) +if (x === 1) Date.prototype.getDate = 2; else Date.prototype.getDate = 1; diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js index 1b88c0dfa1964fa1c61552c8ab1b44c9b08dbeec..61047cc75516346e67401582e6c8fc9ed7aa2e90 100644 --- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js +++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.14_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getDate === false) { +if (delete Date.prototype.getDate === false) { $ERROR('#1: The Date.prototype.getDate property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js index 8c8984d235a3249c8d9e8650a148a9d31a5c1253..76ad845df22b604a490999e7f164d8899edc4f1d 100644 --- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js +++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getDate')) { $ERROR('#1: The Date.prototype.getDate property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getDate") { +for (var x in Date.prototype) { + if (x === "getDate") { $ERROR('#2: The Date.prototype.getDate has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js index 14a92d6e3d45ea28e099cbe33316f8e74d2f8871..4756c8aa0d853f81ced2aa270bf4f08780a37b0d 100644 --- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js +++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.14_A2_T1 description: The "length" property of the "getDate" is 0 ---*/ -if(Date.prototype.getDate.hasOwnProperty("length") !== true){ +if (Date.prototype.getDate.hasOwnProperty("length") !== true) { $ERROR('#1: The getDate has a "length" property'); } -if(Date.prototype.getDate.length !== 0){ +if (Date.prototype.getDate.length !== 0) { $ERROR('#2: The "length" property of the getDate is 0'); } diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js index d52223e2dc511801c72103fabf1899302a2dc6f6..464dd1a2f58e7dddb7174cba3af7ae4d3bda51c9 100644 --- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js +++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.14_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getDate.length !== true) { +if (delete Date.prototype.getDate.length !== true) { $ERROR('#1: The Date.prototype.getDate.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js index 2bfb76a14480dfd29ad5eca992a011e051752687..1838bde8e8ddf59a568dee0ce3ff27ac4ace465c 100644 --- a/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js +++ b/test/built-ins/Date/prototype/getDate/S15.9.5.14_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getDate.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getDate.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getDate) { - if(x === "length") { +for (var x in Date.prototype.getDate) { + if (x === "length") { $ERROR('#2: The Date.prototype.getDate.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getDate/this-value-non-date.js b/test/built-ins/Date/prototype/getDate/this-value-non-date.js index 6734712ca1ff9cd1e6124081760f712077528732..31eb39ad362dc02123159f66aa544c31d93ffc70 100644 --- a/test/built-ins/Date/prototype/getDate/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getDate/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getDate = Date.prototype.getDate; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getDate, 'function'); diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js index 646100bc1ba43f4bdc9a9a63c20ebe5320b7f64a..dd0195edc30913fcfca7bd3e7cf6a05cc76fd71c 100644 --- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js +++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getDay; -if(x === 1) +if (x === 1) Date.prototype.getDay = 2; else Date.prototype.getDay = 1; diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js index 2524225ed7076a1aea8984bf45b12a42fef0082c..dc5b5458418f786cf707c44cbfeaf9a0260a5d77 100644 --- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js +++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.16_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getDay === false) { +if (delete Date.prototype.getDay === false) { $ERROR('#1: The Date.prototype.getDay property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js index ec4cc8a1aabca4af353735fe89eb37cbd46b4247..d7c241aaad3d6588b2335178411b358f83bafe25 100644 --- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js +++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getDay')) { $ERROR('#1: The Date.prototype.getDay property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getDay") { +for (var x in Date.prototype) { + if (x === "getDay") { $ERROR('#2: The Date.prototype.getDay has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js index a1d10c6dcac962bcb0ab4dd5a49aa6111be76265..f9ab232680fdfe4906d8719cbd40dfba6227f5bc 100644 --- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js +++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.16_A2_T1 description: The "length" property of the "getDay" is 0 ---*/ -if(Date.prototype.getDay.hasOwnProperty("length") !== true){ +if (Date.prototype.getDay.hasOwnProperty("length") !== true) { $ERROR('#1: The getDay has a "length" property'); } -if(Date.prototype.getDay.length !== 0){ +if (Date.prototype.getDay.length !== 0) { $ERROR('#2: The "length" property of the getDay is 0'); } diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js index 44019e9b989a5971d6b9660139edc28573a9945a..fa7ea6a930b8250df866b7a44fa1f265ac961e61 100644 --- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js +++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.16_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getDay.length !== true) { +if (delete Date.prototype.getDay.length !== true) { $ERROR('#1: The Date.prototype.getDay.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js index 8d062a86b6ad03cfa5b3cfec033f80acdde6cf63..e0c5e04e38289e449c182a137345f63eaaa75d22 100644 --- a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js +++ b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getDay.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getDay.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getDay) { - if(x === "length") { +for (var x in Date.prototype.getDay) { + if (x === "length") { $ERROR('#2: The Date.prototype.getDay.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getDay/this-value-non-date.js b/test/built-ins/Date/prototype/getDay/this-value-non-date.js index 71adf2c09956835193a65058a0e1ccad5ad5d468..f03661dd901d5c448242d7ee0c305831267a50e9 100644 --- a/test/built-ins/Date/prototype/getDay/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getDay/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getDay = Date.prototype.getDay; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getDay, 'function'); diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js index e965ed28db0033c77397d67f66d7e6e7d32a6c9d..54897a558cc7874cfad110ad0bc1e28e477d337a 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getFullYear; -if(x === 1) +if (x === 1) Date.prototype.getFullYear = 2; else Date.prototype.getFullYear = 1; diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js index 087abbffb764bdea940df5444e43f0a49b503f09..bfc30f43908f02f66fdeeea054bee9afaa5a94c9 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.10_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getFullYear === false) { +if (delete Date.prototype.getFullYear === false) { $ERROR('#1: The Date.prototype.getFullYear property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js index e410c921398f10dd5286871d4b4fd5b27b928cd3..bc6e9730954e813c20fa53ef9e2b5768800c96db 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getFullYear')) { $ERROR('#1: The Date.prototype.getFullYear property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getFullYear") { +for (var x in Date.prototype) { + if (x === "getFullYear") { $ERROR('#2: The Date.prototype.getFullYear has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js index 76682ac39031c4c22598cee6307dcb1fd0b5fa53..e6126c6a1c851463dcfa90994976d90628e3a47f 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.10_A2_T1 description: The "length" property of the "getFullYear" is 0 ---*/ -if(Date.prototype.getFullYear.hasOwnProperty("length") !== true){ +if (Date.prototype.getFullYear.hasOwnProperty("length") !== true) { $ERROR('#1: The getFullYear has a "length" property'); } -if(Date.prototype.getFullYear.length !== 0){ +if (Date.prototype.getFullYear.length !== 0) { $ERROR('#2: The "length" property of the getFullYear is 0'); } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js index 8b35eb11b047713b58dc80e8b8799a481e4c2393..9bdbc7d895e54d2f16c78aebb5d8d0e854a70f9e 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.10_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getFullYear.length !== true) { +if (delete Date.prototype.getFullYear.length !== true) { $ERROR('#1: The Date.prototype.getFullYear.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js index 36e66960f21562280420cbc3c5bcddc8d2d8b1e0..7fedce52a19db773498a918f2356440fbe186fd2 100644 --- a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js +++ b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getFullYear.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getFullYear.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getFullYear) { - if(x === "length") { +for (var x in Date.prototype.getFullYear) { + if (x === "length") { $ERROR('#2: The Date.prototype.getFullYear.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js b/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js index db86b65f9b67db1df4b7713800e7a5557bb21c94..f191bd5a6c41f8fdd0eb6362abf3923a1612c7fa 100644 --- a/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getFullYear = Date.prototype.getFullYear; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getFullYear, 'function'); diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js index 77a92e2fd6808446d9c8adee0643261370d4c982..b587f199e152a03a6dd3aa1baba22324d1671fdb 100644 --- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js +++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getHours; -if(x === 1) +if (x === 1) Date.prototype.getHours = 2; else Date.prototype.getHours = 1; diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js index b0c1a1677ce084573a16f9e6252703a02fbe12f5..08824758c7678959460e10e99e144cbfce46cb32 100644 --- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js +++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.18_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getHours === false) { +if (delete Date.prototype.getHours === false) { $ERROR('#1: The Date.prototype.getHours property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js index b9a4dd05bbd8346a231aa7a5b5019df4e468cfff..eb6d465017ba261b3a71f641479dbb53fe01914a 100644 --- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js +++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getHours')) { $ERROR('#1: The Date.prototype.getHours property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getHours") { +for (var x in Date.prototype) { + if (x === "getHours") { $ERROR('#2: The Date.prototype.getHours has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js index 675c26289e9b058499ac7d0b7f4da8bfaf57ef41..81af2ec4498c04005a23b1da6ec7c101286477c1 100644 --- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js +++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.18_A2_T1 description: The "length" property of the "getHours" is 0 ---*/ -if(Date.prototype.getHours.hasOwnProperty("length") !== true){ +if (Date.prototype.getHours.hasOwnProperty("length") !== true) { $ERROR('#1: The getHours has a "length" property'); } -if(Date.prototype.getHours.length !== 0){ +if (Date.prototype.getHours.length !== 0) { $ERROR('#2: The "length" property of the getHours is 0'); } diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js index 44b40025996f11c7b3da469126ec4e1f6b732c83..2f00e05fd2a1ddea93bb7d4bc66de3b0d0036234 100644 --- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js +++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.18_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getHours.length !== true) { +if (delete Date.prototype.getHours.length !== true) { $ERROR('#1: The Date.prototype.getHours.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js index 57b77bb9d0453ff56cd11a2c564374202249fa37..ad3d3e28abd70418b1da0e4ba439a73f5b5306bd 100644 --- a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js +++ b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getHours.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getHours.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getHours) { - if(x === "length") { +for (var x in Date.prototype.getHours) { + if (x === "length") { $ERROR('#2: The Date.prototype.getHours.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getHours/this-value-non-date.js b/test/built-ins/Date/prototype/getHours/this-value-non-date.js index 7c922a9b22afdb73f143659d9f7a4397c5b5ca40..075c0dd9adc94c7372779d69f443e8867d3494d1 100644 --- a/test/built-ins/Date/prototype/getHours/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getHours/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getHours = Date.prototype.getHours; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getHours, 'function'); diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js index 765dcd7e056d534a1b643906357c3232f05ac42a..d1e27ba34c0a5a62b2bdca9f6faa6f2c5f397f1f 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js +++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getMilliseconds; -if(x === 1) +if (x === 1) Date.prototype.getMilliseconds = 2; else Date.prototype.getMilliseconds = 1; diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js index f4e40a3e01ef9475f1d129330b3e29e5603a215c..41309fa45438fcf509f638267e69a67292454198 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js +++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.24_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getMilliseconds === false) { +if (delete Date.prototype.getMilliseconds === false) { $ERROR('#1: The Date.prototype.getMilliseconds property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js index 3e16f9726a532af2c12d9641e1bed0793b697039..38483bcc4795ce8f66fc23a64d654bb02eb93423 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js +++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getMilliseconds')) { $ERROR('#1: The Date.prototype.getMilliseconds property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getMilliseconds") { +for (var x in Date.prototype) { + if (x === "getMilliseconds") { $ERROR('#2: The Date.prototype.getMilliseconds has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js index 8ad8bf927fd686d8dfd638baddef3b3e0503e1f6..e564b8cb8e52cbf771207e7319eda57ea4f39f73 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js +++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.24_A2_T1 description: The "length" property of the "getMilliseconds" is 0 ---*/ -if(Date.prototype.getMilliseconds.hasOwnProperty("length") !== true){ +if (Date.prototype.getMilliseconds.hasOwnProperty("length") !== true) { $ERROR('#1: The getMilliseconds has a "length" property'); } -if(Date.prototype.getMilliseconds.length !== 0){ +if (Date.prototype.getMilliseconds.length !== 0) { $ERROR('#2: The "length" property of the getMilliseconds is 0'); } diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js index 47e7ee0fd6da5173bf3d8d96e5cae593343d8807..02f01b39ea933824d91a4875b8fcb3657de99ece 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js +++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.24_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getMilliseconds.length !== true) { +if (delete Date.prototype.getMilliseconds.length !== true) { $ERROR('#1: The Date.prototype.getMilliseconds.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js index fd1e1c6749e775213b5b967befd0de19f1b7968f..303c244a2c3a59b47eba26a2bcdbb301c5fc5553 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js +++ b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getMilliseconds.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getMilliseconds.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getMilliseconds) { - if(x === "length") { +for (var x in Date.prototype.getMilliseconds) { + if (x === "length") { $ERROR('#2: The Date.prototype.getMilliseconds.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js b/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js index 1c71dc38399e5156b6341ad9c0ebdc6c93de44a1..284cbcbfed16aafeec57fac98fcd8b3ef17d50e6 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getMilliseconds = Date.prototype.getMilliseconds; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getMilliseconds, 'function'); diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js index f3d30e6bfc7a97a13953c1bda22a2c0b5d53c9be..b41afec04f39f82bdebab23437999409874ea154 100644 --- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js +++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getMinutes; -if(x === 1) +if (x === 1) Date.prototype.getMinutes = 2; else Date.prototype.getMinutes = 1; diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js index 0ef2017329317c912529bce1bc3ffec72aafc195..a2198930508ef61a1a53df8e0ee844228cc22643 100644 --- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js +++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.20_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getMinutes === false) { +if (delete Date.prototype.getMinutes === false) { $ERROR('#1: The Date.prototype.getMinutes property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js index bf774828d6c88bac40c19653f582ac259e34ea25..5992ea3fe67c9000ef712c557fc525775cdb12c4 100644 --- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js +++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getMinutes')) { $ERROR('#1: The Date.prototype.getMinutes property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getMinutes") { +for (var x in Date.prototype) { + if (x === "getMinutes") { $ERROR('#2: The Date.prototype.getMinutes has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js index 92f972fb11cbba283e381083d3f9e3d6dc8f63df..6b83032dafcae72b262c1e802dfa01009e81bed8 100644 --- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js +++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.20_A2_T1 description: The "length" property of the "getMinutes" is 0 ---*/ -if(Date.prototype.getMinutes.hasOwnProperty("length") !== true){ +if (Date.prototype.getMinutes.hasOwnProperty("length") !== true) { $ERROR('#1: The getMinutes has a "length" property'); } -if(Date.prototype.getMinutes.length !== 0){ +if (Date.prototype.getMinutes.length !== 0) { $ERROR('#2: The "length" property of the getMinutes is 0'); } diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js index 7d6952bf712ec95641647a70ba35fe7a1b98bdc6..f8b013db84472d9b7eb63c5af5115a909f99ea37 100644 --- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js +++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.20_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getMinutes.length !== true) { +if (delete Date.prototype.getMinutes.length !== true) { $ERROR('#1: The Date.prototype.getMinutes.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js index 35b1fe5fa65e0422d62ab9346de7b80f0d13d34f..92454620e9fa53f105c7ffb8307a24dc5ff0a449 100644 --- a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js +++ b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getMinutes.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getMinutes.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getMinutes) { - if(x === "length") { +for (var x in Date.prototype.getMinutes) { + if (x === "length") { $ERROR('#2: The Date.prototype.getMinutes.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js b/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js index b8e220a5aa3e89900c04d1f02f6e13c258abdbc8..1eca182ac0573ca65add4f5f849f67935cbc0b69 100644 --- a/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getMinutes = Date.prototype.getMinutes; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getMinutes, 'function'); diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js index 98da5f955ef8ece5a305a533b434120075525ad3..a21e5c917d42fa2ca949d07419785c2e9aac6e48 100644 --- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js +++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getMonth; -if(x === 1) +if (x === 1) Date.prototype.getMonth = 2; else Date.prototype.getMonth = 1; diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js index 82c5bc31fc8c69c01e7fe743a69d427def700da1..1ebae46de998a7e7fecab17efe88a3fad4e2efa4 100644 --- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js +++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.12_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getMonth === false) { +if (delete Date.prototype.getMonth === false) { $ERROR('#1: The Date.prototype.getMonth property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js index 45b981bf70d222d69c7354f64c05739dc7c63756..ad2707c4c41e558c437cba6e6f64cbd8cf48cefa 100644 --- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js +++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getMonth')) { $ERROR('#1: The Date.prototype.getMonth property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getMonth") { +for (var x in Date.prototype) { + if (x === "getMonth") { $ERROR('#2: The Date.prototype.getMonth has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js index 57b392e3c887d0686c5ef3ca6e903b45e0bb2e4f..369327b27f198ab7114efe6d187a4c96b02649b2 100644 --- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js +++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.12_A2_T1 description: The "length" property of the "getMonth" is 0 ---*/ -if(Date.prototype.getMonth.hasOwnProperty("length") !== true){ +if (Date.prototype.getMonth.hasOwnProperty("length") !== true) { $ERROR('#1: The getMonth has a "length" property'); } -if(Date.prototype.getMonth.length !== 0){ +if (Date.prototype.getMonth.length !== 0) { $ERROR('#2: The "length" property of the getMonth is 0'); } diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js index 7352f0fe7e5563af2b92209e9f6a80396300fe98..f138e4541d4e3e7e7d6d0285994a9b98e9f7403f 100644 --- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js +++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.12_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getMonth.length !== true) { +if (delete Date.prototype.getMonth.length !== true) { $ERROR('#1: The Date.prototype.getMonth.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js index 6f8e6816763564803930f6757218e052e6ce2f3c..ef10bf21644e462ca597f9d11c9c0f41a7c066b9 100644 --- a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js +++ b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getMonth.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getMonth.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getMonth) { - if(x === "length") { +for (var x in Date.prototype.getMonth) { + if (x === "length") { $ERROR('#2: The Date.prototype.getMonth.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getMonth/this-value-non-date.js b/test/built-ins/Date/prototype/getMonth/this-value-non-date.js index 35e9a49c8caf4ee5a41ec8d7f54cf6785a39b57a..0dbd2ef09655206e35ae2969910e2ae6ab86179e 100644 --- a/test/built-ins/Date/prototype/getMonth/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getMonth/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getMonth = Date.prototype.getMonth; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getMonth, 'function'); diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js index 2a323bf2f80d9bd7c3274d3738667f711771d6d4..c3ecf96709bb12c89efab55975ba3b3af96cf9b3 100644 --- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js +++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getSeconds; -if(x === 1) +if (x === 1) Date.prototype.getSeconds = 2; else Date.prototype.getSeconds = 1; diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js index 5a54ceef22661a1a26d89b4888bdb810914e6ed5..0f5b25ac6b2139e88325bb777c0d94226c16db34 100644 --- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js +++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.22_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getSeconds === false) { +if (delete Date.prototype.getSeconds === false) { $ERROR('#1: The Date.prototype.getSeconds property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js index 8bdef21e52a295a5dcf1222523ffc0510c719e01..c8ef094ed0ce7d0d7d4a1c66f9090ae10e25b9ad 100644 --- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js +++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getSeconds')) { $ERROR('#1: The Date.prototype.getSeconds property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getSeconds") { +for (var x in Date.prototype) { + if (x === "getSeconds") { $ERROR('#2: The Date.prototype.getSeconds has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js index 2421448a407401505cb93a20a67af24abaf9afaa..4670ca41c6ae2aa6a1a501f4ae00561ab903b1c7 100644 --- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js +++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.22_A2_T1 description: The "length" property of the "getSeconds" is 0 ---*/ -if(Date.prototype.getSeconds.hasOwnProperty("length") !== true){ +if (Date.prototype.getSeconds.hasOwnProperty("length") !== true) { $ERROR('#1: The getSeconds has a "length" property'); } -if(Date.prototype.getSeconds.length !== 0){ +if (Date.prototype.getSeconds.length !== 0) { $ERROR('#2: The "length" property of the getSeconds is 0'); } diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js index 0d15087da565a1403791eb1f058faec437e1f194..6bf3900c9b32494ea57031bee36b1b0a79d1bc48 100644 --- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js +++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.22_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getSeconds.length !== true) { +if (delete Date.prototype.getSeconds.length !== true) { $ERROR('#1: The Date.prototype.getSeconds.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js index f60e804892f4b599fd8240d6a77262e835cb966c..5f3a77b801c65f4d081b340574e8e3ba1f2946ac 100644 --- a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js +++ b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getSeconds.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getSeconds.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getSeconds) { - if(x === "length") { +for (var x in Date.prototype.getSeconds) { + if (x === "length") { $ERROR('#2: The Date.prototype.getSeconds.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js b/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js index e2068723eaa70e3abf8ccd519693f1d1fbc249b5..01b061bb67bd790108bea92daec952bcafc9330f 100644 --- a/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getSeconds = Date.prototype.getSeconds; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getSeconds, 'function'); diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js index 48649c664f4f9cf2c23c9e9e545cbde994ab39a2..d64c25bda6bc4afa00a0bd39b096e000cc6f7c86 100644 --- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js +++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getTime; -if(x === 1) +if (x === 1) Date.prototype.getTime = 2; else Date.prototype.getTime = 1; diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js index f8989220a07cb691b1c0cffe24b3c1d70ff8b957..c492eeb3e022b4f465314d03d1441767df9f1eac 100644 --- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js +++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.9_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getTime === false) { +if (delete Date.prototype.getTime === false) { $ERROR('#1: The Date.prototype.getTime property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js index c390183cc0c47388a0a55fff312ba4d6d843d88a..03899aedbd383c9825efda590bbece1af909a874 100644 --- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js +++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getTime')) { $ERROR('#1: The Date.prototype.getTime property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getTime") { +for (var x in Date.prototype) { + if (x === "getTime") { $ERROR('#2: The Date.prototype.getTime has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js index 3c584053287abb1fd7970a237baa8317a01fbbda..bfb10ee7177ad08972356b22d4689095f50b7e08 100644 --- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js +++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.9_A2_T1 description: The "length" property of the "getTime" is 0 ---*/ -if(Date.prototype.getTime.hasOwnProperty("length") !== true){ +if (Date.prototype.getTime.hasOwnProperty("length") !== true) { $ERROR('#1: The getTime has a "length" property'); } -if(Date.prototype.getTime.length !== 0){ +if (Date.prototype.getTime.length !== 0) { $ERROR('#2: The "length" property of the getTime is 0'); } diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js index 7a966b47f0a16dce32f29af79ee45e2c73982832..ed9a191ef79f0f5bec677ce5c889816ef89db531 100644 --- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js +++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.9_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getTime.length !== true) { +if (delete Date.prototype.getTime.length !== true) { $ERROR('#1: The Date.prototype.getTime.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js index bdd9c3d2028f67ab92e44f86cb27c2e18fecf662..9c70eb7d3f407b1233420c73893a6e6f7a3cc59f 100644 --- a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js +++ b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getTime.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getTime.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getTime) { - if(x === "length") { +for (var x in Date.prototype.getTime) { + if (x === "length") { $ERROR('#2: The Date.prototype.getTime.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getTime/this-value-non-date.js b/test/built-ins/Date/prototype/getTime/this-value-non-date.js index ee4bb53d55836c06aab5cdc7c4e3fe5a5348c938..5e97078b72c0c8f9a9e5a7ba53a66eca8b22ac91 100644 --- a/test/built-ins/Date/prototype/getTime/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getTime/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getTime = Date.prototype.getTime; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getTime, 'function'); diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js index 7255118e1b7623ab67bba14324c182fd451c37d9..f3a664fcb3b8390b6eea3b5e78f5a140a5d79960 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js @@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getTimezoneOffset; -if(x === 1) +if (x === 1) Date.prototype.getTimezoneOffset = 2; else Date.prototype.getTimezoneOffset = 1; diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js index 721d0a6572598e93fe617065aa6f1d70162e2da7..553711f41a1b14b58475c3086d3ed6669ad7fe67 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.26_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getTimezoneOffset === false) { +if (delete Date.prototype.getTimezoneOffset === false) { $ERROR('#1: The Date.prototype.getTimezoneOffset property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js index d52abbf4c5ec4955cc634536db455b974a6ac3bb..6665c7a28763d96d386db7fc62851ef4219bca6e 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('getTimezoneOffset')) { $ERROR('#1: The Date.prototype.getTimezoneOffset property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getTimezoneOffset") { +for (var x in Date.prototype) { + if (x === "getTimezoneOffset") { $ERROR('#2: The Date.prototype.getTimezoneOffset has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js index 75f1923f74069e8569a3b0ebee74044700910fa8..606a8b167c170134ceab0aec52b6b53195f6e6a3 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.26_A2_T1 description: The "length" property of the "getTimezoneOffset" is 0 ---*/ -if(Date.prototype.getTimezoneOffset.hasOwnProperty("length") !== true){ +if (Date.prototype.getTimezoneOffset.hasOwnProperty("length") !== true) { $ERROR('#1: The getTimezoneOffset has a "length" property'); } -if(Date.prototype.getTimezoneOffset.length !== 0){ +if (Date.prototype.getTimezoneOffset.length !== 0) { $ERROR('#2: The "length" property of the getTimezoneOffset is 0'); } diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js index 68b62628aac75fccb2cf66e5d8186db9c904bd8f..2d122a878935766cbf3a11d7f29455fd7cd6a6a7 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.26_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getTimezoneOffset.length !== true) { +if (delete Date.prototype.getTimezoneOffset.length !== true) { $ERROR('#1: The Date.prototype.getTimezoneOffset.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js index e49b97ebe2222d4d8c877716e5b5527606cc0fdc..07d60f18afe7e06015e855cb3981edcf0cb3f8fd 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getTimezoneOffset.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getTimezoneOffset.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getTimezoneOffset) { - if(x === "length") { +for (var x in Date.prototype.getTimezoneOffset) { + if (x === "length") { $ERROR('#2: The Date.prototype.getTimezoneOffset.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js b/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js index 5cda482118ba17e61d653f50968aaa41ea865fb2..a2babe656bb6eaa1b4675085170ccbedf105f563 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getTimezoneOffset = Date.prototype.getTimezoneOffset; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getTimezoneOffset, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js index 2d827c88a1d1531d2ba52030f2de31541210c408..a0dbe95e8d68d825254e59f67a02f176eed3c262 100644 --- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCDate; -if(x === 1) +if (x === 1) Date.prototype.getUTCDate = 2; else Date.prototype.getUTCDate = 1; diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js index 70c26e28325af7f211273f496282eb98729d5497..90ab47a5d4087064b1a5845d729f6dc6d9a2920e 100644 --- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.15_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCDate === false) { +if (delete Date.prototype.getUTCDate === false) { $ERROR('#1: The Date.prototype.getUTCDate property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js index 522c090fcffb262a5b210c5ae0ca0b3e597ac072..e91f04ae88016682de1f44d5909371da1fa738e8 100644 --- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCDate')) { $ERROR('#1: The Date.prototype.getUTCDate property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCDate") { +for (var x in Date.prototype) { + if (x === "getUTCDate") { $ERROR('#2: The Date.prototype.getUTCDate has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js index 92141a35ecafcf8b8627df06690a5d0bb799a1cc..d9a4b4075c9eedc26318ec15ac710b507e3f13fa 100644 --- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.15_A2_T1 description: The "length" property of the "getUTCDate" is 0 ---*/ -if(Date.prototype.getUTCDate.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCDate.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCDate has a "length" property'); } -if(Date.prototype.getUTCDate.length !== 0){ +if (Date.prototype.getUTCDate.length !== 0) { $ERROR('#2: The "length" property of the getUTCDate is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js index e0336673572fd99a6cbf1720e6a3d2f56b1416ba..de279e6ea4555d21ca8e16209d9507db9a8caee3 100644 --- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.15_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCDate.length !== true) { +if (delete Date.prototype.getUTCDate.length !== true) { $ERROR('#1: The Date.prototype.getUTCDate.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js index 780ec6ea481d55e393a87b05aef320da78650ed8..5f7607bda79f7ca0c0e3ce7f742e6b0930bb363e 100644 --- a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCDate.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCDate.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCDate) { - if(x === "length") { +for (var x in Date.prototype.getUTCDate) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCDate.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js index d2dae6634005fe5aff66e0210ba9c2a7256816ec..19c4ffdb2cf2c088a4fc45cdd19c0785ab692c2c 100644 --- a/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCDate = Date.prototype.getUTCDate; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCDate, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js index e7d0f56a3386ec0d39151c4fbfebb5495ed86b6d..b461a8e7b7af97fcb13d1ab4f79b9018d260ce70 100644 --- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCDay; -if(x === 1) +if (x === 1) Date.prototype.getUTCDay = 2; else Date.prototype.getUTCDay = 1; diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js index 526741c0a667a9d7cd629057a5b008390e63c1fa..05074a1e110278772267c2efc4b2f48d670b5a87 100644 --- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.17_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCDay === false) { +if (delete Date.prototype.getUTCDay === false) { $ERROR('#1: The Date.prototype.getUTCDay property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js index 49aeeec1b90e29e3921a100a8f8d2b5752998c8a..3c7bc11a9557d4a606367ddb3aa2080eb7f45564 100644 --- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCDay')) { $ERROR('#1: The Date.prototype.getUTCDay property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCDay") { +for (var x in Date.prototype) { + if (x === "getUTCDay") { $ERROR('#2: The Date.prototype.getUTCDay has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js index f506616e0cab4b75ed0e9314cd98884fa94fbced..616287d5b56d818d3c8667e519f50925e921c6e3 100644 --- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.17_A2_T1 description: The "length" property of the "getUTCDay" is 0 ---*/ -if(Date.prototype.getUTCDay.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCDay.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCDay has a "length" property'); } -if(Date.prototype.getUTCDay.length !== 0){ +if (Date.prototype.getUTCDay.length !== 0) { $ERROR('#2: The "length" property of the getUTCDay is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js index 0eac97f72cf3e965cb6e2cfd02577a66b7cc07fc..e16a345ee96d244b7b8d5998dc9370bea7a8a8b5 100644 --- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.17_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCDay.length !== true) { +if (delete Date.prototype.getUTCDay.length !== true) { $ERROR('#1: The Date.prototype.getUTCDay.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js index 00f0e984ca03c2366105bae133b3ab5b7944a33a..edbb9776c407c6326338ccb8d6ac215e38807613 100644 --- a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCDay.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCDay.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCDay) { - if(x === "length") { +for (var x in Date.prototype.getUTCDay) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCDay.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js index a7cbdb95317429dda23533a0515f9e6fe41872a9..156fe2099b2b8cac86a895a36993652626426a78 100644 --- a/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCDay = Date.prototype.getUTCDay; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCDay, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js index b1fa8320d34411ce3d9482b854a484c5ed421b8a..c96f0d581dbf0ff8bc70a0c188bcfce66a762150 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCFullYear; -if(x === 1) +if (x === 1) Date.prototype.getUTCFullYear = 2; else Date.prototype.getUTCFullYear = 1; diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js index 1af48d17c90f0ca96949e74b83257a307301b2b3..db54c4e560355e2d3a84838a96a4be51a69ac305 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.11_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCFullYear === false) { +if (delete Date.prototype.getUTCFullYear === false) { $ERROR('#1: The Date.prototype.getUTCFullYear property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js index 1a306a52af42b7d8038002d86f3194869459a13f..76ac39c617c59eddcd387798646aa5e2e3f76460 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCFullYear')) { $ERROR('#1: The Date.prototype.getUTCFullYear property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCFullYear") { +for (var x in Date.prototype) { + if (x === "getUTCFullYear") { $ERROR('#2: The Date.prototype.getUTCFullYear has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js index 106f8dbfdff2cfc746348b0c2825b7b4d2be9fa9..392c4f227029355d1bc023fc4d75b4640938d726 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.11_A2_T1 description: The "length" property of the "getUTCFullYear" is 0 ---*/ -if(Date.prototype.getUTCFullYear.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCFullYear.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCFullYear has a "length" property'); } -if(Date.prototype.getUTCFullYear.length !== 0){ +if (Date.prototype.getUTCFullYear.length !== 0) { $ERROR('#2: The "length" property of the getUTCFullYear is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js index 587a257d1e62f6018f7f1ee2c7aed9d085c5790c..12616454fc479cd1f3ed37e9020fac39d7ebf531 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.11_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCFullYear.length !== true) { +if (delete Date.prototype.getUTCFullYear.length !== true) { $ERROR('#1: The Date.prototype.getUTCFullYear.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js index a2f421570d1f54586fe87032dfbbf5db284ce50e..973396f11d975d5b6528db2410de93596ed9f1bf 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCFullYear.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCFullYear.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCFullYear) { - if(x === "length") { +for (var x in Date.prototype.getUTCFullYear) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCFullYear.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js index deb4325ec2e7270adfe3af209a4f2a2a077d2e6c..b64b3df41694f13740bcee9db879ca4c985cc1f8 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCFullYear = Date.prototype.getUTCFullYear; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCFullYear, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js index 7836d0c30b6b3871eb5b2fef504c19cc2a393102..a34f0210904521ed666d0350c1291d1da0204ebf 100644 --- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCHours; -if(x === 1) +if (x === 1) Date.prototype.getUTCHours = 2; else Date.prototype.getUTCHours = 1; diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js index d874fb1620915e8a578fa6bf72ae35142e5a4602..da81ad63dd34904f1cc14b711f7f0745852d1979 100644 --- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.19_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCHours === false) { +if (delete Date.prototype.getUTCHours === false) { $ERROR('#1: The Date.prototype.getUTCHours property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js index fd140cd31a9cc1dc44594b9d867055954544e10c..1109de1d06e4fa90e2c57079e00888908676d600 100644 --- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCHours')) { $ERROR('#1: The Date.prototype.getUTCHours property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCHours") { +for (var x in Date.prototype) { + if (x === "getUTCHours") { $ERROR('#2: The Date.prototype.getUTCHours has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js index 040c4f959e3be61181a07163a9b4915c8fc49e73..1d9e61e9fd0584342e80680308653cbd9fca4ef0 100644 --- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.19_A2_T1 description: The "length" property of the "getUTCHours" is 0 ---*/ -if(Date.prototype.getUTCHours.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCHours.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCHours has a "length" property'); } -if(Date.prototype.getUTCHours.length !== 0){ +if (Date.prototype.getUTCHours.length !== 0) { $ERROR('#2: The "length" property of the getUTCHours is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js index 9d5cc218624c9880193f6fe58862da6c0dd51399..9a83ba9687a34b7107cfef65e21359a4b403ce44 100644 --- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.19_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCHours.length !== true) { +if (delete Date.prototype.getUTCHours.length !== true) { $ERROR('#1: The Date.prototype.getUTCHours.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js index 4e567e4fa774de07bfa5f86b4eff8eaa5dd636f9..f8f01c1f6f1ecfc87fa24cab336f522d3b69d78d 100644 --- a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCHours.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCHours.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCHours) { - if(x === "length") { +for (var x in Date.prototype.getUTCHours) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCHours.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js index 6eeee6196c0c5d89c1589a7d82c292a04f90c02c..5a094cf7712e1271dadf0a3bf758767dec1fd23f 100644 --- a/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCHours = Date.prototype.getUTCHours; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCHours, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js index 66f8ac106aeeaa4f47a04bc3f01159417078c79c..7ca02ffca564952a3367df9f38086e3d840b8a9d 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js @@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCMilliseconds; -if(x === 1) +if (x === 1) Date.prototype.getUTCMilliseconds = 2; else Date.prototype.getUTCMilliseconds = 1; diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js index 63c9005a2967c0f2a1b55899dc2e9c9814bbe19f..5d8c8b31f65e70933aee71e4ea6247df683b295a 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.25_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCMilliseconds === false) { +if (delete Date.prototype.getUTCMilliseconds === false) { $ERROR('#1: The Date.prototype.getUTCMilliseconds property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js index dcb538084987434c1216e7795824841749d0d600..0c0a8d319fe7a69f3cf7502693696df4b35a5fec 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCMilliseconds')) { $ERROR('#1: The Date.prototype.getUTCMilliseconds property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCMilliseconds") { +for (var x in Date.prototype) { + if (x === "getUTCMilliseconds") { $ERROR('#2: The Date.prototype.getUTCMilliseconds has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js index b14b5e9a4b6388ac741ae0d86102c2957d89ac65..2d8a11c1bbf321c7aa03fb01cb80d4e644d9ddc1 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.25_A2_T1 description: The "length" property of the "getUTCMilliseconds" is 0 ---*/ -if(Date.prototype.getUTCMilliseconds.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCMilliseconds.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCMilliseconds has a "length" property'); } -if(Date.prototype.getUTCMilliseconds.length !== 0){ +if (Date.prototype.getUTCMilliseconds.length !== 0) { $ERROR('#2: The "length" property of the getUTCMilliseconds is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js index 665f2989e2fc11c11962d4a60c101a45f98056c2..9b079694f4421230c53d300ad9fac08e96dabf69 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.25_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCMilliseconds.length !== true) { +if (delete Date.prototype.getUTCMilliseconds.length !== true) { $ERROR('#1: The Date.prototype.getUTCMilliseconds.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js index 3e944308045b5560330d1fccee1e43a0ea8656ac..7a33960ae241e2964ad0deed50a566eb591c8e54 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCMilliseconds.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCMilliseconds.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCMilliseconds) { - if(x === "length") { +for (var x in Date.prototype.getUTCMilliseconds) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCMilliseconds.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js index f819746d1699dcc87a3836444458acae254c74c5..6c20b2ed7012ae78031427f6f97102d287c74e72 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCMilliseconds = Date.prototype.getUTCMilliseconds; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCMilliseconds, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js index 3ddc4e156d7ab92a83e122eb928c38ce50ecb994..de48fbbabe469b0e19bff0bf8f7257fd7844f8f4 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCMinutes; -if(x === 1) +if (x === 1) Date.prototype.getUTCMinutes = 2; else Date.prototype.getUTCMinutes = 1; diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js index 7bca0c22def0d2850bed460651fde8a2ed2aa43b..04951c393daedd7c87a39bf47250ea5cdcc0ad22 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.21_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCMinutes === false) { +if (delete Date.prototype.getUTCMinutes === false) { $ERROR('#1: The Date.prototype.getUTCMinutes property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js index 2cac17d360922a0604dc0be8320aabf176ab6b5f..bcf79fcdcad2a431b9371984ebb2f1806094025b 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCMinutes')) { $ERROR('#1: The Date.prototype.getUTCMinutes property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCMinutes") { +for (var x in Date.prototype) { + if (x === "getUTCMinutes") { $ERROR('#2: The Date.prototype.getUTCMinutes has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js index ec48a5454749ce8e0db80ac1944bdf44bd5796d4..0704d95d0d20662cefd095f45c3257ffff5c12e9 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.21_A2_T1 description: The "length" property of the "getUTCMinutes" is 0 ---*/ -if(Date.prototype.getUTCMinutes.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCMinutes.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCMinutes has a "length" property'); } -if(Date.prototype.getUTCMinutes.length !== 0){ +if (Date.prototype.getUTCMinutes.length !== 0) { $ERROR('#2: The "length" property of the getUTCMinutes is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js index 6991e95303abb42c2a0caa78aa294f791ba78add..c33ebaaea0c85d2cb5ffcefaa15f5b2623ed870a 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.21_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCMinutes.length !== true) { +if (delete Date.prototype.getUTCMinutes.length !== true) { $ERROR('#1: The Date.prototype.getUTCMinutes.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js index de2100e1639eb0ef9b7a702dad25b8ee8d72654b..b5b26ff33e69b0a805f86b03f23d3dfcbf3ab8d3 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCMinutes.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCMinutes.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCMinutes) { - if(x === "length") { +for (var x in Date.prototype.getUTCMinutes) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCMinutes.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js index d1ce694e4e76bde2df19661441a6a13c24851542..10e42c208cf9b070fef881e7b553edcb70bf24bd 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCMinutes = Date.prototype.getUTCMinutes; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCMinutes, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js index 705c403c3ae0a96003ac7b1451f53e25c7d6b64b..7e18abfda13e2b3b02917c52f40e0442bce86166 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCMonth; -if(x === 1) +if (x === 1) Date.prototype.getUTCMonth = 2; else Date.prototype.getUTCMonth = 1; diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js index 9ea891483ea63ffbc3ca8f516f9668270f09ca9c..a36fde2dbda52c7339af4821dbbfaf959e8d7998 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.13_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCMonth === false) { +if (delete Date.prototype.getUTCMonth === false) { $ERROR('#1: The Date.prototype.getUTCMonth property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js index 70498de044e3b9edeb9ba458796b0973302200a0..bdff66e89ad29682a05508f5df6bee84cd84796f 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCMonth')) { $ERROR('#1: The Date.prototype.getUTCMonth property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCMonth") { +for (var x in Date.prototype) { + if (x === "getUTCMonth") { $ERROR('#2: The Date.prototype.getUTCMonth has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js index c75a98145a0ee633c843d93e0cf73e50a7fa1b2e..987754bcce00b580cc96642afcc86925e586527a 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.13_A2_T1 description: The "length" property of the "getUTCMonth" is 0 ---*/ -if(Date.prototype.getUTCMonth.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCMonth.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCMonth has a "length" property'); } -if(Date.prototype.getUTCMonth.length !== 0){ +if (Date.prototype.getUTCMonth.length !== 0) { $ERROR('#2: The "length" property of the getUTCMonth is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js index da0788086f1028969ac671ee0d82b45bf66460ff..7f1b9e911035bc9be87005931a4d5d1ddb34008e 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.13_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCMonth.length !== true) { +if (delete Date.prototype.getUTCMonth.length !== true) { $ERROR('#1: The Date.prototype.getUTCMonth.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js index f6755a860c01489276c1ad522a9483420cdd1009..f2258b31501186a6d9ba27604ecdf30055f70874 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCMonth.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCMonth.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCMonth) { - if(x === "length") { +for (var x in Date.prototype.getUTCMonth) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCMonth.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js index 0dacaba82f5eabf0a729834887c0d0a2443436b7..cfb11a6a96fe3cb0a794b2f28e4c5f0bc72d4c16 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCMonth = Date.prototype.getUTCMonth; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCMonth, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js index b12f8f56c4c27ac097701231d3641f2a4e477b06..634414bb1ec4829180a6d561d18b5ce7cfb61a38 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.getUTCSeconds; -if(x === 1) +if (x === 1) Date.prototype.getUTCSeconds = 2; else Date.prototype.getUTCSeconds = 1; diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js index 80019c13ee95db3d5dc9137417d6d1f4f0862933..4a56c810f9877d110b1af78aeb1008ddf29e0881 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.23_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.getUTCSeconds === false) { +if (delete Date.prototype.getUTCSeconds === false) { $ERROR('#1: The Date.prototype.getUTCSeconds property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js index 1d0051b56033bb2809fd4f8e83d5b51edb4e0c41..c72724973237b656e31568c3f3b24813937d759f 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('getUTCSeconds')) { $ERROR('#1: The Date.prototype.getUTCSeconds property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "getUTCSeconds") { +for (var x in Date.prototype) { + if (x === "getUTCSeconds") { $ERROR('#2: The Date.prototype.getUTCSeconds has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js index 80a364e36e239b072b3f251a760e24361c719b74..e621eb0bcda98ce52a44452d89906f0c997dd331 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.23_A2_T1 description: The "length" property of the "getUTCSeconds" is 0 ---*/ -if(Date.prototype.getUTCSeconds.hasOwnProperty("length") !== true){ +if (Date.prototype.getUTCSeconds.hasOwnProperty("length") !== true) { $ERROR('#1: The getUTCSeconds has a "length" property'); } -if(Date.prototype.getUTCSeconds.length !== 0){ +if (Date.prototype.getUTCSeconds.length !== 0) { $ERROR('#2: The "length" property of the getUTCSeconds is 0'); } diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js index 37ca26af5ab251843c69ea54805dc13e915673c1..8ee7aa797aecc8ef697a4ba8aa60eb580799f3e1 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.23_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.getUTCSeconds.length !== true) { +if (delete Date.prototype.getUTCSeconds.length !== true) { $ERROR('#1: The Date.prototype.getUTCSeconds.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js index 208feef432434fa3caa9270e34fbfb4dcd4da775..2a355667508a7b3219bc35cf063e9a4c0dd5b66b 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.getUTCSeconds.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.getUTCSeconds.length property has the attribute DontEnum'); } -for(var x in Date.prototype.getUTCSeconds) { - if(x === "length") { +for (var x in Date.prototype.getUTCSeconds) { + if (x === "length") { $ERROR('#2: The Date.prototype.getUTCSeconds.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js b/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js index 0b4fc5f08b86a5082b96b86593fda5f92dc97115..7e05c144053cafc286edf5d76cd66f60231131be 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCSeconds = Date.prototype.getUTCSeconds; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCSeconds, 'function'); diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js index 9745d426d9ffc5c5c0eb133d6efa705ae0f47d62..44bf2281f4a5306f7fdc586e1608fe76f0ff72f5 100644 --- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js +++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setDate; -if(x === 1) +if (x === 1) Date.prototype.setDate = 2; else Date.prototype.setDate = 1; diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js index ead65ce16e04d56ecf5aec26911101a24a6c0b69..106d19e4f35808ca3921ba59746579e9081aeccc 100644 --- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js +++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.36_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setDate === false) { +if (delete Date.prototype.setDate === false) { $ERROR('#1: The Date.prototype.setDate property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js index 9d30e635bc3655895a9b0b157bb537ffbe2ffa2d..90cdad160cbade17d0c64bf432d4c59b950ccf92 100644 --- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js +++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setDate')) { $ERROR('#1: The Date.prototype.setDate property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setDate") { +for (var x in Date.prototype) { + if (x === "setDate") { $ERROR('#2: The Date.prototype.setDate has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js index 51be0cd064f2132ed228ebae76602847aac032cd..c85ae0c50914df4bb3c2d5298b2eef8c585e2eb0 100644 --- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js +++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.36_A2_T1 description: The "length" property of the "setDate" is 1 ---*/ -if(Date.prototype.setDate.hasOwnProperty("length") !== true){ +if (Date.prototype.setDate.hasOwnProperty("length") !== true) { $ERROR('#1: The setDate has a "length" property'); } -if(Date.prototype.setDate.length !== 1){ +if (Date.prototype.setDate.length !== 1) { $ERROR('#2: The "length" property of the setDate is 1'); } diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js index d58c65078804921f10234573f41d78cdc646142a..83862dd21774eceb35fd1878a1ab24b3f35ae280 100644 --- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js +++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.36_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setDate.length !== true) { +if (delete Date.prototype.setDate.length !== true) { $ERROR('#1: The Date.prototype.setDate.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js index 2a523fedbdd332efb28874d7a00b8b552c0f46cb..52762004e5ff6ec3ebdf37549aeb244ccc3b7012 100644 --- a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js +++ b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setDate.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setDate.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setDate) { - if(x === "length") { +for (var x in Date.prototype.setDate) { + if (x === "length") { $ERROR('#2: The Date.prototype.setDate.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setDate/this-value-non-date.js b/test/built-ins/Date/prototype/setDate/this-value-non-date.js index 8cfe106312b96a2b4a272f25f4bd2b3ba92e1a36..b09fd4e3ef1592fb67bb97d65f3c279f769be2c3 100644 --- a/test/built-ins/Date/prototype/setDate/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setDate/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setDate, 'function'); diff --git a/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js b/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js index cde7bec693bd981d1716931907f7a6abce55227f..446066ceca1562db37fa39c61e4e056707dcab75 100644 --- a/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js +++ b/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js @@ -11,5 +11,5 @@ description: > assert.throws(TypeError, function() { - Date.prototype.setFullYear(2012); + Date.prototype.setFullYear(2012); }); diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js index f148514c496829bcca432958699f4ec499a88ec4..87c6dfceca62eb01d9653fa2203035d09c17284f 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setFullYear; -if(x === 1) +if (x === 1) Date.prototype.setFullYear = 2; else Date.prototype.setFullYear = 1; diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js index 6b430e5284c1889708bca1b22b799ef60ecd3f56..2614ce2be84c850fe47f9dfc8fde4a1c2ffd82ce 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.40_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setFullYear === false) { +if (delete Date.prototype.setFullYear === false) { $ERROR('#1: The Date.prototype.setFullYear property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js index 2ecf10d654f48f79bb0e9caef54e93843bcd721d..506cc0869666537e720f7040b5220fc6dc933a21 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setFullYear')) { $ERROR('#1: The Date.prototype.setFullYear property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setFullYear") { +for (var x in Date.prototype) { + if (x === "setFullYear") { $ERROR('#2: The Date.prototype.setFullYear has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js index 0a49250a5c0eecdbf87dc747081a4f4bd591b450..4cab3b3347a782cd67b612b65f5e631a61021288 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.40_A2_T1 description: The "length" property of the "setFullYear" is 3 ---*/ -if(Date.prototype.setFullYear.hasOwnProperty("length") !== true){ +if (Date.prototype.setFullYear.hasOwnProperty("length") !== true) { $ERROR('#1: The setFullYear has a "length" property'); } -if(Date.prototype.setFullYear.length !== 3){ +if (Date.prototype.setFullYear.length !== 3) { $ERROR('#2: The "length" property of the setFullYear is 3'); } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js index ba50177466825b44a91443af888acb2767a633f3..5dab62ff421286e262524c55db99c32afa241d61 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.40_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setFullYear.length !== true) { +if (delete Date.prototype.setFullYear.length !== true) { $ERROR('#1: The Date.prototype.setFullYear.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js index 565a1f80aa845987ef47542683b496af6c65f91f..170c26f653b8f1d7b05b76883e744fa2700e28ec 100644 --- a/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js +++ b/test/built-ins/Date/prototype/setFullYear/S15.9.5.40_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setFullYear.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setFullYear.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setFullYear) { - if(x === "length") { +for (var x in Date.prototype.setFullYear) { + if (x === "length") { $ERROR('#2: The Date.prototype.setFullYear.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js b/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js index ece79ddc411e0c1a1b0d56e5dc949421e8617ec6..9a4d316d3593e56ec62c52707b50a9c940fe7ae4 100644 --- a/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setFullYear, 'function'); diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js index 7b709c759949f0f4c2b66f6094e423260cdd6ec1..95b5a5a2106517e2e260e2ec848ab5e53c6cd763 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setHours; -if(x === 1) +if (x === 1) Date.prototype.setHours = 2; else Date.prototype.setHours = 1; diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js index fbca2081e2fc63d63b574d29dd964d2917e70e6f..a46d72b43713d5d29492f73451b091e587fd3985 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.34_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setHours === false) { +if (delete Date.prototype.setHours === false) { $ERROR('#1: The Date.prototype.setHours property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js index 614e46e9769543eea8b0b70422e776fcae5b1743..9d005c8e7cf748091c50bbdcbeeb5d0394856e61 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setHours')) { $ERROR('#1: The Date.prototype.setHours property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setHours") { +for (var x in Date.prototype) { + if (x === "setHours") { $ERROR('#2: The Date.prototype.setHours has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js index e000d2ab632240fff08b5c9d392583bc8791b66c..7b8bfb66aa870e40327b9e5bf9b3f3ed7058949d 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.34_A2_T1 description: The "length" property of the "setHours" is 4 ---*/ -if(Date.prototype.setHours.hasOwnProperty("length") !== true){ +if (Date.prototype.setHours.hasOwnProperty("length") !== true) { $ERROR('#1: The setHours has a "length" property'); } -if(Date.prototype.setHours.length !== 4){ +if (Date.prototype.setHours.length !== 4) { $ERROR('#2: The "length" property of the setHours is 4'); } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js index c15bc6d2e5c07c74d276ce9c3263ce79e564fffa..83d468f5d6481aeae827977b270d713414324c7c 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.34_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setHours.length !== true) { +if (delete Date.prototype.setHours.length !== true) { $ERROR('#1: The Date.prototype.setHours.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js index 318de235b13e3da6dc21007129632c314e79484a..d33d529cd00ea0025cd88d35e70c1298dc2daaf8 100644 --- a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js +++ b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setHours.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setHours.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setHours) { - if(x === "length") { +for (var x in Date.prototype.setHours) { + if (x === "length") { $ERROR('#2: The Date.prototype.setHours.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setHours/this-value-non-date.js b/test/built-ins/Date/prototype/setHours/this-value-non-date.js index 1f0c79bffb71c40e3cfc4735e19b11e603afe5c4..e1f4fc3bea7776d55458915be1444d68e61222f9 100644 --- a/test/built-ins/Date/prototype/setHours/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setHours/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setHours, 'function'); diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js index 5942a2006674db806d321eefdfdefb382a018b20..ff1c5768b64a9e86fb5f44cf3be4a753a4029aae 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js +++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setMilliseconds; -if(x === 1) +if (x === 1) Date.prototype.setMilliseconds = 2; else Date.prototype.setMilliseconds = 1; diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js index 2bbc4a908270689961e9c30f5549db20190bb920..7af41c60df9f446d2fc103f988e10ed7fd8fb069 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js +++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.28_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setMilliseconds === false) { +if (delete Date.prototype.setMilliseconds === false) { $ERROR('#1: The Date.prototype.setMilliseconds property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js index 304c43553d2bbca500ec37eddf32887e06a1f4de..9f8624a50b125c5b3318933a2b84a32dc5335775 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js +++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setMilliseconds')) { $ERROR('#1: The Date.prototype.setMilliseconds property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setMilliseconds") { +for (var x in Date.prototype) { + if (x === "setMilliseconds") { $ERROR('#2: The Date.prototype.setMilliseconds has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js index 4d123f0ee2333eb3da4c13c3e1559b2953d31c29..e784ed356a2e230a0977285b88e6a029f6e68a6c 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js +++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.28_A2_T1 description: The "length" property of the "setMilliseconds" is 1 ---*/ -if(Date.prototype.setMilliseconds.hasOwnProperty("length") !== true){ +if (Date.prototype.setMilliseconds.hasOwnProperty("length") !== true) { $ERROR('#1: The setMilliseconds has a "length" property'); } -if(Date.prototype.setMilliseconds.length !== 1){ +if (Date.prototype.setMilliseconds.length !== 1) { $ERROR('#2: The "length" property of the setMilliseconds is 1'); } diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js index c53633c556cda13305d0a25df961f09190305220..44772a4fb8952bc489414aa3634f69d4c5112362 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js +++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.28_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setMilliseconds.length !== true) { +if (delete Date.prototype.setMilliseconds.length !== true) { $ERROR('#1: The Date.prototype.setMilliseconds.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js index 264f0c077e5e9eecbd16de8a01dacd79ee52eafc..f0af044b59a5e5210315b3c362b19a0a7a9432a9 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js +++ b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setMilliseconds.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setMilliseconds.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setMilliseconds) { - if(x === "length") { +for (var x in Date.prototype.setMilliseconds) { + if (x === "length") { $ERROR('#2: The Date.prototype.setMilliseconds.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js b/test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js index 4ec16e58973e86a64e61110d9435d0e0561f544c..7e8d6c2fe4af7494c955d0d2fa5525657a47ba63 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js +++ b/test/built-ins/Date/prototype/setMilliseconds/arg-to-number.js @@ -54,7 +54,7 @@ assert.sameValue(returnValue, new Date(2016, 6, 1).getTime(), 'false'); returnValue = date.setMilliseconds(' +00200.000E-0002 '); assert.sameValue( - returnValue, new Date(2016, 6, 1, 0, 0, 0 , 2).getTime(), 'string' + returnValue, new Date(2016, 6, 1, 0, 0, 0, 2).getTime(), 'string' ); returnValue = date.setMilliseconds(); diff --git a/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js b/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js index df836da906e5dc45aaa9e7a3d945ab9f5a81e4b3..f0b0010944cb7c08aa440a84d06da36798e95555 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setMilliseconds, 'function'); diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js index 0eb55d5095af57db1e441c0889a13523c515243e..66a03933358b3bf1019dea1f5b43c89891c2b8ee 100644 --- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js +++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setMinutes; -if(x === 1) +if (x === 1) Date.prototype.setMinutes = 2; else Date.prototype.setMinutes = 1; diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js index a326bb1dc6108e2445d85bb219403507841414f9..050e72b87b0f1a542996716915bcb570d6b8ebb4 100644 --- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js +++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.32_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setMinutes === false) { +if (delete Date.prototype.setMinutes === false) { $ERROR('#1: The Date.prototype.setMinutes property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js index 7df0448c5550d43e73e1a64744020bcdf239e1a6..aa2534cbafa4e6340a9707dd2db683526ae0a546 100644 --- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js +++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setMinutes')) { $ERROR('#1: The Date.prototype.setMinutes property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setMinutes") { +for (var x in Date.prototype) { + if (x === "setMinutes") { $ERROR('#2: The Date.prototype.setMinutes has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js index 63b492e5a7378b289c7f08a46a1e3801f3cc4f2a..307c3faf82be6ffb650e50099023838bdd67aecf 100644 --- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js +++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.32_A2_T1 description: The "length" property of the "setMinutes" is 3 ---*/ -if(Date.prototype.setMinutes.hasOwnProperty("length") !== true){ +if (Date.prototype.setMinutes.hasOwnProperty("length") !== true) { $ERROR('#1: The setMinutes has a "length" property'); } -if(Date.prototype.setMinutes.length !== 3){ +if (Date.prototype.setMinutes.length !== 3) { $ERROR('#2: The "length" property of the setMinutes is 3'); } diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js index 027585d5fe1d2a59bb99b1e4eaaa058e24f74bf2..2defce23d60da4f5bb326ba6c755f313d0866857 100644 --- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js +++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.32_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setMinutes.length !== true) { +if (delete Date.prototype.setMinutes.length !== true) { $ERROR('#1: The Date.prototype.setMinutes.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js index 90f2d2a076a2a164ea5e0a239636c12d0ca62f5a..8d0ec12157f418ad25fb6fb3c2f146be2dcfd979 100644 --- a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js +++ b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setMinutes.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setMinutes.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setMinutes) { - if(x === "length") { +for (var x in Date.prototype.setMinutes) { + if (x === "length") { $ERROR('#2: The Date.prototype.setMinutes.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js b/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js index dfb851f0938d3214b30ff33112f94d5e487a550b..dfd21f485a6e7f48898718b48d70bf28de527d9c 100644 --- a/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setMinutes, 'function'); diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js index db7ec51acb07b787796e929150da175af538b386..c38de021424cea2fd38054ae6f61884fa4a81d7e 100644 --- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js +++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setMonth; -if(x === 1) +if (x === 1) Date.prototype.setMonth = 2; else Date.prototype.setMonth = 1; diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js index a2d3318c1847456489e820c114caf2fe8589e7b5..9c1ab2a20aa6f63164a02cd9f6608b5241c61687 100644 --- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js +++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.38_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setMonth === false) { +if (delete Date.prototype.setMonth === false) { $ERROR('#1: The Date.prototype.setMonth property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js index 2998b51cf7cc14cd81b1279ab777e917b65f49f8..14a0d1537703a7ea70c7acf74849796954d05331 100644 --- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js +++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setMonth')) { $ERROR('#1: The Date.prototype.setMonth property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setMonth") { +for (var x in Date.prototype) { + if (x === "setMonth") { $ERROR('#2: The Date.prototype.setMonth has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js index dd68de3b02399ee97c8d21b7293ce0acfb675eb1..8a5de9ca468905bed2c577c6e4940b5a7e98d479 100644 --- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js +++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.38_A2_T1 description: The "length" property of the "setMonth" is 2 ---*/ -if(Date.prototype.setMonth.hasOwnProperty("length") !== true){ +if (Date.prototype.setMonth.hasOwnProperty("length") !== true) { $ERROR('#1: The setMonth has a "length" property'); } -if(Date.prototype.setMonth.length !== 2){ +if (Date.prototype.setMonth.length !== 2) { $ERROR('#2: The "length" property of the setMonth is 2'); } diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js index 17adaeb47a328206cd594ee86127cc91140adb1f..efca28cee2c5819d13d1c1f2763044ad42e81d00 100644 --- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js +++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.38_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setMonth.length !== true) { +if (delete Date.prototype.setMonth.length !== true) { $ERROR('#1: The Date.prototype.setMonth.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js index 8169cab415e787cea0a9753e4f6e3382b35338b4..ef07cbb5c14d2792ac5bdc631bba61a90e7d3eb2 100644 --- a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js +++ b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setMonth.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setMonth.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setMonth) { - if(x === "length") { +for (var x in Date.prototype.setMonth) { + if (x === "length") { $ERROR('#2: The Date.prototype.setMonth.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setMonth/this-value-non-date.js b/test/built-ins/Date/prototype/setMonth/this-value-non-date.js index 2828944675cfe9281a7690935aab82152776af04..6d16b1ff4cacc8ecae1d483dd1f1979a2463a213 100644 --- a/test/built-ins/Date/prototype/setMonth/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setMonth/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setMonth, 'function'); diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js index 1ebdb5b51e923b8de21f48c48295777edcc8ec32..519120b36f7034356b1104799ca5f0a5514bfe83 100644 --- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js +++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setSeconds; -if(x === 1) +if (x === 1) Date.prototype.setSeconds = 2; else Date.prototype.setSeconds = 1; diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js index 43b17d0f86f100571a2528b16d87e2e10a6f66c8..f9f122a6451c2e2cfc8f192afb836f384b17a7c0 100644 --- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js +++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.30_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setSeconds === false) { +if (delete Date.prototype.setSeconds === false) { $ERROR('#1: The Date.prototype.setSeconds property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js index f4215dd838e5577cc510070d68858993f81a8bb3..8d960dcb624f43fa8d434611d2828a55cd7332ff 100644 --- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js +++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setSeconds')) { $ERROR('#1: The Date.prototype.setSeconds property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setSeconds") { +for (var x in Date.prototype) { + if (x === "setSeconds") { $ERROR('#2: The Date.prototype.setSeconds has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js index 49c6c908369dae524c7bf202ea082f56659560ae..a2fe30e5254575af43d185a756c0975da26ac302 100644 --- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js +++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.30_A2_T1 description: The "length" property of the "setSeconds" is 2 ---*/ -if(Date.prototype.setSeconds.hasOwnProperty("length") !== true){ +if (Date.prototype.setSeconds.hasOwnProperty("length") !== true) { $ERROR('#1: The setSeconds has a "length" property'); } -if(Date.prototype.setSeconds.length !== 2){ +if (Date.prototype.setSeconds.length !== 2) { $ERROR('#2: The "length" property of the setSeconds is 2'); } diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js index ef7f322d83340f3f2f05a6d3072b27c0f3637215..be61ed9a8b072757dcfc0b42b3f2c888c80714ed 100644 --- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js +++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.30_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setSeconds.length !== true) { +if (delete Date.prototype.setSeconds.length !== true) { $ERROR('#1: The Date.prototype.setSeconds.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js index bfd04c09dd9a19bc4aa50803b1d6c8c44eb83130..5a281d8d04b62c76da4eebc3e037de30bdbebbfe 100644 --- a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js +++ b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setSeconds.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setSeconds.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setSeconds) { - if(x === "length") { +for (var x in Date.prototype.setSeconds) { + if (x === "length") { $ERROR('#2: The Date.prototype.setSeconds.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js b/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js index 23821c06a822aa9be4431d8300098906c1220495..e63ed9c3721955eb109898492a7084323a7dd515 100644 --- a/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setSeconds, 'function'); diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js index 1358fd8f9fb81e4fe5accf8669766ce6e9ad2f2c..2a56bf3ae8a264a7e18809db6981e1f14141fec9 100644 --- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js +++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setTime; -if(x === 1) +if (x === 1) Date.prototype.setTime = 2; else Date.prototype.setTime = 1; diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js index 1718c42135f434e8ce8228a3b9ecaa65882565f1..2e872fd729a80651ab6ec5a359339b816c298d82 100644 --- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js +++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.27_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setTime === false) { +if (delete Date.prototype.setTime === false) { $ERROR('#1: The Date.prototype.setTime property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js index ed64ee5ed9c5901089c65cddbcfe14b5295bba45..0a9fd6ce568732af1cabc379ea5b011f93b13080 100644 --- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js +++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setTime')) { $ERROR('#1: The Date.prototype.setTime property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setTime") { +for (var x in Date.prototype) { + if (x === "setTime") { $ERROR('#2: The Date.prototype.setTime has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js index 0b47d76ce3c52fc4d0759f0144839fdda4272468..f7f68712d97c821da8f267c27d99a08d9fcbf0d8 100644 --- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js +++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.27_A2_T1 description: The "length" property of the "setTime" is 1 ---*/ -if(Date.prototype.setTime.hasOwnProperty("length") !== true){ +if (Date.prototype.setTime.hasOwnProperty("length") !== true) { $ERROR('#1: The setTime has a "length" property'); } -if(Date.prototype.setTime.length !== 1){ +if (Date.prototype.setTime.length !== 1) { $ERROR('#2: The "length" property of the setTime is 1'); } diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js index 95b02e0d5c318355022ff9b0a1086f4a66423e6d..f804e38d9beac5cb0187b0ad362f66cae28bac16 100644 --- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js +++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.27_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setTime.length !== true) { +if (delete Date.prototype.setTime.length !== true) { $ERROR('#1: The Date.prototype.setTime.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js index 1981007be3491db4dfdda3624e3e90da2c5513a9..cdd444a6b861d7b39691c1eb013b74f246d49961 100644 --- a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js +++ b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setTime.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setTime.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setTime) { - if(x === "length") { +for (var x in Date.prototype.setTime) { + if (x === "length") { $ERROR('#2: The Date.prototype.setTime.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setTime/this-value-non-date.js b/test/built-ins/Date/prototype/setTime/this-value-non-date.js index c2fb0f4b6510759f3f8451c025065471f21e3002..ca4ade5b2f7c7d6bd1a447518262bf1c765cc84a 100644 --- a/test/built-ins/Date/prototype/setTime/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setTime/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setTime, 'function'); diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js index fb0106d7106d838baa051b543316d03a994ef2e7..c296387b8e3243b524b51af9a9aacfaa3054fe51 100644 --- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js +++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setUTCDate; -if(x === 1) +if (x === 1) Date.prototype.setUTCDate = 2; else Date.prototype.setUTCDate = 1; diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js index 5cb5c8bb1a4eeca423c112fcc4a857b8fada8564..3ef3186fac91ee1652585d79394472c340945e86 100644 --- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js +++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.37_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setUTCDate === false) { +if (delete Date.prototype.setUTCDate === false) { $ERROR('#1: The Date.prototype.setUTCDate property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js index f99b22fccd0b74a89bfb2ce1f4202d8e9ca18d84..90decdc776fc10f958db6c0db1836d04c6ac435e 100644 --- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js +++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCDate')) { $ERROR('#1: The Date.prototype.setUTCDate property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setUTCDate") { +for (var x in Date.prototype) { + if (x === "setUTCDate") { $ERROR('#2: The Date.prototype.setUTCDate has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js index 4e810092e960dda2598566cab39a7661df8d880c..3cbefe81a81938833997b4e6ee76d0d90e012524 100644 --- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js +++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.37_A2_T1 description: The "length" property of the "setUTCDate" is 1 ---*/ -if(Date.prototype.setUTCDate.hasOwnProperty("length") !== true){ +if (Date.prototype.setUTCDate.hasOwnProperty("length") !== true) { $ERROR('#1: The setUTCDate has a "length" property'); } -if(Date.prototype.setUTCDate.length !== 1){ +if (Date.prototype.setUTCDate.length !== 1) { $ERROR('#2: The "length" property of the setUTCDate is 1'); } diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js index 732f6bf78b69d7121c1398b24e3a76be29afab81..5e29f15a8118d05e9ad435b2c6a76d01acf61a76 100644 --- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js +++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.37_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setUTCDate.length !== true) { +if (delete Date.prototype.setUTCDate.length !== true) { $ERROR('#1: The Date.prototype.setUTCDate.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js index eb097a6acdde60c4a6658b7d2d2acf8962aef49d..ffebf079737009e351967e6b97e8130d006f2dd8 100644 --- a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js +++ b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setUTCDate.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setUTCDate.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setUTCDate) { - if(x === "length") { +for (var x in Date.prototype.setUTCDate) { + if (x === "length") { $ERROR('#2: The Date.prototype.setUTCDate.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js index ff165c535ec92db9685e279ac71d3307979610d9..fa2e021e24dbbd0f52e53dfe9f7bd1e412b56223 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setUTCFullYear; -if(x === 1) +if (x === 1) Date.prototype.setUTCFullYear = 2; else Date.prototype.setUTCFullYear = 1; diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js index a12b7435d2dc2e8863326d8d4cc5a3d679895b09..1d8a1262ce0b71666d99dda60132ee7ced4f4d6d 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.41_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setUTCFullYear === false) { +if (delete Date.prototype.setUTCFullYear === false) { $ERROR('#1: The Date.prototype.setUTCFullYear property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js index 1a388a682252368f8e39e633ed1e00bcbf36818e..7abfca465098409cbdfb475fcf2aafe6a804fa78 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCFullYear')) { $ERROR('#1: The Date.prototype.setUTCFullYear property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setUTCFullYear") { +for (var x in Date.prototype) { + if (x === "setUTCFullYear") { $ERROR('#2: The Date.prototype.setUTCFullYear has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js index 185a24888aeb1105135ad4c8b7de43281d1c5155..1c332dd81193ee900d952c879410c6cc4f3f8ed5 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.41_A2_T1 description: The "length" property of the "setUTCFullYear" is 3 ---*/ -if(Date.prototype.setUTCFullYear.hasOwnProperty("length") !== true){ +if (Date.prototype.setUTCFullYear.hasOwnProperty("length") !== true) { $ERROR('#1: The setUTCFullYear has a "length" property'); } -if(Date.prototype.setUTCFullYear.length !== 3){ +if (Date.prototype.setUTCFullYear.length !== 3) { $ERROR('#2: The "length" property of the setUTCFullYear is 3'); } diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js index a35c41590383f9205c6f12b92f13ef54c0fb09f8..a2228d5895bc634f69b8986602bf43bebc637f61 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.41_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setUTCFullYear.length !== true) { +if (delete Date.prototype.setUTCFullYear.length !== true) { $ERROR('#1: The Date.prototype.setUTCFullYear.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js index f67269dc1f78a485cd96c6008241a2c733338864..6ef0033d839b0486633a356aa2ec960fc0977987 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setUTCFullYear.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setUTCFullYear.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setUTCFullYear) { - if(x === "length") { +for (var x in Date.prototype.setUTCFullYear) { + if (x === "length") { $ERROR('#2: The Date.prototype.setUTCFullYear.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js index f59d7877c7686da3ab59545a6ca4080e95956b0f..887d73eca8c078f77c3482c9215cd44564a68aeb 100644 --- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js +++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setUTCHours; -if(x === 1) +if (x === 1) Date.prototype.setUTCHours = 2; else Date.prototype.setUTCHours = 1; diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js index 48a615ba21ee7c33b3aee9b17da0ca28217d6e75..c314b25bd16420c3c6f4376007d2772383f25b10 100644 --- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js +++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.35_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setUTCHours === false) { +if (delete Date.prototype.setUTCHours === false) { $ERROR('#1: The Date.prototype.setUTCHours property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js index a7355fa1d7e78eaf992746683ea2d4e181001316..e7645db480eb10f2c62d018aa9b3c4065b92233c 100644 --- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js +++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCHours')) { $ERROR('#1: The Date.prototype.setUTCHours property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setUTCHours") { +for (var x in Date.prototype) { + if (x === "setUTCHours") { $ERROR('#2: The Date.prototype.setUTCHours has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js index 4101fa7e6a0d47739412e5471a70636a7244e25d..aff70c61e15b7c2571c5966dcf7477d6e05bd3e0 100644 --- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js +++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.35_A2_T1 description: The "length" property of the "setUTCHours" is 4 ---*/ -if(Date.prototype.setUTCHours.hasOwnProperty("length") !== true){ +if (Date.prototype.setUTCHours.hasOwnProperty("length") !== true) { $ERROR('#1: The setUTCHours has a "length" property'); } -if(Date.prototype.setUTCHours.length !== 4){ +if (Date.prototype.setUTCHours.length !== 4) { $ERROR('#2: The "length" property of the setUTCHours is 4'); } diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js index 6f4e2dd0d8c2a0151a532225af62006463bcc9ea..907b8712ef49a621195d35b44ace98f43c7ede6f 100644 --- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js +++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.35_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setUTCHours.length !== true) { +if (delete Date.prototype.setUTCHours.length !== true) { $ERROR('#1: The Date.prototype.setUTCHours.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js index 745bfc88f359bd5c44ff5247c118cadf8babc3d2..c80cf621917fb33fa2b3e926a7c5af8425945155 100644 --- a/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js +++ b/test/built-ins/Date/prototype/setUTCHours/S15.9.5.35_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setUTCHours.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setUTCHours.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setUTCHours) { - if(x === "length") { +for (var x in Date.prototype.setUTCHours) { + if (x === "length") { $ERROR('#2: The Date.prototype.setUTCHours.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js index 76f4e76b027c4d9644cb6c13cf07214b3b0caed0..a1d0a1947a1d570ecf22536269b81a56edb675e1 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T1.js @@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setUTCMilliseconds; -if(x === 1) +if (x === 1) Date.prototype.setUTCMilliseconds = 2; else Date.prototype.setUTCMilliseconds = 1; diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js index 75d82db9e0215ca58974ad4c8b79c7ada49c8091..4d8fc8fa5db286bb8b3c9d11b56a742bb25e6184 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.29_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setUTCMilliseconds === false) { +if (delete Date.prototype.setUTCMilliseconds === false) { $ERROR('#1: The Date.prototype.setUTCMilliseconds property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js index caebe55dd840a3fc6cf168867cb95eb6ccb2389a..c24ff83d56798768ee4632559780b8648b9e3bd3 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A1_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCMilliseconds')) { $ERROR('#1: The Date.prototype.setUTCMilliseconds property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setUTCMilliseconds") { +for (var x in Date.prototype) { + if (x === "setUTCMilliseconds") { $ERROR('#2: The Date.prototype.setUTCMilliseconds has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js index 881c01fcc3275bbe0e34d7fc20167b0a78eede6a..345a3e3d354a2b963aada9c506816f84a8d1685e 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.29_A2_T1 description: The "length" property of the "setUTCMilliseconds" is 1 ---*/ -if(Date.prototype.setUTCMilliseconds.hasOwnProperty("length") !== true){ +if (Date.prototype.setUTCMilliseconds.hasOwnProperty("length") !== true) { $ERROR('#1: The setUTCMilliseconds has a "length" property'); } -if(Date.prototype.setUTCMilliseconds.length !== 1){ +if (Date.prototype.setUTCMilliseconds.length !== 1) { $ERROR('#2: The "length" property of the setUTCMilliseconds is 1'); } diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js index 57cd4142aeb960a6c7e3b52196a06997946725b1..f70f57b134f93cc01249a203a53a2ae52f946d2e 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.29_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setUTCMilliseconds.length !== true) { +if (delete Date.prototype.setUTCMilliseconds.length !== true) { $ERROR('#1: The Date.prototype.setUTCMilliseconds.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js index 6dde346d8f6336405a3e87af0a6aaac339f726e8..a47a18c29575df7f512ea54a2776722dace6e39b 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/S15.9.5.29_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setUTCMilliseconds.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setUTCMilliseconds.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setUTCMilliseconds) { - if(x === "length") { +for (var x in Date.prototype.setUTCMilliseconds) { + if (x === "length") { $ERROR('#2: The Date.prototype.setUTCMilliseconds.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js index 688f48e216fcd7e59935fbdc54ea4754220227a4..44c08e64fc9b73e43440c3037c182f60a0546682 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setUTCMinutes; -if(x === 1) +if (x === 1) Date.prototype.setUTCMinutes = 2; else Date.prototype.setUTCMinutes = 1; diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js index 9d9f27c44facfec65ffcd4bdd8163b472bcb56a9..3bde3ee4d5e6b35c4db2b6962ae408581d61b930 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.33_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setUTCMinutes === false) { +if (delete Date.prototype.setUTCMinutes === false) { $ERROR('#1: The Date.prototype.setUTCMinutes property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js index cce942cbf11df47cd0fbafa0ed92dfa56d481a9a..edc715a8606873c40733996157502739c386c323 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCMinutes')) { $ERROR('#1: The Date.prototype.setUTCMinutes property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setUTCMinutes") { +for (var x in Date.prototype) { + if (x === "setUTCMinutes") { $ERROR('#2: The Date.prototype.setUTCMinutes has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js index c6aa7f7d0d775503d5263140fe8b4dd057b42d91..bf0efd47679400bedd0449f0d986b966874c199a 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.33_A2_T1 description: The "length" property of the "setUTCMinutes" is 3 ---*/ -if(Date.prototype.setUTCMinutes.hasOwnProperty("length") !== true){ +if (Date.prototype.setUTCMinutes.hasOwnProperty("length") !== true) { $ERROR('#1: The setUTCMinutes has a "length" property'); } -if(Date.prototype.setUTCMinutes.length !== 3){ +if (Date.prototype.setUTCMinutes.length !== 3) { $ERROR('#2: The "length" property of the setUTCMinutes is 3'); } diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js index d512247e652d37591ebfdcba80f33f1020885b33..5b19af2eaf06d990773c700d4c350e75f96828cf 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.33_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setUTCMinutes.length !== true) { +if (delete Date.prototype.setUTCMinutes.length !== true) { $ERROR('#1: The Date.prototype.setUTCMinutes.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js index 28b7f74995a6a44abde7e991bf79120b4f289309..0614a194bdc400612f5b8fae1230d0922537b187 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/S15.9.5.33_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setUTCMinutes.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setUTCMinutes.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setUTCMinutes) { - if(x === "length") { +for (var x in Date.prototype.setUTCMinutes) { + if (x === "length") { $ERROR('#2: The Date.prototype.setUTCMinutes.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js index 078ac39c1879d996daa4c0ac04c077c6190b772b..da43ff45f17cd1a07501e44f4cbeddac79404ba0 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js +++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setUTCMonth; -if(x === 1) +if (x === 1) Date.prototype.setUTCMonth = 2; else Date.prototype.setUTCMonth = 1; diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js index 48de38d729c47cae0e4051cca1985d91bf61f72f..9790d9a99ed1b91b54515d8417a6e48a132677d4 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js +++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.39_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setUTCMonth === false) { +if (delete Date.prototype.setUTCMonth === false) { $ERROR('#1: The Date.prototype.setUTCMonth property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js index ed6ca3fe171bcc390da87b7978bf5e9c029ac640..ed7332bd2ecddd56a155b674e687ae9d1b67b895 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js +++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCMonth')) { $ERROR('#1: The Date.prototype.setUTCMonth property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setUTCMonth") { +for (var x in Date.prototype) { + if (x === "setUTCMonth") { $ERROR('#2: The Date.prototype.setUTCMonth has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js index a4c5d29ed618a5a00d06f5eda3562de262587bcc..682dd9f7278dbe84688f5a74275b9a5b4854e8b8 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js +++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.39_A2_T1 description: The "length" property of the "setUTCMonth" is 2 ---*/ -if(Date.prototype.setUTCMonth.hasOwnProperty("length") !== true){ +if (Date.prototype.setUTCMonth.hasOwnProperty("length") !== true) { $ERROR('#1: The setUTCMonth has a "length" property'); } -if(Date.prototype.setUTCMonth.length !== 2){ +if (Date.prototype.setUTCMonth.length !== 2) { $ERROR('#2: The "length" property of the setUTCMonth is 2'); } diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js index 82c3bf8b4d103a9ae82b657ed0cca83405857f26..07e8dda6011f0a7617731f41d64a5d9c1b33d682 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js +++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.39_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setUTCMonth.length !== true) { +if (delete Date.prototype.setUTCMonth.length !== true) { $ERROR('#1: The Date.prototype.setUTCMonth.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js index d02f44bbe61f29cb6983c60ba6e8d1d38b3c23c8..1fee64d56726e42e42139a01926fa7d4bf965210 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js +++ b/test/built-ins/Date/prototype/setUTCMonth/S15.9.5.39_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setUTCMonth.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setUTCMonth.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setUTCMonth) { - if(x === "length") { +for (var x in Date.prototype.setUTCMonth) { + if (x === "length") { $ERROR('#2: The Date.prototype.setUTCMonth.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js index 2e7d84561a0e7d9455769eabb3fc37e79a5379bf..903d2dc772d8d61de638878ba61f409df7245535 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.setUTCSeconds; -if(x === 1) +if (x === 1) Date.prototype.setUTCSeconds = 2; else Date.prototype.setUTCSeconds = 1; diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js index 0e74c82ad615a25850c8337e5361483a31d388ab..7d3d1d09e81fc7736d359259a6da8660045bb963 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.31_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.setUTCSeconds === false) { +if (delete Date.prototype.setUTCSeconds === false) { $ERROR('#1: The Date.prototype.setUTCSeconds property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js index 1ca934a4ad5cd5d811a46b7c9e4aa124bc9c71f3..eb427b1ffc8a54fe76cc7cfaf7fc051ea5379425 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('setUTCSeconds')) { $ERROR('#1: The Date.prototype.setUTCSeconds property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "setUTCSeconds") { +for (var x in Date.prototype) { + if (x === "setUTCSeconds") { $ERROR('#2: The Date.prototype.setUTCSeconds has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js index 5dc03a2ad9cc1044bdc6bff32e5c4381af59a570..edcc69006dd42fb0d5518947d0f7bbdc1cb73a60 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.31_A2_T1 description: The "length" property of the "setUTCSeconds" is 2 ---*/ -if(Date.prototype.setUTCSeconds.hasOwnProperty("length") !== true){ +if (Date.prototype.setUTCSeconds.hasOwnProperty("length") !== true) { $ERROR('#1: The setUTCSeconds has a "length" property'); } -if(Date.prototype.setUTCSeconds.length !== 2){ +if (Date.prototype.setUTCSeconds.length !== 2) { $ERROR('#2: The "length" property of the setUTCSeconds is 2'); } diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js index b05658309847cbcbaaac6d747c2443c2b2df1832..26c0833404f17533d7321ee7a5aa4ead1deb7d6b 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.31_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.setUTCSeconds.length !== true) { +if (delete Date.prototype.setUTCSeconds.length !== true) { $ERROR('#1: The Date.prototype.setUTCSeconds.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js index 17ec0c0ee47046a8d9eaab5eb86082eba96d9119..2cb04dd6257fa7ad57b0d0461ca7e1fa2ab10256 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.setUTCSeconds.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.setUTCSeconds.length property has the attribute DontEnum'); } -for(var x in Date.prototype.setUTCSeconds) { - if(x === "length") { +for (var x in Date.prototype.setUTCSeconds) { + if (x === "length") { $ERROR('#2: The Date.prototype.setUTCSeconds.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js index c133ffc5add1e9f6304b078277ca32f9ceb8307f..ce21f347a9d8f7f7c85286e7ed6a98893c04ca58 100644 --- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js +++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.toDateString; -if(x === 1) +if (x === 1) Date.prototype.toDateString = 2; else Date.prototype.toDateString = 1; diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js index 3afef1875ced856eb76bf95eca46b9457eff35f4..e72d1fbd8e90ee09c58aef7cca98aafbb4dc2846 100644 --- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js +++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.3_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.toDateString === false) { +if (delete Date.prototype.toDateString === false) { $ERROR('#1: The Date.prototype.toDateString property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js index a17110e05d98b8b5b518cf62071ef10841386fb6..ab2d1e72d45d3de0560084af8aaf85afa33aa298 100644 --- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js +++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toDateString')) { $ERROR('#1: The Date.prototype.toDateString property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "toDateString") { +for (var x in Date.prototype) { + if (x === "toDateString") { $ERROR('#2: The Date.prototype.toDateString has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js index 0248330b0d8e23b24096a9b1f7af405482751745..32c140ce94c8df60d14fd97d7712a8b367ba2bfc 100644 --- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js +++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.3_A2_T1 description: The "length" property of the "toDateString" is 0 ---*/ -if(Date.prototype.toDateString.hasOwnProperty("length") !== true){ +if (Date.prototype.toDateString.hasOwnProperty("length") !== true) { $ERROR('#1: The toDateString has a "length" property'); } -if(Date.prototype.toDateString.length !== 0){ +if (Date.prototype.toDateString.length !== 0) { $ERROR('#2: The "length" property of the toDateString is 0'); } diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js index 090b9646d1467a138a32374fdd9c9d0a9e1c500b..19bc54bb6a7f2f9efed6e6a1c12746a2fe00fdae 100644 --- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js +++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.3_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.toDateString.length !== true) { +if (delete Date.prototype.toDateString.length !== true) { $ERROR('#1: The Date.prototype.toDateString.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js index 6c52d43db43c7e2f534567ef7c9268d76e4d0646..0f83f7f2191e44f81d92229a8293abd4bdb8f5a4 100644 --- a/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js +++ b/test/built-ins/Date/prototype/toDateString/S15.9.5.3_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.toDateString.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.toDateString.length property has the attribute DontEnum'); } -for(var x in Date.prototype.toDateString) { - if(x === "length") { +for (var x in Date.prototype.toDateString) { + if (x === "length") { $ERROR('#2: The Date.prototype.toDateString.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toDateString/invalid-date.js b/test/built-ins/Date/prototype/toDateString/invalid-date.js index 5ea87075e149e8989909bb1080564a06ec23134d..9f7cffda7387712b462fe2d6b848f8b1aaa9797a 100644 --- a/test/built-ins/Date/prototype/toDateString/invalid-date.js +++ b/test/built-ins/Date/prototype/toDateString/invalid-date.js @@ -13,5 +13,3 @@ info: | ---*/ assert.sameValue(new Date(NaN).toDateString(), "Invalid Date"); - - diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js index 596f803435c980845c00c9b7343d6eb19669e9e0..f94e964d4d4460dbc5530b8663f6c6ce0bc107b5 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js @@ -10,19 +10,19 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; - if (timeZoneMinutes > 0) { - date = new Date(1970, 0, -99999999, 0, 0, 0, 1); +if (timeZoneMinutes > 0) { + date = new Date(1970, 0, -99999999, 0, 0, 0, 1); - assert.throws(RangeError, function() { - date.toISOString(); - }); - } else { - date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 1); + assert.throws(RangeError, function() { + date.toISOString(); + }); +} else { + date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 1); - dateStr = date.toISOString(); + dateStr = date.toISOString(); - assert.sameValue(dateStr[dateStr.length - 1], "Z"); - } + assert.sameValue(dateStr[dateStr.length - 1], "Z"); +} diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js index 63feb9075e780c4ae30e6bdfead6ef85f9d2b934..b08fa65380fd92b7e203188d95879e18bc873e78 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-11.js @@ -10,10 +10,10 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; - date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, -1); - dateStr = date.toISOString(); +date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, -1); +dateStr = date.toISOString(); assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js index 5e976d17eaad6b585c8c335a34e1122715466026..2086f48a9a370085b70a1e2a49a0177793768b8a 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-12.js @@ -10,10 +10,10 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; - date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, 0); - dateStr = date.toISOString(); +date = new Date(1970, 0, 100000001, 0, 0 + timeZoneMinutes - 60, 0, 0); +dateStr = date.toISOString(); assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js index 431a79c414ca34067b157b783fc3993e80418cfb..71a9232eb032db9feccab7b7e2f70a1ba6e8188f 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-13.js @@ -9,8 +9,8 @@ description: > date is outside the valid range of time. ---*/ - // As specified in ES5 15.9.1.14, time > 8.64e15 is not in the valid range. - var date = new Date(8.64e15 + 1); +// As specified in ES5 15.9.1.14, time > 8.64e15 is not in the valid range. +var date = new Date(8.64e15 + 1); assert.throws(RangeError, function() { - date.toISOString(); + date.toISOString(); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js index 49a859c59b629e9c4bccdbd51c091ef1e8e66ddb..7dc2be64af9f0918d9362bf5af2f41ecb03967a7 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-14.js @@ -9,7 +9,7 @@ description: > Date.prototype.toISOString throw the RangeError ---*/ - var date = new Date(-Infinity, 1, 70, 0, 0, 0); +var date = new Date(-Infinity, 1, 70, 0, 0, 0); assert.throws(RangeError, function() { - date.toISOString(); + date.toISOString(); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js index f08686324882f4685a0076cc7f3720242b6acaac..752120dfc6f49b5f8f12527376db6e4acf2443b8 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-15.js @@ -9,7 +9,7 @@ description: > Date.prototype.toISOString throw the RangeError ---*/ - var date = new Date(Infinity, 1, 70, 0, 0, 0); +var date = new Date(Infinity, 1, 70, 0, 0, 0); assert.throws(RangeError, function() { - date.toISOString(); + date.toISOString(); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js index e27b08feb2ad7219c9f810b9c87abdf06bd2a93c..d3be4f9fb4086391a9621446131b8e54496130c9 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-16.js @@ -10,7 +10,7 @@ description: > Date.prototype.toISOString throw the TypeError ---*/ - var date = new String("1970-01-00000:00:00.000Z"); +var date = new String("1970-01-00000:00:00.000Z"); assert.throws(TypeError, function() { - Date.prototype.toISOString.call(date); + Date.prototype.toISOString.call(date); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js index f2c53adbf20da16c8ef57af6a9375410d55a0e86..9703836e160a2e65297a8b6fbb335530cce5ffda 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-3.js @@ -7,4 +7,4 @@ es5id: 15.9.5.43-0-3 description: Date.prototype.toISOString must exist as a function ---*/ -assert.sameValue(typeof (Date.prototype.toISOString), "function", 'typeof (Date.prototype.toISOString)'); +assert.sameValue(typeof(Date.prototype.toISOString), "function", 'typeof (Date.prototype.toISOString)'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js index f27f7e0ae4fe104ced620dfa9bfe44a4e788ac3d..d2f2e391ebaed2773c321b3b416c3d00b572d3c3 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-4.js @@ -9,7 +9,7 @@ description: > 'YYYY-MM-DDTHH:mm:ss.sssZ', the time zone is UTC(0) ---*/ - var date = new Date(1999, 9, 10, 10, 10, 10, 10); - var localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000); +var date = new Date(1999, 9, 10, 10, 10, 10, 10); +var localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000); assert.sameValue(localDate.toISOString(), "1999-10-10T10:10:10.010Z", 'localDate.toISOString()'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js index 35359f902207a116a01c93581b4a9aea56058048..0dc17db6fa222a1eb28e2001b580a10d93a479c8 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-5.js @@ -9,6 +9,6 @@ description: > zone(0) ---*/ - var dateStr = (new Date()).toISOString(); +var dateStr = (new Date()).toISOString(); assert.sameValue(dateStr[dateStr.length - 1], "Z", 'dateStr[dateStr.length - 1]'); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js index 53b001d87221b292fd772a80a3bbe7815bb47b7c..dda74767f9f3346d0bfc6a70a90130747eb9ae51 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-6.js @@ -11,5 +11,5 @@ description: > assert.throws(TypeError, function() { - Date.prototype.toISOString.call([]); + Date.prototype.toISOString.call([]); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js index b4d5bc8005d70dcb9d58029a4002136afa4ac809..517fb74533cc2b2f25e728187c8a26d28352f01a 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-7.js @@ -11,5 +11,5 @@ description: > assert.throws(TypeError, function() { - Date.prototype.toISOString.call(15); + Date.prototype.toISOString.call(15); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js index 3c55da5faedf5e01e7bca0aff3ee06e53d4a5aa4..e85077c6ce02ea641c5cba952b09138397ec931e 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js @@ -10,14 +10,14 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; assert.throws(RangeError, function() { - if (timeZoneMinutes > 0) { - date = new Date(1970, 0, -99999999, 0, 0, 0, -1); - } else { - date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes - 60, 0, -1); - } + if (timeZoneMinutes > 0) { + date = new Date(1970, 0, -99999999, 0, 0, 0, -1); + } else { + date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes - 60, 0, -1); + } - dateStr = date.toISOString(); + dateStr = date.toISOString(); }); diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js index 8907ccb68694cf144919cf2e23837db64dad352b..04c9fd69cbd98da3e8cd6fb18d57883c99c54efe 100644 --- a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js +++ b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js @@ -10,19 +10,19 @@ description: > UTC(0) ---*/ - var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); - var date, dateStr; +var timeZoneMinutes = new Date().getTimezoneOffset() * (-1); +var date, dateStr; - if (timeZoneMinutes > 0) { - date = new Date(1970, 0, -99999999, 0, 0, 0, 0); +if (timeZoneMinutes > 0) { + date = new Date(1970, 0, -99999999, 0, 0, 0, 0); - assert.throws(RangeError, function() { - date.toISOString(); - }); - } else { - date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 0); + assert.throws(RangeError, function() { + date.toISOString(); + }); +} else { + date = new Date(1970, 0, -99999999, 0, 0 + timeZoneMinutes + 60, 0, 0); - dateStr = date.toISOString(); + dateStr = date.toISOString(); - assert.sameValue(dateStr[dateStr.length - 1], "Z"); - } + assert.sameValue(dateStr[dateStr.length - 1], "Z"); +} diff --git a/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js b/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js index 16804d115c6ef95cf38846e1afc5e4cea824c0d4..baafe4540a1967d0149591321916777e9370b4d5 100644 --- a/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js +++ b/test/built-ins/Date/prototype/toJSON/15.9.5.44-0-1.js @@ -7,6 +7,6 @@ es5id: 15.9.5.44-0-1 description: Date.prototype.toJSON must exist as a function ---*/ - var f = Date.prototype.toJSON; +var f = Date.prototype.toJSON; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js index 0c41bc3be7a71ab83a81addf13311b641bf5ddb2..8e976f0ed3223d8a6a471518ba3655508f5bdcac 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T1.js @@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.toLocaleDateString; -if(x === 1) +if (x === 1) Date.prototype.toLocaleDateString = 2; else Date.prototype.toLocaleDateString = 1; diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js index 045c649f0713ebb807e230e938c3d5167be8f88a..656300446f786eb1fa304def3e572b1b035339cf 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.6_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.toLocaleDateString === false) { +if (delete Date.prototype.toLocaleDateString === false) { $ERROR('#1: The Date.prototype.toLocaleDateString property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js index 704b25ff702d215b3b0257766d5cf799e96e0327..6a8cef0a6491c9174a3bbfcb6d59abd9cb9689d3 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A1_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('toLocaleDateString')) { $ERROR('#1: The Date.prototype.toLocaleDateString property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "toLocaleDateString") { +for (var x in Date.prototype) { + if (x === "toLocaleDateString") { $ERROR('#2: The Date.prototype.toLocaleDateString has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js index 96541c978fe2a4df8eb530a660e4973886a74f34..5b7959dc77f07d667e3d3491352ca5654a61a091 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.6_A2_T1 description: The "length" property of the "toLocaleDateString" is 0 ---*/ -if(Date.prototype.toLocaleDateString.hasOwnProperty("length") !== true){ +if (Date.prototype.toLocaleDateString.hasOwnProperty("length") !== true) { $ERROR('#1: The toLocaleDateString has a "length" property'); } -if(Date.prototype.toLocaleDateString.length !== 0){ +if (Date.prototype.toLocaleDateString.length !== 0) { $ERROR('#2: The "length" property of the toLocaleDateString is 0'); } diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js index 75c0ad18a2fd83741eda54444e0c22eb4f7ee0d2..85565c6bcaff3e9cfc5089d3fb3040f31415f460 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.6_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.toLocaleDateString.length !== true) { +if (delete Date.prototype.toLocaleDateString.length !== true) { $ERROR('#1: The Date.prototype.toLocaleDateString.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js index f015937cd688e7adf34c29ad4024f6495ceaf3f2..63440c5500711e5e0f18ed7a993400b94e47fe80 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/S15.9.5.6_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.toLocaleDateString.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.toLocaleDateString.length property has the attribute DontEnum'); } -for(var x in Date.prototype.toLocaleDateString) { - if(x === "length") { +for (var x in Date.prototype.toLocaleDateString) { + if (x === "length") { $ERROR('#2: The Date.prototype.toLocaleDateString.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js index a2d621c88e9947a2c5bf8d5fecde9d40f069886b..4f20c546b79927b9ab39823c15581b8dcea78c8c 100644 --- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js +++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.toLocaleString; -if(x === 1) +if (x === 1) Date.prototype.toLocaleString = 2; else Date.prototype.toLocaleString = 1; diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js index 845ad90ebc2c3b90f819ed455f86d04fa84686a8..44476c8e439e42bbe18c4c7db08111aba3e38d5b 100644 --- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js +++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.5_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.toLocaleString === false) { +if (delete Date.prototype.toLocaleString === false) { $ERROR('#1: The Date.prototype.toLocaleString property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js index 2aa877b571745bf0a785b0c540be341c3d87c7b3..aa96373cbba268198ca48c8cf7d8a30b40ae77ae 100644 --- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js +++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toLocaleString')) { $ERROR('#1: The Date.prototype.toLocaleString property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "toLocaleString") { +for (var x in Date.prototype) { + if (x === "toLocaleString") { $ERROR('#2: The Date.prototype.toLocaleString has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js index 7713b34ae7430314d4528e15f9c8936618c489f7..29ba76ea95b4b4a8066b65e1f2baebc73f32acee 100644 --- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js +++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.5_A2_T1 description: The "length" property of the "toLocaleString" is 0 ---*/ -if(Date.prototype.toLocaleString.hasOwnProperty("length") !== true){ +if (Date.prototype.toLocaleString.hasOwnProperty("length") !== true) { $ERROR('#1: The toLocaleString has a "length" property'); } -if(Date.prototype.toLocaleString.length !== 0){ +if (Date.prototype.toLocaleString.length !== 0) { $ERROR('#2: The "length" property of the toLocaleString is 0'); } diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js index 4deaaa40a763c7fce9fa759eb841c007566633c8..161ab9541464b5f05fd0bc2ae28c85255aa59aad 100644 --- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js +++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.5_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.toLocaleString.length !== true) { +if (delete Date.prototype.toLocaleString.length !== true) { $ERROR('#1: The Date.prototype.toLocaleString.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js index c5d11f4e8f77fb586cddc3e3bb0cef58e623111a..5068199094b9cc48446bdcb7a93a78aeeafe3d12 100644 --- a/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js +++ b/test/built-ins/Date/prototype/toLocaleString/S15.9.5.5_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.toLocaleString.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.toLocaleString.length property has the attribute DontEnum'); } -for(var x in Date.prototype.toLocaleString) { - if(x === "length") { +for (var x in Date.prototype.toLocaleString) { + if (x === "length") { $ERROR('#2: The Date.prototype.toLocaleString.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js index 3c1aa53177701c14c141163ef127bc3384411083..eec3df6ac3fcb908df11b46c7d4d1966b467babc 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T1.js @@ -11,7 +11,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.toLocaleTimeString; -if(x === 1) +if (x === 1) Date.prototype.toLocaleTimeString = 2; else Date.prototype.toLocaleTimeString = 1; diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js index 564821c3383c77883485da2fdf96156b213bc608..4fc755ef250adf43e1db5edcb51a1f9bd2e98382 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.7_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.toLocaleTimeString === false) { +if (delete Date.prototype.toLocaleTimeString === false) { $ERROR('#1: The Date.prototype.toLocaleTimeString property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js index 50d48f8d7930607de849f5992d83c6b338ef890d..5e7cff2a0bf65445a64e0f9f55ead3c952670c02 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A1_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.propertyIsEnumerable('toLocaleTimeString')) { $ERROR('#1: The Date.prototype.toLocaleTimeString property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "toLocaleTimeString") { +for (var x in Date.prototype) { + if (x === "toLocaleTimeString") { $ERROR('#2: The Date.prototype.toLocaleTimeString has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js index 9471cf55677ee9054c4a22a12d3d07d9f7b35db3..14f226a02bf6dfd313d4a25129a8569b0d711a46 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.7_A2_T1 description: The "length" property of the "toLocaleTimeString" is 0 ---*/ -if(Date.prototype.toLocaleTimeString.hasOwnProperty("length") !== true){ +if (Date.prototype.toLocaleTimeString.hasOwnProperty("length") !== true) { $ERROR('#1: The toLocaleTimeString has a "length" property'); } -if(Date.prototype.toLocaleTimeString.length !== 0){ +if (Date.prototype.toLocaleTimeString.length !== 0) { $ERROR('#2: The "length" property of the toLocaleTimeString is 0'); } diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js index 1a034dba468deaa9a0e47c16891eb2c65f7d672e..8e02b4e6f755a47a258fe6417807d575cd10681f 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.7_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.toLocaleTimeString.length !== true) { +if (delete Date.prototype.toLocaleTimeString.length !== true) { $ERROR('#1: The Date.prototype.toLocaleTimeString.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js index 6562daad47369a4d54fca17e55ce25d8f5ab7868..53aea089b539f42047edbea7be5ab54f62852cf2 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/S15.9.5.7_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.toLocaleTimeString.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.toLocaleTimeString.length property has the attribute DontEnum'); } -for(var x in Date.prototype.toLocaleTimeString) { - if(x === "length") { +for (var x in Date.prototype.toLocaleTimeString) { + if (x === "length") { $ERROR('#2: The Date.prototype.toLocaleTimeString.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js index 04e6d7ffa0fbe33c51e611f4b32747a64c0dfee9..c4938dc06f6d4112b58beedb8cc1671812ee1d66 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.toString; -if(x === 1) +if (x === 1) Date.prototype.toString = 2; else Date.prototype.toString = 1; diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js index 63c170fe6252efb8e94a996b87975259115cd56b..e391337569cce1214d155618dff7bc050ff32f54 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.2_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.toString === false) { +if (delete Date.prototype.toString === false) { $ERROR('#1: The Date.prototype.toString property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js index 1317b0abd82545e095ece72f1f195dd02df319ff..382fc242ca2d88c7a0f43003c40cfb90fba19d91 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toString')) { $ERROR('#1: The Date.prototype.toString property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "toString") { +for (var x in Date.prototype) { + if (x === "toString") { $ERROR('#2: The Date.prototype.toString has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js index 861d62cab1f014e72d497d1dabfb3487e5602ce9..a5026ecfd6b8fe2ccec9c36bc12cf19ab80b8051 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.2_A2_T1 description: The "length" property of the "toString" is 0 ---*/ -if(Date.prototype.toString.hasOwnProperty("length") !== true){ +if (Date.prototype.toString.hasOwnProperty("length") !== true) { $ERROR('#1: The toString has a "length" property'); } -if(Date.prototype.toString.length !== 0){ +if (Date.prototype.toString.length !== 0) { $ERROR('#2: The "length" property of the toString is 0'); } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js index b264985cb8716f14566dc7ad1fefe64d26d0e6fa..3bc1f906c62c307dcba41b678a43458befd5881e 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.2_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.toString.length !== true) { +if (delete Date.prototype.toString.length !== true) { $ERROR('#1: The Date.prototype.toString.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js index 15c54f020961d1cea506a3338b866731c2631539..0c4a7fe58ac08d1bfd288ad8b09c800da29ae172 100644 --- a/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js +++ b/test/built-ins/Date/prototype/toString/S15.9.5.2_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.toString.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.toString.length property has the attribute DontEnum'); } -for(var x in Date.prototype.toString) { - if(x === "length") { +for (var x in Date.prototype.toString) { + if (x === "length") { $ERROR('#2: The Date.prototype.toString.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toString/non-date-receiver.js b/test/built-ins/Date/prototype/toString/non-date-receiver.js index 4273975b1b490360f492df92abd1891f8f2f2966..3d0885b9ceb45992fdf934fb828dd726e27feb92 100644 --- a/test/built-ins/Date/prototype/toString/non-date-receiver.js +++ b/test/built-ins/Date/prototype/toString/non-date-receiver.js @@ -15,6 +15,6 @@ assert.throws(TypeError, () => Date.prototype.toString.call(undefined)); assert.throws(TypeError, () => Date.prototype.toString.call(0)); assert.throws(TypeError, () => Date.prototype.toString.call({})); assert.throws(TypeError, () => - Date.prototype.toString.call("Tue Mar 21 2017 12:16:43 GMT-0400 (EDT)")); + Date.prototype.toString.call("Tue Mar 21 2017 12:16:43 GMT-0400 (EDT)")); assert.throws(TypeError, () => - Date.prototype.toString.call(1490113011493)); + Date.prototype.toString.call(1490113011493)); diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js index 4739c7cf1b5c6e9c11e699ba56ee2c533287db8b..9ca9f0008e310ee1375441afd73043ede7ffd2c7 100644 --- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js +++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.toTimeString; -if(x === 1) +if (x === 1) Date.prototype.toTimeString = 2; else Date.prototype.toTimeString = 1; diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js index 2c4d753a9bc9026ce5ecb1e0e3b05c7531e6fa94..0b0ecf006b4a37caaec5b543ce9dd2e4f9767356 100644 --- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js +++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.4_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.toTimeString === false) { +if (delete Date.prototype.toTimeString === false) { $ERROR('#1: The Date.prototype.toTimeString property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js index b8b070ebdc06db51f460aa16750f62c983cd03d9..6d4babc06d516b7c4eb248e05db89e3f0dfe15af 100644 --- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js +++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toTimeString')) { $ERROR('#1: The Date.prototype.toTimeString property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "toTimeString") { +for (var x in Date.prototype) { + if (x === "toTimeString") { $ERROR('#2: The Date.prototype.toTimeString has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js index 305b2a96a4638d12f9a39ad15d58d0d0224e96b7..880915233be8c820e1549a66c75b8b5eba304959 100644 --- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js +++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.4_A2_T1 description: The "length" property of the "toTimeString" is 0 ---*/ -if(Date.prototype.toTimeString.hasOwnProperty("length") !== true){ +if (Date.prototype.toTimeString.hasOwnProperty("length") !== true) { $ERROR('#1: The toTimeString has a "length" property'); } -if(Date.prototype.toTimeString.length !== 0){ +if (Date.prototype.toTimeString.length !== 0) { $ERROR('#2: The "length" property of the toTimeString is 0'); } diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js index f05985402e55174e668db66103ed3935635ed5b9..92e4da3235a3b5d0a6aa9a28c49a1a4f21d0979f 100644 --- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js +++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.4_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.toTimeString.length !== true) { +if (delete Date.prototype.toTimeString.length !== true) { $ERROR('#1: The Date.prototype.toTimeString.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js index 36232375d8c42b8d242df180c1968628fea6be81..6476bf513c38ce6f42f8c8de84d5402051d17425 100644 --- a/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js +++ b/test/built-ins/Date/prototype/toTimeString/S15.9.5.4_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.toTimeString.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.toTimeString.length property has the attribute DontEnum'); } -for(var x in Date.prototype.toTimeString) { - if(x === "length") { +for (var x in Date.prototype.toTimeString) { + if (x === "length") { $ERROR('#2: The Date.prototype.toTimeString.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toTimeString/invalid-date.js b/test/built-ins/Date/prototype/toTimeString/invalid-date.js index 1078d9557e80aacea1dc5dc3855fb401399e2f63..39cc97528d2971b343ade3eff38a624ae9a83ddb 100644 --- a/test/built-ins/Date/prototype/toTimeString/invalid-date.js +++ b/test/built-ins/Date/prototype/toTimeString/invalid-date.js @@ -13,5 +13,3 @@ info: | ---*/ assert.sameValue(new Date(NaN).toTimeString(), "Invalid Date"); - - diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js index de0313086ff88d532e2e8353cedbc3ab269a2acd..3fee728b23e3674ea5a8362917cd0693b8f02eba 100644 --- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js +++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.toUTCString; -if(x === 1) +if (x === 1) Date.prototype.toUTCString = 2; else Date.prototype.toUTCString = 1; diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js index d515e3446926861a199fcaf91940b5a084d928de..caca517fce8232295a93ee86272ce8d17e8fdd1f 100644 --- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js +++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.42_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.toUTCString === false) { +if (delete Date.prototype.toUTCString === false) { $ERROR('#1: The Date.prototype.toUTCString property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js index 27d217a35e9cf5d185a08bd42e0996346a17c30e..6149d52a9b20bc05a413430233eeeea28b146118 100644 --- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js +++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('toUTCString')) { $ERROR('#1: The Date.prototype.toUTCString property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "toUTCString") { +for (var x in Date.prototype) { + if (x === "toUTCString") { $ERROR('#2: The Date.prototype.toUTCString has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js index 8d56631edf03070a2ec64e96e0504b829adf439b..ad2262d325b13f13dc394ff47edc37d300287366 100644 --- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js +++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.42_A2_T1 description: The "length" property of the "toUTCString" is 0 ---*/ -if(Date.prototype.toUTCString.hasOwnProperty("length") !== true){ +if (Date.prototype.toUTCString.hasOwnProperty("length") !== true) { $ERROR('#1: The toUTCString has a "length" property'); } -if(Date.prototype.toUTCString.length !== 0){ +if (Date.prototype.toUTCString.length !== 0) { $ERROR('#2: The "length" property of the toUTCString is 0'); } diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js index b001e606ca07de4400ada4a3121980d3d0c644fe..26cebb299b6c1bd9da5aa38cc892654c7e7eab1e 100644 --- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js +++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.42_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.toUTCString.length !== true) { +if (delete Date.prototype.toUTCString.length !== true) { $ERROR('#1: The Date.prototype.toUTCString.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js index e5a2ae8c62c6f363e5adc62e6113360049dba81c..c3e445fb5bf877f897a3ae23215ea4b4959c2fc6 100644 --- a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js +++ b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.toUTCString.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.toUTCString.length property has the attribute DontEnum'); } -for(var x in Date.prototype.toUTCString) { - if(x === "length") { +for (var x in Date.prototype.toUTCString) { + if (x === "length") { $ERROR('#2: The Date.prototype.toUTCString.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/toUTCString/day-names.js b/test/built-ins/Date/prototype/toUTCString/day-names.js index ce9cdfaabe31e42696bd388e81471f67c2ee5038..7f164060f2f7a1c3079346c9089543e05e25a3a8 100644 --- a/test/built-ins/Date/prototype/toUTCString/day-names.js +++ b/test/built-ins/Date/prototype/toUTCString/day-names.js @@ -7,16 +7,16 @@ description: Test the names of days ---*/ assert.sameValue("Sun, 23 Mar 2014 00:00:00 GMT", - (new Date("2014-03-23T00:00:00Z")).toUTCString()); + (new Date("2014-03-23T00:00:00Z")).toUTCString()); assert.sameValue("Mon, 24 Mar 2014 00:00:00 GMT", - (new Date("2014-03-24T00:00:00Z")).toUTCString()); + (new Date("2014-03-24T00:00:00Z")).toUTCString()); assert.sameValue("Tue, 25 Mar 2014 00:00:00 GMT", - (new Date("2014-03-25T00:00:00Z")).toUTCString()); + (new Date("2014-03-25T00:00:00Z")).toUTCString()); assert.sameValue("Wed, 26 Mar 2014 00:00:00 GMT", - (new Date("2014-03-26T00:00:00Z")).toUTCString()); + (new Date("2014-03-26T00:00:00Z")).toUTCString()); assert.sameValue("Thu, 27 Mar 2014 00:00:00 GMT", - (new Date("2014-03-27T00:00:00Z")).toUTCString()); + (new Date("2014-03-27T00:00:00Z")).toUTCString()); assert.sameValue("Fri, 28 Mar 2014 00:00:00 GMT", - (new Date("2014-03-28T00:00:00Z")).toUTCString()); + (new Date("2014-03-28T00:00:00Z")).toUTCString()); assert.sameValue("Sat, 29 Mar 2014 00:00:00 GMT", - (new Date("2014-03-29T00:00:00Z")).toUTCString()); + (new Date("2014-03-29T00:00:00Z")).toUTCString()); diff --git a/test/built-ins/Date/prototype/toUTCString/invalid-date.js b/test/built-ins/Date/prototype/toUTCString/invalid-date.js index 3430e4b3cf605ec08a76b7b4bfc5122bc8fcb4c3..0f81fe11e05ef89e227caf4b4ab87981e9ac5086 100644 --- a/test/built-ins/Date/prototype/toUTCString/invalid-date.js +++ b/test/built-ins/Date/prototype/toUTCString/invalid-date.js @@ -13,4 +13,3 @@ info: | ---*/ assert.sameValue(new Date(NaN).toUTCString(), "Invalid Date"); - diff --git a/test/built-ins/Date/prototype/toUTCString/month-names.js b/test/built-ins/Date/prototype/toUTCString/month-names.js index a50dc18b366bc7d7f57fe185dc762c9e648cbb45..46582709018764b219555790f17ba76178571204 100644 --- a/test/built-ins/Date/prototype/toUTCString/month-names.js +++ b/test/built-ins/Date/prototype/toUTCString/month-names.js @@ -7,26 +7,26 @@ description: Test the names of months ---*/ assert.sameValue("Wed, 01 Jan 2014 00:00:00 GMT", - (new Date("2014-01-01T00:00:00Z")).toUTCString()); + (new Date("2014-01-01T00:00:00Z")).toUTCString()); assert.sameValue("Sat, 01 Feb 2014 00:00:00 GMT", - (new Date("2014-02-01T00:00:00Z")).toUTCString()); + (new Date("2014-02-01T00:00:00Z")).toUTCString()); assert.sameValue("Sat, 01 Mar 2014 00:00:00 GMT", - (new Date("2014-03-01T00:00:00Z")).toUTCString()); + (new Date("2014-03-01T00:00:00Z")).toUTCString()); assert.sameValue("Tue, 01 Apr 2014 00:00:00 GMT", - (new Date("2014-04-01T00:00:00Z")).toUTCString()); + (new Date("2014-04-01T00:00:00Z")).toUTCString()); assert.sameValue("Thu, 01 May 2014 00:00:00 GMT", - (new Date("2014-05-01T00:00:00Z")).toUTCString()); + (new Date("2014-05-01T00:00:00Z")).toUTCString()); assert.sameValue("Sun, 01 Jun 2014 00:00:00 GMT", - (new Date("2014-06-01T00:00:00Z")).toUTCString()); + (new Date("2014-06-01T00:00:00Z")).toUTCString()); assert.sameValue("Tue, 01 Jul 2014 00:00:00 GMT", - (new Date("2014-07-01T00:00:00Z")).toUTCString()); + (new Date("2014-07-01T00:00:00Z")).toUTCString()); assert.sameValue("Fri, 01 Aug 2014 00:00:00 GMT", - (new Date("2014-08-01T00:00:00Z")).toUTCString()); + (new Date("2014-08-01T00:00:00Z")).toUTCString()); assert.sameValue("Mon, 01 Sep 2014 00:00:00 GMT", - (new Date("2014-09-01T00:00:00Z")).toUTCString()); + (new Date("2014-09-01T00:00:00Z")).toUTCString()); assert.sameValue("Wed, 01 Oct 2014 00:00:00 GMT", - (new Date("2014-10-01T00:00:00Z")).toUTCString()); + (new Date("2014-10-01T00:00:00Z")).toUTCString()); assert.sameValue("Sat, 01 Nov 2014 00:00:00 GMT", - (new Date("2014-11-01T00:00:00Z")).toUTCString()); + (new Date("2014-11-01T00:00:00Z")).toUTCString()); assert.sameValue("Mon, 01 Dec 2014 00:00:00 GMT", - (new Date("2014-12-01T00:00:00Z")).toUTCString()); + (new Date("2014-12-01T00:00:00Z")).toUTCString()); diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js index 6a33b59ee62fe56cc5c55360e5ae685e9c0a40f8..9492a8ae852e5655dcbceffaca26e26c2aab7170 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T1.js @@ -9,7 +9,7 @@ description: Checking absence of ReadOnly attribute ---*/ var x = Date.prototype.valueOf; -if(x === 1) +if (x === 1) Date.prototype.valueOf = 2; else Date.prototype.valueOf = 1; diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js index 96d3028b5b1488e6cb48ffcdfd9481148faf5e37..d6a5b8eb0cdf6c4b704410b8ef076c62113f4fb2 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T2.js @@ -8,7 +8,7 @@ es5id: 15.9.5.8_A1_T2 description: Checking absence of DontDelete attribute ---*/ -if (delete Date.prototype.valueOf === false) { +if (delete Date.prototype.valueOf === false) { $ERROR('#1: The Date.prototype.valueOf property has not the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js index dd791639f4a80b7a23c1cc711bead9c63414fcf7..81f7098e93ad7767d0fb63bd9a1362e04d6e5f7a 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A1_T3.js @@ -12,8 +12,8 @@ if (Date.prototype.propertyIsEnumerable('valueOf')) { $ERROR('#1: The Date.prototype.valueOf property has the attribute DontEnum'); } -for(var x in Date.prototype) { - if(x === "valueOf") { +for (var x in Date.prototype) { + if (x === "valueOf") { $ERROR('#2: The Date.prototype.valueOf has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js index 514ec3605ea3b265bc56e7a77395e30f58acf253..8a95d40db64c1b2f2a6485bf4d4a22ae50ec073e 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A2_T1.js @@ -8,10 +8,10 @@ es5id: 15.9.5.8_A2_T1 description: The "length" property of the "valueOf" is 0 ---*/ -if(Date.prototype.valueOf.hasOwnProperty("length") !== true){ +if (Date.prototype.valueOf.hasOwnProperty("length") !== true) { $ERROR('#1: The valueOf has a "length" property'); } -if(Date.prototype.valueOf.length !== 0){ +if (Date.prototype.valueOf.length !== 0) { $ERROR('#2: The "length" property of the valueOf is 0'); } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js index cdebc7dd55a59904c65c97cef5196b9134deea68..3ad642916b75a46f1c3ec6df398dd7ba28acfe71 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T2.js @@ -10,7 +10,7 @@ es5id: 15.9.5.8_A3_T2 description: Checking DontDelete attribute ---*/ -if (delete Date.prototype.valueOf.length !== true) { +if (delete Date.prototype.valueOf.length !== true) { $ERROR('#1: The Date.prototype.valueOf.length property does not have the attributes DontDelete'); } diff --git a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js index e7ab16930a12ae969f6dffa72406b4967aefebb3..dfedf8c62dd9b3bd2ce00b911fd0f0105df5f9b4 100644 --- a/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js +++ b/test/built-ins/Date/prototype/valueOf/S15.9.5.8_A3_T3.js @@ -14,8 +14,8 @@ if (Date.prototype.valueOf.propertyIsEnumerable('length')) { $ERROR('#1: The Date.prototype.valueOf.length property has the attribute DontEnum'); } -for(var x in Date.prototype.valueOf) { - if(x === "length") { +for (var x in Date.prototype.valueOf) { + if (x === "length") { $ERROR('#2: The Date.prototype.valueOf.length has the attribute DontEnum'); } } diff --git a/test/built-ins/Date/value-symbol-to-prim-return-obj.js b/test/built-ins/Date/value-symbol-to-prim-return-obj.js index 732217448cbcfe6f5af94bbb0d266b1d368b8261..457e126aaff624b6a59a9cb35718b21f552d67fa 100644 --- a/test/built-ins/Date/value-symbol-to-prim-return-obj.js +++ b/test/built-ins/Date/value-symbol-to-prim-return-obj.js @@ -39,7 +39,9 @@ assert.throws(TypeError, function() { new Date(y); }, 'ordinary object'); -retVal = (function() { return arguments; }()); +retVal = (function() { + return arguments; +}()); assert.throws(TypeError, function() { new Date(y); }, 'arguments exotic object'); diff --git a/test/built-ins/Date/value-to-primitive-result-faulty.js b/test/built-ins/Date/value-to-primitive-result-faulty.js index 50ff50e2906fae9f9ac8873096d490868d2910c2..3f2ae125c75fe917068b8605ccabb5924caf7a22 100644 --- a/test/built-ins/Date/value-to-primitive-result-faulty.js +++ b/test/built-ins/Date/value-to-primitive-result-faulty.js @@ -40,7 +40,9 @@ assert.throws(TypeError, function() { new Date(faultyToPrimitive); }, 'Array exotic object'); -returnValue = (function() { return arguments; }()); +returnValue = (function() { + return arguments; +}()); assert.throws(TypeError, function() { new Date(faultyToPrimitive); }, 'arguments exotic object'); diff --git a/test/built-ins/Error/S15.11.1.1_A1_T1.js b/test/built-ins/Error/S15.11.1.1_A1_T1.js index 351059e767cf35c4767d68b27b8827b76e28c489..a30502f423d654a531f83745dd9df9761541d219 100644 --- a/test/built-ins/Error/S15.11.1.1_A1_T1.js +++ b/test/built-ins/Error/S15.11.1.1_A1_T1.js @@ -16,36 +16,36 @@ function otherScope(msg) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -var err1=Error('msg1'); -if(err1.message!=="msg1"){ - $ERROR('#1: var err1=Error(\'msg1\'); err1.message==="msg1". Actual: '+err1.message); +var err1 = Error('msg1'); +if (err1.message !== "msg1") { + $ERROR('#1: var err1=Error(\'msg1\'); err1.message==="msg1". Actual: ' + err1.message); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -var err2=otherScope('msg2'); -if(err2.message!=="msg2"){ - $ERROR('#2: function otherScope(msg){return Error(msg);} var err2=otherScope(\'msg2\'); err2.message==="msg2". Actual: '+err2.message); +var err2 = otherScope('msg2'); +if (err2.message !== "msg2") { + $ERROR('#2: function otherScope(msg){return Error(msg);} var err2=otherScope(\'msg2\'); err2.message==="msg2". Actual: ' + err2.message); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -var err3=otherScope(); -if(err3.hasOwnProperty('message')){ - $ERROR('#3: function otherScope(msg){return Error(msg);} var err3=otherScope(); err3.hasOwnProperty("message"). Actual: '+err3.message); +var err3 = otherScope(); +if (err3.hasOwnProperty('message')) { + $ERROR('#3: function otherScope(msg){return Error(msg);} var err3=otherScope(); err3.hasOwnProperty("message"). Actual: ' + err3.message); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -var err4=eval("Error('msg4')"); -if(err4.message!=="msg4"){ - $ERROR('#4: var err4=eval("Error(\'msg4\')"); err4.message==="msg4". Actual: '+err4.message); +var err4 = eval("Error('msg4')"); +if (err4.message !== "msg4") { + $ERROR('#4: var err4=eval("Error(\'msg4\')"); err4.message==="msg4". Actual: ' + err4.message); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/S15.11.1.1_A2_T1.js b/test/built-ins/Error/S15.11.1.1_A2_T1.js index 72f7343590ddf2c708870b11adfdf9bda140ecc5..5e0c1bd83658c769bb79ee1e888f79a0313feb39 100644 --- a/test/built-ins/Error/S15.11.1.1_A2_T1.js +++ b/test/built-ins/Error/S15.11.1.1_A2_T1.js @@ -11,9 +11,9 @@ description: Checking prototype of the newly constructed Error object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -var err1=Error('msg1'); -if(!Error.prototype.isPrototypeOf(err1)){ - $ERROR('#1: var err1=Error(\'msg1\'); Error.prototype.isPrototypeOf(err1) return true. Actual: '+Error.prototype.isPrototypeOf(err1)); +var err1 = Error('msg1'); +if (!Error.prototype.isPrototypeOf(err1)) { + $ERROR('#1: var err1=Error(\'msg1\'); Error.prototype.isPrototypeOf(err1) return true. Actual: ' + Error.prototype.isPrototypeOf(err1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/S15.11.1.1_A3_T1.js b/test/built-ins/Error/S15.11.1.1_A3_T1.js index 6add7727bf8bbd4ded7fb8e19d81a11669f1dd02..b6709d8cc049012c9ec303a1204dac81453438c6 100644 --- a/test/built-ins/Error/S15.11.1.1_A3_T1.js +++ b/test/built-ins/Error/S15.11.1.1_A3_T1.js @@ -11,10 +11,10 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -Error.prototype.toString=Object.prototype.toString; -var err1=Error(); -if(err1.toString()!=='[object '+ 'Error' +']'){ - $ERROR('#1: Error.prototype.toString=Object.prototype.toString; var err1=Error(); err1.toString()===\'[object Error]\'. Actual: '+err1.toString()); +Error.prototype.toString = Object.prototype.toString; +var err1 = Error(); +if (err1.toString() !== '[object ' + 'Error' + ']') { + $ERROR('#1: Error.prototype.toString=Object.prototype.toString; var err1=Error(); err1.toString()===\'[object Error]\'. Actual: ' + err1.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/S15.11.1_A1_T1.js b/test/built-ins/Error/S15.11.1_A1_T1.js index d45ddac8e0460e3545cb4d726ae1c80b88098345..5892170d2af3b6ddb82b751a3c70ee4ebb0d7a19 100644 --- a/test/built-ins/Error/S15.11.1_A1_T1.js +++ b/test/built-ins/Error/S15.11.1_A1_T1.js @@ -11,10 +11,10 @@ description: Checking constructor of the newly constructed Error object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -Error.prototype.toString=Object.prototype.toString; -var err1=Error(); -if(err1.constructor!==Error){ - $ERROR('#1: Error.prototype.toString=Object.prototype.toString; var err1=Error(); err1.constructor===Error. Actual: '+err1.constructor); +Error.prototype.toString = Object.prototype.toString; +var err1 = Error(); +if (err1.constructor !== Error) { + $ERROR('#1: Error.prototype.toString=Object.prototype.toString; var err1=Error(); err1.constructor===Error. Actual: ' + err1.constructor); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/S15.11.2.1_A1_T1.js b/test/built-ins/Error/S15.11.2.1_A1_T1.js index 4ea3e05efd202c3ea64cc0132a022a5cd1acd996..804116b32c773e9a4fda9e7e924429f98a47ba29 100644 --- a/test/built-ins/Error/S15.11.2.1_A1_T1.js +++ b/test/built-ins/Error/S15.11.2.1_A1_T1.js @@ -16,36 +16,36 @@ function otherScope(msg) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -var err1=new Error('msg1'); -if(err1.message!=="msg1"){ - $ERROR('#1: var err1=new Error(\'msg1\'); err1.message==="msg1". Actual: '+err1.message); +var err1 = new Error('msg1'); +if (err1.message !== "msg1") { + $ERROR('#1: var err1=new Error(\'msg1\'); err1.message==="msg1". Actual: ' + err1.message); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -var err2=otherScope('msg2'); -if(err2.message!=="msg2"){ - $ERROR('#2: function otherScope(msg){return new Error(msg);} var err2=otherScope(\'msg2\'); err2.message==="msg2". Actual: '+err2.message); +var err2 = otherScope('msg2'); +if (err2.message !== "msg2") { + $ERROR('#2: function otherScope(msg){return new Error(msg);} var err2=otherScope(\'msg2\'); err2.message==="msg2". Actual: ' + err2.message); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -var err3=otherScope(); -if(err3.hasOwnProperty('message')){ - $ERROR('#3: function otherScope(msg){return new Error(msg);} var err3=otherScope(); err3.hasOwnProperty("message"). Actual: '+err3.message); +var err3 = otherScope(); +if (err3.hasOwnProperty('message')) { + $ERROR('#3: function otherScope(msg){return new Error(msg);} var err3=otherScope(); err3.hasOwnProperty("message"). Actual: ' + err3.message); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -var err4=eval("new Error('msg4')"); -if(err4.message!=="msg4"){ - $ERROR('#4: var err4=eval("new Error(\'msg4\')"); err4.message==="msg4". Actual: '+err4.message); +var err4 = eval("new Error('msg4')"); +if (err4.message !== "msg4") { + $ERROR('#4: var err4=eval("new Error(\'msg4\')"); err4.message==="msg4". Actual: ' + err4.message); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/S15.11.2.1_A2_T1.js b/test/built-ins/Error/S15.11.2.1_A2_T1.js index 6ad2ef59fcbcf4879ea130d8adb61d0a5efa5399..5848bcd4c1dfb03109039c4162bab1975d4ce9f7 100644 --- a/test/built-ins/Error/S15.11.2.1_A2_T1.js +++ b/test/built-ins/Error/S15.11.2.1_A2_T1.js @@ -11,9 +11,9 @@ description: Checking prototype of the newly constructed Error object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -var err1=new Error('msg1'); -if(!Error.prototype.isPrototypeOf(err1)){ - $ERROR('#1: Error.prototype.isPrototypeOf(err1) return true. Actual: '+Error.prototype.isPrototypeOf(err1)); +var err1 = new Error('msg1'); +if (!Error.prototype.isPrototypeOf(err1)) { + $ERROR('#1: Error.prototype.isPrototypeOf(err1) return true. Actual: ' + Error.prototype.isPrototypeOf(err1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/S15.11.2.1_A3_T1.js b/test/built-ins/Error/S15.11.2.1_A3_T1.js index 8c653807ff9196a04df49acd46942bdc91184bbb..4cd39953a462c86dae176db61f1d1af465e6fb25 100644 --- a/test/built-ins/Error/S15.11.2.1_A3_T1.js +++ b/test/built-ins/Error/S15.11.2.1_A3_T1.js @@ -11,10 +11,10 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -Error.prototype.toString=Object.prototype.toString; -var err1=new Error(); -if(err1.toString()!=='[object '+ 'Error' +']'){ - $ERROR('#1: err1.toString()===\'[object Error]\'. Actual: '+err1.toString()); +Error.prototype.toString = Object.prototype.toString; +var err1 = new Error(); +if (err1.toString() !== '[object ' + 'Error' + ']') { + $ERROR('#1: err1.toString()===\'[object Error]\'. Actual: ' + err1.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/S15.11.3_A1_T1.js b/test/built-ins/Error/S15.11.3_A1_T1.js index 534d5f03208de5706381ff2f006cf753d9ff5e2e..c0074b6a8675f9475979519bfe93094af419d308 100644 --- a/test/built-ins/Error/S15.11.3_A1_T1.js +++ b/test/built-ins/Error/S15.11.3_A1_T1.js @@ -13,17 +13,17 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -var err1=Error("err"); -if(!Function.prototype.isPrototypeOf(err1.constructor)){ - $ERROR('#1: var err1=Error("err"); Function.prototype.isPrototypeOf(err1.constructor) return true. Actual:'+Function.prototype.isPrototypeOf(err1.constructor)); +var err1 = Error("err"); +if (!Function.prototype.isPrototypeOf(err1.constructor)) { + $ERROR('#1: var err1=Error("err"); Function.prototype.isPrototypeOf(err1.constructor) return true. Actual:' + Function.prototype.isPrototypeOf(err1.constructor)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if(!Function.prototype.isPrototypeOf(Error.constructor)){ - $ERROR('#2: Function.prototype.isPrototypeOf(Error.constructor) return true. Actual:'+Function.prototype.isPrototypeOf(Error.constructor)); +if (!Function.prototype.isPrototypeOf(Error.constructor)) { + $ERROR('#2: Function.prototype.isPrototypeOf(Error.constructor) return true. Actual:' + Function.prototype.isPrototypeOf(Error.constructor)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/S15.11.3_A2_T1.js b/test/built-ins/Error/S15.11.3_A2_T1.js index 41e8e6b7618e6af4353a3568d7348f53b0177ee8..6cf25327a80bfd19e03fe64a99dc1cdb9fa6cd9f 100644 --- a/test/built-ins/Error/S15.11.3_A2_T1.js +++ b/test/built-ins/Error/S15.11.3_A2_T1.js @@ -9,17 +9,17 @@ description: Checking length property ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -var err1=Error("err"); -if(err1.constructor.length!==1){ - $ERROR('#1: var err1=Error("err"); err1.constructor.length===1. Actual: '+err1.constructor.length); +var err1 = Error("err"); +if (err1.constructor.length !== 1) { + $ERROR('#1: var err1=Error("err"); err1.constructor.length===1. Actual: ' + err1.constructor.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if(Error.constructor.length!==1){ - $ERROR('#2: Error.constructor.length===1. Actual: '+Error.constructor.length); +if (Error.constructor.length !== 1) { + $ERROR('#2: Error.constructor.length===1. Actual: ' + Error.constructor.length); } // ////////////////////////////////////////////////////////////////////////////// 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 e7bc80e565fcc2d1577fdec32e1c7a3eab1d45e2..b7da126aa67cfe4f833094d9249da35708c4fa8e 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 29a397af74959d4fb84ad3473486435660a63c86..d8ab08a9e4e2f1e0084b65ab8e31ecdf5e7bb162 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 d76e90fb5139928f58154d724eafd16f61fa61e0..2d2c78f914fe1a6b896fce2728ee0b3abf2a5847 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,19 +11,21 @@ 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 1770637cea6b68ca1a778561e2df25992502b84b..258f205e21920131b2af9455f9d805e7f70dd824 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 cbb35f4bb572e380b4aaab75c7439ff4171b9cb7..c3b9afef427ff62b8bd443da60b5a89a40b9ba39 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 80f6cbc2b496d0204372172dbc0abb3cf632ebca..bb85666d1a83af7c692440269cf2850505a63c35 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 e514df09ae7d60fe08e2f50df9c05ae40a12ab83..72b2daf6bfc67facfd6afb93212306b3c9f16091 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 751033a83c1f5d79adcd702695e4c77f6af29522..354fd78020743381ddb4ca56ea71d8e4ff01b219 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 ced9d0090860aace58767fbf58367f109f359c46..01508f865caf8802a44722834bd74013afd7abd2 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 14869ce39d744c64a991ff7d346988947b3d689a..5a530d90f2c2753e04c35f7af1fecaac2f3d7361 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 6860135a9fcc651674964c62dcb2707468825b2e..303078ba80602466a5ad489c8c90ce0a4baa7c54 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 14517881b4ad9a58bcca54c1fae570cb0d2233d0..a5cad6d0ef835a60b6493861065acbc4cb38a559 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 7df0656c17d4b857e0a51d446d3f10ca9fb19f82..de519ef06da70dfd621d95c07fd4d5a4de1ca6ac 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 9f9acadf0551d80d004cc24ad443f6a0a1df6e6c..3c3a6475a746873c8c29deb8d5b3cdf65df63138 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 05f044cc7d37fe4569dca18c92ad7a2eaf7103a8..8ee95946ebc758364522586cc8deb172e45ceb37 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 dd30cf0ea1a3a4f9511581ad0d4b1759f7a0e9c6..f4a2b63570257657ec666d60e33af18cd6c930e3 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 efd54b91deedface02914d79cc897942448356b2..0235303d863a69705cbc29a8a7ebc3350c106c2a 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 28db42997e65a30fae18b07a24bb0d9f086df9a4..c10b3a9f69b68457ba51f0aa22782f7299f6ceab 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 835145acb1a6d677cfda233f2c532112833da582..7aa42aa7670f23411495e17f930b0246260ad051 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 b79e46eedcbd846d10cfdfb3f2aa60049f2544a2..7534084cb230e61e50ce29a4c0621a1afd3a9e3e 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 2f86f3150a548b912b69ab9ded438c700883dafc..be197606baeb37cedd6e935f8db7bc070841da6b 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 bcd99d2f71ec78d9ec789dd1bfdb9b1d16920ac9..d5d22db6f4bb919fc3f93debb45fd2e5e6644e0d 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 35ce0d95ec4fc344caa8a6344825bbc87348fa80..de13b624231a6aab4e9cb1216947ec89b9056698 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); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Function/15.3.2.1-11-1-s.js b/test/built-ins/Function/15.3.2.1-11-1-s.js index e03cedaf5dd3e58db054551fdded267f8c1b4b64..dabfb8ab755d5b2d42149a9f9dc6cbc2eea98ab0 100644 --- a/test/built-ins/Function/15.3.2.1-11-1-s.js +++ b/test/built-ins/Function/15.3.2.1-11-1-s.js @@ -9,7 +9,7 @@ description: > flags: [noStrict] ---*/ - + assert.throws(SyntaxError, function() { - Function('a','a','"use strict";'); + Function('a', 'a', '"use strict";'); }); diff --git a/test/built-ins/Function/15.3.2.1-11-1.js b/test/built-ins/Function/15.3.2.1-11-1.js index 8caa5e5f77b11052538fb0d714d775ea7c874ec9..9c6706de1b90b38f16f8af4a411765d63d0a6e14 100644 --- a/test/built-ins/Function/15.3.2.1-11-1.js +++ b/test/built-ins/Function/15.3.2.1-11-1.js @@ -8,4 +8,4 @@ description: > if body not strict ---*/ - Function('a','a','return;'); +Function('a', 'a', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-2-s.js b/test/built-ins/Function/15.3.2.1-11-2-s.js index 7f670f1477aba9c6cc61b00322ec59738f749f48..4ed4ad8c95dba720eda376b4c25814ad164ce277 100644 --- a/test/built-ins/Function/15.3.2.1-11-2-s.js +++ b/test/built-ins/Function/15.3.2.1-11-2-s.js @@ -9,4 +9,4 @@ description: > flags: [onlyStrict] ---*/ - Function('a','a','return;'); +Function('a', 'a', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-3-s.js b/test/built-ins/Function/15.3.2.1-11-3-s.js index 29adf517de48dac978b3ee57b75c756fdf6bf6e0..204f9724b4caf3ba733e01bd4c6020cc3d934774 100644 --- a/test/built-ins/Function/15.3.2.1-11-3-s.js +++ b/test/built-ins/Function/15.3.2.1-11-3-s.js @@ -11,5 +11,5 @@ flags: [noStrict] assert.throws(SyntaxError, function() { - Function('eval', '"use strict";'); + Function('eval', '"use strict";'); }); diff --git a/test/built-ins/Function/15.3.2.1-11-3.js b/test/built-ins/Function/15.3.2.1-11-3.js index a1d3cf43164d19ea9c3c5e4535c36f76e2d2dabe..95e89dd53c516bc8bf23717fcf3df71dd59a591b 100644 --- a/test/built-ins/Function/15.3.2.1-11-3.js +++ b/test/built-ins/Function/15.3.2.1-11-3.js @@ -8,4 +8,4 @@ description: > body is not strict mode ---*/ - Function('eval', 'return;'); +Function('eval', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-4-s.js b/test/built-ins/Function/15.3.2.1-11-4-s.js index 858a9d7ac9aae0fe5587051442fde2653eb3294a..155a55fd61889bb5e2b776e30ed060e39087018e 100644 --- a/test/built-ins/Function/15.3.2.1-11-4-s.js +++ b/test/built-ins/Function/15.3.2.1-11-4-s.js @@ -10,4 +10,4 @@ description: > flags: [onlyStrict] ---*/ - Function('eval', 'return;'); +Function('eval', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-5-s.js b/test/built-ins/Function/15.3.2.1-11-5-s.js index 00db23462018e5271a78db155da357a03393ca6f..6017374b12515bd62539fe2b757c6d5c7fe73f85 100644 --- a/test/built-ins/Function/15.3.2.1-11-5-s.js +++ b/test/built-ins/Function/15.3.2.1-11-5-s.js @@ -9,7 +9,7 @@ description: > flags: [noStrict] ---*/ - + assert.throws(SyntaxError, function() { - Function('a,a','"use strict";'); + Function('a,a', '"use strict";'); }); diff --git a/test/built-ins/Function/15.3.2.1-11-5.js b/test/built-ins/Function/15.3.2.1-11-5.js index 90d41957246e87effe2ff289478ed7f645c78a99..debbe409bcb82b499b35123c6afef5e9e109d080 100644 --- a/test/built-ins/Function/15.3.2.1-11-5.js +++ b/test/built-ins/Function/15.3.2.1-11-5.js @@ -8,4 +8,4 @@ description: > if body is not strict ---*/ - Function('a,a','return;'); +Function('a,a', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-6-s.js b/test/built-ins/Function/15.3.2.1-11-6-s.js index 5d5362cbb8716567c06679a89a56a9615b570b0f..6f840ef8db2b49b63984b8bd2d28240b551b062f 100644 --- a/test/built-ins/Function/15.3.2.1-11-6-s.js +++ b/test/built-ins/Function/15.3.2.1-11-6-s.js @@ -9,4 +9,4 @@ description: > flags: [onlyStrict] ---*/ - Function('a,a','return a;'); +Function('a,a', 'return a;'); diff --git a/test/built-ins/Function/15.3.2.1-11-7-s.js b/test/built-ins/Function/15.3.2.1-11-7-s.js index dd1d6e55ada7e1420e7f1cddfb12370d4ea7b9c3..e82253bc1524633e075944b4bbbf6e88b25b758b 100644 --- a/test/built-ins/Function/15.3.2.1-11-7-s.js +++ b/test/built-ins/Function/15.3.2.1-11-7-s.js @@ -10,4 +10,4 @@ description: > flags: [onlyStrict] ---*/ - Function('arguments', 'return;'); +Function('arguments', 'return;'); diff --git a/test/built-ins/Function/15.3.2.1-11-8-s.js b/test/built-ins/Function/15.3.2.1-11-8-s.js index 2795b4ddf6b3028ae62217b4a9c2fa7aac440d6d..a9ec023b021896a6a2d783651482beaa62c473c8 100644 --- a/test/built-ins/Function/15.3.2.1-11-8-s.js +++ b/test/built-ins/Function/15.3.2.1-11-8-s.js @@ -11,4 +11,4 @@ description: > flags: [onlyStrict] ---*/ - var foo = new Function("baz", "qux", "baz", "return 0;"); +var foo = new Function("baz", "qux", "baz", "return 0;"); diff --git a/test/built-ins/Function/15.3.2.1-11-9-s.js b/test/built-ins/Function/15.3.2.1-11-9-s.js index fef8fdade3e6fe7c295957be5b076811bf58a111..a80d3e15faf7d0143807e030e878e689299ea724 100644 --- a/test/built-ins/Function/15.3.2.1-11-9-s.js +++ b/test/built-ins/Function/15.3.2.1-11-9-s.js @@ -10,4 +10,4 @@ description: > body ---*/ - var foo = new Function("baz", "baz", "baz", "return 0;"); +var foo = new Function("baz", "baz", "baz", "return 0;"); diff --git a/test/built-ins/Function/15.3.5-1gs.js b/test/built-ins/Function/15.3.5-1gs.js index 129fa783490ae63fc1bc2c49101626705281943c..ee28fb1ef396ff731278cc352f4a836f1fef8e38 100644 --- a/test/built-ins/Function/15.3.5-1gs.js +++ b/test/built-ins/Function/15.3.5-1gs.js @@ -10,6 +10,7 @@ flags: [onlyStrict] ---*/ "use strict"; + function _15_3_5_1_gs() {} assert.throws(TypeError, function() { diff --git a/test/built-ins/Function/15.3.5.4_2-10gs.js b/test/built-ins/Function/15.3.5.4_2-10gs.js index 70be7b5f0b4e4f8ad84f0445d8ae425daa3bfeef..70f1e76a9ac10c0f34b0cbe7e330587ed84b2a52 100644 --- a/test/built-ins/Function/15.3.5.4_2-10gs.js +++ b/test/built-ins/Function/15.3.5.4_2-10gs.js @@ -13,9 +13,9 @@ flags: [noStrict] var f = new Function("\"use strict\";\ngNonStrict();"); assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-11gs.js b/test/built-ins/Function/15.3.5.4_2-11gs.js index 25824f9379c57a811be97de22649a93f8503237e..8303b2068c79a8307449475ff57f86941f6b22b0 100644 --- a/test/built-ins/Function/15.3.5.4_2-11gs.js +++ b/test/built-ins/Function/15.3.5.4_2-11gs.js @@ -10,10 +10,10 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - eval("gNonStrict();"); + eval("gNonStrict();"); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-12gs.js b/test/built-ins/Function/15.3.5.4_2-12gs.js index 4b1fc536381245155c435d39d55fb56a4dacb727..a63cb49e020ae3abd5d7ace8d81aaf2653c7cd7e 100644 --- a/test/built-ins/Function/15.3.5.4_2-12gs.js +++ b/test/built-ins/Function/15.3.5.4_2-12gs.js @@ -14,5 +14,5 @@ eval("\"use strict\";\ngNonStrict();"); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-13gs.js b/test/built-ins/Function/15.3.5.4_2-13gs.js index 2d641a9d6b96e45c6c0904055182b808edbb59e5..0ad5d98a60ac01e18813d3d580f377de48b7fac2 100644 --- a/test/built-ins/Function/15.3.5.4_2-13gs.js +++ b/test/built-ins/Function/15.3.5.4_2-13gs.js @@ -12,9 +12,9 @@ flags: [onlyStrict] var my_eval = eval; assert.throws(TypeError, function() { - my_eval("gNonStrict();"); + my_eval("gNonStrict();"); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-14gs.js b/test/built-ins/Function/15.3.5.4_2-14gs.js index 0df946d586724b2c9a084d2b2311fb236a8fd5b6..dd7bae085cc7dca214fdbc63baf5a1cbed8f3856 100644 --- a/test/built-ins/Function/15.3.5.4_2-14gs.js +++ b/test/built-ins/Function/15.3.5.4_2-14gs.js @@ -16,5 +16,5 @@ my_eval("\"use strict\";\ngNonStrict();"); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-15gs.js b/test/built-ins/Function/15.3.5.4_2-15gs.js index 73478f87739f46f71c3f46ca9a20588e659497a7..beb5bf5082497f023fadbbc05f9a79b22d9c20bb 100644 --- a/test/built-ins/Function/15.3.5.4_2-15gs.js +++ b/test/built-ins/Function/15.3.5.4_2-15gs.js @@ -11,13 +11,13 @@ flags: [onlyStrict] ---*/ function f() { - gNonStrict(); + gNonStrict(); } assert.throws(TypeError, function() { - new f(); + new f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-16gs.js b/test/built-ins/Function/15.3.5.4_2-16gs.js index 8046f5457841ed5a5fe008669caf51f2fe7541e4..bcc4de2655296fd1d9b71aeddc02bb981fa3abb5 100644 --- a/test/built-ins/Function/15.3.5.4_2-16gs.js +++ b/test/built-ins/Function/15.3.5.4_2-16gs.js @@ -11,14 +11,14 @@ flags: [noStrict] ---*/ function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - new f(); + new f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-17gs.js b/test/built-ins/Function/15.3.5.4_2-17gs.js index 4a911e8057d329ea1bd07c9da1bafeff2382d178..2aa9d93b0adad2b33e3c0f4e8e833c9839e96c57 100644 --- a/test/built-ins/Function/15.3.5.4_2-17gs.js +++ b/test/built-ins/Function/15.3.5.4_2-17gs.js @@ -10,14 +10,14 @@ description: > flags: [onlyStrict] ---*/ -var f = function () { - gNonStrict(); +var f = function() { + gNonStrict(); } assert.throws(TypeError, function() { - new f(); + new f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-18gs.js b/test/built-ins/Function/15.3.5.4_2-18gs.js index 01aba8242415542227e15e5a131bcfdf45fa60c9..87b8589055ec02f16657bab097e4ebf5079ecc8e 100644 --- a/test/built-ins/Function/15.3.5.4_2-18gs.js +++ b/test/built-ins/Function/15.3.5.4_2-18gs.js @@ -10,15 +10,15 @@ description: > flags: [noStrict] ---*/ -var f = function () { - "use strict"; - gNonStrict(); +var f = function() { + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - new f(); + new f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-19gs.js b/test/built-ins/Function/15.3.5.4_2-19gs.js index be861cf0c96c036a1a02343e6e83f9249a7d284c..71aba80652206a84b5dc0bd7067b0524cdb8d2b4 100644 --- a/test/built-ins/Function/15.3.5.4_2-19gs.js +++ b/test/built-ins/Function/15.3.5.4_2-19gs.js @@ -11,11 +11,11 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - var obj = new (function () { - gNonStrict(); - }); + var obj = new(function() { + gNonStrict(); + }); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-1gs.js b/test/built-ins/Function/15.3.5.4_2-1gs.js index 302881fcc9b7af54298c57e735ccab7d11ab839f..97d6b0615ffdba7dfdbdba52e99e946f36d51985 100644 --- a/test/built-ins/Function/15.3.5.4_2-1gs.js +++ b/test/built-ins/Function/15.3.5.4_2-1gs.js @@ -10,13 +10,13 @@ flags: [onlyStrict] ---*/ function f() { - gNonStrict(); + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-20gs.js b/test/built-ins/Function/15.3.5.4_2-20gs.js index 0e2a8219a34271f04bf76941bb5573dfdbf3579e..579f9624afd08907aca7a142542172cdcdd7d0c4 100644 --- a/test/built-ins/Function/15.3.5.4_2-20gs.js +++ b/test/built-ins/Function/15.3.5.4_2-20gs.js @@ -11,13 +11,13 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - var obj = new (function () { - "use strict"; - gNonStrict(); - }); + var obj = new(function() { + "use strict"; + gNonStrict(); + }); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-21gs.js b/test/built-ins/Function/15.3.5.4_2-21gs.js index a99ee52a7f38c89e4fe8d5ef9a0170deceb29f82..67c4da2774eeb386fcdaff08898a49cac0f94c02 100644 --- a/test/built-ins/Function/15.3.5.4_2-21gs.js +++ b/test/built-ins/Function/15.3.5.4_2-21gs.js @@ -11,16 +11,16 @@ flags: [onlyStrict] ---*/ function f1() { - function f() { - gNonStrict(); - } - f(); + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-22gs.js b/test/built-ins/Function/15.3.5.4_2-22gs.js index 363d5b4e2b0c5d4a662c5e8bb73bc930448d6fc9..cd0e1fbae0e76c3137715423fa80c03ce0ec5a59 100644 --- a/test/built-ins/Function/15.3.5.4_2-22gs.js +++ b/test/built-ins/Function/15.3.5.4_2-22gs.js @@ -11,16 +11,16 @@ flags: [onlyStrict] ---*/ function f1() { - var f = function () { - gNonStrict(); - } - f(); + var f = function() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-23gs.js b/test/built-ins/Function/15.3.5.4_2-23gs.js index e57bf63ab4073ebfbac5d8fdf5528a552bef5b48..f1bc42f74500e0db38a10bcb371c3af613623c34 100644 --- a/test/built-ins/Function/15.3.5.4_2-23gs.js +++ b/test/built-ins/Function/15.3.5.4_2-23gs.js @@ -11,15 +11,15 @@ flags: [onlyStrict] ---*/ function f1() { - (function () { - gNonStrict(); - })(); + (function() { + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-24gs.js b/test/built-ins/Function/15.3.5.4_2-24gs.js index 32775213325c5a105b9c9aaf27ceaf17941e28cb..3e7b58f3a5bf1ae8b34bf18fc3b1bc8387572ea2 100644 --- a/test/built-ins/Function/15.3.5.4_2-24gs.js +++ b/test/built-ins/Function/15.3.5.4_2-24gs.js @@ -10,18 +10,18 @@ description: > flags: [onlyStrict] ---*/ -var f1 = function () { - function f() { - gNonStrict(); - } - f(); +var f1 = function() { + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-25gs.js b/test/built-ins/Function/15.3.5.4_2-25gs.js index f4c7b216eb2ddc2ad53cdd5dbe622eda2896008f..03f88564219660eeb9e0f819528f66d25002c07d 100644 --- a/test/built-ins/Function/15.3.5.4_2-25gs.js +++ b/test/built-ins/Function/15.3.5.4_2-25gs.js @@ -10,17 +10,17 @@ description: > flags: [onlyStrict] ---*/ -var f1 = function () { - var f = function () { - gNonStrict(); - } - f(); +var f1 = function() { + var f = function() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-26gs.js b/test/built-ins/Function/15.3.5.4_2-26gs.js index 0fdee36d28076037b7e79ef34bfba7bcb1696f4c..c37e20a7002885a8dc72e09f28594f51cfb47ae3 100644 --- a/test/built-ins/Function/15.3.5.4_2-26gs.js +++ b/test/built-ins/Function/15.3.5.4_2-26gs.js @@ -10,16 +10,16 @@ description: > flags: [onlyStrict] ---*/ -var f1 = function () { - (function () { - gNonStrict(); - })(); +var f1 = function() { + (function() { + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-27gs.js b/test/built-ins/Function/15.3.5.4_2-27gs.js index 9c3b4388cfdb652ed78a14187890c7640b67e43f..ba70939a09135448266641db9cc47135d3f16c80 100644 --- a/test/built-ins/Function/15.3.5.4_2-27gs.js +++ b/test/built-ins/Function/15.3.5.4_2-27gs.js @@ -11,14 +11,14 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - (function () { - function f() { - gNonStrict(); - } - f(); - })(); + (function() { + function f() { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-28gs.js b/test/built-ins/Function/15.3.5.4_2-28gs.js index 70fa7f3ee12aa51dcc76573536011d3a2227b72a..3d70c74897a11f7be476b509c35a1934cb6202a3 100644 --- a/test/built-ins/Function/15.3.5.4_2-28gs.js +++ b/test/built-ins/Function/15.3.5.4_2-28gs.js @@ -11,15 +11,15 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - (function () { - var f = function () { - gNonStrict(); - } - f(); - })(); + (function() { + var f = function() { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-29gs.js b/test/built-ins/Function/15.3.5.4_2-29gs.js index 5f792dbb8f0933f4683d87e16e241c365cc79a4f..5aeff3ea99b744a81f60bdf663ff6841a4b6a8e4 100644 --- a/test/built-ins/Function/15.3.5.4_2-29gs.js +++ b/test/built-ins/Function/15.3.5.4_2-29gs.js @@ -11,13 +11,13 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - (function () { - (function () { - gNonStrict(); - })(); + (function() { + (function() { + gNonStrict(); })(); + })(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-2gs.js b/test/built-ins/Function/15.3.5.4_2-2gs.js index fed111eb26c319f46ec3d98b5782aa2d2bb9a26d..f942fcf193d5b76e64fffdf6d6a168708a524ab4 100644 --- a/test/built-ins/Function/15.3.5.4_2-2gs.js +++ b/test/built-ins/Function/15.3.5.4_2-2gs.js @@ -11,14 +11,14 @@ flags: [noStrict] ---*/ function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-30gs.js b/test/built-ins/Function/15.3.5.4_2-30gs.js index d49e9861eb9de81f29a043cb33e843513c9f51bb..bec9e4323a4df4f74e329c954f8dc9fdcfbd0a32 100644 --- a/test/built-ins/Function/15.3.5.4_2-30gs.js +++ b/test/built-ins/Function/15.3.5.4_2-30gs.js @@ -11,17 +11,18 @@ flags: [noStrict] ---*/ function f1() { - "use strict"; - function f() { - gNonStrict(); - } - f(); + "use strict"; + + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-31gs.js b/test/built-ins/Function/15.3.5.4_2-31gs.js index 9401b802e261bf4b6a4b5d3e97e59491b9875d5f..2a041c132ef96df02ac41c4c3f292f1dd50e6ed6 100644 --- a/test/built-ins/Function/15.3.5.4_2-31gs.js +++ b/test/built-ins/Function/15.3.5.4_2-31gs.js @@ -11,17 +11,17 @@ flags: [noStrict] ---*/ function f1() { - "use strict"; - var f = function () { - gNonStrict(); - } - f(); + "use strict"; + var f = function() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-32gs.js b/test/built-ins/Function/15.3.5.4_2-32gs.js index 9b5ae34a6403262c869997db7543a48d94773cb3..a1300dacaceb42e89eb6734cedd96706b507b950 100644 --- a/test/built-ins/Function/15.3.5.4_2-32gs.js +++ b/test/built-ins/Function/15.3.5.4_2-32gs.js @@ -11,16 +11,16 @@ flags: [noStrict] ---*/ function f1() { - "use strict"; - (function () { - gNonStrict(); - })(); + "use strict"; + (function() { + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-33gs.js b/test/built-ins/Function/15.3.5.4_2-33gs.js index 9f366b3f6adcb86026f299ce676888ffbfb13e4a..6508770f4f767cfc8634724898155913bdfda0d5 100644 --- a/test/built-ins/Function/15.3.5.4_2-33gs.js +++ b/test/built-ins/Function/15.3.5.4_2-33gs.js @@ -10,18 +10,19 @@ description: > flags: [noStrict] ---*/ -var f1 = function () { - "use strict"; - function f() { - gNonStrict(); - } - f(); +var f1 = function() { + "use strict"; + + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-34gs.js b/test/built-ins/Function/15.3.5.4_2-34gs.js index 7c028bcbffe82eb76f61b8c8fd4c6ef23911a50c..257211176c6f95a8f69fe9f06ebf9b60994d79e8 100644 --- a/test/built-ins/Function/15.3.5.4_2-34gs.js +++ b/test/built-ins/Function/15.3.5.4_2-34gs.js @@ -10,18 +10,18 @@ description: > flags: [noStrict] ---*/ -var f1 = function () { - "use strict"; - var f = function () { - gNonStrict(); - } - f(); +var f1 = function() { + "use strict"; + var f = function() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-35gs.js b/test/built-ins/Function/15.3.5.4_2-35gs.js index 2c4d8c6c48d1e5b6a589ff5f4f46d3aa2aaeebc8..f6e683ba24f0b2549ba06606dd9995cecde66257 100644 --- a/test/built-ins/Function/15.3.5.4_2-35gs.js +++ b/test/built-ins/Function/15.3.5.4_2-35gs.js @@ -10,17 +10,17 @@ description: > flags: [noStrict] ---*/ -var f1 = function () { - "use strict"; - (function () { - gNonStrict(); - })(); +var f1 = function() { + "use strict"; + (function() { + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-36gs.js b/test/built-ins/Function/15.3.5.4_2-36gs.js index 5625d5fbfb3a7386ab358f5af6e076a819f073a1..ded271ba8dc232751a123d475889a1024f1295b9 100644 --- a/test/built-ins/Function/15.3.5.4_2-36gs.js +++ b/test/built-ins/Function/15.3.5.4_2-36gs.js @@ -11,15 +11,16 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function () { - "use strict"; - function f() { - gNonStrict(); - } - f(); - })(); + (function() { + "use strict"; + + function f() { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-37gs.js b/test/built-ins/Function/15.3.5.4_2-37gs.js index d3eab113fabb1b70ff6bdb5490ba0341d7d37b86..8a515705b4273a621413b98d00e0c50a8b428455 100644 --- a/test/built-ins/Function/15.3.5.4_2-37gs.js +++ b/test/built-ins/Function/15.3.5.4_2-37gs.js @@ -11,15 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function () { - "use strict"; - var f = function () { - gNonStrict(); - } - f(); - })(); + (function() { + "use strict"; + var f = function() { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-38gs.js b/test/built-ins/Function/15.3.5.4_2-38gs.js index d824dc0a223e03e405140f3bde0b033a1c181cce..998fecee0a0405e3a81d0d5c819a6e816c81a1c4 100644 --- a/test/built-ins/Function/15.3.5.4_2-38gs.js +++ b/test/built-ins/Function/15.3.5.4_2-38gs.js @@ -11,14 +11,14 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function () { - "use strict"; - (function () { - gNonStrict(); - })(); + (function() { + "use strict"; + (function() { + gNonStrict(); })(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-39gs.js b/test/built-ins/Function/15.3.5.4_2-39gs.js index 5a651dd7b550635fbd7da11683d85b0aab5f0a7b..1f7ee2ccab71e70d7ecd64e8405cd0e6e1d63412 100644 --- a/test/built-ins/Function/15.3.5.4_2-39gs.js +++ b/test/built-ins/Function/15.3.5.4_2-39gs.js @@ -11,17 +11,17 @@ flags: [noStrict] ---*/ function f1() { - function f() { - "use strict"; - gNonStrict(); - } - return f(); + function f() { + "use strict"; + gNonStrict(); + } + return f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-3gs.js b/test/built-ins/Function/15.3.5.4_2-3gs.js index ec2224106a096a42a226bde15dd9f5ce036d336c..05378cc29a505793795034a2aa1400bc82931d12 100644 --- a/test/built-ins/Function/15.3.5.4_2-3gs.js +++ b/test/built-ins/Function/15.3.5.4_2-3gs.js @@ -9,14 +9,14 @@ description: > flags: [onlyStrict] ---*/ -var f = function () { - gNonStrict(); +var f = function() { + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-40gs.js b/test/built-ins/Function/15.3.5.4_2-40gs.js index 102b702658c1a0f4ffcd46a863ae01a49376facd..3e616381f94696740a41313c19dd475c4d984e61 100644 --- a/test/built-ins/Function/15.3.5.4_2-40gs.js +++ b/test/built-ins/Function/15.3.5.4_2-40gs.js @@ -11,17 +11,17 @@ flags: [noStrict] ---*/ function f1() { - var f = function () { - "use strict"; - gNonStrict(); - } - return f(); + var f = function() { + "use strict"; + gNonStrict(); + } + return f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-41gs.js b/test/built-ins/Function/15.3.5.4_2-41gs.js index 2e17cff15d495810b27939c793ed96aa19943f7a..5cf5456b51ee1c411e343fa9ca22facba2a0b546 100644 --- a/test/built-ins/Function/15.3.5.4_2-41gs.js +++ b/test/built-ins/Function/15.3.5.4_2-41gs.js @@ -11,16 +11,16 @@ flags: [noStrict] ---*/ function f1() { - return (function () { - "use strict"; - gNonStrict(); - })(); + return (function() { + "use strict"; + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-42gs.js b/test/built-ins/Function/15.3.5.4_2-42gs.js index 43af9ac8044c57874deb0e134216ea0dcf836bfc..7d5deece019d0ae5b63ed1c1708f6ceaf0fda99f 100644 --- a/test/built-ins/Function/15.3.5.4_2-42gs.js +++ b/test/built-ins/Function/15.3.5.4_2-42gs.js @@ -10,18 +10,18 @@ description: > flags: [noStrict] ---*/ -var f1 = function () { - function f() { - "use strict"; - gNonStrict(); - } - return f(); +var f1 = function() { + function f() { + "use strict"; + gNonStrict(); + } + return f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-43gs.js b/test/built-ins/Function/15.3.5.4_2-43gs.js index 40f2e23cb4c19297de674981941f810f4fc8c79f..c09efeb66d2d3ea0b4a3d7f70ab7259d5011a58c 100644 --- a/test/built-ins/Function/15.3.5.4_2-43gs.js +++ b/test/built-ins/Function/15.3.5.4_2-43gs.js @@ -10,18 +10,18 @@ description: > flags: [noStrict] ---*/ -var f1 = function () { - var f = function () { - "use strict"; - gNonStrict(); - } - return f(); +var f1 = function() { + var f = function() { + "use strict"; + gNonStrict(); + } + return f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-44gs.js b/test/built-ins/Function/15.3.5.4_2-44gs.js index c23e618ab172e7020c373b590a466254e137948f..8ce197b44753c42060a533e195c252e14a305b70 100644 --- a/test/built-ins/Function/15.3.5.4_2-44gs.js +++ b/test/built-ins/Function/15.3.5.4_2-44gs.js @@ -10,17 +10,17 @@ description: > flags: [noStrict] ---*/ -var f1 = function () { - return (function () { - "use strict"; - gNonStrict(); - })(); +var f1 = function() { + return (function() { + "use strict"; + gNonStrict(); + })(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-45gs.js b/test/built-ins/Function/15.3.5.4_2-45gs.js index e2745596d89999f5737af7fb797a0f31b5d5a2ab..175bdae7242fcfc42c17ca39df8146d4593ac068 100644 --- a/test/built-ins/Function/15.3.5.4_2-45gs.js +++ b/test/built-ins/Function/15.3.5.4_2-45gs.js @@ -11,15 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function () { - function f() { - "use strict"; - gNonStrict(); - } - return f(); - })(); + (function() { + function f() { + "use strict"; + gNonStrict(); + } + return f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-46gs.js b/test/built-ins/Function/15.3.5.4_2-46gs.js index 6dea39b00e4787994a419f3c579c0eed10648dd5..c120259a7020a62cf31b27f282371a5a656b7a76 100644 --- a/test/built-ins/Function/15.3.5.4_2-46gs.js +++ b/test/built-ins/Function/15.3.5.4_2-46gs.js @@ -11,15 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function () { - var f = function () { - "use strict"; - gNonStrict(); - } - return f(); - })(); + (function() { + var f = function() { + "use strict"; + gNonStrict(); + } + return f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-47gs.js b/test/built-ins/Function/15.3.5.4_2-47gs.js index 180c64dd2eeae17105794c749a8fb0b59b8436a8..a845ba280c617ae904ef5e2e18501e084cef83a5 100644 --- a/test/built-ins/Function/15.3.5.4_2-47gs.js +++ b/test/built-ins/Function/15.3.5.4_2-47gs.js @@ -11,15 +11,15 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function () { - return (function () { - "use strict"; - gNonStrict(); - })(); + (function() { + return (function() { + "use strict"; + gNonStrict(); })(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-48gs.js b/test/built-ins/Function/15.3.5.4_2-48gs.js index 7a06d728036a90d71f8e7e949cd775ac422ba120..1b15f29f1b34e2ae49b66487164bc8c50acf084d 100644 --- a/test/built-ins/Function/15.3.5.4_2-48gs.js +++ b/test/built-ins/Function/15.3.5.4_2-48gs.js @@ -9,12 +9,16 @@ description: > flags: [onlyStrict] ---*/ -var o = { get foo() { gNonStrict(); } } +var o = { + get foo() { + gNonStrict(); + } +} assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-49gs.js b/test/built-ins/Function/15.3.5.4_2-49gs.js index a539635300a3e57cf28b513924992955554e897e..36b004570478a248d39f6adb7b3a735da49bc8a2 100644 --- a/test/built-ins/Function/15.3.5.4_2-49gs.js +++ b/test/built-ins/Function/15.3.5.4_2-49gs.js @@ -10,12 +10,17 @@ description: > flags: [noStrict] ---*/ -var o = { get foo() { "use strict"; gNonStrict(); } } +var o = { + get foo() { + "use strict"; + gNonStrict(); + } +} assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-4gs.js b/test/built-ins/Function/15.3.5.4_2-4gs.js index 3f03d52024cea4fe305cb54dd9ba9c86e853a261..eae7c646df3c6ad1f921e3512a18e5919b209880 100644 --- a/test/built-ins/Function/15.3.5.4_2-4gs.js +++ b/test/built-ins/Function/15.3.5.4_2-4gs.js @@ -10,15 +10,15 @@ description: > flags: [noStrict] ---*/ -var f = function () { - "use strict"; - gNonStrict(); +var f = function() { + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-50gs.js b/test/built-ins/Function/15.3.5.4_2-50gs.js index 2c7ab8abf1398569c1586383b34a199a5d8248a2..30d3c26769b7448aa9893be622f301463eadbce2 100644 --- a/test/built-ins/Function/15.3.5.4_2-50gs.js +++ b/test/built-ins/Function/15.3.5.4_2-50gs.js @@ -9,12 +9,16 @@ description: > flags: [onlyStrict] ---*/ -var o = { set foo(stuff) { gNonStrict(); } } +var o = { + set foo(stuff) { + gNonStrict(); + } +} assert.throws(TypeError, function() { - o.foo = 7; + o.foo = 7; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-51gs.js b/test/built-ins/Function/15.3.5.4_2-51gs.js index f087b318064956227141356eb60d9ade7ea15087..f99cf0245572095dad3bbf4f6fbc76fceeddc052 100644 --- a/test/built-ins/Function/15.3.5.4_2-51gs.js +++ b/test/built-ins/Function/15.3.5.4_2-51gs.js @@ -10,12 +10,17 @@ description: > flags: [noStrict] ---*/ -var o = { set foo(stuff) { "use strict"; gNonStrict(); } } +var o = { + set foo(stuff) { + "use strict"; + gNonStrict(); + } +} assert.throws(TypeError, function() { - o.foo = 8; + o.foo = 8; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-52gs.js b/test/built-ins/Function/15.3.5.4_2-52gs.js index b996eadf72f35b10d4b34304ad1a9cda20c3810d..7bd5c98fd64c3e76f006458484ced9504b418150 100644 --- a/test/built-ins/Function/15.3.5.4_2-52gs.js +++ b/test/built-ins/Function/15.3.5.4_2-52gs.js @@ -10,12 +10,16 @@ flags: [onlyStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { get: function() { gNonStrict(); } }); +Object.defineProperty(o, "foo", { + get: function() { + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-53gs.js b/test/built-ins/Function/15.3.5.4_2-53gs.js index 50bfb37e31756b1b1601b00a668307bb257dd582..662870cbf09ae1ec206fc1914ceaa07d85deb5c9 100644 --- a/test/built-ins/Function/15.3.5.4_2-53gs.js +++ b/test/built-ins/Function/15.3.5.4_2-53gs.js @@ -11,12 +11,17 @@ flags: [noStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { get: function() { "use strict"; gNonStrict(); } }); +Object.defineProperty(o, "foo", { + get: function() { + "use strict"; + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-54gs.js b/test/built-ins/Function/15.3.5.4_2-54gs.js index 6182bd6e1328c86c442dc82f2f360ba988dc5b3e..dc45d891632be78f4f8a59088d93032bf45be7e4 100644 --- a/test/built-ins/Function/15.3.5.4_2-54gs.js +++ b/test/built-ins/Function/15.3.5.4_2-54gs.js @@ -10,12 +10,16 @@ flags: [onlyStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { set: function(stuff) { gNonStrict(); } }); +Object.defineProperty(o, "foo", { + set: function(stuff) { + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo = 9; + o.foo = 9; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-55gs.js b/test/built-ins/Function/15.3.5.4_2-55gs.js index 9656eecfb7f4ce952c0206a761c3ec2a31c43e08..35a7768490ee2a1fb2ea319df0ecb9355b075141 100644 --- a/test/built-ins/Function/15.3.5.4_2-55gs.js +++ b/test/built-ins/Function/15.3.5.4_2-55gs.js @@ -11,12 +11,17 @@ flags: [noStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; gNonStrict(); } }); +Object.defineProperty(o, "foo", { + set: function(stuff) { + "use strict"; + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo = 10; + o.foo = 10; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-56gs.js b/test/built-ins/Function/15.3.5.4_2-56gs.js index ab4190fda6433365919ca8dafb35c7477193de64..28094f41b65b8f3cd74898d2b4cf1a1276f17449 100644 --- a/test/built-ins/Function/15.3.5.4_2-56gs.js +++ b/test/built-ins/Function/15.3.5.4_2-56gs.js @@ -10,13 +10,19 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict(); }; -function foo() { return f();} +function f() { + "use strict"; + gNonStrict(); +}; + +function foo() { + return f(); +} assert.throws(TypeError, function() { - foo(); + foo(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-57gs.js b/test/built-ins/Function/15.3.5.4_2-57gs.js index 771c4a0bff625992f6446230d1d274395f2d138c..4d2be9314943d573e4a552cd5459ccb13919cae2 100644 --- a/test/built-ins/Function/15.3.5.4_2-57gs.js +++ b/test/built-ins/Function/15.3.5.4_2-57gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict(); }; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - eval("f();"); + eval("f();"); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-58gs.js b/test/built-ins/Function/15.3.5.4_2-58gs.js index d903bdc4785bba92704a186f26d9257db214d7d4..7967333352d0ba05e43751565b5aa66aade92083 100644 --- a/test/built-ins/Function/15.3.5.4_2-58gs.js +++ b/test/built-ins/Function/15.3.5.4_2-58gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict(); }; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - Function("return f();")(); + Function("return f();")(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-59gs.js b/test/built-ins/Function/15.3.5.4_2-59gs.js index 75d85d2fd83d8bab7761268eac9308c410e57753..6df2cdfc93fa6bdaf94cd65d2527388a6e2ad8ff 100644 --- a/test/built-ins/Function/15.3.5.4_2-59gs.js +++ b/test/built-ins/Function/15.3.5.4_2-59gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict(); }; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - new Function("return f();")(); + new Function("return f();")(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-5gs.js b/test/built-ins/Function/15.3.5.4_2-5gs.js index 6e6f67821af1e24507351e7de1763ba5496a6cc1..299e8ce1b01a863ec8b8b3567038a74fdc57b189 100644 --- a/test/built-ins/Function/15.3.5.4_2-5gs.js +++ b/test/built-ins/Function/15.3.5.4_2-5gs.js @@ -11,11 +11,11 @@ flags: [onlyStrict] ---*/ assert.throws(TypeError, function() { - (function () { - gNonStrict(); - })(); + (function() { + gNonStrict(); + })(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-60gs.js b/test/built-ins/Function/15.3.5.4_2-60gs.js index eed2e180a3f9c695e7b30230c8c1a7a663b308b8..2064f51c42e878fcd61fd4ff7b04f47a13efd9a4 100644 --- a/test/built-ins/Function/15.3.5.4_2-60gs.js +++ b/test/built-ins/Function/15.3.5.4_2-60gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.apply(); + f.apply(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-61gs.js b/test/built-ins/Function/15.3.5.4_2-61gs.js index 696449b697df247d286daba031efe61219360ae0..fb1ed900f07b04255b0f21e4a364a63fbdd0b9ae 100644 --- a/test/built-ins/Function/15.3.5.4_2-61gs.js +++ b/test/built-ins/Function/15.3.5.4_2-61gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.apply(null); + f.apply(null); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-62gs.js b/test/built-ins/Function/15.3.5.4_2-62gs.js index 57dd44c7a7a065f57077dbc32fa3011f37d50d97..e2ca688092aac7925f389328aa4a79159a1b4371 100644 --- a/test/built-ins/Function/15.3.5.4_2-62gs.js +++ b/test/built-ins/Function/15.3.5.4_2-62gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.apply(undefined); + f.apply(undefined); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-63gs.js b/test/built-ins/Function/15.3.5.4_2-63gs.js index 83dbe0b4fbb5f484118550203a4054e72bb4d214..2f8cf457c98f9319ac61e5bd24558c2f97124fa7 100644 --- a/test/built-ins/Function/15.3.5.4_2-63gs.js +++ b/test/built-ins/Function/15.3.5.4_2-63gs.js @@ -10,13 +10,16 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; var o = {}; assert.throws(TypeError, function() { - f.apply(o); + f.apply(o); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-64gs.js b/test/built-ins/Function/15.3.5.4_2-64gs.js index a95d82a416d115ceb2696338e884c250f79bf06f..b4b18805f3830eee5bfb4468e8eb3e4e541ced9a 100644 --- a/test/built-ins/Function/15.3.5.4_2-64gs.js +++ b/test/built-ins/Function/15.3.5.4_2-64gs.js @@ -11,12 +11,16 @@ flags: [noStrict] ---*/ var global = this; -function f() { "use strict"; gNonStrict();}; + +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.apply(global); + f.apply(global); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-65gs.js b/test/built-ins/Function/15.3.5.4_2-65gs.js index 6062b1d814c7438ddd62157355b06b2f6897de56..7fe4ebbcba8298a6ab7a0f00449b2aced430e93b 100644 --- a/test/built-ins/Function/15.3.5.4_2-65gs.js +++ b/test/built-ins/Function/15.3.5.4_2-65gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.call(); + f.call(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-66gs.js b/test/built-ins/Function/15.3.5.4_2-66gs.js index 1c410c7e72ed185c7fd330d4730e0f3ce9863f8e..ef1d045d90e583103e80871e437332ec05d27da4 100644 --- a/test/built-ins/Function/15.3.5.4_2-66gs.js +++ b/test/built-ins/Function/15.3.5.4_2-66gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.call(null); + f.call(null); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-67gs.js b/test/built-ins/Function/15.3.5.4_2-67gs.js index 76308260fc4717f11923fa383a171c0b29c15da1..2c1e85967aee233f0ddaf1ca5130031f038a226d 100644 --- a/test/built-ins/Function/15.3.5.4_2-67gs.js +++ b/test/built-ins/Function/15.3.5.4_2-67gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.call(undefined); + f.call(undefined); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-68gs.js b/test/built-ins/Function/15.3.5.4_2-68gs.js index 0f23492bdb134613541534ad30f5facab4d766e7..37667415d7b59c3db45eff692d4f1e62c7b79698 100644 --- a/test/built-ins/Function/15.3.5.4_2-68gs.js +++ b/test/built-ins/Function/15.3.5.4_2-68gs.js @@ -10,13 +10,16 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; var o = {}; assert.throws(TypeError, function() { - f.call(o); + f.call(o); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-69gs.js b/test/built-ins/Function/15.3.5.4_2-69gs.js index 0572d8603c9f5d8ef54fbf5c164ada9dc08b8459..664a8003da41efa03b82f95b206655dd1a127352 100644 --- a/test/built-ins/Function/15.3.5.4_2-69gs.js +++ b/test/built-ins/Function/15.3.5.4_2-69gs.js @@ -11,12 +11,16 @@ flags: [noStrict] ---*/ var global = this; -function f() { "use strict"; gNonStrict();}; + +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.call(this); + f.call(this); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-6gs.js b/test/built-ins/Function/15.3.5.4_2-6gs.js index 425f3dcc8556fa872a90c456848452ed72e3cd9d..5a3ca1b07f0a89d40e6d5499ead2bcb2c0d2c446 100644 --- a/test/built-ins/Function/15.3.5.4_2-6gs.js +++ b/test/built-ins/Function/15.3.5.4_2-6gs.js @@ -11,13 +11,13 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function () { - "use strict"; - gNonStrict(); - })(); + (function() { + "use strict"; + gNonStrict(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-70gs.js b/test/built-ins/Function/15.3.5.4_2-70gs.js index 0ce9f72af8a71e1597ec750582c92c84ae255c86..67c58c30141a99429c2f2b510e0f17bcac783e8e 100644 --- a/test/built-ins/Function/15.3.5.4_2-70gs.js +++ b/test/built-ins/Function/15.3.5.4_2-70gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.bind()(); + f.bind()(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-71gs.js b/test/built-ins/Function/15.3.5.4_2-71gs.js index 3c3a1567e369ea65a2d8b58dfc1a3a7af9399f29..73977b200fed1837fbc3d8792a5aba30e3a08c4a 100644 --- a/test/built-ins/Function/15.3.5.4_2-71gs.js +++ b/test/built-ins/Function/15.3.5.4_2-71gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.bind(null)(); + f.bind(null)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-72gs.js b/test/built-ins/Function/15.3.5.4_2-72gs.js index 7cd70c9daa2f38c9ae27d1979107806df1406f5a..a2db6d625d622121ddbe7664fba517207c0a2328 100644 --- a/test/built-ins/Function/15.3.5.4_2-72gs.js +++ b/test/built-ins/Function/15.3.5.4_2-72gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.bind(undefined)(); + f.bind(undefined)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-73gs.js b/test/built-ins/Function/15.3.5.4_2-73gs.js index c616c07e465953a011b8e5a13cfa7b4cd7a90285..0c463d764c7cef3a81cef4457c6560d38ed21d9f 100644 --- a/test/built-ins/Function/15.3.5.4_2-73gs.js +++ b/test/built-ins/Function/15.3.5.4_2-73gs.js @@ -10,13 +10,16 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; var o = {}; assert.throws(TypeError, function() { - f.bind(o)(); + f.bind(o)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-74gs.js b/test/built-ins/Function/15.3.5.4_2-74gs.js index e1c730c23d8be48ac9645ae74f28b37296473f45..4918478c27839233ebe83a9fb47f5b256fc3e692 100644 --- a/test/built-ins/Function/15.3.5.4_2-74gs.js +++ b/test/built-ins/Function/15.3.5.4_2-74gs.js @@ -11,12 +11,16 @@ flags: [noStrict] ---*/ var global = this; -function f() { "use strict"; gNonStrict();}; + +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.bind(global)(); + f.bind(global)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-75gs.js b/test/built-ins/Function/15.3.5.4_2-75gs.js index b39e30f70e6aac4248541268b2741cabc8ff0bd0..8f02e17e706f345d6c8240d160f9f920a24f843e 100644 --- a/test/built-ins/Function/15.3.5.4_2-75gs.js +++ b/test/built-ins/Function/15.3.5.4_2-75gs.js @@ -11,11 +11,17 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -function foo() { "use strict"; f();} -foo(); +function f() { + return gNonStrict(); +}; + +function foo() { + "use strict"; + f(); +} +foo(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-76gs.js b/test/built-ins/Function/15.3.5.4_2-76gs.js index 9da118714e8fb5c875392d7a7cd22418d2f4762b..51bb190b254bd27401424feb95d674d654f7bde2 100644 --- a/test/built-ins/Function/15.3.5.4_2-76gs.js +++ b/test/built-ins/Function/15.3.5.4_2-76gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; return eval("f();"); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + return eval("f();"); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-77gs.js b/test/built-ins/Function/15.3.5.4_2-77gs.js index 572e3820537101dbf760e89dd4ba6177506477a7..fa9345310e45c81e9ff70d8d31e94479bcfad60a 100644 --- a/test/built-ins/Function/15.3.5.4_2-77gs.js +++ b/test/built-ins/Function/15.3.5.4_2-77gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() {return gNonStrict();}; -(function () {"use strict"; Function("return f();")(); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + Function("return f();")(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-78gs.js b/test/built-ins/Function/15.3.5.4_2-78gs.js index 80aa51604e74f8190639d8ef7a10fc2c8002927a..7ee58dd31497975f55fa9bca3e05197efbdbac26 100644 --- a/test/built-ins/Function/15.3.5.4_2-78gs.js +++ b/test/built-ins/Function/15.3.5.4_2-78gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; return new Function("return f();")(); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + return new Function("return f();")(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-79gs.js b/test/built-ins/Function/15.3.5.4_2-79gs.js index e0814d0d231dbe5df0dae31b38211194a3b6935c..6754f8fd0a459e20dff04f029aefdf36cddc30a6 100644 --- a/test/built-ins/Function/15.3.5.4_2-79gs.js +++ b/test/built-ins/Function/15.3.5.4_2-79gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.apply();})(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.apply(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-7gs.js b/test/built-ins/Function/15.3.5.4_2-7gs.js index f66abe159fbedcb99604bdc1521cc1662a35e1eb..9630356d3a1a63fe742a4cfd1e02a29968fe9fc7 100644 --- a/test/built-ins/Function/15.3.5.4_2-7gs.js +++ b/test/built-ins/Function/15.3.5.4_2-7gs.js @@ -12,9 +12,9 @@ flags: [onlyStrict] var f = Function("return gNonStrict();"); assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-80gs.js b/test/built-ins/Function/15.3.5.4_2-80gs.js index aa03f3ec213b95e7d831c6ee0fb16834832c298d..17efe2a02fb11315dae0430d3bdfdb8f0937928d 100644 --- a/test/built-ins/Function/15.3.5.4_2-80gs.js +++ b/test/built-ins/Function/15.3.5.4_2-80gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.apply(null); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.apply(null); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-81gs.js b/test/built-ins/Function/15.3.5.4_2-81gs.js index e3f028da4c3bcaaedfcee93a13ffe840afa71048..d4a12ba2f7f46a06d9b71effb8c079aefd6437f8 100644 --- a/test/built-ins/Function/15.3.5.4_2-81gs.js +++ b/test/built-ins/Function/15.3.5.4_2-81gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.apply(undefined); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.apply(undefined); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-82gs.js b/test/built-ins/Function/15.3.5.4_2-82gs.js index 7a78c1726c49ee4eed454d6f3b965f9c1fcd8274..101a01f5086f938857dda229a537e38b4aed25e7 100644 --- a/test/built-ins/Function/15.3.5.4_2-82gs.js +++ b/test/built-ins/Function/15.3.5.4_2-82gs.js @@ -11,11 +11,16 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; +function f() { + return gNonStrict(); +}; var o = {}; -(function () {"use strict"; f.apply(o); })(); +(function() { + "use strict"; + f.apply(o); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-83gs.js b/test/built-ins/Function/15.3.5.4_2-83gs.js index 940e7d7e42cad51cde24bb6321804c720d255e93..a7ba40be04be1958bece745b37afddef70ef9bfa 100644 --- a/test/built-ins/Function/15.3.5.4_2-83gs.js +++ b/test/built-ins/Function/15.3.5.4_2-83gs.js @@ -12,10 +12,16 @@ features: [caller] ---*/ var global = this; -function f() { return gNonStrict();}; -(function () {"use strict"; f.apply(global); })(); + +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.apply(global); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-84gs.js b/test/built-ins/Function/15.3.5.4_2-84gs.js index ecc1e152dc519706ad9ac75e04df21aafc438646..0246f8b6a4684790553508e5730a4dd3df98e647 100644 --- a/test/built-ins/Function/15.3.5.4_2-84gs.js +++ b/test/built-ins/Function/15.3.5.4_2-84gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.call();})(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.call(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-85gs.js b/test/built-ins/Function/15.3.5.4_2-85gs.js index ff899ce7c74a0fc99aae134f733670a7d719eb8a..8dcb404c600c9aac75877bfcec85cfb05305c84d 100644 --- a/test/built-ins/Function/15.3.5.4_2-85gs.js +++ b/test/built-ins/Function/15.3.5.4_2-85gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.call(null);})(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.call(null); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-86gs.js b/test/built-ins/Function/15.3.5.4_2-86gs.js index c617f4eb7381dbd85669c07ba30e94cf2e14f61e..f8375dd90b76e6c835cf3cc4ec07901e461f0a77 100644 --- a/test/built-ins/Function/15.3.5.4_2-86gs.js +++ b/test/built-ins/Function/15.3.5.4_2-86gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.call(undefined); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.call(undefined); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-87gs.js b/test/built-ins/Function/15.3.5.4_2-87gs.js index c2ba6514203dd7b2b33d50f7d29ab252d81e4d7d..37e027c766b96af9ff1fb87f7a422189f0a068d0 100644 --- a/test/built-ins/Function/15.3.5.4_2-87gs.js +++ b/test/built-ins/Function/15.3.5.4_2-87gs.js @@ -11,11 +11,16 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; +function f() { + return gNonStrict(); +}; var o = {}; -(function () {"use strict"; f.call(o); })(); +(function() { + "use strict"; + f.call(o); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-88gs.js b/test/built-ins/Function/15.3.5.4_2-88gs.js index 7d1b0825c6111958702684d9a7933491607be012..58ee449f0107420a0e9252f1a5d5e9b41161066b 100644 --- a/test/built-ins/Function/15.3.5.4_2-88gs.js +++ b/test/built-ins/Function/15.3.5.4_2-88gs.js @@ -12,10 +12,16 @@ features: [caller] ---*/ var global = this; -function f() { return gNonStrict();}; -(function () {"use strict"; f.call(global); })(); + +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.call(global); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-89gs.js b/test/built-ins/Function/15.3.5.4_2-89gs.js index ec574b3a7df626ffa874b93a3618eb2e56b5cc90..ed310abedea69094c028468a8c3cbcf118823af2 100644 --- a/test/built-ins/Function/15.3.5.4_2-89gs.js +++ b/test/built-ins/Function/15.3.5.4_2-89gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.bind()();})(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.bind()(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-8gs.js b/test/built-ins/Function/15.3.5.4_2-8gs.js index dd20678dd89eb2d0842de8e2e2b6eedfcc6bfe60..437514a5a93033a7cb7b34d2b9a32294c73c0c60 100644 --- a/test/built-ins/Function/15.3.5.4_2-8gs.js +++ b/test/built-ins/Function/15.3.5.4_2-8gs.js @@ -13,9 +13,9 @@ flags: [noStrict] var f = Function("\"use strict\";\ngNonStrict();"); assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-90gs.js b/test/built-ins/Function/15.3.5.4_2-90gs.js index bbab075d19a1c5112b9fd4400925058866c67db2..8ad71894605c809bf3aebc67b4402272434e5550 100644 --- a/test/built-ins/Function/15.3.5.4_2-90gs.js +++ b/test/built-ins/Function/15.3.5.4_2-90gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.bind(null)(); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.bind(null)(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-91gs.js b/test/built-ins/Function/15.3.5.4_2-91gs.js index 1049047f04d772d22402c505a66969923245cf7c..ccab0095c8a31555c1fb032e91d10f1cd9745630 100644 --- a/test/built-ins/Function/15.3.5.4_2-91gs.js +++ b/test/built-ins/Function/15.3.5.4_2-91gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.bind(undefined)(); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.bind(undefined)(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-92gs.js b/test/built-ins/Function/15.3.5.4_2-92gs.js index 8ff2abc398572ab2a5962157ef308ce5cda8f71c..9a2f49972c76124f291a35b7cb2a2e7e52db3466 100644 --- a/test/built-ins/Function/15.3.5.4_2-92gs.js +++ b/test/built-ins/Function/15.3.5.4_2-92gs.js @@ -11,11 +11,16 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; +function f() { + return gNonStrict(); +}; var o = {}; -(function () {"use strict"; f.bind(o)(); })(); +(function() { + "use strict"; + f.bind(o)(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-93gs.js b/test/built-ins/Function/15.3.5.4_2-93gs.js index bad743269df167e4b41db5e5c7fdc9f829aed0aa..8fe3b1120c4aa0bf763dd921d221ecc0571de0f2 100644 --- a/test/built-ins/Function/15.3.5.4_2-93gs.js +++ b/test/built-ins/Function/15.3.5.4_2-93gs.js @@ -12,10 +12,16 @@ features: [caller] ---*/ var global = this; -function f() { return gNonStrict();}; -(function () {"use strict"; f.bind(global)(); })(); + +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.bind(global)(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-94gs.js b/test/built-ins/Function/15.3.5.4_2-94gs.js index fefc31e18294a4d12bfd6917285f6ee2bc43f25a..81bcd689acc3102440805f993dc7fd70f938ea97 100644 --- a/test/built-ins/Function/15.3.5.4_2-94gs.js +++ b/test/built-ins/Function/15.3.5.4_2-94gs.js @@ -10,15 +10,15 @@ description: > flags: [noStrict] ---*/ -var gNonStrict = function () { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; +var gNonStrict = function() { + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); diff --git a/test/built-ins/Function/15.3.5.4_2-95gs.js b/test/built-ins/Function/15.3.5.4_2-95gs.js index 836017045db905122f9fac759a2019b7346b0c22..34f7c5b645fbc05914cc1091b8808aa8b7ee8998 100644 --- a/test/built-ins/Function/15.3.5.4_2-95gs.js +++ b/test/built-ins/Function/15.3.5.4_2-95gs.js @@ -13,10 +13,10 @@ flags: [noStrict] var gNonStrict = Function("return gNonStrict.caller || gNonStrict.caller.throwTypeError;"); function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); diff --git a/test/built-ins/Function/15.3.5.4_2-96gs.js b/test/built-ins/Function/15.3.5.4_2-96gs.js index bb601c08f7d77ea4a75d8b289c9136ac6ffede11..03dc813f584cf1e7f226a2659ccd3aa1ea320b0b 100644 --- a/test/built-ins/Function/15.3.5.4_2-96gs.js +++ b/test/built-ins/Function/15.3.5.4_2-96gs.js @@ -10,19 +10,19 @@ description: > flags: [noStrict] ---*/ -var o = { - get gNonStrict() { - var tmp = Object.getOwnPropertyDescriptor(o, "gNonStrict").get; - return tmp.caller || tmp.caller.throwTypeError; - } +var o = { + get gNonStrict() { + var tmp = Object.getOwnPropertyDescriptor(o, "gNonStrict").get; + return tmp.caller || tmp.caller.throwTypeError; + } }; function f() { - "use strict"; - return o.gNonStrict; + "use strict"; + return o.gNonStrict; } assert.throws(TypeError, function() { - f(); + f(); }); diff --git a/test/built-ins/Function/15.3.5.4_2-97gs.js b/test/built-ins/Function/15.3.5.4_2-97gs.js index 7c4d7474b8bd449e0924f34f62a0b805763f1fd8..61c9233315ba4775f8f7b064df6e43daa6541fce 100644 --- a/test/built-ins/Function/15.3.5.4_2-97gs.js +++ b/test/built-ins/Function/15.3.5.4_2-97gs.js @@ -13,14 +13,14 @@ flags: [noStrict] var gNonStrict = gNonStrictBindee.bind(null); function f() { - "use strict"; - gNonStrict(); + "use strict"; + gNonStrict(); } assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrictBindee() { - return gNonStrictBindee.caller || gNonStrictBindee.caller.throwTypeError; + return gNonStrictBindee.caller || gNonStrictBindee.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-9gs.js b/test/built-ins/Function/15.3.5.4_2-9gs.js index 08fbd5cb3447004714f29686a6562c078c18590e..07c0decbccef5e8d4cfdea97929dd5e9a1038516 100644 --- a/test/built-ins/Function/15.3.5.4_2-9gs.js +++ b/test/built-ins/Function/15.3.5.4_2-9gs.js @@ -13,9 +13,9 @@ flags: [onlyStrict] var f = new Function("return gNonStrict();"); assert.throws(TypeError, function() { - f(); + f(); }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/S10.1.1_A1_T3.js b/test/built-ins/Function/S10.1.1_A1_T3.js index 503a17fd31a8384923c1a71d61dca952fab46193..3a9d96b63be9191071b0d5066cc2df9d31820704 100644 --- a/test/built-ins/Function/S10.1.1_A1_T3.js +++ b/test/built-ins/Function/S10.1.1_A1_T3.js @@ -12,6 +12,8 @@ description: > ---*/ //CHECK#1 -var x=new function f1(){return 1;}; -if(typeof(x.constructor)!=="function") +var x = new function f1() { + return 1; +}; +if (typeof(x.constructor) !== "function") $ERROR('#1: typeof(x.constructor)!=="function"'); diff --git a/test/built-ins/Function/S15.3.1_A1_T1.js b/test/built-ins/Function/S15.3.1_A1_T1.js index 43129631d564f8bac7806c3927f768483f5aa796..8175c337df3cdfb1296081353c149b07d42ebfdb 100644 --- a/test/built-ins/Function/S15.3.1_A1_T1.js +++ b/test/built-ins/Function/S15.3.1_A1_T1.js @@ -12,7 +12,7 @@ description: Create simple functions and check returned values var f = Function("return arguments[0];"); //CHECK#1 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#1: f instanceof Function'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T1.js b/test/built-ins/Function/S15.3.2.1_A1_T1.js index 12c037b04317c762c5aa092f8bd77b60ab098e7f..52e20e1fd1016a5b7e6c5825d60fcb8ba5959939 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T1.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T1.js @@ -14,7 +14,11 @@ es5id: 15.3.2.1_A1_T1 description: "The body of the function is \"{toString:function(){throw 7;}}\"" ---*/ -var body = {toString:function(){throw 7;}} +var body = { + toString: function() { + throw 7; + } +} //CHECK#1 try { @@ -22,6 +26,6 @@ try { $ERROR('#1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); } catch (e) { if (e !== 7) { - $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); + $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T10.js b/test/built-ins/Function/S15.3.2.1_A1_T10.js index f1ed2fe5cd86aa2232a8c2695bd5bec99883ed64..764e5b2a00b410a0fad9d42fc44766787ee5fc6c 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T10.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T10.js @@ -18,7 +18,7 @@ description: Value of the function constructor argument is "null" try { var f = new Function(null); } catch (e) { - $ERROR('#1: test fails with error '+e); + $ERROR('#1: test fails with error ' + e); } //CHECK#2 diff --git a/test/built-ins/Function/S15.3.2.1_A1_T11.js b/test/built-ins/Function/S15.3.2.1_A1_T11.js index 18baa8e9a583414c2c9ad03ee4631d3a7a4a5177..74248f28320f2e2e9fb260c1800d034a94a60ced 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T11.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T11.js @@ -18,7 +18,7 @@ description: Value of the function constructor argument is "undefined" try { var f = new Function(undefined); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 diff --git a/test/built-ins/Function/S15.3.2.1_A1_T12.js b/test/built-ins/Function/S15.3.2.1_A1_T12.js index bc4646e0884ff3341105242d22a808dad666769f..81d816f38e6aa8bfd5bae36798fb3246a3b328ae 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T12.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T12.js @@ -18,7 +18,7 @@ description: Value of the function constructor argument is "void 0" try { var f = new Function(void 0); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -27,6 +27,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T13.js b/test/built-ins/Function/S15.3.2.1_A1_T13.js index fbc01fc8967dde716d58fc001129223f94ee2859..09942b2c59fa2129d95becabf54a35faf056d1a0 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T13.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T13.js @@ -17,9 +17,9 @@ description: Value of the function constructor argument is "{}" //CHECK#1 try { var f = new Function({}); - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); + $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T2.js b/test/built-ins/Function/S15.3.2.1_A1_T2.js index 0e971af3738929b17566dd17638875f2a529399e..a1424960b651d966de2be53115a76b2733260797 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T2.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T2.js @@ -16,13 +16,17 @@ description: > 1;";}}" ---*/ -var body={toString:function(){return "return 1;";}}; +var body = { + toString: function() { + return "return 1;"; + } +}; //CHECK#1 try { - var f = new Function(body); + var f = new Function(body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -31,6 +35,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==1) { +if (f() !== 1) { $ERROR('#3: hen the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T3.js b/test/built-ins/Function/S15.3.2.1_A1_T3.js index aec811fe1cc058cff2bd4948776fe49a791d2c93..25e9f5493f28d803cb59b3b11fde3bc00bbefd41 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T3.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T3.js @@ -18,7 +18,7 @@ description: Value of the function constructor argument is 1 try { var f = new Function(1); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -27,6 +27,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T4.js b/test/built-ins/Function/S15.3.2.1_A1_T4.js index 2d862279dd20ea88a1ffa1d5197086b1ec8d4abb..2b9be51a58beceaa95d505513f7c5512b3cead0b 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T4.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T4.js @@ -20,7 +20,7 @@ description: > try { var f = new Function(x); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -29,7 +29,7 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T5.js b/test/built-ins/Function/S15.3.2.1_A1_T5.js index 9cde6597ffc1eaf5392c4da034090fc50dea8846..c7c3df4c09fd0e983c7760eab490cbcec3519b57 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T5.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T5.js @@ -22,7 +22,7 @@ var body = Object("return \'A\'"); try { var f = new Function(body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -31,6 +31,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!=="\u0041") { +if (f() !== "\u0041") { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T6.js b/test/built-ins/Function/S15.3.2.1_A1_T6.js index 9ed5398b4230ab419a1431495423074c87545053..548718444b6e494598a652be49d70cb8408333b9 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T6.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T6.js @@ -20,7 +20,7 @@ description: > try { var f = new Function("return true;"); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 diff --git a/test/built-ins/Function/S15.3.2.1_A1_T7.js b/test/built-ins/Function/S15.3.2.1_A1_T7.js index 23bde27777131cedc43f82302ca6dc805294c327..bb68c4257da40fabca7899f0e8595a5e735d9443 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T7.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T7.js @@ -20,7 +20,7 @@ var body = new Object(1); try { var f = new Function(body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -29,6 +29,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T8.js b/test/built-ins/Function/S15.3.2.1_A1_T8.js index 0b1c5d4db462fcb31d6360e6089d659e5db3a987..e17847cbdee037960ac395294bf7fe0f41f5707a 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T8.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T8.js @@ -22,6 +22,6 @@ try { $ERROR('#1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); + $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T1.js b/test/built-ins/Function/S15.3.2.1_A2_T1.js index 8316ce12acdde6c83d13893c5e4d43dc4139b002..e007a4af010cb929e94fa6f0665b762b308baf3b 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T1.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T1.js @@ -19,11 +19,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f(1,2,3) !== 6) { +if (f(1, 2, 3) !== 6) { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T2.js b/test/built-ins/Function/S15.3.2.1_A2_T2.js index e02bc648f23d0cfd36f07e53794c94ebc3da8d24..241712a5b716960db73e17659edef3237307297b 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T2.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T2.js @@ -19,11 +19,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f("AB","BA",1) !== "ABBA1") { +if (f("AB", "BA", 1) !== "ABBA1") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T3.js b/test/built-ins/Function/S15.3.2.1_A2_T3.js index afa0b05de2e86808aa16c13958c0f36fe0e30204..dee237ec5aa2682c480962a4a56ad186c3dffddf 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T3.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T3.js @@ -19,11 +19,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f(1,1,"ABBA") !== "2ABBA") { +if (f(1, 1, "ABBA") !== "2ABBA") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T4.js b/test/built-ins/Function/S15.3.2.1_A2_T4.js index 973be30e40a6e59cde1828c58cbfca0b6351974d..d2e54ebb22ce9044d972df677e9ea60a3ffdb862 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T4.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T4.js @@ -11,9 +11,13 @@ description: > various results ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "arg"+(++i);}}; +var p = { + toString: function() { + return "arg" + (++i); + } +}; //CHECK#1 try { @@ -23,11 +27,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f(4,"2","QUESTION") !== "42QUESTION") { +if (f(4, "2", "QUESTION") !== "42QUESTION") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T5.js b/test/built-ins/Function/S15.3.2.1_A2_T5.js index 70ca03e738578c5242f91d66b6510ecc250c492c..bc9b1f0b46abe093fcd8a48610555ebaed56c0c1 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T5.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T5.js @@ -11,23 +11,27 @@ description: > various results and a concotenation of strings ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "arg"+(++i)}}; +var p = { + toString: function() { + return "arg" + (++i) + } +}; //CHECK#1 try { - var f = Function(p+","+p,p, "return arg1+arg2+arg3;"); + var f = Function(p + "," + p, p, "return arg1+arg2+arg3;"); } catch (e) { $ERROR('#1: test failed'); } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f("",1,2) !== "12") { +if (f("", 1, 2) !== "12") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T6.js b/test/built-ins/Function/S15.3.2.1_A2_T6.js index 15fe4beb56785280d1d03e2ca5a0f2ab8e1fa033..0d658808de2f33a083c767aaa9bb84926e150e50 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T6.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T6.js @@ -11,23 +11,27 @@ description: > various results and a concotenation of strings ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "arg"+(++i)}}; +var p = { + toString: function() { + return "arg" + (++i) + } +}; //CHECK#1 try { - var f = Function(p+","+p+","+p, "return arg1+arg2+arg3;"); + var f = Function(p + "," + p + "," + p, "return arg1+arg2+arg3;"); } catch (e) { $ERROR('#1: test failed'); } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f("",1,p) !== "1arg4") { +if (f("", 1, p) !== "1arg4") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T1.js b/test/built-ins/Function/S15.3.2.1_A3_T1.js index 3a1013ecd49d95217b28b77245bc4d96bd966dba..b5c796b350a9b51a8c068531fe8a4e9153d0a0e2 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T1.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T1.js @@ -19,15 +19,23 @@ description: > 'body';}}" ---*/ -var p = {toString:function(){throw 1;}}; -var body = {toString:function(){throw "body";}}; +var p = { + toString: function() { + throw 1; + } +}; +var body = { + toString: function() { + throw "body"; + } +}; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); $ERROR('#1: test failed'); } catch (e) { if (e !== 1) { - $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); + $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T10.js b/test/built-ins/Function/S15.3.2.1_A3_T10.js index 1945adbbe34336af8c2da00aa68644408a4f29c7..684c1e7da364ff0a7d33e552cfd32773f7a8a11b 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T10.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T10.js @@ -19,14 +19,18 @@ description: > ---*/ var body = "return this;"; -var p={toString:function(){return "z;x"}}; +var p = { + toString: function() { + return "z;x" + } +}; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); $ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); + $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T11.js b/test/built-ins/Function/S15.3.2.1_A3_T11.js index f547d6973868e95a1d08a3badcf950ad1677d873..1091a94b38ec25c9a124b1883e4dc3793e500527 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T11.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T11.js @@ -24,7 +24,7 @@ var p = "a,b,c"; try { var f = new Function(p, void 0); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -33,6 +33,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T12.js b/test/built-ins/Function/S15.3.2.1_A3_T12.js index a3698bbfd1296354af67dc6a367040d5c82ff7cd..a87f0ba3e99c9cd4490ca37d1d84a07f77b88b5d 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T12.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T12.js @@ -24,7 +24,7 @@ var p = "a,b,c"; try { var f = new Function(p, undefined); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -33,6 +33,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T13.js b/test/built-ins/Function/S15.3.2.1_A3_T13.js index f74d02cf6db22ed0d52673530669a20b43e550a0..e2d5c251a59e45ff056894b92ad00cab805a1b31 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T13.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T13.js @@ -22,7 +22,7 @@ var p = "a,b,c"; try { var f = new Function(p, null); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -31,6 +31,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T14.js b/test/built-ins/Function/S15.3.2.1_A3_T14.js index 0d7a871927b348c941b279feabf9ce62e5707577..38af3ccdfe7f440cd5c4bff6d68103deb80ce164 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T14.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T14.js @@ -24,7 +24,7 @@ var p = "a,b,c"; try { var f = new Function(p, body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -33,7 +33,7 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T15.js b/test/built-ins/Function/S15.3.2.1_A3_T15.js index e3f6eb2bd00d62308f864e0eae9e485571ea4366..43796ef884c9143d3d2769509140f89018c2e8cd 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T15.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T15.js @@ -22,7 +22,7 @@ description: > try { var f = new Function("", ""); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -31,6 +31,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T2.js b/test/built-ins/Function/S15.3.2.1_A3_T2.js index 1649e9fad5e2d3423c3820647e354895d7b8d8d4..069ddeabf446d8cde200383f835ff02800afc9df 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T2.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T2.js @@ -18,14 +18,18 @@ description: > "{toString:function(){return 'a';}}" and "return a;" ---*/ -var p = {toString:function(){return "a";}}; +var p = { + toString: function() { + return "a"; + } +}; var body = "return a;"; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -34,6 +38,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f(42)!==42) { +if (f(42) !== 42) { $ERROR('#3: When the Function constructor is called with arguments p, body creates a new Function object as specified in 13.2'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T3.js b/test/built-ins/Function/S15.3.2.1_A3_T3.js index 4ba1f0f4881d6f80cd544306f83dc5f3a056d5df..29454c2f91c823719805eac5053bd25de610d029 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T3.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T3.js @@ -19,16 +19,25 @@ description: > "{toString:function(){throw "body";}}" ---*/ -var p = {toString:function(){p=1;return "a";}}; -var body = {toString:function(){throw "body";}}; +var p = { + toString: function() { + p = 1; + return "a"; + } +}; +var body = { + toString: function() { + throw "body"; + } +}; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); $ERROR('#1: test failed'); } catch (e) { if (e !== "body") { - $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); + $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T4.js b/test/built-ins/Function/S15.3.2.1_A3_T4.js index e817ba1b35aab1e7be1dfe9276ff98701c2e2809..7a0ec0d00c83d3818fe632b80ab3725b664a5b66 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T4.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T4.js @@ -22,9 +22,9 @@ var body = "return 1.1;"; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -33,7 +33,7 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==1.1) { +if (f() !== 1.1) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T5.js b/test/built-ins/Function/S15.3.2.1_A3_T5.js index 67887edd373fcdf87663c5b86cf63d346a5f86a2..47a69636bacb0600098907ab86bcddd0e144262f 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T5.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T5.js @@ -22,9 +22,9 @@ var body = "return \"A\";"; //CHECK#1 try { - var f = new Function(void 0,body); + var f = new Function(void 0, body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -33,6 +33,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!=='\u0041') { +if (f() !== '\u0041') { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T6.js b/test/built-ins/Function/S15.3.2.1_A3_T6.js index 129c462f2591028b3af564ebaea1701f728183f3..f39efaffc85471cd8582f9c17d62ed1ac4ab6d4b 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T6.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T6.js @@ -22,10 +22,10 @@ var body = "return true;"; //CHECK#1 try { - var f = new Function(null,body); + var f = new Function(null, body); $ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); + $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T7.js b/test/built-ins/Function/S15.3.2.1_A3_T7.js index fa680f6b5f8d593a2de9d5aaade81f26c44c2e56..de41763f2e6ca95f438d6788102703d80c195061 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T7.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T7.js @@ -20,13 +20,13 @@ description: > var body = "return a;"; -var p=Object("a"); +var p = Object("a"); //CHECK#1 try { var f = new Function(p, body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -35,6 +35,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f(1)!==1) { +if (f(1) !== 1) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T8.js b/test/built-ins/Function/S15.3.2.1_A3_T8.js index 2e3c361105112cee87c2de5708cd0d56343b701c..33d353c9223c2c3e19ed2fe44dba8c4229ddd2c9 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T8.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T8.js @@ -22,9 +22,9 @@ var body = "return this;"; //CHECK#1 try { - var f = new Function(undefined,body); + var f = new Function(undefined, body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -33,6 +33,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==this) { +if (f() !== this) { $ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T9.js b/test/built-ins/Function/S15.3.2.1_A3_T9.js index 4d5d1a042fa165a541785947b0f0855ae54c8b5f..d4134cb3752525baddae39f47226b3a0f1635b0e 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T9.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T9.js @@ -19,14 +19,14 @@ description: > ---*/ var body = "return this;"; -var p="1,1"; +var p = "1,1"; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); $ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); + $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.3_A1.js b/test/built-ins/Function/S15.3.3_A1.js index 05200e21250ec9312478163f3eb7a892e8b2b38f..a498f013116cfc73f5e60a13bf82b32fe6620158 100644 --- a/test/built-ins/Function/S15.3.3_A1.js +++ b/test/built-ins/Function/S15.3.3_A1.js @@ -7,6 +7,6 @@ es5id: 15.3.3_A1 description: Checking existence of the property "prototype" ---*/ -if(!Function.hasOwnProperty("prototype")){ +if (!Function.hasOwnProperty("prototype")) { $ERROR('#1: The Function constructor has the property "prototype"'); } diff --git a/test/built-ins/Function/S15.3.3_A3.js b/test/built-ins/Function/S15.3.3_A3.js index a22a560d0f978e31f9e49563afbd1aac44129ba8..b4fb57879227d3a7e092ddaf0c7e9b3bcdbcad69 100644 --- a/test/built-ins/Function/S15.3.3_A3.js +++ b/test/built-ins/Function/S15.3.3_A3.js @@ -8,7 +8,7 @@ description: Checking Function.length property ---*/ //CHECK#1 -if (!Function.hasOwnProperty("length")){ +if (!Function.hasOwnProperty("length")) { $ERROR('#1: Function constructor has length property'); } diff --git a/test/built-ins/Function/S15.3.5_A2_T2.js b/test/built-ins/Function/S15.3.5_A2_T2.js index 16f1e7ae3976ddea21aca626a5ef9deabfa685b9..00b25df86f95209395b34bdb67ef3b9af094410f 100644 --- a/test/built-ins/Function/S15.3.5_A2_T2.js +++ b/test/built-ins/Function/S15.3.5_A2_T2.js @@ -10,7 +10,7 @@ description: > ---*/ //CHECK#1 -if ((new Function("arg1,arg2","var x =arg1; this.y=arg2;return arg1+arg2;"))("1",2) !== "12") { +if ((new Function("arg1,arg2", "var x =arg1; this.y=arg2;return arg1+arg2;"))("1", 2) !== "12") { $ERROR('#1: Every function instance has a [[Call]] property'); } diff --git a/test/built-ins/Function/S15.3.5_A3_T2.js b/test/built-ins/Function/S15.3.5_A3_T2.js index 861e754d4921a14f3b1f132b7e02e9bafa19d4cd..5a233d07fa61c0e0732e68c4a4bf40624d76b84d 100644 --- a/test/built-ins/Function/S15.3.5_A3_T2.js +++ b/test/built-ins/Function/S15.3.5_A3_T2.js @@ -9,8 +9,8 @@ description: > this.y=arg1+arg2;return \"OK\";") ---*/ -var FACTORY = new Function("arg1,arg2","var x =1; this.y=arg1+arg2;return \"OK\";"); -var obj = new FACTORY("1",2); +var FACTORY = new Function("arg1,arg2", "var x =1; this.y=arg1+arg2;return \"OK\";"); +var obj = new FACTORY("1", 2); //CHECK#1 if (typeof obj !== "object") { diff --git a/test/built-ins/Function/S15.3_A2_T1.js b/test/built-ins/Function/S15.3_A2_T1.js index f7cc03dd0a3968f169b1f61a0db470390f50f6cb..92448aaf08fa0dd4e020173b1987bdc91c229316 100644 --- a/test/built-ins/Function/S15.3_A2_T1.js +++ b/test/built-ins/Function/S15.3_A2_T1.js @@ -11,10 +11,10 @@ description: Checking if executing "Function.call(this, "var x / = 1;")" fails ---*/ //CHECK# -try{ +try { Function.call(this, "var x / = 1;"); -} catch(e){ +} catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1: function body must be valid'); + $ERROR('#1: function body must be valid'); } } diff --git a/test/built-ins/Function/S15.3_A2_T2.js b/test/built-ins/Function/S15.3_A2_T2.js index 6fbc17a5c725e65a7a5e2569ea1b60927d77bc37..1c3de3f64d0072c4351ca7ca1c291e0a50ddbc62 100644 --- a/test/built-ins/Function/S15.3_A2_T2.js +++ b/test/built-ins/Function/S15.3_A2_T2.js @@ -11,10 +11,10 @@ description: Checking if executing "Function.call(this, "var #x = 1;")" fails ---*/ //CHECK# -try{ +try { Function.call(this, "var #x = 1;"); -} catch(e){ +} catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1: function body must be valid'); + $ERROR('#1: function body must be valid'); } } diff --git a/test/built-ins/Function/S15.3_A3_T1.js b/test/built-ins/Function/S15.3_A3_T1.js index 97d3d2ec9ffec556f0be9541fed660be6d1e5b25..8574cfb87447e007c1d25299b5d19c768a20f8bd 100644 --- a/test/built-ins/Function/S15.3_A3_T1.js +++ b/test/built-ins/Function/S15.3_A3_T1.js @@ -11,7 +11,11 @@ description: First argument is object //CHECK#1 - does not throw var f = Function.call(mars, "return name;"); -var mars={name:"mars", color:"red", number:4}; +var mars = { + name: "mars", + color: "red", + number: 4 +}; var f = Function.call(mars, "this.godname=\"ares\"; return this.color;"); @@ -23,6 +27,6 @@ if (about_mars !== undefined) { } //CHECK#3 -if (this.godname !== "ares" && mars.godname===undefined) { +if (this.godname !== "ares" && mars.godname === undefined) { $ERROR('#3: When applied to the Function object itself, thisArg should be ignored'); } diff --git a/test/built-ins/Function/S15.3_A3_T2.js b/test/built-ins/Function/S15.3_A3_T2.js index 72f827feae0f3bff2147d6d2fadd6e17eeb740aa..aa0fe3961da35ea394b16f32d87aef1d1f2f0c0c 100644 --- a/test/built-ins/Function/S15.3_A3_T2.js +++ b/test/built-ins/Function/S15.3_A3_T2.js @@ -9,8 +9,8 @@ es5id: 15.3_A3_T2 description: First argument is string and null ---*/ -this.color="red"; -var planet="mars"; +this.color = "red"; +var planet = "mars"; var f = Function.call("blablastring", "return this.color;"); diff --git a/test/built-ins/Function/S15.3_A3_T3.js b/test/built-ins/Function/S15.3_A3_T3.js index 7c2b0d6d75bccc53164f85aff565cb88d021851b..7ac27927d23781d103e3b5115d06af2a821aa12c 100644 --- a/test/built-ins/Function/S15.3_A3_T3.js +++ b/test/built-ins/Function/S15.3_A3_T3.js @@ -9,15 +9,15 @@ es5id: 15.3_A3_T3 description: First argument is this, and this don`t have needed variable ---*/ -var f=Function.call(this, "return planet;"); -var g=Function.call(this, "return color;"); +var f = Function.call(this, "return planet;"); +var g = Function.call(this, "return color;"); //CHECK#1 -if (f()!==undefined) { +if (f() !== undefined) { $ERROR('#1: '); } -var planet="mars"; +var planet = "mars"; //CHECK#2 if (f() !== "mars") { @@ -25,15 +25,15 @@ if (f() !== "mars") { } //CHECK#3 -try{ +try { g(); $ERROR('#3: '); -} catch(e){ +} catch (e) { if (!(e instanceof ReferenceError)) - $ERROR('#3.1: '); -} + $ERROR('#3.1: '); +} -this.color="red"; +this.color = "red"; //CHECK#4 if (g() !== "red") { diff --git a/test/built-ins/Function/S15.3_A3_T4.js b/test/built-ins/Function/S15.3_A3_T4.js index 69c045d2d5efaeed11a5d4b78d4dd2219fe38061..769f6bbb461564c4bdf4b63f1277d36585b45222 100644 --- a/test/built-ins/Function/S15.3_A3_T4.js +++ b/test/built-ins/Function/S15.3_A3_T4.js @@ -9,14 +9,14 @@ es5id: 15.3_A3_T4 description: First argument is this, and this have needed variable ---*/ -var f=Function.call(this, "return planet;"); +var f = Function.call(this, "return planet;"); //CHECK#1 if (f() !== undefined) { $ERROR('#1: '); -} +} -var planet="mars"; +var planet = "mars"; //CHECK#2 if (f() !== "mars") { diff --git a/test/built-ins/Function/S15.3_A3_T5.js b/test/built-ins/Function/S15.3_A3_T5.js index 3129b520ca12737b29f9abb8856f1b4399b70912..753410f5c4f2ff9a03dde621de265d50f94bba0b 100644 --- a/test/built-ins/Function/S15.3_A3_T5.js +++ b/test/built-ins/Function/S15.3_A3_T5.js @@ -11,15 +11,15 @@ description: > Function return this.var_name ---*/ -var f=Function.call(this, "return this.planet;"); -var g=Function.call(this, "return this.color;"); +var f = Function.call(this, "return this.planet;"); +var g = Function.call(this, "return this.color;"); //CHECK#1 if (f() !== undefined) { $ERROR('#2: '); } -var planet="mars"; +var planet = "mars"; //CHECK#2 if (f() !== "mars") { @@ -29,9 +29,9 @@ if (f() !== "mars") { //CHECK#3 if (g() !== undefined) { $ERROR('#3: '); -} +} -this.color="red"; +this.color = "red"; //CHECK#4 if (g() !== "red") { diff --git a/test/built-ins/Function/S15.3_A3_T6.js b/test/built-ins/Function/S15.3_A3_T6.js index 44af50aaa22271a11a256f6242f383be049fe777..fa88d7e5a3bd1be84102dc19ceec88aea9b78ac5 100644 --- a/test/built-ins/Function/S15.3_A3_T6.js +++ b/test/built-ins/Function/S15.3_A3_T6.js @@ -11,14 +11,14 @@ description: > return this.var_name ---*/ -var f=Function.call(this, "return this.planet;"); +var f = Function.call(this, "return this.planet;"); //CHECK#1 if (f() !== undefined) { $ERROR('#1: '); -} +} -var planet="mars"; +var planet = "mars"; //CHECK#2 if (f() !== "mars") { diff --git a/test/built-ins/Function/length/15.3.3.2-1.js b/test/built-ins/Function/length/15.3.3.2-1.js index 84c73661f6f833baa24afb2e3908bc64361c0645..5371dbf61b192fc20c997b6a0c5d4447a9e6d987 100644 --- a/test/built-ins/Function/length/15.3.3.2-1.js +++ b/test/built-ins/Function/length/15.3.3.2-1.js @@ -6,7 +6,7 @@ es5id: 15.3.3.2-1 description: Function.length - data property with value 1 ---*/ - var desc = Object.getOwnPropertyDescriptor(Function,"length"); +var desc = Object.getOwnPropertyDescriptor(Function, "length"); assert.sameValue(desc.value, 1, 'desc.value'); assert.sameValue(desc.writable, false, 'desc.writable'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js index 2a8ee4e26a5c0afbbc90dec8e4f82e8cfc8d643d..0ee96c12443bf730fa92c35d76d2ba79ad350def 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js @@ -11,7 +11,7 @@ description: > null) ---*/ -var f = Function("arg1,arg2,arg3","arg4,arg5", null); +var f = Function("arg1,arg2,arg3", "arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js index 09f5776a632681b03d7fae70176dc234219be4bd..ff5452aaaa610a2c600e2e7636a1fa565fa1430a 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js @@ -11,7 +11,7 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) ---*/ -var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); +var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js index ccc4b10436d53309b0321d9acb14e856c955fb9f..2e773dda3067a00445496cfede2f318b7a775c26 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js @@ -17,7 +17,7 @@ if (!(f.hasOwnProperty('length'))) { } //CHECK#2 -if(!delete f.length){ +if (!delete f.length) { $ERROR('#2: the function.length property does not have the attributes DontDelete.'); } diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js index 7684cd9183ee1fc9657d73de5817e40a5556b336..dc6f91375c416497b9f99b814f966551600c5fec 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js @@ -9,7 +9,7 @@ description: > Function("arg1,arg2,arg3","arg4,arg5", null) succeeds ---*/ -var f = Function("arg1,arg2,arg3","arg4,arg5", null); +var f = Function("arg1,arg2,arg3", "arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js index f6503507116dfd84346cd1e11c73b6a2c3b1c676..882152b04b0a226fb29f6077833cb76e0643535f 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js @@ -9,7 +9,7 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) succeeds ---*/ -var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); +var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js index c10714b3f41e2486419da1c3732990adf9261404..02d981a4551b6b038b5baafcd5662646d9045314 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = new Function("arg1,arg2,arg3","arg4,arg5", null); +var f = new Function("arg1,arg2,arg3", "arg4,arg5", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function(){}); +verifyNotWritable(f, "length", null, function() {}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js index 2482faecd131bca421f6f690d9a2fc41f1bb59e2..e6cb737b351c3bbee604b3da76a476b2d1e3ea23 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = Function("arg1,arg2,arg3", null); +var f = Function("arg1,arg2,arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function(){}); +verifyNotWritable(f, "length", null, function() {}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js index ed321e683d2cfb50a8ac5da455458af7f3f6e53a..818d82d638ae2d93b352493e3049c3785e8195df 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js @@ -10,7 +10,7 @@ description: > includes: [propertyHelper.js] ---*/ -var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); +var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { @@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) { var flength = f.length; -verifyNotWritable(f, "length", null, function(){}); +verifyNotWritable(f, "length", null, function() {}); //CHECK#2 if (f.length !== flength) { diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js index 14f9cc41041412dc8b02996028a8e06b3d24f617..894c65e92652990e6679e038073c306005816f06 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js @@ -16,10 +16,10 @@ if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for(var key in f) - if(key=="length") - var lengthenumed=true; - +for (var key in f) + if (key == "length") + var lengthenumed = true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js index c67c5f6a59e8de7524da766d3d09a59a2e58c0b7..8e1d150c6854139e4c1c8dc781d1520cbe6923d5 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js @@ -9,17 +9,17 @@ description: > Function("arg1,arg2,arg3","arg4,arg5", null) fails ---*/ -var f = Function("arg1,arg2,arg3","arg5,arg4", null); +var f = Function("arg1,arg2,arg3", "arg5,arg4", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for(var key in f) - if(key=="length") - var lengthenumed=true; - +for (var key in f) + if (key == "length") + var lengthenumed = true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js index cdf721374c3bf9cc75db29370757691f4a79c5ef..44e16e8f89ec6bef8cb37211e970aeea4bd4da79 100644 --- a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js +++ b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js @@ -9,17 +9,17 @@ description: > Function("arg1,arg2,arg3","arg1,arg2","arg3", null) fails ---*/ -var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null); +var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null); //CHECK#1 if (!(f.hasOwnProperty('length'))) { $ERROR('#1: the function has length property.'); } -for(var key in f) - if(key=="length") - var lengthenumed=true; - +for (var key in f) + if (key == "length") + var lengthenumed = true; + //CHECK#2 if (lengthenumed) { $ERROR('#2: the length property has the attributes { DontEnum }'); diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A1.js b/test/built-ins/Function/prototype/S15.3.3.1_A1.js index af9795ab90096c7b1afebcb4c117861a31510c4b..f06c15489a8435b35be7a838aa48b88419c85147 100644 --- a/test/built-ins/Function/prototype/S15.3.3.1_A1.js +++ b/test/built-ins/Function/prototype/S15.3.3.1_A1.js @@ -10,7 +10,9 @@ includes: [propertyHelper.js] var obj = Function.prototype; -verifyNotWritable(Function, "prototype", null, function(){return "shifted";}); +verifyNotWritable(Function, "prototype", null, function() { + return "shifted"; +}); //CHECK#1 if (Function.prototype !== obj) { @@ -19,9 +21,9 @@ if (Function.prototype !== obj) { //CHECK#2 try { - if(Function.prototype()!==undefined){ - $ERROR('#2: the Function.prototype property has the attributes ReadOnly'); + if (Function.prototype() !== undefined) { + $ERROR('#2: the Function.prototype property has the attributes ReadOnly'); } } catch (e) { - $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: '+e); + $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: ' + e); } diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A2.js b/test/built-ins/Function/prototype/S15.3.3.1_A2.js index 280e6d3a53e660b18f58d64b235dde77f61bd033..8642fe1d6bc1c6293c07188bed6155cd8f6cecc9 100644 --- a/test/built-ins/Function/prototype/S15.3.3.1_A2.js +++ b/test/built-ins/Function/prototype/S15.3.3.1_A2.js @@ -13,10 +13,10 @@ if (Function.propertyIsEnumerable('prototype')) { } // CHECK#2 -var count=0; +var count = 0; -for (var p in Function){ - if (p==="prototype") count++; +for (var p in Function) { + if (p === "prototype") count++; } if (count !== 0) { diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A4.js b/test/built-ins/Function/prototype/S15.3.3.1_A4.js index 17f5d057bf41fedf786647a110703a4efba08b36..9feac6cb2a7727144e626a7dd7d07af83d7359ed 100644 --- a/test/built-ins/Function/prototype/S15.3.3.1_A4.js +++ b/test/built-ins/Function/prototype/S15.3.3.1_A4.js @@ -15,8 +15,10 @@ description: > function foo() {} -Object.defineProperty(foo, 'prototype', { value: {} }); +Object.defineProperty(foo, 'prototype', { + value: {} +}); if (foo.prototype !== - Object.getOwnPropertyDescriptor(foo, 'prototype').value) { + Object.getOwnPropertyDescriptor(foo, 'prototype').value) { $ERROR("A function.prototype's descriptor lies"); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A1.js b/test/built-ins/Function/prototype/S15.3.4_A1.js index b1b163bb511bacc66fdac5fd07ae706614bfaeb3..b54a90c55c9a8c13f0ff589bd13eb895ff6331d6 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A1.js +++ b/test/built-ins/Function/prototype/S15.3.4_A1.js @@ -11,5 +11,5 @@ description: Object.prototype.toString returns [object+[[Class]]+] if (Object.prototype.toString.call(Function.prototype) !== "[object Function]") { $ERROR('#2: The Function prototype object is itself a Function ' + - 'object (its [[Class]] is "Function") (15.3.4)'); + 'object (its [[Class]] is "Function") (15.3.4)'); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T1.js b/test/built-ins/Function/prototype/S15.3.4_A2_T1.js index ebfcef721c156c274c12ddd385c0a47e9ca8f5c3..cd8afff2f084e4a6d8b7cc2428c9c33da7533c0f 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A2_T1.js +++ b/test/built-ins/Function/prototype/S15.3.4_A2_T1.js @@ -15,5 +15,5 @@ try { $ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined'); } } catch (e) { - $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e); + $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T2.js b/test/built-ins/Function/prototype/S15.3.4_A2_T2.js index 48dffef53c8ffca0427e43ad7955e36a38cb0ae6..5ddc03b77be7fb0731996a400c57409c385d1f9f 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A2_T2.js +++ b/test/built-ins/Function/prototype/S15.3.4_A2_T2.js @@ -11,9 +11,9 @@ description: Call Function.prototype(null,void 0) //CHECK#1 try { - if (Function.prototype(null,void 0) !== undefined) { + if (Function.prototype(null, void 0) !== undefined) { $ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined'); } } catch (e) { - $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e); + $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T3.js b/test/built-ins/Function/prototype/S15.3.4_A2_T3.js index f72522a140665929a3bbca3eca56ecfb2e3395ad..5b4b159cd339b0dbc4d5469f9256deea2544057a 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A2_T3.js +++ b/test/built-ins/Function/prototype/S15.3.4_A2_T3.js @@ -16,5 +16,5 @@ try { $ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined'); } } catch (e) { - $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e); + $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A3_T1.js b/test/built-ins/Function/prototype/S15.3.4_A3_T1.js index 2d31234ce36c3d43d006ef9d899f8739fe55f95f..7f85502343e688a5599674d16c6482e5f0eab549 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A3_T1.js +++ b/test/built-ins/Function/prototype/S15.3.4_A3_T1.js @@ -11,6 +11,6 @@ description: Checking prototype of Function.prototype if (Object.getPrototypeOf(Function.prototype) !== Object.prototype) { $ERROR('#1: The value of the internal [[Prototype]] property of ' + - 'the Function prototype object is the Object prototype ' + - 'object (15.3.4)'); + 'the Function prototype object is the Object prototype ' + + 'object (15.3.4)'); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A3_T2.js b/test/built-ins/Function/prototype/S15.3.4_A3_T2.js index 5fdee9b54a2311662ab4299a05d95bba217e722f..eb6eaa1aa456de6ad51ffc2440e2a88e7316d157 100644 --- a/test/built-ins/Function/prototype/S15.3.4_A3_T2.js +++ b/test/built-ins/Function/prototype/S15.3.4_A3_T2.js @@ -14,6 +14,6 @@ description: > Object.prototype.indicator = 1; //CHECK#1 -if (Function.prototype.indicator!==1) { +if (Function.prototype.indicator !== 1) { $ERROR('#1: The value of the internal [[Prototype]] property of the Function prototype object is the Object prototype object (15.3.2.1)'); } diff --git a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js index 33d46760db8562810ef488664295cb4f942ed85a..8e97762beea1b865d81b7d65fb17e9dcc04f6211 100644 --- a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js +++ b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js @@ -16,7 +16,9 @@ features: [Symbol.hasInstance] ---*/ // Create a callable object without a `prototype` property -var f = Object.getOwnPropertyDescriptor({ get f() {} }, 'f').get; +var f = Object.getOwnPropertyDescriptor({ + get f() {} +}, 'f').get; Object.defineProperty(f, 'prototype', { get: function() { diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js index 7ee954176d946ccfd45a94ba55c00a5e9b4fc2be..daeed835d024ca74d8bb54c7ae20d99f12d39f08 100644 --- a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js +++ b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ - function fun() { - return (this instanceof String); - } +function fun() { + return (this instanceof String); +} assert.sameValue(fun.apply("", Array), false, 'fun.apply("", Array)'); diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js index a717204bd4e7cdee35cd4d44c50e098057ccc963..0c792e14abd89a9be649057b3c1b83fb951cc5bf 100644 --- a/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js +++ b/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ - function fun() { - return (this instanceof Number); - } +function fun() { + return (this instanceof Number); +} assert.sameValue(fun.apply(-12, Array), false, 'fun.apply(-12, Array)'); diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js index 762c5c5936cafdd6e9a66dab96098d83a95239aa..f62f5d967a514a62649e2217b8b6bef134a16e41 100644 --- a/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js +++ b/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ - function fun() { - return (this instanceof Boolean); - } +function fun() { + return (this instanceof Boolean); +} assert.sameValue(fun.apply(false, Array), false, 'fun.apply(false, Array)'); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js index ce9541aa014de7c19d9044379c1525aa1d5c7036..244c35acd7775c030c48594aa1a2749974c8d176 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js @@ -17,7 +17,9 @@ if (!(Function.prototype.apply.hasOwnProperty('length'))) { var obj = Function.prototype.apply.length; -verifyNotWritable(Function.prototype.apply, "length", null, function(){return "shifted";}); +verifyNotWritable(Function.prototype.apply, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Function.prototype.apply.length !== obj) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js index 18da556b62a4694eb717e3264755b649a7d6ed4c..dcab5610c10ff8020f47d066ea281f031e38a1f3 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js @@ -21,7 +21,7 @@ if (Function.prototype.apply.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Function.prototype.apply){ - if (p==="length") - $ERROR('#2: the Function.prototype.apply.length property has the attributes DontEnum'); +for (var p in Function.prototype.apply) { + if (p === "length") + $ERROR('#2: the Function.prototype.apply.length property has the attributes DontEnum'); } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js index c84faf77668a2d4301ea8e290b6e7c9468fc1e5d..50ea57ee82c4fba0491c37be4ebb25ac1ea8834e 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js @@ -11,5 +11,5 @@ description: > //CHECK#1 if (Function.prototype.apply.prototype !== undefined) { - $ERROR('#1: Function.prototype.apply has not prototype property'+Function.prototype.apply.prototype); + $ERROR('#1: Function.prototype.apply has not prototype property' + Function.prototype.apply.prototype); } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js index ce11c7e88a209ae02f1ae1b0ba96f9918554c258..bf25dfed354d6f2b3da225813b2cd619e402b096 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js @@ -17,7 +17,7 @@ if (typeof re === 'function') { try { Function.prototype.bind.call(re, undefined); $ERROR('#1: If IsCallable(func) is false, ' + - 'then (bind should) throw a TypeError exception'); + 'then (bind should) throw a TypeError exception'); } catch (e) { if (!(e instanceof TypeError)) { $ERROR('#1: TypeError expected. Actual: ' + e); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js index c8a7711c8ae313b4dccdb03f191a257c82f775cd..77e0ffe0839b5020cbfd9ccac51235eb64d73314 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js @@ -12,11 +12,11 @@ description: > property. Prototype of the object is Function() ---*/ -var proto=Function(); +var proto = Function(); -function FACTORY(){}; +function FACTORY() {}; -FACTORY.prototype=proto; +FACTORY.prototype = proto; var obj = new FACTORY; @@ -31,6 +31,6 @@ try { $ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); + $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js index 8d65c78db624a13117392cea279555494e9c178e..ad2b147707bdd34ef04ef40e534f2b7955474916 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js @@ -12,9 +12,9 @@ description: > property. Prototype of the object is Function.prototype ---*/ -function FACTORY(){}; +function FACTORY() {}; -FACTORY.prototype=Function.prototype; +FACTORY.prototype = Function.prototype; var obj = new FACTORY; @@ -29,6 +29,6 @@ try { $ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); + $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js index a56a6b4d10fc50b81f155c10c162e4ea34c93f1e..872e4659755873bc5b4325340b689696bf78f9a7 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js @@ -7,7 +7,7 @@ es5id: 15.3.4.3_A2_T2 description: Checking f.apply.length, where f is new Function ---*/ -var f=new Function; +var f = new Function; //CHECK#1 if (typeof f.apply !== "function") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js index b2667397c32006654c6342e4752ec47059e4ba3c..2864ae8e309f504daa86a750acbaa5cc1176831b 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js @@ -11,7 +11,7 @@ description: > declaration ---*/ -function FACTORY(){ +function FACTORY() { Function("this.feat=\"in da haus\"").apply(); }; diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js index de2baaba0b70892f880f5a0630de4e96289f5167..c4fe4048248060ef9abb5a3b797349a4a33851d6 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js @@ -12,8 +12,10 @@ description: > flags: [noStrict] ---*/ -function FACTORY(){ - (function(){this.feat="kamon beyba"}).apply(null); +function FACTORY() { + (function() { + this.feat = "kamon beyba" + }).apply(null); }; var obj = new FACTORY; diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js index 7138f11cd22d03f827c17b8588c7810371e61fc8..1065e8d2757357952f6cdc39c3fe76a8b894dfdf 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js @@ -11,7 +11,7 @@ description: > declaration ---*/ -(function FACTORY(){ +(function FACTORY() { Function("this.feat=\"in da haus\"").apply(void 0); })(); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js index bec48bd99b10cdad6c55385ea1f444fa05a55912..94449eb37b13509d801b2432af1a34e01a00fabe 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js @@ -12,8 +12,10 @@ description: > flags: [noStrict] ---*/ -(function FACTORY(){ - (function(){this.feat="kamon beyba"}).apply(undefined); +(function FACTORY() { + (function() { + this.feat = "kamon beyba" + }).apply(undefined); })(); //CHECK#1 diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js index e7055f8306af1bf01d51ebe562444e724c31ef85..4fe65248ab9024bd95356f042aa7057d90534ae2 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A3_T9 description: Checking by using eval, argument at apply function is void 0 ---*/ -eval( " Function(\"this.feat=1\").apply(void 0) " ); +eval(" Function(\"this.feat=1\").apply(void 0) "); //CHECK#1 if (this["feat"] !== 1) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js index b0a73eab7fe475f526adf66e1fb0d4af661c3edd..937f8cb9faf76b39daa9b5e512fb73a906e13c27 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T1 description: thisArg is number ---*/ -var obj=1; +var obj = 1; var retobj = Function("this.touched= true; return this;").apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js index 88e6a92cb779fe8c5d3357e6cfc76b71820910c8..79d6cf8163d71c7f8aba9dc67863b0fba6e1fae9 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T2 description: thisArg is boolean true ---*/ -var obj=true; +var obj = true; var retobj = new Function("this.touched= true; return this;").apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js index 8ec4feae58d799d67f1a70e4c6b24dfe879524d4..eeb07e45ebd50d161eef0f0cb874856e829844bd 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js @@ -10,9 +10,12 @@ description: thisArg is string flags: [noStrict] ---*/ -var obj="soap"; +var obj = "soap"; -var retobj = ( function(){this.touched= true; return this;} ).apply(obj); +var retobj = (function() { + this.touched = true; + return this; +}).apply(obj); //CHECK#1 if (typeof obj.touched !== "undefined") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js index 65230c6ebc800242ac410e5eae75b7372cbc7087..527311ae9d317ec9866f97199a8f79b7e4cd4d5f 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js @@ -10,7 +10,10 @@ description: thisArg is function variable that return this flags: [noStrict] ---*/ -f = function(){this.touched= true; return this;}; +f = function() { + this.touched = true; + return this; +}; retobj = f.apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js index b4947b2233a1634021f1c379c7ecc6846e6fd807..8d88bfdd1c3f5bf005e8ca4e0e59cf7a14acf888 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js @@ -9,9 +9,11 @@ es5id: 15.3.4.3_A5_T5 description: thisArg is function variable ---*/ -var f = function(){this.touched= true;}; +var f = function() { + this.touched = true; +}; -var obj={}; +var obj = {}; f.apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js index 3a852f7704dad78124c25df2015aaf2ec65b5bfd..ffabe93c304371102d791366bdd5cc2fd3dbf334 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js @@ -9,9 +9,11 @@ es5id: 15.3.4.3_A5_T6 description: thisArg is new String() ---*/ -var obj=new String("soap"); +var obj = new String("soap"); -( function(){this.touched= true;}).apply(obj); +(function() { + this.touched = true; +}).apply(obj); //CHECK#1 if (!(obj.touched)) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js index 3aea79d4cb0cfd61f6b986caa6eab223173ead5e..f99dfe61f3123254a129f6403e210926e99ad789 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T7 description: thisArg is new Number() ---*/ -var obj=new Number(1); +var obj = new Number(1); Function("this.touched= true;").apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js index 3e7ff7743170e7e4d517144d6e09c88b556e855e..26ce5a6ec8641d34c91c78b4e0299e3cd41278ad 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T8 description: thisArg is Function() ---*/ -var obj=Function(); +var obj = Function(); new Function("this.touched= true; return this;").apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js index ddeca4bbb1226999e1380a1d97b0bce0739ee7d1..a21265dd3243c113bccaf3bbf63ef06e644e3b25 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js @@ -11,10 +11,10 @@ description: argArray is (null,1) //CHECK#1 try { - Function().apply(null,1); + Function().apply(null, 1); $ERROR('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); + $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js index 2fa2501c37adf630f63f83a460b2057b84f9fe24..313e89d794ed27124123f03ee91cda5924ed36cf 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js @@ -9,14 +9,14 @@ es5id: 15.3.4.3_A6_T3 description: argArray is (object,"1,3,4") ---*/ -var obj={}; +var obj = {}; //CHECK#1 try { - Function().apply(obj,"1,3,4"); + Function().apply(obj, "1,3,4"); $ERROR('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); + $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js index afa24ed018ebe14bfb9a8367820ba5e34c2e9721..018dcc7bd73caa58388adc24ab9257375cddcb70 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A7_T1 description: argArray is (null,[1]) ---*/ -Function("a1,a2,a3","this.shifted=a1;").apply(null,[1]); +Function("a1,a2,a3", "this.shifted=a1;").apply(null, [1]); //CHECK#1 if (this["shifted"] !== 1) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js index 8e518ebd6aac4c79b79b382e497fa2b88d8e2b91..7a77fd2d17702152b9ef12a3112cd762a9e58ef0 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js @@ -11,11 +11,11 @@ description: > without declaration used ---*/ -var obj={}; +var obj = {}; -(function (){ - Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(obj,arguments); -})("",4,2); +(function() { + Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(obj, arguments); +})("", 4, 2); //CHECK#1 if (obj["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js index fbfadbdb7f16e281192b4300f9a81f9640d727b1..f54f65d30b49765e7a7d58165f4d1ba0b4b90d03 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js @@ -9,7 +9,7 @@ es5id: 15.3.4.3_A7_T2 description: argArray is (null,[1,2,3]) ---*/ -new Function("a1,a2","a3","this.shifted=a2;").apply(null,[1,2,3]); +new Function("a1,a2", "a3", "this.shifted=a2;").apply(null, [1, 2, 3]); //CHECK#1 if (this["shifted"] !== 2) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js index 1f27d4ef2284c677f87c6a9a2b6e05cb2b9cef8d..d4ce5fc1d4f57228c88cfa1f88674785f3f7449c 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js @@ -9,13 +9,17 @@ es5id: 15.3.4.3_A7_T3 description: argArray is (empty object, new Array("nine","inch","nails")) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -Function(p,"a2,a3","this.shifted=a1;").apply(obj, new Array("nine","inch","nails")); +Function(p, "a2,a3", "this.shifted=a1;").apply(obj, new Array("nine", "inch", "nails")); //CHECK#1 if (obj["shifted"] !== "nine") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js index a88cc9e735bd35eeb7636f6cf4b557ad3cbca32b..9a747b4a1098dc9b8a1e8687016bb942b766ed9d 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js @@ -11,13 +11,19 @@ description: > ("a","b","c")) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -new Function(p,p,p, "this.shifted=a3;").apply( obj,( function(){return arguments;}) ("a","b","c") ); +new Function(p, p, p, "this.shifted=a3;").apply(obj, (function() { + return arguments; +})("a", "b", "c")); //CHECK#1 if (obj["shifted"] !== "c") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js index 26d0b1a28bfb1500d3e300659c4003c89a88083b..44ab20da001cfec21e73aa7eb8ac36282961fab3 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js @@ -9,11 +9,11 @@ es5id: 15.3.4.3_A7_T5 description: argArray is (null, arguments), inside function declaration used ---*/ -function FACTORY(){ - Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(null,arguments); +function FACTORY() { + Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(null, arguments); } -var obj=new FACTORY("",1,2); +var obj = new FACTORY("", 1, 2); //CHECK#1 if (this["shifted"] !== "12") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js index 2e2f76d646db322ee2827f3d28ceea695879c247..23e9ac8ec6ce377bfe97ce28c75560d8d3a915e9 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js @@ -9,11 +9,11 @@ es5id: 15.3.4.3_A7_T6 description: argArray is (this, arguments), inside function declaration used ---*/ -function FACTORY(){ - Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(this,arguments); +function FACTORY() { + Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(this, arguments); } -var obj=new FACTORY("",4,2); +var obj = new FACTORY("", 4, 2); //CHECK#1 if (obj["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js index 0ee4e41eeac18dd744b4cb772ef67269a5cee222..59dbd059a2679bf537b0020b2583a82edd1566ea 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js @@ -11,9 +11,9 @@ description: > declaration used ---*/ -(function (){ - Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(null,arguments); -})("",1,2); +(function() { + Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(null, arguments); +})("", 1, 2); //CHECK#1 if (this["shifted"] !== "12") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js index b3cf864861462d9057f3af8101a2f06f398ca1bc..f0c0215cd249886ba032cfad23e84d39fc05d5bd 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js @@ -11,9 +11,9 @@ description: > declaration used ---*/ -(function (){ - Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(this,arguments); -})("",4,2); +(function() { + Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(this, arguments); +})("", 4, 2); //CHECK#2 if (this["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js index 8781ceff11ce0c51f6ac750154c8463b7f38f4de..d478bc629a2a5bb8d3561d3bf3f79673beb32270 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js @@ -11,13 +11,13 @@ description: > used ---*/ -function FACTORY(){ +function FACTORY() { var obj = {}; - Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(obj,arguments); + Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(obj, arguments); return obj; } -var obj=new FACTORY("",1,2); +var obj = new FACTORY("", 1, 2); //CHECK#1 if (typeof this["shifted"] !== "undefined") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js index 0279d3e1e45decff16da12d968d7e5af42e1c7f1..75eeb6534ad4fddbb427ae65d9eeff87fd344660 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js @@ -8,7 +8,7 @@ description: Checking if creating "new (Function("this.p1=1").apply)" fails ---*/ try { - var obj = new (Function("this.p1=1").apply); + var obj = new(Function("this.p1=1").apply); $ERROR('#1: Function.prototype.apply can\'t be used as [[Construct]] caller'); } catch (e) { if (!(e instanceof TypeError)) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js index ea44af1c2e7abccc7a58aad3924126471e5097a6..94169ef9d409f2f7b46efb94063f014ca9a08761 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js @@ -11,12 +11,12 @@ description: > //CHECK#1 try { - var obj = new (Function("function f(){this.p1=1;};return f").apply()); + var obj = new(Function("function f(){this.p1=1;};return f").apply()); } catch (e) { $ERROR('#1: Function.prototype.apply can\'t be used as [[Construct]] caller'); } //CHECK#2 -if (obj.p1!== 1) { +if (obj.p1 !== 1) { $ERROR('#2: Function.prototype.apply can\'t be used as [[Construct]] caller'); } diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js index 721390cf70a66037da56831e4595028df95e9e87..6a5c1ec34663e4c3762fb38a331ae70bc0ff4cd9 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js @@ -6,6 +6,6 @@ es5id: 15.3.4.5-0-1 description: Function.prototype.bind must exist as a function ---*/ - var f = Function.prototype.bind; +var f = Function.prototype.bind; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js index 7486fce8d45cc5b7e112b8cfa3177e9770d6c14a..757d27d50b08ffd0e23f65874b84b60c8ba4b90d 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js @@ -8,8 +8,8 @@ description: > set as Function ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); assert.sameValue(Object.prototype.toString.call(obj), "[object Function]", 'Object.prototype.toString.call(obj)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js index 924da6e0269861d394d07017021a4903bb63ade7..cc302b88d06215896ff95811d8c1cfce32a5127c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js @@ -8,9 +8,9 @@ description: > is set as Function.prototype ---*/ - var foo = function () { }; +var foo = function() {}; - Function.prototype.property = 12; - var obj = foo.bind({}); +Function.prototype.property = 12; +var obj = foo.bind({}); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js index 76a189908d22daf053887ceb31814a7e9529275a..c1dfb471a22987c3f310beb539ee788345d62958 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js @@ -6,9 +6,9 @@ es5id: 15.3.4.5-13.b-1 description: Function.prototype.bind, bound fn has a 'length' own property ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); +function foo() {} +var o = {}; + +var bf = foo.bind(o); assert(bf.hasOwnProperty('length'), 'bf.hasOwnProperty("length") !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js index d0aedf906516f037284189670ad0743d412417f4..a99ce8cd2eafd0b06705555feb5cb1c1e80e3eac 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js @@ -8,9 +8,9 @@ description: > expected args ---*/ - function foo(x, y) { } - var o = {}; - - var bf = foo.bind(o); +function foo(x, y) {} +var o = {}; + +var bf = foo.bind(o); assert.sameValue(bf.length, 2, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js index b2a968ed3ab4c57f5952f6d7338c76f3ffacbbe3..c712aad440a03c9b1e6e2615fe23717964165630 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js @@ -8,9 +8,9 @@ description: > expected args (all args prefilled) ---*/ - function foo(x, y) { } - var o = {}; - - var bf = foo.bind(o, 42, 101); +function foo(x, y) {} +var o = {}; + +var bf = foo.bind(o, 42, 101); assert.sameValue(bf.length, 0, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js index 152d1eb8bcb5942c730e387d85ce4c8968fe1c18..8fe162a201e68111eae5ed919b66740893f2fc28 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js @@ -8,9 +8,9 @@ description: > expected args (target takes 0 args) ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); +function foo() {} +var o = {}; + +var bf = foo.bind(o); assert.sameValue(bf.length, 0, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js index fcf6139fa62dbe4330229657111cf134cc5a5b04..c95236da25aaa490200f009eff5034e599fd4538 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js @@ -8,9 +8,9 @@ description: > expected args (target provided extra args) ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o, 42); +function foo() {} +var o = {}; + +var bf = foo.bind(o, 42); assert.sameValue(bf.length, 0, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js index 038084b1aa8e0722408b54d702fc74ff2c4e6107..8b50e13470117c897b5d9f343ece0824c261e715 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js @@ -8,9 +8,9 @@ description: > expected args ---*/ - function foo(x, y) { } - var o = {}; +function foo(x, y) {} +var o = {}; - var bf = foo.bind(o, 42); +var bf = foo.bind(o, 42); assert.sameValue(bf.length, 1, 'bf.length'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js index ff341342eb6fe1b4678a93835cc86ca4bbc4bb3c..e2ca7cfe83ead39f165d4a7417446b98acf4d107 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js @@ -6,11 +6,11 @@ es5id: 15.3.4.5-15-1 description: Function.prototype.bind, 'length' is a data valued own property ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); - var desc = Object.getOwnPropertyDescriptor(bf, 'length'); +function foo() {} +var o = {}; + +var bf = foo.bind(o); +var desc = Object.getOwnPropertyDescriptor(bf, 'length'); assert.sameValue(desc.hasOwnProperty('value'), true, 'desc.hasOwnProperty("value")'); assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js index 19ed95b0d16fd70d508f9549365c6d8687fd58cc..11cad43ede25188edc6a2c6f1678ffb88f700995 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js @@ -7,11 +7,11 @@ description: > Function.prototype.bind, 'length' is a data valued own property ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); - var desc = Object.getOwnPropertyDescriptor(bf, 'length'); +function foo() {} +var o = {}; + +var bf = foo.bind(o); +var desc = Object.getOwnPropertyDescriptor(bf, 'length'); assert.sameValue(desc.value, 0, 'desc.value'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js index f0305bbe49d0095210f38d01cf1591b429365807..8c5f06f4c0bb114c8a4d9ad3fbacc170381ed0a2 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -function foo() { } +function foo() {} var obj = foo.bind({}); var flength = obj.length; diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js index f0f5a41e6e6a35ed3b50605ecc6e73d574dfb8e7..1ac7dc4c671f335cc2583b90dd5f2cc324607619 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js @@ -8,16 +8,17 @@ description: > property in F set as false ---*/ - var canEnumerable = false; - var hasProperty = false; - function foo() { } - var obj = foo.bind({}); - hasProperty = obj.hasOwnProperty("length"); - for (var prop in obj) { - if (prop === "length") { - canEnumerable = true; - } - } +var canEnumerable = false; +var hasProperty = false; + +function foo() {} +var obj = foo.bind({}); +hasProperty = obj.hasOwnProperty("length"); +for (var prop in obj) { + if (prop === "length") { + canEnumerable = true; + } +} assert(hasProperty, 'hasProperty !== true'); assert.sameValue(canEnumerable, false, 'canEnumerable'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js index 9a0e9fe660f1363c3a5ad01aaeb8cb4956ba252a..447d9d6171ee3517196fd4e0e69743016e2e9b54 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js @@ -8,13 +8,14 @@ description: > property in F set as true ---*/ - var canConfigurable = false; - var hasProperty = false; - function foo() { } - var obj = foo.bind({}); - hasProperty = obj.hasOwnProperty("length"); - delete obj.length; - canConfigurable = !obj.hasOwnProperty("length"); +var canConfigurable = false; +var hasProperty = false; + +function foo() {} +var obj = foo.bind({}); +hasProperty = obj.hasOwnProperty("length"); +delete obj.length; +canConfigurable = !obj.hasOwnProperty("length"); assert(hasProperty, 'hasProperty !== true'); assert(canConfigurable, 'canConfigurable !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js index 385cc179a3b05f15150e74111c597f6f28174f04..ddec313c683671058d68247025c5cbaf267788e5 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js @@ -6,10 +6,10 @@ es5id: 15.3.4.5-16-1 description: Function.prototype.bind, [[Extensible]] of the bound fn is true ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); - var ex = Object.isExtensible(bf); +function foo() {} +var o = {}; + +var bf = foo.bind(o); +var ex = Object.isExtensible(bf); assert.sameValue(ex, true, 'ex'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js index 0a1d795413432cbc903dead00d7986721a22e680..2bb3449a64f75412ac7dcf83b837ad947a358254 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js @@ -8,8 +8,8 @@ description: > property in F set as true ---*/ - function foo() { } - var obj = foo.bind({}); - obj.property = 12; +function foo() {} +var obj = foo.bind({}); +obj.property = 12; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js index 22274ec43562115dcdd036df60be523a60726aab..4fe22c9add3ea1e4bf6427eaa7a132eb053c9fa1 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js @@ -11,10 +11,10 @@ description: > callable (but an instance of Function) ---*/ - foo.prototype = Function.prototype; - // dummy function - function foo() {} - var f = new foo(); +foo.prototype = Function.prototype; +// dummy function +function foo() {} +var f = new foo(); assert.throws(TypeError, function() { - f.bind(); + f.bind(); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js index b7cc355aa4a509948ea65f860b23f4ca5a83a1ce..d351a8085961b98c9dac0615fac9b8a58cb2684a 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is undefined assert.throws(TypeError, function() { - Function.prototype.bind.call(undefined); + Function.prototype.bind.call(undefined); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js index a6b2d253652de4423a0e8cd925c3324b2aebd6d6..cb8b5bb005a76efaf56612db9445fe05dbff3db5 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is NULL assert.throws(TypeError, function() { - Function.prototype.bind.call(null); + Function.prototype.bind.call(null); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js index ac81d90cbb707d03c771b8a171c972af12fa9f32..bb5299cb69226101a77f2d6ed7faea40faa76f0b 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a boolean assert.throws(TypeError, function() { - Function.prototype.bind.call(true); + Function.prototype.bind.call(true); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js index 0745139ad95721b9de8fd3dd6bfabbc750e640c7..8e99cd6f6caeb7f654c13052cc45350a94c9601b 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a number assert.throws(TypeError, function() { - Function.prototype.bind.call(5); + Function.prototype.bind.call(5); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js index 64b0899f799f97b978aab5cb51edba24c660bdb8..48710b1df86fd2edafcdaded8a50b716bc961e69 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js @@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a string assert.throws(TypeError, function() { - Function.prototype.bind.call("abc"); + Function.prototype.bind.call("abc"); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js index 887441b2cf64e2eb8d4ff51196f3cad6ea90297b..83c763a9575d05eb1739c6cec9704e9923ab72b5 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js @@ -10,5 +10,5 @@ description: > assert.throws(TypeError, function() { - Function.prototype.bind.call({}); + Function.prototype.bind.call({}); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js index 4d72a31fe12024715fec23ac3de57e4740ba7c15..55832a1c173cd850677e562839fcca281b01cb67 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js @@ -6,6 +6,6 @@ es5id: 15.3.4.5-2-16 description: Function.prototype.bind - 'Target' is a function ---*/ - function testFunc() {} +function testFunc() {} - testFunc.bind(); +testFunc.bind(); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js index 17fc39e388e0ab6c7aa7583c57de9f9587cf0574..83f9770a8838ebd9d739b840ae1854af6d5c2085 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js @@ -11,10 +11,10 @@ description: > callable (bind attached to object) ---*/ - // dummy function - function foo() {} - var f = new foo(); - f.bind = Function.prototype.bind; +// dummy function +function foo() {} +var f = new foo(); +f.bind = Function.prototype.bind; assert.throws(TypeError, function() { - f.bind(); + f.bind(); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js index 72842e357ef996cd39e5ff3f0e9db8944cb30b5c..38baf8fa067851e606cc4d00cfa71571ca511caf 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js @@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-3 description: Function.prototype.bind allows Target to be a constructor (Number) ---*/ - var bnc = Number.bind(null); - var n = bnc(42); +var bnc = Number.bind(null); +var n = bnc(42); assert.sameValue(n, 42, 'n'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js index b3344505147e502a4c34ab00c3e6248c028ed062..c4c97b31032bc80ab4c435933cfecaf5cbca20d0 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js @@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-4 description: Function.prototype.bind allows Target to be a constructor (String) ---*/ - var bsc = String.bind(null); - var s = bsc("hello world"); +var bsc = String.bind(null); +var s = bsc("hello world"); assert.sameValue(s, "hello world", 's'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js index 935f654cb175926f2ea0a7c3523c56d41373394e..893d19b53be8a0df86c283bd6057624b7a0ff0a2 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js @@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-5 description: Function.prototype.bind allows Target to be a constructor (Boolean) ---*/ - var bbc = Boolean.bind(null); - var b = bbc(true); +var bbc = Boolean.bind(null); +var b = bbc(true); assert.sameValue(b, true, 'b'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js index e9924b7d2f765bec3a6ea07360c406f6ea8d7cd4..d659c61b0f951ca44b7f7863c84aa7517f4d6edd 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js @@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-6 description: Function.prototype.bind allows Target to be a constructor (Object) ---*/ - var boc = Object.bind(null); - var o = boc(42); +var boc = Object.bind(null); +var o = boc(42); assert((o == 42), '(o == 42) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js index 8df9453942c8ae25ac568724f3f4b9826be64611..124f1f87e3c2964e66baf2703ac9f6e9a9c307ba 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js @@ -13,5 +13,5 @@ description: > assert.throws(TypeError, function() { - JSON.bind(); + JSON.bind(); }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js index 79efe3ccf8448287f19461b10df9c1ccb1cff20f..99474ac4d1ed89bc1956c3ef9a54aa4e48a29ba1 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js @@ -9,10 +9,10 @@ es5id: 15.3.4.5-2-8 description: Function.prototype.bind allows Target to be a constructor (Array) ---*/ - var bac = Array.bind(null); - var a = bac(42); - a.prop = "verifyPropertyExist"; - a[41] = 41; +var bac = Array.bind(null); +var a = bac(42); +a.prop = "verifyPropertyExist"; +a[41] = 41; assert.sameValue(a.prop, "verifyPropertyExist", 'a.prop'); assert.sameValue(a[41], 41, 'a[41]'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js index 337e8b6da2c05c33e969f4ae559a86815d75ac1d..f16e2404fac21d6a0c7d7cc38c0b2dabaa8ec341 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js @@ -6,7 +6,7 @@ es5id: 15.3.4.5-2-9 description: Function.prototype.bind allows Target to be a constructor (Date) ---*/ - var bdc = Date.bind(null); - var s = bdc(0, 0, 0); +var bdc = Date.bind(null); +var s = bdc(0, 0, 0); assert.sameValue(typeof(s), 'string', 'typeof(s)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js index c07b78a052f28015d44f7ac31b9b5748f345c8f6..ce141fdab658830d1d95b3c035311e35312c72da 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js @@ -8,9 +8,9 @@ description: > in 'F' is thrower ---*/ - function foo() { } - var obj = foo.bind({}); +function foo() {} +var obj = foo.bind({}); assert.throws(TypeError, function() { - obj.caller; + obj.caller; }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js index 15516ceb6babf805756646ccf21500f3a3244829..b3f830dbb57bf6a668daa7f115974bc304c0c4be 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js @@ -8,8 +8,8 @@ description: > in 'F' is thrower ---*/ - function foo() { } - var obj = foo.bind({}); +function foo() {} +var obj = foo.bind({}); assert.throws(TypeError, function() { - obj.caller = 12; + obj.caller = 12; }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js index 8779bc06da6d96bb21ff078c74c288af2640b07d..2d7c5dfcaf67733233d01bfc03cf14aebc41159d 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js @@ -8,9 +8,9 @@ description: > property in 'F' is thrower ---*/ - function foo() { } - var obj = foo.bind({}); +function foo() {} +var obj = foo.bind({}); assert.throws(TypeError, function() { - obj.arguments; + obj.arguments; }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js index c132f9d0960da434b8064496b4e8fc3fc26fee1a..34bf7d6f21e169f83231305b78b6ecb331a57f3f 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js @@ -8,8 +8,8 @@ description: > property in 'F' is thrower ---*/ - function foo() { } - var obj = foo.bind({}); +function foo() {} +var obj = foo.bind({}); assert.throws(TypeError, function() { - obj.arguments = 12; + obj.arguments = 12; }); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js index 0a88f6d3b7545a66d94374ea35752c63ec4c921e..f6aab4e45044832e83011578df71a4db381f8776 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js @@ -6,11 +6,11 @@ es5id: 15.3.4.5-3-1 description: Function.prototype.bind - each arg is defined in A in list order ---*/ - var foo = function (x, y) { - return new Boolean((x + y) === "ab" && arguments[0] === "a" && - arguments[1] === "b" && arguments.length === 2); - }; +var foo = function(x, y) { + return new Boolean((x + y) === "ab" && arguments[0] === "a" && + arguments[1] === "b" && arguments.length === 2); +}; - var obj = foo.bind({}, "a", "b"); +var obj = foo.bind({}, "a", "b"); assert((obj() == true), '(obj() == true) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js index 89e32473e2a17fe62a1ab27bc7e1eea15dded1ec..5a242739922129dc3a4b7c2715389f581f5b5293 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js @@ -6,9 +6,9 @@ es5id: 15.3.4.5-6-1 description: Function.prototype.bind - F can get own data property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); - obj.property = 12; +var obj = foo.bind({}); +obj.property = 12; assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js index d4d1b09966e6bec72ba327b5366856c63e7d29db..7d46c866edd5f2c73dc47a2ba9981bf5c89886ac 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js @@ -8,19 +8,19 @@ description: > a get function that overrides an inherited accessor property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); - Object.defineProperty(Function.prototype, "property", { - get: function () { - return 3; - }, - configurable: true - }); +Object.defineProperty(Function.prototype, "property", { + get: function() { + return 3; + }, + configurable: true +}); - Object.defineProperty(obj, "property", { - set: function () { } - }); +Object.defineProperty(obj, "property", { + set: function() {} +}); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js index 2f393981772f96857677d8a535c01697db28be0a..3febd3790f5d448ad19019e3750260c0b724ebdb 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js @@ -8,13 +8,13 @@ description: > without a get function ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); - Object.defineProperty(Function.prototype, "property", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Function.prototype, "property", { + set: function() {}, + configurable: true +}); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js index 416294bc0df2d0c776e65b38746c94cfaffa93f4..8ac9fab502ab2c6863cba749799210360872860b 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js @@ -6,8 +6,8 @@ es5id: 15.3.4.5-6-12 description: Function.prototype.bind - F cannot get property which doesn't exist ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js index e6718ada405c7a4023a6f3f098d579b5f3437977..b770d4876ea03d87c20ac0a022ad6e16febf6fbe 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js @@ -6,10 +6,10 @@ es5id: 15.3.4.5-6-2 description: Function.prototype.bind - F can get inherited data property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); - Function.prototype.property = 12; +Function.prototype.property = 12; assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js index a3cc6aaacb8c9ce107404cddac032bceb6e38260..ea79e26d2170719b3fed071271a9a8757973d8d6 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js @@ -8,11 +8,11 @@ description: > overrides an inherited data property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); - Function.prototype.property = 3; - obj.property = 12; +Function.prototype.property = 3; +obj.property = 12; assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js index 914e182098d508ff817938aa7d3ff9a98bdaedb9..f1c1bdb024a339fbd70c93e8bf94386f5695496c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js @@ -8,19 +8,19 @@ description: > overrides an inherited accessor property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); - Object.defineProperty(Function.prototype, "property", { - get: function () { - return 3; - }, - configurable: true - }); - - Object.defineProperty(obj, "property", { - value: 12 - }); +Object.defineProperty(Function.prototype, "property", { + get: function() { + return 3; + }, + configurable: true +}); + +Object.defineProperty(obj, "property", { + value: 12 +}); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js index e75c71ee196b958127baf6bc9086da15c934d291..4f12d470a40d00db922d5b3bb7630a6c7139ff06 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js @@ -6,13 +6,13 @@ es5id: 15.3.4.5-6-5 description: Function.prototype.bind - F can get own accessor property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); - Object.defineProperty(obj, "property", { - get: function () { - return 12; - } - }); +var obj = foo.bind({}); +Object.defineProperty(obj, "property", { + get: function() { + return 12; + } +}); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js index 4abb56c5014a1f403abc70baac0c84091b47e0e5..d327415301dc3f5e5fa3494ac5083ae75914b393 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js @@ -6,15 +6,15 @@ es5id: 15.3.4.5-6-6 description: Function.prototype.bind - F can get inherited accessor property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); - Object.defineProperty(Function.prototype, "property", { - get: function () { - return 12; - }, - configurable: true - }); +Object.defineProperty(Function.prototype, "property", { + get: function() { + return 12; + }, + configurable: true +}); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js index 7dc8018d1126c1d8ae1fd211c8edbffa09285cb2..a5037a2f49d484847343160cf6e4fad667a25222 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js @@ -8,15 +8,15 @@ description: > overrides an inherited data property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); - Function.prototype.property = 3; - Object.defineProperty(obj, "property", { - get: function () { - return 12; - } - }); +Function.prototype.property = 3; +Object.defineProperty(obj, "property", { + get: function() { + return 12; + } +}); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js index 65bf83aad4e8f1e35ba92b1cfa0bc56837f5e2ab..8ccd3143fd575e6e416902cd1055c89d531dfbe7 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js @@ -8,21 +8,21 @@ description: > overrides an inherited accessor property ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); +var obj = foo.bind({}); - Object.defineProperty(Function.prototype, "property", { - get: function () { - return 3; - }, - configurable: true - }); +Object.defineProperty(Function.prototype, "property", { + get: function() { + return 3; + }, + configurable: true +}); - Object.defineProperty(obj, "property", { - get: function () { - return 12; - } - }); +Object.defineProperty(obj, "property", { + get: function() { + return 12; + } +}); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js index bedb8acfb85731ebc6dae6fa2ba537b3e339986e..6f2465005c1fb8b5fe8e7afb4f6f355d55e29374 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js @@ -8,12 +8,12 @@ description: > a get function ---*/ - var foo = function () { }; +var foo = function() {}; - var obj = foo.bind({}); - Object.defineProperty(obj, "property", { - set: function () {} - }); +var obj = foo.bind({}); +Object.defineProperty(obj, "property", { + set: function() {} +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js index 3ef542bdc8c3a0ab3b7ed828e741eee4fe053475..71eda47c4b18da09ebb9c980bd1fddef03648bdb 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js @@ -6,9 +6,9 @@ es5id: 15.3.4.5-8-1 description: Function.prototype.bind, type of bound function must be 'function' ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); +function foo() {} +var o = {}; + +var bf = foo.bind(o); assert.sameValue(typeof(bf), 'function', 'typeof(bf)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js index cc9ca589be2119026e39f611b2a5721b20c7689a..7edffd174ca3287f9734a00104dd85ccb0ca06b8 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js @@ -8,10 +8,10 @@ description: > 'Function' ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); - var s = Object.prototype.toString.call(bf); +function foo() {} +var o = {}; + +var bf = foo.bind(o); +var s = Object.prototype.toString.call(bf); assert.sameValue(s, '[object Function]', 's'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js index ff231a57bc07925fb9c8c28ba04c9e0fee1ef331..b2e9a05b66231539eba91c0f4776f1b5c2974ce1 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js @@ -6,9 +6,9 @@ es5id: 15.3.4.5-9-1 description: Function.prototype.bind, [[Prototype]] is Function.prototype ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); +function foo() {} +var o = {}; + +var bf = foo.bind(o); assert(Function.prototype.isPrototypeOf(bf), 'Function.prototype.isPrototypeOf(bf) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js index 597e3ca158ec7ced2c98c5bbf0358df2a2d4c241..e8f93ad8daa2826300e25421c0892312fad9d1ab 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js @@ -8,9 +8,9 @@ description: > (using getPrototypeOf) ---*/ - function foo() { } - var o = {}; - - var bf = foo.bind(o); +function foo() {} +var o = {}; + +var bf = foo.bind(o); assert.sameValue(Object.getPrototypeOf(bf), Function.prototype, 'Object.getPrototypeOf(bf)'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js index 9d386aa4fd0aac1814cd0a1b270fcdacb8a87310..d29e6ada97693b76a53587745e097127a88b032d 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js @@ -9,10 +9,10 @@ description: > [[TargetFunction]] when 'F' is called ---*/ - var func = function (x, y, z) { - return x + y + z; - }; +var func = function(x, y, z) { + return x + y + z; +}; - var newFunc = Function.prototype.bind.call(func, {}, "a", "b", "c"); +var newFunc = Function.prototype.bind.call(func, {}, "a", "b", "c"); assert.sameValue(newFunc(), "abc", 'newFunc()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js index 13c4a05bc775daf472fcf537ed912fca49503dcb..48116b915ade7154af2b9353fd76c969c808a7f0 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && typeof x === "undefined"; - }; +var func = function(x) { + return this === obj && typeof x === "undefined"; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js index 162dfdbc2c6dd59bb3ba8cfd567ae2b98b4a3e26..5f9e6167e9e427cfc8a2d837a7366f7e104b7b9c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1), 'newFunc(1) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js index 0185bd3e22b3a3bf9e2ed2701d5f1c5376b0df90..c2ac2a3dd2286b40a97d990cd34f2019868af332 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js @@ -8,13 +8,15 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 2, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1, 2), 'newFunc(1, 2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js index 477b95d8edb585fae66410b282816c6ef05c6d92..5bf79256557515bed195654d2b1e12b0bae18e41 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js @@ -8,13 +8,15 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && - arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && + arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1); +var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js index 3c844f557e716e30abaf595382933f2f99d382ce..8090b28f309b3834d34f89c72fef0b644bc397c4 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js @@ -8,13 +8,15 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1); +var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(2), 'newFunc(2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js index 772059d8fd91123ebfdabb474463feefd61713b0..d10b5a53bedd9ee0fe7cd0c5506cb8099ec8e2f3 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js @@ -8,13 +8,15 @@ description: > 'boundArgs' is 2, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1, 2); +var newFunc = Function.prototype.bind.call(func, obj, 1, 2); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js index 329b1e78c59087b83498cea28447c50624556b25..77ad477162a22af0029d8b60377b7e827389bc90 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js @@ -9,12 +9,14 @@ description: > when 'F' is called ---*/ - var obj = { "prop": "a" }; +var obj = { + "prop": "a" +}; - var func = function () { - return this; - }; +var func = function() { + return this; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert.sameValue(newFunc(), obj, 'newFunc()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js index c0bb824d0a850110053f6cdc4a94b9cca901da53..138e22f6cb0263e67fd9e3e8d0ef26be84a35702 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js @@ -9,10 +9,10 @@ description: > [[TargetFunction]] when 'F' is called ---*/ - var func = function (x, y, z) { - return z; - }; +var func = function(x, y, z) { + return z; +}; - var newFunc = Function.prototype.bind.call(func, {}, "a", "b"); +var newFunc = Function.prototype.bind.call(func, {}, "a", "b"); assert.sameValue(newFunc("c"), "c", 'newFunc("c")'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js index 829615fff578d08befa7ac44fdc6d519128805d0..c7575ddc387d221b783b2d6a2dc5b01788e0695e 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js @@ -9,10 +9,10 @@ description: > 'boundThis' ---*/ - var func = function () { - return arguments.length === 0; - }; +var func = function() { + return arguments.length === 0; +}; - var newFunc = Function.prototype.bind.call(func); +var newFunc = Function.prototype.bind.call(func); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js index 7342bbdd38677acafd5021ef3139d30d6f13dadd..40f2188b484efe0d3b32bcb1f993770539a5b401 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js @@ -9,10 +9,10 @@ description: > 'boundThis' ---*/ - var func = function () { - return arguments[0] === 1; - }; +var func = function() { + return arguments[0] === 1; +}; - var newFunc = Function.prototype.bind.call(func); +var newFunc = Function.prototype.bind.call(func); assert(newFunc(1), 'newFunc(1) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js index 88da5973cebafa01beef63d937f3d09eced172cf..4188a07b6f99ce202f79cf7fcd5f816c67dd8ad4 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function () { - return this === obj && arguments.length === 0; - }; +var func = function() { + return this === obj && arguments.length === 0; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js index 2e90afd021745c8994f2fa8b0b9ab6d40983524a..a541eaaadc92ed69fb05b5fe884f0ec1a6220d8c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function () { - return this === obj && arguments[0] === 1; - }; +var func = function() { + return this === obj && arguments[0] === 1; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1); +var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js index 7203696e827f8fe1b4ca700de1802acf99708e1b..405ece18fa28d68ab1d538ca002011c4017f529e 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function () { - return this === obj && arguments[0] === 1; - }; +var func = function() { + return this === obj && arguments[0] === 1; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1), 'newFunc(1) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js index 496a18584fd36d6d4dea498aa71967c61391dfd2..d3c13c4e48629ec04ffabcf9b8c8ea8d24cd9cd4 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function () { - return this === obj && arguments[0] === 1 && arguments[1] === 2; - }; +var func = function() { + return this === obj && arguments[0] === 1 && arguments[1] === 2; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1); +var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(2), 'newFunc(2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js index 5088d7335c115b188f701a647c9836d54e36eeef..b71c21678274ad86d9bdd8b0e35ae3ce796ba962 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js @@ -9,16 +9,16 @@ description: > [[TargetFunction]] when 'F' is called as constructor ---*/ - var func = function (x, y, z) { - var objResult = {}; - objResult.returnValue = x + y + z; - objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3; - return objResult; - }; +var func = function(x, y, z) { + var objResult = {}; + objResult.returnValue = x + y + z; + objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3; + return objResult; +}; - var NewFunc = Function.prototype.bind.call(func, {}, "a", "b", "c"); +var NewFunc = Function.prototype.bind.call(func, {}, "a", "b", "c"); - var newInstance = new NewFunc(); +var newInstance = new NewFunc(); assert(newInstance.hasOwnProperty("returnValue"), 'newInstance.hasOwnProperty("returnValue") !== true'); assert.sameValue(newInstance.returnValue, "abc", 'newInstance.returnValue'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js index c3a9014e1d84863e987f82804c3a9680c154729c..182b4bcec585520612b10be568a03519f4c86b34 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1 ---*/ - var func = function (x) { - return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1); - }; +var func = function(x) { + return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1); +}; - var NewFunc = Function.prototype.bind.call(func, {}); +var NewFunc = Function.prototype.bind.call(func, {}); - var newInstance = new NewFunc(1); +var newInstance = new NewFunc(1); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js index 1d385d0819187c1b6bc1ff3e56806400d7ef8fdd..7588ba3c666e1351845fc8a372e64e86442a1519 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 2 ---*/ - var func = function (x) { - return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); - }; +var func = function(x) { + return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); +}; - var NewFunc = Function.prototype.bind.call(func, {}); +var NewFunc = Function.prototype.bind.call(func, {}); - var newInstance = new NewFunc(1, 2); +var newInstance = new NewFunc(1, 2); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js index 2a3ab1bf23532ce7d936edefa7bb4ac5e57c7727..cc813fe58d02d619c7c30bc113a66edc01e75bf1 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0 ---*/ - var func = function (x) { - return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1); - }; +var func = function(x) { + return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1); +}; - var NewFunc = Function.prototype.bind.call(func, {}, 1); +var NewFunc = Function.prototype.bind.call(func, {}, 1); - var newInstance = new NewFunc(); +var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js index ad86f0904ef6129085845a7de0cbf7a855f83682..d31433b28aaa7c8c8779ee27e08cd4a496d84c22 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1 ---*/ - var func = function (x) { - return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); - }; +var func = function(x) { + return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); +}; - var NewFunc = Function.prototype.bind.call(func, {}, 1); +var NewFunc = Function.prototype.bind.call(func, {}, 1); - var newInstance = new NewFunc(2); +var newInstance = new NewFunc(2); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js index e893ad5a8ec3e146b139d577be6002e5a205280d..2650b236fb5762082d5d58dfa2e85a7329eb9e72 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 2, length of 'ExtraArgs' is 0 ---*/ - var func = function (x) { - return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); - }; +var func = function(x) { + return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1); +}; - var NewFunc = Function.prototype.bind.call(func, {}, 1, 2); +var NewFunc = Function.prototype.bind.call(func, {}, 1, 2); - var newInstance = new NewFunc(); +var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js index cdee9fae6177b7bcbfbd0373a36be447d347aac9..4109332f158a6c027c3645ef28b7abb2ce4fee37 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js @@ -9,16 +9,16 @@ description: > [[TargetFunction]] when 'F' is called as constructor ---*/ - var func = function (x, y, z) { - var objResult = {}; - objResult.returnValue = x + y + z; - objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3; - return objResult; - }; +var func = function(x, y, z) { + var objResult = {}; + objResult.returnValue = x + y + z; + objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3; + return objResult; +}; - var NewFunc = Function.prototype.bind.call(func, {}); +var NewFunc = Function.prototype.bind.call(func, {}); - var newInstance = new NewFunc("a", "b", "c"); +var newInstance = new NewFunc("a", "b", "c"); assert(newInstance.hasOwnProperty("returnValue"), 'newInstance.hasOwnProperty("returnValue") !== true'); assert.sameValue(newInstance.returnValue, "abc", 'newInstance.returnValue'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js index 535e38e0e9d5cf9dd5f34e875831cd1476c0e1df..4e191f160f1aedd31a1b5feef86e6c4e1f35cec0 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js @@ -9,12 +9,12 @@ description: > 'boundThis' ---*/ - var func = function () { - return new Boolean(arguments.length === 0); - }; +var func = function() { + return new Boolean(arguments.length === 0); +}; - var NewFunc = Function.prototype.bind.call(func); +var NewFunc = Function.prototype.bind.call(func); - var newInstance = new NewFunc(); +var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js index 2fdf32fd38f2407ac837593bab4c99e9cc8c1a4d..c668db2aceeb613517ac9b7ba2397a84151fcaa2 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js @@ -9,12 +9,12 @@ description: > 'boundThis' ---*/ - var func = function () { - return new Boolean(arguments[0] === 1 && arguments.length === 1); - }; +var func = function() { + return new Boolean(arguments[0] === 1 && arguments.length === 1); +}; - var NewFunc = Function.prototype.bind.call(func); +var NewFunc = Function.prototype.bind.call(func); - var newInstance = new NewFunc(1); +var newInstance = new NewFunc(1); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js index 1bc2037b54f4db1cb58709e286dcfd99afce6886..dc04a872e14147cf565cb7b20f390273e186db4c 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js @@ -8,16 +8,18 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - Object.prototype.verifyThis = "verifyThis"; - var func = function () { - return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" && - this.verifyThis === "verifyThis"); - }; +Object.prototype.verifyThis = "verifyThis"; +var func = function() { + return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" && + this.verifyThis === "verifyThis"); +}; - var NewFunc = Function.prototype.bind.call(func, obj); +var NewFunc = Function.prototype.bind.call(func, obj); - var newInstance = new NewFunc(); +var newInstance = new NewFunc(); assert(newInstance.valueOf(), 'newInstance.valueOf() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js index 1afb3b7cf56583f0aea878889673c43d552782a2..90fe291b08dab6c2cac19cfc2914749d848478fa 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0 ---*/ - var func = function () { - return new Boolean(arguments.length === 1 && arguments[0] === 1); - }; +var func = function() { + return new Boolean(arguments.length === 1 && arguments[0] === 1); +}; - var NewFunc = Function.prototype.bind.call(func, {}, 1); +var NewFunc = Function.prototype.bind.call(func, {}, 1); - var newInstance = new NewFunc(); +var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js index 085e9545e691c29cbbc0b888ad999c2d9b76a32f..217c01c90126c25d846c95bb4f92d85a66290dc0 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1 ---*/ - var func = function () { - return new Boolean(arguments.length === 1 && arguments[0] === 1); - }; +var func = function() { + return new Boolean(arguments.length === 1 && arguments[0] === 1); +}; - var NewFunc = Function.prototype.bind.call(func, {}); +var NewFunc = Function.prototype.bind.call(func, {}); - var newInstance = new NewFunc(1); +var newInstance = new NewFunc(1); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js index 4207a187cfb75afa573b3ccab10e1184ac0c19f6..2dc27e06cfd138e022403d849dd77139a3f6e7e6 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1 ---*/ - var func = function () { - return new Boolean(arguments.length === 2 && arguments[0] === 1 && arguments[1] === 2); - }; +var func = function() { + return new Boolean(arguments.length === 2 && arguments[0] === 1 && arguments[1] === 2); +}; - var NewFunc = Function.prototype.bind.call(func, {}, 1); +var NewFunc = Function.prototype.bind.call(func, {}, 1); - var newInstance = new NewFunc(2); +var newInstance = new NewFunc(2); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js index 4c25b405d9899be30b8a034fd41db002c9956fe1..ff53ee6128f983a7633063301b7eb36105213a53 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js @@ -8,12 +8,12 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0 ---*/ - var func = function (x) { - return new Boolean(arguments.length === 0 && typeof x === "undefined"); - }; +var func = function(x) { + return new Boolean(arguments.length === 0 && typeof x === "undefined"); +}; - var NewFunc = Function.prototype.bind.call(func, {}); +var NewFunc = Function.prototype.bind.call(func, {}); - var newInstance = new NewFunc(); +var newInstance = new NewFunc(); assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()'); diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js index 02d66d06dd59881436decfadf04bb426cafaedca..cae9bb2ae4cc85f938240e38555a29cf3ad856b2 100644 --- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js +++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js @@ -7,9 +7,14 @@ es5id: 15.3.4.5_A1 description: A bound function should fail to find its "caller" ---*/ -function foo() { return bar.caller; } +function foo() { + return bar.caller; +} var bar = foo.bind({}); -function baz() { return bar(); } + +function baz() { + return bar(); +} assert.throws(TypeError, function() { baz(); diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js index 92d5f82d8f8e211d9d9d3c76a0174990893106f9..b53e5d61c55e7cb90fe5cff4da9480af7600eefb 100644 --- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js +++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js @@ -17,7 +17,7 @@ if (typeof re === 'function') { try { Function.prototype.bind.call(re, undefined); $ERROR('#1: If IsCallable(func) is false, ' + - 'then (bind should) throw a TypeError exception'); + 'then (bind should) throw a TypeError exception'); } catch (e) { if (!(e instanceof TypeError)) { $ERROR('#1: TypeError expected. Actual: ' + e); diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js index 25ef64935aef8e8b1e5afb7dd4db66b0cb4a7025..d7dd2786997156981672ce11101d81b2e88594b6 100644 --- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js +++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js @@ -7,9 +7,14 @@ es5id: 15.3.4.5_A2 description: a bound function should fail to find the bound function "arguments" ---*/ -function foo() { return bar.arguments; } +function foo() { + return bar.arguments; +} var bar = foo.bind({}); -function baz() { return bar(); } + +function baz() { + return bar(); +} assert.throws(TypeError, function() { baz(); diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js index 465b4664ecf5b937401502c656a840da3ec81c8c..97e37f9e49764eaa71c92fe4f9353ba61e0a57f6 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js @@ -16,6 +16,7 @@ features: [Reflect, new.target] ---*/ var newTarget; + function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js index b889634db4c169c09646963ef192fce94b0a9988..a8b8696991a3bf4a07a82bdb3c6dbe327352584f 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js @@ -15,6 +15,7 @@ features: [Reflect, new.target] ---*/ var newTarget; + function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js index f183dbf79a35eb92b0bce0128f86e24818ae86dd..5177da492fe931ee375ead05f94c38fae4296096 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js @@ -14,6 +14,7 @@ features: [new.target] ---*/ var newTarget; + function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js index 8664a6eea6b55752fa3eb96b70bceb91cf71174d..fa8a94894d0ec4913e3f7c0be4ac3048367e137f 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js @@ -15,6 +15,7 @@ features: [Reflect, new.target] ---*/ var newTarget; + function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-name-chained.js b/test/built-ins/Function/prototype/bind/instance-name-chained.js index a9ad72bb8768226eeb9d253623bad99fee45511a..2b8ce18d66333e1c06bd02b8a7c2c86527fc1110 100644 --- a/test/built-ins/Function/prototype/bind/instance-name-chained.js +++ b/test/built-ins/Function/prototype/bind/instance-name-chained.js @@ -13,7 +13,9 @@ info: | includes: [propertyHelper.js] ---*/ -var target = Object.defineProperty(function() {}, 'name', { value: 'target' }); +var target = Object.defineProperty(function() {}, 'name', { + value: 'target' +}); assert.sameValue(target.bind().bind().name, 'bound bound target'); verifyNotEnumerable(target.bind().bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/instance-name-non-string.js b/test/built-ins/Function/prototype/bind/instance-name-non-string.js index 4ef412a19c219dde9ba7130639c56d814d4258f5..63e74038dcaa0d809d8e71b23eb843b94ed8e0d6 100644 --- a/test/built-ins/Function/prototype/bind/instance-name-non-string.js +++ b/test/built-ins/Function/prototype/bind/instance-name-non-string.js @@ -16,42 +16,54 @@ features: [Symbol] var target; -target = Object.defineProperty(function() {}, 'name', { value: undefined }); +target = Object.defineProperty(function() {}, 'name', { + value: undefined +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: null }); +target = Object.defineProperty(function() {}, 'name', { + value: null +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: true }); +target = Object.defineProperty(function() {}, 'name', { + value: true +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: Symbol('s') }); +target = Object.defineProperty(function() {}, 'name', { + value: Symbol('s') +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: 23 }); +target = Object.defineProperty(function() {}, 'name', { + value: 23 +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: {} }); +target = Object.defineProperty(function() {}, 'name', { + value: {} +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/instance-name.js b/test/built-ins/Function/prototype/bind/instance-name.js index 1750d98d1b51927dbfcf6c818e8e7c6c2a614f34..b69f8c655713dacc8f06c104f780230d1c399dfc 100644 --- a/test/built-ins/Function/prototype/bind/instance-name.js +++ b/test/built-ins/Function/prototype/bind/instance-name.js @@ -12,7 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -var target = Object.defineProperty(function() {}, 'name', { value: 'target' }); +var target = Object.defineProperty(function() {}, 'name', { + value: 'target' +}); assert.sameValue(target.bind().name, 'bound target'); verifyNotEnumerable(target.bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js index 76e163d465c0f357a52ed8b6f1732834b19aae6a..1963de281a9b1d3911d723969e642411e80a30e0 100644 --- a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js +++ b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js @@ -23,7 +23,7 @@ var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; -var D = function(){}.bind(); +var D = function() {}.bind(); var d = Reflect.construct(D, [], C); diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js index a4f618bb16934cca4f8ec0d6e9edaf324b9eeaf9..a7e12df0d91ee61ef3e539d3b7ae0a03615b32c1 100644 --- a/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js +++ b/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ - function fun() { - return (this instanceof String); - } +function fun() { + return (this instanceof String); +} assert.sameValue(fun.call(""), false, 'fun.call("")'); diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js index 687003b5cdc4b81ed995df59f0d2fceda5c1d0bd..27563643a11fb70af71bdc52fc148e970e28a8eb 100644 --- a/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js +++ b/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ - function fun() { - return (this instanceof Number); - } +function fun() { + return (this instanceof Number); +} assert.sameValue(fun.call(-12), false, 'fun.call(-12)'); diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js index a92bdea11d39815862b8b41dec1f529f9f505a58..cc7fb1998631955f35349b22f3ebf559bd0f5f81 100644 --- a/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js +++ b/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js @@ -10,8 +10,8 @@ description: > flags: [onlyStrict] ---*/ - function fun() { - return (this instanceof Boolean); - } +function fun() { + return (this instanceof Boolean); +} assert.sameValue(fun.call(false), false, 'fun.call(false)'); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js index dd8819d49b15ba6e63866103541a6b0cef2d81b3..bf2aa724c083e2ccfb74a310ee247ceed4043b07 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js @@ -17,7 +17,9 @@ if (!(Function.prototype.call.hasOwnProperty('length'))) { var obj = Function.prototype.call.length; -verifyNotWritable(Function.prototype.call, "length", null, function(){return "shifted";}); +verifyNotWritable(Function.prototype.call, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Function.prototype.call.length !== obj) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js index c9be0531d247833931d92985e7a45766cd29a504..830678ae904aeea38ee0a3d122354435bc760457 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js @@ -21,7 +21,7 @@ if (Function.prototype.call.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Function.prototype.call){ - if (p==="length") +for (var p in Function.prototype.call) { + if (p === "length") $ERROR('#2: the Function.prototype.call.length property has the attributes DontEnum'); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js index a75e65fcb20711771374e66e49154571347ddd6c..dde3a6c71e09b5deeee353814ad962c25b859ee3 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js @@ -11,5 +11,5 @@ description: > //CHECK#1 if (Function.prototype.call.prototype !== undefined) { - $ERROR('#1: Function.prototype.call has not prototype property'+Function.prototype.call.prototype); + $ERROR('#1: Function.prototype.call has not prototype property' + Function.prototype.call.prototype); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js index 2bde783ddc2ee0a6bf599bc35a6bf1ae0386bcf6..383666a1368aecbc36d21e0508a8ffd6fe17936a 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js @@ -17,7 +17,7 @@ if (typeof re === 'function') { try { Function.prototype.bind.call(re, undefined); $ERROR('#1: If IsCallable(func) is false, ' + - 'then (bind should) throw a TypeError exception'); + 'then (bind should) throw a TypeError exception'); } catch (e) { if (!(e instanceof TypeError)) { $ERROR('#1: TypeError expected. Actual: ' + e); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js index 993391795970e1df8ef0c98e12b152fe61a84c47..7d3f3dddb08494addffce4f5eed63435563197ea 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js @@ -12,11 +12,11 @@ description: > property. Prototype of the object is Function() ---*/ -var proto=Function(); +var proto = Function(); -function FACTORY(){}; +function FACTORY() {}; -FACTORY.prototype=proto; +FACTORY.prototype = proto; var obj = new FACTORY; @@ -31,6 +31,6 @@ try { $ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); + $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js index a07cbd0ef7d5c354092afa54e13680acab276955..de04b43dd3ede9f8e6aa7734d60943fb28c88ec8 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js @@ -12,9 +12,9 @@ description: > property. Prototype of the object is Function.prototype ---*/ -function FACTORY(){}; +function FACTORY() {}; -FACTORY.prototype=Function.prototype; +FACTORY.prototype = Function.prototype; var obj = new FACTORY; @@ -29,6 +29,6 @@ try { $ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); + $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown'); } } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js index 45f06ff71aca056ceacf8a28c2152d64960449eb..a6c9d6eadec9e528702c4842cd3780d09c46b584 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js @@ -7,7 +7,7 @@ es5id: 15.3.4.4_A2_T2 description: Checking f.call.length, where f is new Function ---*/ -var f=new Function; +var f = new Function; //CHECK#1 if (typeof f.call !== "function") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js index de55a0129784a9ecdd4d9826f8a57cc16cd4e581..df370cdeeeaa67e1e2e3f8e44db94f2f49cabd48 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js @@ -11,7 +11,7 @@ description: > declaration ---*/ -function FACTORY(){ +function FACTORY() { Function("this.feat=\"in da haus\"").call(); }; diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js index 20a4d2fad110ef7226f4e28f59d51dfad1004935..297d48abf7ddcbe4377ab2936f3fe0e18d209b66 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js @@ -12,8 +12,10 @@ description: > flags: [noStrict] ---*/ -function FACTORY(){ - (function(){this.feat="kamon beyba"}).call(null); +function FACTORY() { + (function() { + this.feat = "kamon beyba" + }).call(null); }; var obj = new FACTORY; diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js index b31ef5ae4ba983fe5e6e07f0670d5efada88b569..d6a3e721b173e207dd769874bddfcb5101b305c2 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js @@ -11,7 +11,7 @@ description: > declaration ---*/ -(function FACTORY(){ +(function FACTORY() { Function("this.feat=\"in da haus\"").call(void 0); })(); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js index 06362d1a02eda8344c0aa3160a4e1157b7487a5d..60ec21eb9cfe3f591d81b25f82ea767536dd00d4 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js @@ -12,8 +12,10 @@ description: > flags: [noStrict] ---*/ -(function FACTORY(){ - (function(){this.feat="kamon beyba"}).call(undefined); +(function FACTORY() { + (function() { + this.feat = "kamon beyba" + }).call(undefined); })(); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js index ead02bfc226fadb81dfaddb2269406757945edd8..94e0aecc72bcb0bc567e5f25940057a7b093c192 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A3_T9 description: Checking by using eval, argument at call function is void 0 ---*/ -eval( " Function(\"this.feat=1\").call(void 0) " ); +eval(" Function(\"this.feat=1\").call(void 0) "); //CHECK#1 diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js index 7e09b390290395a0c03dded87f3ba6226e0fa714..91db8755e32131251102252dafe071b9e5187ba6 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T1 description: thisArg is number ---*/ -var obj=1; +var obj = 1; var retobj = Function("this.touched= true; return this;").call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js index dd6f658cecd4556d88cce6e802acc2f7f7d7383e..84b8fc456eb1587826cc0bd5e827e8af21830a32 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T2 description: thisArg is boolean true ---*/ -var obj=true; +var obj = true; var retobj = new Function("this.touched= true; return this;").call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js index d718672225286b92e2cad30e64350f1e6fe02b9d..b4d2167fd912b6a8d1af98027b2697b31117e5a5 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js @@ -10,9 +10,12 @@ description: thisArg is string flags: [noStrict] ---*/ -var obj="soap"; +var obj = "soap"; -var retobj = ( function(){this.touched= true; return this;} ).call(obj); +var retobj = (function() { + this.touched = true; + return this; +}).call(obj); //CHECK#1 if (typeof obj.touched !== "undefined") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js index b0799cf004ec7c592d1a9c99560b502188804e64..23fa06219026aba0e7300fc284a2b0fd11e4716a 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js @@ -10,7 +10,10 @@ description: thisArg is function variable that return this flags: [noStrict] ---*/ -var f = function(){this.touched= true; return this;}; +var f = function() { + this.touched = true; + return this; +}; var retobj = f.call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js index a2e307928e67e7d4a34068538962e4696451533f..9857f09e4e113091c341b641d0f6aed7686c5854 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js @@ -9,9 +9,11 @@ es5id: 15.3.4.4_A5_T5 description: thisArg is function variable ---*/ -var f = function(){this.touched= true;}; +var f = function() { + this.touched = true; +}; -var obj={}; +var obj = {}; f.call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js index e8fe5d4d80b01c2ae7e123114879a7dd68a197bc..7ffe1a4d652546a1ba7cbaa77c6eaf12c9f585fa 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js @@ -9,9 +9,11 @@ es5id: 15.3.4.4_A5_T6 description: thisArg is new String() ---*/ -var obj=new String("soap"); +var obj = new String("soap"); -( function(){this.touched= true;}).call(obj); +(function() { + this.touched = true; +}).call(obj); //CHECK#1 if (!(obj.touched)) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js index 7cbce9229a87a82bc17eacdd12c85d189765d6f0..9dc90b7caa00e99c925def0cd0601ec1a7be0455 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T7 description: thisArg is new Number() ---*/ -var obj=new Number(1); +var obj = new Number(1); Function("this.touched= true;").call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js index debf8239639a6907abab81f8438c90656d3ba6d9..9955eb6d5943fc676b4284002f0a72abc3bad048 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T8 description: thisArg is Function() ---*/ -var obj=Function(); +var obj = Function(); new Function("this.touched= true; return this;").call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js index f8e0aba158aa6981f61895de4bcafaa6eb99ad28..0890634757a0620ae501bf741b17190d093a04f9 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A6_T1 description: Argunemts of call function is (null,[1]) ---*/ -Function("a1,a2,a3","this.shifted=a1;").call(null,[1]); +Function("a1,a2,a3", "this.shifted=a1;").call(null, [1]); //CHECK#1 if (this["shifted"].constructor !== Array) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js index fed1b7aad0736ac7664adc16f1abc65ca40c3e64..be97b1f58360aa5b29e2446768ddc93632856233 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js @@ -11,11 +11,11 @@ description: > inside function call without declaration used ---*/ -var obj={}; +var obj = {}; -(function (){ - Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(obj,arguments,"","2"); -})("",4,2,"a"); +(function() { + Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(obj, arguments, "", "2"); +})("", 4, 2, "a"); //CHECK#1 if (obj["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js index 989080fa01886ba3935e4ebd8fa73eea33dc7154..5620f40771456087b6b532c587014b94c8ec69b2 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js @@ -9,7 +9,7 @@ es5id: 15.3.4.4_A6_T2 description: Argunemts of call function is (null,[3,2,1]) ---*/ -new Function("a1,a2","a3","this.shifted=a1;").call(null,[3,2,1]); +new Function("a1,a2", "a3", "this.shifted=a1;").call(null, [3, 2, 1]); //CHECK#1 if (this["shifted"].length !== 3) { @@ -17,6 +17,6 @@ if (this["shifted"].length !== 3) { } //CHECK#2 -if ((this["shifted"][0] !== 3)||(this["shifted"][1] !== 2)||(this["shifted"][2] !== 1)) { +if ((this["shifted"][0] !== 3) || (this["shifted"][1] !== 2) || (this["shifted"][2] !== 1)) { $ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object'); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js index b70556e03962347203590e5344b6b179de22da91..05368a6c2ce7e7daa24d6e680b6484783282ebcd 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js @@ -11,13 +11,17 @@ description: > Array("nine","inch","nails")) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -Function(p,"a2,a3","this.shifted=a1;").call(obj, new Array("nine","inch","nails")); +Function(p, "a2,a3", "this.shifted=a1;").call(obj, new Array("nine", "inch", "nails")); //CHECK#1 if (obj["shifted"].length !== 3) { @@ -25,7 +29,7 @@ if (obj["shifted"].length !== 3) { } //CHECK#2 -if ((obj["shifted"][0] !== "nine")||(obj["shifted"][1] !== "inch")||(obj["shifted"][2] !== "nails")) { +if ((obj["shifted"][0] !== "nine") || (obj["shifted"][1] !== "inch") || (obj["shifted"][2] !== "nails")) { $ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object'); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js index 5b51b1d8ed6e8086fc0e489ef995f522b17c697c..3125575141fe5e2cb3ead64c198588e5f17ef972 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js @@ -11,13 +11,19 @@ description: > arguments;})("a","b","c","d"),"",2) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -new Function(p,p,p, "this.shifted=a3+a2+a1.length;").call( obj,( function(){return arguments;})("a","b","c","d"),"",2 ); +new Function(p, p, p, "this.shifted=a3+a2+a1.length;").call(obj, (function() { + return arguments; +})("a", "b", "c", "d"), "", 2); //CHECK#1 if (obj["shifted"] !== "24") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js index b049d45ce8b7ac43d0a7e8ffba578858d700190a..ac798300c24376932b636fc9447fc47ab16e1db8 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js @@ -11,11 +11,11 @@ description: > function declaration used ---*/ -function FACTORY(){ - Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(null,arguments,"",2); +function FACTORY() { + Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(null, arguments, "", 2); } -var obj=new FACTORY("",1,2,"A"); +var obj = new FACTORY("", 1, 2, "A"); //CHECK#1 if (this["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js index 597feba635036826bc671a95d5e2da0feb867a16..7956ab5acf0b671abba987300e8858619b82b770 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js @@ -11,11 +11,11 @@ description: > function declaration used ---*/ -function FACTORY(){ - Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(this,arguments,"",2); +function FACTORY() { + Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(this, arguments, "", 2); } -var obj=new FACTORY("",4,2,"A"); +var obj = new FACTORY("", 4, 2, "A"); //CHECK#1 if (obj["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js index cfce0647d9fb14510480381a4d17755388b24bba..2c29c4725120e23595f43440a1a8a3cad6e99931 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js @@ -11,9 +11,9 @@ description: > function call without declaration used ---*/ -(function (){ - Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(null,arguments,"",2); -})("",1,2,true); +(function() { + Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(null, arguments, "", 2); +})("", 1, 2, true); //CHECK#1 if (this["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js index 9601af80cd4907940d92967762f57399c5ed90cd..1978d9acf018a278fbfe1db7c2f515daabcf6eef 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js @@ -11,9 +11,9 @@ description: > function call without declaration used ---*/ -(function (){ - Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(this,arguments,"",2); -})("",4,2,null); +(function() { + Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(this, arguments, "", 2); +})("", 4, 2, null); //CHECK#2 if (this["shifted"] !== "42") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js index d93a3e2a192948bfe264288ea3898fc6246ad8df..99bf13b9d5a00bfa94a9b43041e0a0d2cfb83005 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js @@ -11,13 +11,13 @@ description: > inside function declaration used ---*/ -function FACTORY(){ +function FACTORY() { var obj = {}; - Function("a1,a2,a3","this.shifted=a1+a2.length+a3;").call(obj,"",arguments,2); + Function("a1,a2,a3", "this.shifted=a1+a2.length+a3;").call(obj, "", arguments, 2); return obj; } -var obj=new FACTORY("",1,2,void 0); +var obj = new FACTORY("", 1, 2, void 0); //CHECK#1 if (typeof this["shifted"] !== "undefined") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js index f3dee9603596da040623746cf807fa9a1f1c35ba..7cec40c1308cb5bdc45d493b5084b732de7a26ee 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js @@ -8,7 +8,7 @@ description: Checking if creating "new (Function("this.p1=1").call)" fails ---*/ try { - var obj = new (Function("this.p1=1").call); + var obj = new(Function("this.p1=1").call); $ERROR('#1: Function.prototype.call can\'t be used as [[Construct]] caller'); } catch (e) { if (!(e instanceof TypeError)) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js index d88e10c0209ff77cad1657f039bfeef88c282747..8bf0e67bb3240d3384e05f304b0aa1ae43e86ba2 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js @@ -11,12 +11,12 @@ description: > //CHECK#1 try { - var obj = new (Function("function f(){this.p1=1;};return f").call()); + var obj = new(Function("function f(){this.p1=1;};return f").call()); } catch (e) { $ERROR('#1: Function.prototype.call can\'t be used as [[Construct]] caller'); } //CHECK#2 -if (obj.p1!== 1) { +if (obj.p1 !== 1) { $ERROR('#2: Function.prototype.call can\'t be used as [[Construct]] caller'); } diff --git a/test/built-ins/Function/prototype/restricted-property-arguments.js b/test/built-ins/Function/prototype/restricted-property-arguments.js index 5010b3deefd5379e473e7bd71df5b2033f83405b..1faf047bafe0b65c532e2c58e95a36b9dc5aa3bb 100644 --- a/test/built-ins/Function/prototype/restricted-property-arguments.js +++ b/test/built-ins/Function/prototype/restricted-property-arguments.js @@ -17,7 +17,7 @@ assert.sameValue(typeof descriptor.set, 'function', '%FunctionPrototype%.argumen assert.sameValue(descriptor.get, descriptor.set, '%FunctionPrototype%.arguments getter/setter are both %ThrowTypeError%'); assert.throws(TypeError, function() { - return FunctionPrototype.arguments; + return FunctionPrototype.arguments; }); assert.throws(TypeError, function() { diff --git a/test/built-ins/Function/prototype/restricted-property-caller.js b/test/built-ins/Function/prototype/restricted-property-caller.js index bd40032983d7468ee713a64b45a2ad50438f573f..e069ee7c9fab5fd941f46e7580dd6c9aa3e68830 100644 --- a/test/built-ins/Function/prototype/restricted-property-caller.js +++ b/test/built-ins/Function/prototype/restricted-property-caller.js @@ -18,7 +18,7 @@ assert.sameValue(typeof descriptor.set, 'function', '%FunctionPrototype%.caller assert.sameValue(descriptor.get, descriptor.set, '%FunctionPrototype%.caller getter/setter are both %ThrowTypeError%'); assert.throws(TypeError, function() { - return FunctionPrototype.caller; + return FunctionPrototype.caller; }); assert.throws(TypeError, function() { diff --git a/test/built-ins/Function/prototype/toString/AsyncFunction.js b/test/built-ins/Function/prototype/toString/AsyncFunction.js index 804d9e17f088ceb41bd68fb6a25312af5ed64db8..c9d1d4495cc195cc260d857e0b7fe4b069575306 100644 --- a/test/built-ins/Function/prototype/toString/AsyncFunction.js +++ b/test/built-ins/Function/prototype/toString/AsyncFunction.js @@ -11,5 +11,5 @@ features: [async-functions] ---*/ async function f() {} var AsyncFunction = f.constructor; -var g = /* before */AsyncFunction("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */; +var g = /* before */ AsyncFunction("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ; assert.sameValue(g.toString(), "async function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}"); diff --git a/test/built-ins/Function/prototype/toString/AsyncGenerator.js b/test/built-ins/Function/prototype/toString/AsyncGenerator.js index 43cce215e93cd021b4b5bc8f2c565c13c64b15de..de753afddb050b4226887a7c3a92de18303f189f 100644 --- a/test/built-ins/Function/prototype/toString/AsyncGenerator.js +++ b/test/built-ins/Function/prototype/toString/AsyncGenerator.js @@ -12,5 +12,5 @@ features: [async-iteration] async function* f() {} var AsyncGenerator = f.constructor; -var g = /* before */AsyncGenerator("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */; +var g = /* before */ AsyncGenerator("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ; assert.sameValue(g.toString(), "async function* anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}"); diff --git a/test/built-ins/Function/prototype/toString/Function.js b/test/built-ins/Function/prototype/toString/Function.js index 2f0362a8d89961de2e3fe9317a1e39761ec78831..dd75ab84fa4b55edd21df2b85a0ebb792d0fadab 100644 --- a/test/built-ins/Function/prototype/toString/Function.js +++ b/test/built-ins/Function/prototype/toString/Function.js @@ -6,6 +6,6 @@ esid: sec-createdynamicfunction description: Function.prototype.toString on a function created with the Function constructor ---*/ -let f = /* before */Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //")/* after */; +let f = /* before */ Function("a", " /* a */ b, c /* b */ //", "/* c */ ; /* d */ //") /* after */ ; assert.sameValue(f.toString(), "function anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ ; /* d */ //\n}"); diff --git a/test/built-ins/Function/prototype/toString/GeneratorFunction.js b/test/built-ins/Function/prototype/toString/GeneratorFunction.js index 523f1cd2a7be6a876e4aa7e212d6e20a177d6595..35a5a7a7e6b206e21b255090b8727a499e225cdd 100644 --- a/test/built-ins/Function/prototype/toString/GeneratorFunction.js +++ b/test/built-ins/Function/prototype/toString/GeneratorFunction.js @@ -7,7 +7,7 @@ description: Function.prototype.toString on a generator function created with th features: [generators] ---*/ -let GeneratorFunction = Object.getPrototypeOf(function*(){}).constructor; -let g = /* before */GeneratorFunction("a", " /* a */ b, c /* b */ //", "/* c */ yield yield; /* d */ //")/* after */; +let GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; +let g = /* before */ GeneratorFunction("a", " /* a */ b, c /* b */ //", "/* c */ yield yield; /* d */ //") /* after */ ; assert.sameValue(g.toString(), "function* anonymous(a, /* a */ b, c /* b */ //\n) {\n/* c */ yield yield; /* d */ //\n}"); diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js index 7391b67ed71cba6fe5abf41e929bbca4e07eb3f1..99c46fb0ef80d313ba83c3bd8e992a36426e3d8a 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js @@ -17,7 +17,9 @@ if (!(Function.prototype.toString.hasOwnProperty('length'))) { var obj = Function.prototype.toString.length; -verifyNotWritable(Function.prototype.toString, "length", null, function(){return "shifted";}); +verifyNotWritable(Function.prototype.toString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Function.prototype.toString.length !== obj) { diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js index 4cba0c3b5448b4d5aa62d215e24f045dc59b73ef..5f367dd4570517f7f9488f5d1df213174c6860d9 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js @@ -12,7 +12,9 @@ description: > bound to that object. ---*/ -var obj = {toString: Function.prototype.toString}; +var obj = { + toString: Function.prototype.toString +}; assert.throws(TypeError, function() { String(obj); diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js index a3d4e3b16040cb3607e8722413b036437740a7ff..e8593794484ac5819ad8c43452a25dc17d04f1b0 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js @@ -11,5 +11,5 @@ description: > //CHECK#1 if (Function.prototype.toString.prototype !== undefined) { - $ERROR('#1: Function.prototype.toString has not prototype property'+Function.prototype.toString.prototype); + $ERROR('#1: Function.prototype.toString has not prototype property' + Function.prototype.toString.prototype); } diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js index b730a6ec2f1246fe7096d0e8a3f0a350cf25a194..23b8b0ee2eb59fd75ad8fb1b23d9290a55270206 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A8.js @@ -21,7 +21,7 @@ if (Function.prototype.toString.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Function.prototype.toString){ - if (p==="length") - $ERROR('#2: the Function.prototype.toString.length property has the attributes DontEnum'); +for (var p in Function.prototype.toString) { + if (p === "length") + $ERROR('#2: the Function.prototype.toString.length property has the attributes DontEnum'); } diff --git a/test/built-ins/Function/prototype/toString/arrow-function.js b/test/built-ins/Function/prototype/toString/arrow-function.js index 06990b14c5d027d27126848dbe18862f4ec6e4c9..62fab71aee3915f3f539a27797901d6106f10ce5 100644 --- a/test/built-ins/Function/prototype/toString/arrow-function.js +++ b/test/built-ins/Function/prototype/toString/arrow-function.js @@ -6,9 +6,10 @@ esid: sec-arrow-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on an arrow function ---*/ -let f = /* before */( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }/* after */; -let g = /* before */( /* a */ ) /* b */ => /* c */ 0/* after */; -let h = /* before */a /* a */ => /* b */ 0/* after */; +let f = /* before */ ( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ +} /* after */ ; +let g = /* before */ ( /* a */ ) /* b */ => /* c */ 0 /* after */ ; +let h = /* before */ a /* a */ => /* b */ 0 /* after */ ; assert.sameValue(f.toString(), "( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }"); assert.sameValue(g.toString(), "( /* a */ ) /* b */ => /* c */ 0"); diff --git a/test/built-ins/Function/prototype/toString/async-arrow-function.js b/test/built-ins/Function/prototype/toString/async-arrow-function.js index 39a2a038860d7fdd13b24431ad772a6fcf4591e3..1dff802ee0834fa7129948bfd47cd2765900924d 100644 --- a/test/built-ins/Function/prototype/toString/async-arrow-function.js +++ b/test/built-ins/Function/prototype/toString/async-arrow-function.js @@ -7,9 +7,10 @@ description: Function.prototype.toString on an async arrow function features: [async-functions] ---*/ -let f = /* before */async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }/* after */; -let g = /* before */async /* a */ ( /* b */ ) /* c */ => /* d */ 0/* after */; -let h = /* before */async /* a */ a /* b */ => /* c */ 0/* after */; +let f = /* before */ async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ +} /* after */ ; +let g = /* before */ async /* a */ ( /* b */ ) /* c */ => /* d */ 0 /* after */ ; +let h = /* before */ async /* a */ a /* b */ => /* c */ 0 /* after */ ; assert.sameValue(f.toString(), "async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }"); assert.sameValue(g.toString(), "async /* a */ ( /* b */ ) /* c */ => /* d */ 0"); diff --git a/test/built-ins/Function/prototype/toString/async-function-declaration.js b/test/built-ins/Function/prototype/toString/async-function-declaration.js index 4b909bbf7bd56023bbdc027720b929cb4e3df660..c1f62a5f04b7c2f96388f6a28f0714b9c989b3c0 100644 --- a/test/built-ins/Function/prototype/toString/async-function-declaration.js +++ b/test/built-ins/Function/prototype/toString/async-function-declaration.js @@ -8,6 +8,8 @@ description: Function.prototype.toString on an async function declaration features: [async-functions] ---*/ -/* before */async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ +/* before */ +async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ assert.sameValue(f.toString(), "async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-function-expression.js b/test/built-ins/Function/prototype/toString/async-function-expression.js index 6b7f26bd5c5e8ac34f27a25e28d8cf8758c17948..6d38d27461cbec4c59ddbe28771e2d8e8af028ac 100644 --- a/test/built-ins/Function/prototype/toString/async-function-expression.js +++ b/test/built-ins/Function/prototype/toString/async-function-expression.js @@ -8,8 +8,10 @@ description: Function.prototype.toString on an async function expression features: [async-functions] ---*/ -let f = /* before */async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */; -let g = /* before */async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */; +let f = /* before */ async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ ; +let g = /* before */ async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ +} /* after */ ; assert.sameValue(f.toString(), "async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); assert.sameValue(g.toString(), "async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-declaration.js b/test/built-ins/Function/prototype/toString/async-generator-declaration.js index 9a5bb3f3db9067c72681d58c43072730689029c2..f4bdcde60476fa2d0121b03bf2861299c26d7307 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-declaration.js +++ b/test/built-ins/Function/prototype/toString/async-generator-declaration.js @@ -7,6 +7,8 @@ description: Function.prototype.toString on an async generator declaration features: [async-iteration] ---*/ -/* before */async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */ +/* before */ +async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ +} /* after */ assert.sameValue(f.toString(), "async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-expression.js b/test/built-ins/Function/prototype/toString/async-generator-expression.js index 60a712820dc1fc42fcac2f8aa9ac574c14a4ccd5..1332f6c935ad54197aa1b2c1bccd2ecf6eabd26d 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-expression.js +++ b/test/built-ins/Function/prototype/toString/async-generator-expression.js @@ -7,8 +7,10 @@ description: Function.prototype.toString on an async generator expression features: [async-iteration] ---*/ -let f = /* before */async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */; -let g = /* before */async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */; +let f = /* before */ async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ +} /* after */ ; +let g = /* before */ async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ +} /* after */ ; assert.sameValue(f.toString(), "async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }"); assert.sameValue(g.toString(), "async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js index 03ac897e2cb708b28fbfb14b47536fc18a37ceaa..fbe7fd3a91f7bbb16b8a38112bb4c2c6a74c1d40 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -let f = class { static /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; -let g = class { static /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.g; -let h = class { static /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.h; +let f = class { + static /* before */ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.f; +let g = class { + static /* before */ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.g; +let h = class { + static /* before */ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js index 3c9848558311acb4245b56bb52c432aa26e5b74b..f51f2ee2cb2509289c288fec339bd7b8b3ea6e08 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -let f = class { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.f; -let g = class { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.prototype.g; -let h = class { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.prototype.h; +let f = class { /* before */ + async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.prototype.f; +let g = class { /* before */ + async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.prototype.g; +let h = class { /* before */ + async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.prototype.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js index 58d5835eba3385fbeb14f67a3a2d5f1eeb68e20a..bdbd186073c14c34ecea2e2e70a94e246b7e1dd0 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -class F { static /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } -class G { static /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } -class H { static /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } +class F { + static /* before */ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} +class G { + static /* before */ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +} +class H { + static /* before */ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +} let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js index 1001b983c51b9f08911f798f534302964bad5a16..acd8b9a52f0daa6eeeb39664ecb37d9ed47770e1 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -class F { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } -class G { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } -class H { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } +class F { /* before */ + async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} +class G { /* before */ + async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +} +class H { /* before */ + async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +} let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-object.js b/test/built-ins/Function/prototype/toString/async-generator-method-object.js index 58a274a8514299f924f6e9fd7a71e297fb265dee..f6b2760c5ded114cd7906bee412c80170807e173 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-object.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-object.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -let f = { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; -let g = { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.g; -let h = { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.h; +let f = { /* before */ + async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.f; +let g = { /* before */ + async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.g; +let h = { /* before */ + async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js b/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js index 8388c4dda5177accc41521635d62eee1532ad293..b2bc520eef156042970b843db2b63ba219e4200b 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js @@ -8,9 +8,15 @@ features: [async-functions] ---*/ let x = "h"; -let f = class { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; -let g = class { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; -let h = class { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; +let f = class { + static /* before */ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; +let g = class { + static /* before */ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.g; +let h = class { + static /* before */ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-method-class-expression.js index dcacd9c9dd957594c34044eba24e2bd698357097..a4c84fc76495c88d7457f53fceee4d0d8fb4b164 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-expression.js @@ -8,9 +8,15 @@ features: [async-functions] ---*/ let x = "h"; -let f = class { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f; -let g = class { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.g; -let h = class { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.h; +let f = class { /* before */ + async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.prototype.f; +let g = class { /* before */ + async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.prototype.g; +let h = class { /* before */ + async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.prototype.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js b/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js index 56e27d0ead74093a3deb062d7111ee16c5a2783e..641489fbf95735018bbe120ab37f41ad302aae95 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js @@ -8,9 +8,15 @@ features: [async-functions] ---*/ let x = "h"; -class F { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } -class G { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } -class H { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class F { + static /* before */ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +} +class G { + static /* before */ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} +class H { + static /* before */ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/async-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-method-class-statement.js index 50f512607f930e1492c66545c5e8078158e49c6d..c5a00b124bb2680ef5b04ea98e7fa9010014ed5d 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-statement.js @@ -8,9 +8,15 @@ features: [async-functions] ---*/ let x = "h"; -class F { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } -class G { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } -class H { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class F { /* before */ + async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +} +class G { /* before */ + async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} +class H { /* before */ + async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/async-method-object.js b/test/built-ins/Function/prototype/toString/async-method-object.js index de117ed4f1166693d4749eb4eac2af3852b7fd98..99e6e76702398451c216d9b74503882f2a5bec88 100644 --- a/test/built-ins/Function/prototype/toString/async-method-object.js +++ b/test/built-ins/Function/prototype/toString/async-method-object.js @@ -9,9 +9,15 @@ features: [async-functions] ---*/ let x = "h"; -let f = { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; -let g = { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; -let h = { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; +let f = { /* before */ + async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; +let g = { /* before */ + async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.g; +let h = { /* before */ + async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/bound-function.js b/test/built-ins/Function/prototype/toString/bound-function.js index b6ceb116ef580e2e2c32e2412a44dcc77ac36c23..f8eca49a5832301a0c5c494dc522062e747c749b 100644 --- a/test/built-ins/Function/prototype/toString/bound-function.js +++ b/test/built-ins/Function/prototype/toString/bound-function.js @@ -7,6 +7,6 @@ description: Function.prototype.toString on bound function exotic objects includes: [nativeFunctionMatcher.js] ---*/ -let f = function(){}.bind(null); +let f = function() {}.bind(null); assert(NATIVE_FUNCTION_RE.test("" + f), "looks pretty much like a NativeFunction"); diff --git a/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js b/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js index dbf60ee83a311155bbcb68726b0417299d8ffc43..b2956cf5683bf977227bd4717edd1115c9dcdad2 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js @@ -6,6 +6,7 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (with complex heritage) ---*/ -/* before */class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }/* after */ +/* before */ +class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ } /* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js b/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js index c3b4b264f6f82b5a61bee4cf7c94bb05b4aca095..a015ab88d31ce9d1927fe3e1af4c6862a67c97aa 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js @@ -6,8 +6,13 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (explicit constructor) ---*/ -/* before */class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }/* after */ +/* before */ +class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ + constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ + } /* k */ + m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ +} /* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }"); -function B(){} +function B() {} diff --git a/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js b/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js index 9dea84bb61cd8513650596e6127bfc62b0affde0..bb89e296914a10f014b8d89b986671d719ac16dd 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js @@ -6,9 +6,14 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (implicit constructor) ---*/ -/* before */class /* a */ A /* b */ { /* c */ }/* after */ -/* before */class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }/* after */ -/* before */class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ }/* after */ +/* before */ +class /* a */ A /* b */ { /* c */ } /* after */ +/* before */ +class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ } /* after */ +/* before */ +class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ + m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ +} /* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ { /* c */ }"); assert.sameValue(B.toString(), "class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }"); diff --git a/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js b/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js index 93d74484796e2d4dbee23899b9a575301d95d2e9..c6fdcc5b12c0a75210e6f6637ba9965afe1f5c9d 100644 --- a/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js @@ -6,8 +6,12 @@ esid: sec-class-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a class expression (explicit constructor) ---*/ -let A = /* before */class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }/* after */; +let A = /* before */ class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ + constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ + } /* k */ + m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ +} /* after */ ; assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }"); -function B(){} +function B() {} diff --git a/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js b/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js index 91ab621341f380eadc8da033cfc09714cd464f79..07b2a9a009f687ad3489aaf6528fec1c08158c87 100644 --- a/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js @@ -6,9 +6,11 @@ esid: sec-class-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a class expression (implicit constructor) ---*/ -let A = /* before */class /* a */ A /* b */ { /* c */ }/* after */; -let B = /* before */class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }/* after */; -let C = /* before */class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ }/* after */; +let A = /* before */ class /* a */ A /* b */ { /* c */ } /* after */ ; +let B = /* before */ class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ } /* after */ ; +let C = /* before */ class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ + m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ +} /* after */ ; assert.sameValue(A.toString(), "class /* a */ A /* b */ { /* c */ }"); assert.sameValue(B.toString(), "class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js b/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js index 7ff7971e01f61b672f9cd148764b39b4ee74076b..3b5acaa73ec6a790476b0c8fdae952cff65dbb4f 100644 --- a/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js +++ b/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js @@ -6,6 +6,9 @@ esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString on a function with a non-simple parameter list ---*/ -/* before */function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }/* after */ +/* before */ +function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ + b /* i */ = /* j */ 0 /* k */ +} /* l */ ) /* m */ { /* n */ } /* after */ assert.sameValue(f.toString(), "function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-declaration.js b/test/built-ins/Function/prototype/toString/function-declaration.js index a0446ba712c5f25989ed01531a0dd074f966de60..0d2db3877a2348c9f8d0bc2f1862de86d410e918 100644 --- a/test/built-ins/Function/prototype/toString/function-declaration.js +++ b/test/built-ins/Function/prototype/toString/function-declaration.js @@ -6,6 +6,8 @@ esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString on a function declaration ---*/ -/* before */function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ +/* before */ +function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ assert.sameValue(f.toString(), "function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-expression.js b/test/built-ins/Function/prototype/toString/function-expression.js index b1bcedaf49414adf4369caa834041065cf5d262f..5c67dd8af1252f59560edce853ee27db9f3b5097 100644 --- a/test/built-ins/Function/prototype/toString/function-expression.js +++ b/test/built-ins/Function/prototype/toString/function-expression.js @@ -6,8 +6,10 @@ esid: sec-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a function expression ---*/ -let f = /* before */function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */; -let g = /* before */function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */; +let f = /* before */ function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ ; +let g = /* before */ function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ +} /* after */ ; assert.sameValue(f.toString(), "function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); assert.sameValue(g.toString(), "function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-function-declaration.js b/test/built-ins/Function/prototype/toString/generator-function-declaration.js index 133f9af8cb0490d6e9bfb0daa8fab1df3cafbd1e..cab7f840d5febfda77f569d8ae5cebfa871b8464 100644 --- a/test/built-ins/Function/prototype/toString/generator-function-declaration.js +++ b/test/built-ins/Function/prototype/toString/generator-function-declaration.js @@ -6,6 +6,8 @@ esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionob description: Function.prototype.toString on a generator function declaration ---*/ -/* before */function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */ +/* before */ +function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ +} /* after */ assert.sameValue(g.toString(), "function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-function-expression.js b/test/built-ins/Function/prototype/toString/generator-function-expression.js index d175055ec17f235644060352f833aa4b801101e0..6d1dae971ef822a1b28b482d6d4b0a6ee221bbda 100644 --- a/test/built-ins/Function/prototype/toString/generator-function-expression.js +++ b/test/built-ins/Function/prototype/toString/generator-function-expression.js @@ -6,8 +6,10 @@ esid: sec-generator-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a generator function expression ---*/ -let f = /* before */function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */ -let g = /* before */function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ +let f = /* before */ function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ +} /* after */ +let g = /* before */ function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ assert.sameValue(f.toString(), "function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); assert.sameValue(g.toString(), "function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-method.js b/test/built-ins/Function/prototype/toString/generator-method.js index f5cb5d2187ec6aa9119185e3a1734ad58be2265b..041fcbcc6f60a21aecff2e6b04d50e98a40c66ff 100644 --- a/test/built-ins/Function/prototype/toString/generator-method.js +++ b/test/built-ins/Function/prototype/toString/generator-method.js @@ -7,9 +7,12 @@ description: Function.prototype.toString on a generator method ---*/ let x = "h"; -let f = { /* before */* /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }.f; -let g = { /* before */* /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; -let h = { /* before */* /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; +let f = { /* before */ * /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +}.f; +let g = { /* before */ * /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.g; +let h = { /* before */ * /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.h; assert.sameValue(f.toString(), "* /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "* /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-expression-static.js b/test/built-ins/Function/prototype/toString/getter-class-expression-static.js index 009d92127ba6b1b66489ef907900d50530081243..e220cf4352939cad33310f75d1bfedaf57feb88a 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/getter-class-expression-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class; static) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }, "f").get; -let g = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "g").get; -let h = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "h").get; +let f = Object.getOwnPropertyDescriptor(class { + static /* before */ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +}, "f").get; +let g = Object.getOwnPropertyDescriptor(class { + static /* before */ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}, "g").get; +let h = Object.getOwnPropertyDescriptor(class { + static /* before */ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-expression.js b/test/built-ins/Function/prototype/toString/getter-class-expression.js index 7b3eef410a87952b256315ffcd93259c288fe7d9..b5e1d9d695101b2b46cc4a60050d1e7fbee6176c 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-expression.js +++ b/test/built-ins/Function/prototype/toString/getter-class-expression.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }.prototype, "f").get; -let g = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype, "g").get; -let h = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype, "h").get; +let f = Object.getOwnPropertyDescriptor(class { /* before */ + get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +}.prototype, "f").get; +let g = Object.getOwnPropertyDescriptor(class { /* before */ + get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.prototype, "g").get; +let h = Object.getOwnPropertyDescriptor(class { /* before */ + get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.prototype, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-statement-static.js b/test/built-ins/Function/prototype/toString/getter-class-statement-static.js index 4ac72bccdd86c5ad7b4e2d24374078fba844689b..411a51cbdc5542d48bd1a3cee9f527a7e47e83c5 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/getter-class-statement-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class; static) ---*/ let x = "h"; -class F { static /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ } -class G { static /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } -class H { static /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class F { + static /* before */ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +} +class G { + static /* before */ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} +class H { + static /* before */ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} let f = Object.getOwnPropertyDescriptor(F, "f").get; let g = Object.getOwnPropertyDescriptor(G, "g").get; diff --git a/test/built-ins/Function/prototype/toString/getter-class-statement.js b/test/built-ins/Function/prototype/toString/getter-class-statement.js index 83139c33c4fe8cfe394f0b279d149740beec7f46..768500ad2a2891aad7d58ccb03a93c39271aefe4 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-statement.js +++ b/test/built-ins/Function/prototype/toString/getter-class-statement.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class) ---*/ let x = "h"; -class F { /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ } -class G { /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } -class H { /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class F { /* before */ + get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +} +class G { /* before */ + get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} +class H { /* before */ + get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} let f = Object.getOwnPropertyDescriptor(F.prototype, "f").get; let g = Object.getOwnPropertyDescriptor(G.prototype, "g").get; diff --git a/test/built-ins/Function/prototype/toString/getter-object.js b/test/built-ins/Function/prototype/toString/getter-object.js index 3e794d04bdff54e61fd306692d2abb33088d3faf..2a7625cd9dd0654555cb9342b86834b1af499fb1 100644 --- a/test/built-ins/Function/prototype/toString/getter-object.js +++ b/test/built-ins/Function/prototype/toString/getter-object.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (object) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor({ /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }, "f").get; -let g = Object.getOwnPropertyDescriptor({ /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "g").get; -let h = Object.getOwnPropertyDescriptor({ /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "h").get; +let f = Object.getOwnPropertyDescriptor({ /* before */ + get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +}, "f").get; +let g = Object.getOwnPropertyDescriptor({ /* before */ + get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}, "g").get; +let h = Object.getOwnPropertyDescriptor({ /* before */ + get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/intrinsics.js b/test/built-ins/Function/prototype/toString/intrinsics.js index dc13195961869b906bee4af89bf12f5da86f807c..61cbff78be4416845d4f2e4c0a24722d0c3f19ee 100644 --- a/test/built-ins/Function/prototype/toString/intrinsics.js +++ b/test/built-ins/Function/prototype/toString/intrinsics.js @@ -8,11 +8,48 @@ includes: [nativeFunctionMatcher.js] ---*/ let intrinsics = { - Array, ArrayBuffer, Boolean, DataView, Date, decodeURI, decodeURIComponent, encodeURI, - encodeURIComponent, Error, eval, EvalError, Float32Array, Float64Array, Function, Int8Array, - Int16Array, Int32Array, isFinite, isNaN, Map, Number, Object, parseFloat, parseInt, Promise, - Proxy, RangeError, ReferenceError, RegExp, Set, String, Symbol, SyntaxError, TypeError, - Uint8Array, Uint8ClampedArray, Uint16Array, Uint32Array, URIError, WeakMap, WeakSet, + Array, + ArrayBuffer, + Boolean, + DataView, + Date, + decodeURI, + decodeURIComponent, + encodeURI, + encodeURIComponent, + Error, + eval, + EvalError, + Float32Array, + Float64Array, + Function, + Int8Array, + Int16Array, + Int32Array, + isFinite, + isNaN, + Map, + Number, + Object, + parseFloat, + parseInt, + Promise, + Proxy, + RangeError, + ReferenceError, + RegExp, + Set, + String, + Symbol, + SyntaxError, + TypeError, + Uint8Array, + Uint8ClampedArray, + Uint16Array, + Uint32Array, + URIError, + WeakMap, + WeakSet, }; for (let intrinsicName in intrinsics) { diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js index 93f653936a378045bcc33fc81b034339cd789218..8b362356f21b154d55099ce244b45850afa08c47 100644 --- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js +++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js @@ -1,36 +1,36 @@ -// Copyright (C) 2016 Michael Ficarra. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject -description: Function.prototype.toString line terminator normalisation (CR-LF) -info: | - Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. - This file uses (Carriage Return, Line Feed) sequences as line terminators. ----*/ - -// before -function -// a -f -// b -( -// c -x -// d -, -// e -y -// f -) -// g -{ -// h -; -// i -; -// j -} -// after - -assert.sameValue(f.toString(), "function\r\n// a\r\nf\r\n// b\r\n(\r\n// c\r\nx\r\n// d\r\n,\r\n// e\r\ny\r\n// f\r\n)\r\n// g\r\n{\r\n// h\r\n;\r\n// i\r\n;\r\n// j\r\n}"); +// Copyright (C) 2016 Michael Ficarra. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject +description: Function.prototype.toString line terminator normalisation (CR-LF) +info: | + Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. + This file uses (Carriage Return, Line Feed) sequences as line terminators. +---*/ + +// before +function +// a +f +// b +( + // c + x + // d + , + // e + y + // f +) +// g +{ + // h + ; + // i + ; + // j +} +// after + +assert.sameValue(f.toString(), "function\r\n// a\r\nf\r\n// b\r\n(\r\n// c\r\nx\r\n// d\r\n,\r\n// e\r\ny\r\n// f\r\n)\r\n// g\r\n{\r\n// h\r\n;\r\n// i\r\n;\r\n// j\r\n}"); diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js index 4e55706f6435b07e62531f2aea66930b6fb066fa..d71053779a0c033efd2be64456da7cf17f566b47 100644 --- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js +++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js @@ -1 +1,36 @@ -// Copyright (C) 2016 Michael Ficarra. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString line terminator normalisation (CR) info: | Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. This file uses Carriage Return characters as line terminators. ---*/ // before function // a f // b ( // c x // d , // e y // f ) // g { // h ; // i ; // j } // after assert.sameValue(f.toString(), "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}"); +// Copyright (C) 2016 Michael Ficarra. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject +description: Function.prototype.toString line terminator normalisation (CR) +info: | + Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. + This file uses Carriage Return characters as line terminators. +---*/ + +// before +function +// a +f +// b +( + // c + x + // d + , + // e + y + // f +) +// g +{ + // h + ; + // i + ; + // j +} +// after + +assert.sameValue(f.toString(), "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}"); diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js index 69b78554302c00e78dbf1b43d67c8c0f7571b542..35d0a9cf5ca6d0d5ae9058dc473708982fad6a8a 100644 --- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js +++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js @@ -15,21 +15,21 @@ function f // b ( -// c -x -// d -, -// e -y -// f + // c + x + // d + , + // e + y + // f ) // g { -// h -; -// i -; -// j + // h + ; + // i + ; + // j } // after diff --git a/test/built-ins/Function/prototype/toString/method-class-expression-static.js b/test/built-ins/Function/prototype/toString/method-class-expression-static.js index 9a81f8f10f3cdb0ec601a2f82acfeba2e9842787..752c9d08503cd177372898bcab160bb6ccdc399c 100644 --- a/test/built-ins/Function/prototype/toString/method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/method-class-expression-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class; static) ---*/ let x = "h"; -let f = class { static /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; -let g = class { static /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.g; -let h = class { static /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.h; +let f = class { + static /* before */ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; +let g = class { + static /* before */ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.g; +let h = class { + static /* before */ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.h; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "[ /* a */ \"g\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); diff --git a/test/built-ins/Function/prototype/toString/method-class-expression.js b/test/built-ins/Function/prototype/toString/method-class-expression.js index cdfe9643ed8a1529af0ec4c6dbd448052a155983..a77b6b163034800e94207d26508f9d10e6ebd4ce 100644 --- a/test/built-ins/Function/prototype/toString/method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/method-class-expression.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class) ---*/ let x = "h"; -let f = class { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f; -let g = class { /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.g; -let h = class { /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.h; +let f = class { /* before */ + f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.prototype.f; +let g = class { /* before */ + [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.prototype.g; +let h = class { /* before */ + [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.prototype.h; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "[ /* a */ \"g\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); diff --git a/test/built-ins/Function/prototype/toString/method-class-statement-static.js b/test/built-ins/Function/prototype/toString/method-class-statement-static.js index f8e9817a8fa283d70e1e43d228ceaf669333bbac..5bb809870dbc99442c9e95b0c79fb063a4578497 100644 --- a/test/built-ins/Function/prototype/toString/method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/method-class-statement-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class; static) ---*/ let x = "h"; -class F { static /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } -class G { static /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } -class H { static /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } +class F { + static /* before */ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +} +class G { + static /* before */ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} +class H { + static /* before */ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/method-class-statement.js b/test/built-ins/Function/prototype/toString/method-class-statement.js index 3ee83d514c07af674acee833fefdd6adef9510ca..63f7e3871d35c32cfaf09e2a0cc3062ecbf04700 100644 --- a/test/built-ins/Function/prototype/toString/method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/method-class-statement.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class) ---*/ let x = "h"; -class F { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } -class G { /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } -class H { /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } +class F { /* before */ + f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +} +class G { /* before */ + [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} +class H { /* before */ + [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/method-computed-property-name.js b/test/built-ins/Function/prototype/toString/method-computed-property-name.js index dcf692d23d7c6a813592020062178de131edcc57..af4d893bef4190fe39c4c537f7bb3417a0d6d555 100644 --- a/test/built-ins/Function/prototype/toString/method-computed-property-name.js +++ b/test/built-ins/Function/prototype/toString/method-computed-property-name.js @@ -6,8 +6,14 @@ esid: sec-runtime-semantics-definemethod description: Function.prototype.toString on a method (object) ---*/ -let f = { /* before */[ /* a */ "f" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; -let g = { [ { a(){} }.a ](){ } }["a(){}"]; +let f = { /* before */ + [ /* a */ "f" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.f; +let g = { + [{ + a() {} + }.a]() {} +}["a(){}"]; assert.sameValue(f.toString(), "[ /* a */ \"f\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue("" + g, "[ { a(){} }.a ](){ }"); diff --git a/test/built-ins/Function/prototype/toString/method-object.js b/test/built-ins/Function/prototype/toString/method-object.js index 6930964ed15c24d541fb0ef4894b5d93b6f56252..0e156787300792c35a6ba71971bbd7480e089f43 100644 --- a/test/built-ins/Function/prototype/toString/method-object.js +++ b/test/built-ins/Function/prototype/toString/method-object.js @@ -6,6 +6,8 @@ esid: sec-runtime-semantics-definemethod description: Function.prototype.toString on a method (object) ---*/ -let f = { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; +let f = { /* before */ + f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js index ab0b1ede43a8ecbd1b5688b6740b74f7d014542d..f276c8657ac81687b540d041400a0f275ed4fc14 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class; static) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set; -let g = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set; -let h = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set; +let f = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +}, "f").set; +let g = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "g").set; +let h = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression.js b/test/built-ins/Function/prototype/toString/setter-class-expression.js index b34b4128e5f55962f1b409b50e304a7034ce7dcd..954d6d52fb7daaaa7e78889016f2d3ac6b35437f 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-expression.js +++ b/test/built-ins/Function/prototype/toString/setter-class-expression.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }.prototype, "f").set; -let g = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }.prototype, "g").set; -let h = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }.prototype, "h").set; +let f = Object.getOwnPropertyDescriptor(class { /* before */ + set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +}.prototype, "f").set; +let g = Object.getOwnPropertyDescriptor(class { /* before */ + set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}.prototype, "g").set; +let h = Object.getOwnPropertyDescriptor(class { /* before */ + set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}.prototype, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-statement-static.js b/test/built-ins/Function/prototype/toString/setter-class-statement-static.js index 7a5a37de0aca9d5a727fc2612d1dfee85119f131..dec3c247115d2a38db89f8dc371b295b75e66488 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/setter-class-statement-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class; static) ---*/ let x = "h"; -class F { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ } -class G { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } -class H { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } +class F { + static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +} +class G { + static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +} +class H { + static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +} let f = Object.getOwnPropertyDescriptor(F, "f").set; let g = Object.getOwnPropertyDescriptor(G, "g").set; diff --git a/test/built-ins/Function/prototype/toString/setter-class-statement.js b/test/built-ins/Function/prototype/toString/setter-class-statement.js index 7c0c2b3e0c0f48b29deaa1419cbb92f86b970de6..4534d8aa19c3550cc825d64c4bbfd6ef37f395b7 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-statement.js +++ b/test/built-ins/Function/prototype/toString/setter-class-statement.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class) ---*/ let x = "h"; -class F { /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ } -class G { /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } -class H { /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } +class F { /* before */ + set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +} +class G { /* before */ + set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +} +class H { /* before */ + set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +} let f = Object.getOwnPropertyDescriptor(F.prototype, "f").set; let g = Object.getOwnPropertyDescriptor(G.prototype, "g").set; diff --git a/test/built-ins/Function/prototype/toString/setter-object.js b/test/built-ins/Function/prototype/toString/setter-object.js index 20adbe3e05b7ff8f2177bf6fe158d1d625d0a289..0e207d25c790b6586e8575bd0344b90556009a07 100644 --- a/test/built-ins/Function/prototype/toString/setter-object.js +++ b/test/built-ins/Function/prototype/toString/setter-object.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (object) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor({ /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set; -let g = Object.getOwnPropertyDescriptor({ /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set; -let h = Object.getOwnPropertyDescriptor({ /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set; +let f = Object.getOwnPropertyDescriptor({ /* before */ + set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +}, "f").set; +let g = Object.getOwnPropertyDescriptor({ /* before */ + set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "g").set; +let h = Object.getOwnPropertyDescriptor({ /* before */ + set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/unicode.js b/test/built-ins/Function/prototype/toString/unicode.js index fa176fac297bc11822a7dd8164f4ad3bd0dd468c..a46303ef9efa178688ba667e18f995a1cb1f131f 100644 --- a/test/built-ins/Function/prototype/toString/unicode.js +++ b/test/built-ins/Function/prototype/toString/unicode.js @@ -9,6 +9,13 @@ info: | any potential Unicode escape sequence substitution in identifiers ---*/ -function \u0061(\u{62}, \u0063) { \u0062 = \u{00063}; return b; } +function\ u0061(\u { + 62 +}, \u0063) {\ + u0062 = \u { + 00063 + }; + return b; +} assert.sameValue(a.toString(), "function \\u0061(\\u{62}, \\u0063) { \\u0062 = \\u{00063}; return b; }"); diff --git a/test/built-ins/GeneratorFunction/extensibility.js b/test/built-ins/GeneratorFunction/extensibility.js index 265cffc02cb8013c9fb8654c1be9baf75744d3bb..4328a904e33b892c34378e6b6eb44a14aebf7a56 100644 --- a/test/built-ins/GeneratorFunction/extensibility.js +++ b/test/built-ins/GeneratorFunction/extensibility.js @@ -10,6 +10,6 @@ info: | features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; assert(Object.isExtensible(GeneratorFunction)); diff --git a/test/built-ins/GeneratorFunction/has-instance.js b/test/built-ins/GeneratorFunction/has-instance.js index 80d176b784b6c0bb8d9c385dbeb3e3b8dcdf4661..3b5ad67f80d6aa2951848dcdd13b90845b66605a 100644 --- a/test/built-ins/GeneratorFunction/has-instance.js +++ b/test/built-ins/GeneratorFunction/has-instance.js @@ -8,10 +8,10 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; function* gDecl() {} -var gExpr = function* () {}; +var gExpr = function*() {}; assert( gDecl instanceof GeneratorFunction, diff --git a/test/built-ins/GeneratorFunction/instance-construct-throws.js b/test/built-ins/GeneratorFunction/instance-construct-throws.js index 8225a4776a94ddc9fd1ab0deb07b380438306c78..1cec55dd733268ad7ac36923b33e043155e101ea 100644 --- a/test/built-ins/GeneratorFunction/instance-construct-throws.js +++ b/test/built-ins/GeneratorFunction/instance-construct-throws.js @@ -21,10 +21,10 @@ info: | features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; var instance = GeneratorFunction(); assert.throws(TypeError, function() { - new instance(); + new instance(); }) diff --git a/test/built-ins/GeneratorFunction/instance-length.js b/test/built-ins/GeneratorFunction/instance-length.js index fb1389f736f2dde593605cf88e9fe5a933b84750..0951a1a2a306d0479f070e961c008c46640b72ec 100644 --- a/test/built-ins/GeneratorFunction/instance-length.js +++ b/test/built-ins/GeneratorFunction/instance-length.js @@ -25,7 +25,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; assert.sameValue(GeneratorFunction().length, 0); assert.sameValue(GeneratorFunction('').length, 0); diff --git a/test/built-ins/GeneratorFunction/instance-name.js b/test/built-ins/GeneratorFunction/instance-name.js index 5dab8a3124a66e017275f266323424732b8a98b6..88fcd961a3cb9c6fd1c8939c41acf44ae5872433 100644 --- a/test/built-ins/GeneratorFunction/instance-name.js +++ b/test/built-ins/GeneratorFunction/instance-name.js @@ -17,7 +17,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; assert.sameValue(GeneratorFunction().name, 'anonymous'); verifyNotEnumerable(GeneratorFunction(), 'name'); diff --git a/test/built-ins/GeneratorFunction/instance-prototype.js b/test/built-ins/GeneratorFunction/instance-prototype.js index 3f6db037d262f33e06977a0f4dcd335da1304fc4..e542b896405050b12b37a79d3e2ff0dc85a361ec 100644 --- a/test/built-ins/GeneratorFunction/instance-prototype.js +++ b/test/built-ins/GeneratorFunction/instance-prototype.js @@ -21,7 +21,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; var instance = GeneratorFunction(); diff --git a/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js b/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js index a04982da887046cd2ba013eba51831795e0981d8..419360a88f4927887e0c73e66ed767e1f7450f8b 100644 --- a/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js +++ b/test/built-ins/GeneratorFunction/instance-yield-expr-in-param.js @@ -17,7 +17,7 @@ info: | features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; // YieldExpression is permitted in function body. GeneratorFunction('x = yield'); diff --git a/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js index cb5bf8e8a98dc2dc9635ad8ce900ecd24d2bce05..564810fa12f38f5b4dbb3df74034e0d4744b0d30 100644 --- a/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js +++ b/test/built-ins/GeneratorFunction/invoked-as-constructor-no-arguments.js @@ -8,7 +8,7 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; var g = new GeneratorFunction(); var iter = g(); diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js index a32adad02a9e61f476c2098c3d052a93a65143f4..7b7ac8429c8f63b1e6dc012a52bf59d594463c0b 100644 --- a/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js +++ b/test/built-ins/GeneratorFunction/invoked-as-function-multiple-arguments.js @@ -10,7 +10,7 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; var g = GeneratorFunction('x', 'y', 'yield x + y;'); var iter = g(2, 3); diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js b/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js index 928f733744223d8961694d5d4cc70f7917126455..204d5a30b5f9a567975cc570fd5dd6270d487209 100644 --- a/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js +++ b/test/built-ins/GeneratorFunction/invoked-as-function-no-arguments.js @@ -8,7 +8,7 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; var g = GeneratorFunction(); var iter = g(); diff --git a/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js b/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js index e49ddcbc4e946c5c896558090072ba0d7c473abd..279bfd129f2913c49a94f37594da40ecd2d46d46 100644 --- a/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js +++ b/test/built-ins/GeneratorFunction/invoked-as-function-single-argument.js @@ -9,7 +9,7 @@ description: > features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; var g = GeneratorFunction('yield 1;'); var iter = g(); diff --git a/test/built-ins/GeneratorFunction/length.js b/test/built-ins/GeneratorFunction/length.js index f118d1de613c75eb468d6b03a1a8994a46a04f7b..b989303dece657a9734005262435074492cadd05 100644 --- a/test/built-ins/GeneratorFunction/length.js +++ b/test/built-ins/GeneratorFunction/length.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; assert.sameValue(GeneratorFunction.length, 1); diff --git a/test/built-ins/GeneratorFunction/name.js b/test/built-ins/GeneratorFunction/name.js index 99f02561ca02810d7114fb672b8d439ca9fbc071..2d517748b13a2a53ca98d1efc680ac4827b0d94c 100644 --- a/test/built-ins/GeneratorFunction/name.js +++ b/test/built-ins/GeneratorFunction/name.js @@ -20,7 +20,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; assert.sameValue(GeneratorFunction.name, 'GeneratorFunction'); diff --git a/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js b/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js index b8215acf4ed2db181e79958c0c7b999bf53fa840..313fd4baab8380f246ba535cb9f58ecf07838e20 100644 --- a/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js +++ b/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js @@ -29,10 +29,10 @@ info: | features: [generators, cross-realm, Reflect] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; var other = $262.createRealm().global; var OtherGeneratorFunction = Object.getPrototypeOf( - other.eval('(0, function* () {})') + other.eval('(0, function* () {})') ).constructor; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/GeneratorFunction/prototype/constructor.js b/test/built-ins/GeneratorFunction/prototype/constructor.js index 26c4370b14f3169f5806bca4a79a426b06bb0f49..87cb43184424ee0c034b42d18953435dc9f1eb64 100644 --- a/test/built-ins/GeneratorFunction/prototype/constructor.js +++ b/test/built-ins/GeneratorFunction/prototype/constructor.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; assert.sameValue(GeneratorFunction.prototype.constructor, GeneratorFunction); diff --git a/test/built-ins/GeneratorFunction/prototype/extensibility.js b/test/built-ins/GeneratorFunction/prototype/extensibility.js index 4a713476930ffe3ec662337f88ce7efd9f23d1d4..ca9f590996d49941c29d08e9a52c54ae7d12133e 100644 --- a/test/built-ins/GeneratorFunction/prototype/extensibility.js +++ b/test/built-ins/GeneratorFunction/prototype/extensibility.js @@ -10,6 +10,6 @@ info: | features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; assert(Object.isExtensible(GeneratorFunction.prototype)); diff --git a/test/built-ins/GeneratorFunction/prototype/prop-desc.js b/test/built-ins/GeneratorFunction/prototype/prop-desc.js index 1ba38ae8aaf7cfa064ad869b15d187d321860368..e28a1d04bbad5e6e8a462583f6ca8549ae23794f 100644 --- a/test/built-ins/GeneratorFunction/prototype/prop-desc.js +++ b/test/built-ins/GeneratorFunction/prototype/prop-desc.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] features: [generators] ---*/ -var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; +var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor; verifyNotEnumerable(GeneratorFunction, 'prototype'); verifyNotWritable(GeneratorFunction, 'prototype'); diff --git a/test/built-ins/GeneratorPrototype/next/consecutive-yields.js b/test/built-ins/GeneratorPrototype/next/consecutive-yields.js index 3f6332163c92d63a4c1ee3c46b2e527d36f05fab..3986c63d0f165df5be9423681a3ac62a5b40e267 100644 --- a/test/built-ins/GeneratorPrototype/next/consecutive-yields.js +++ b/test/built-ins/GeneratorPrototype/next/consecutive-yields.js @@ -8,7 +8,10 @@ description: > features: [generators] ---*/ -function* g() { yield 1; yield 2; } +function* g() { + yield 1; + yield 2; +} var iter = g(); var result; diff --git a/test/built-ins/GeneratorPrototype/next/context-method-invocation.js b/test/built-ins/GeneratorPrototype/next/context-method-invocation.js index 5e6f3ed5a53adcf5a564d428f84693e2f5fc6d1c..aff5667ad8f0de997063d8e5d666b2419db5218e 100644 --- a/test/built-ins/GeneratorPrototype/next/context-method-invocation.js +++ b/test/built-ins/GeneratorPrototype/next/context-method-invocation.js @@ -9,8 +9,13 @@ features: [generators] ---*/ var context; -function* g() { context = this; } -var obj = { g: g }; + +function* g() { + context = this; +} +var obj = { + g: g +}; var iter = obj.g(); iter.next(); diff --git a/test/built-ins/GeneratorPrototype/next/from-state-executing.js b/test/built-ins/GeneratorPrototype/next/from-state-executing.js index 29461cc1175f88aca7239037d89c3ac13d22f542..2a05f8c2f7aaea5cc1d5a95e710f36711f538d18 100644 --- a/test/built-ins/GeneratorPrototype/next/from-state-executing.js +++ b/test/built-ins/GeneratorPrototype/next/from-state-executing.js @@ -37,9 +37,11 @@ features: [generators] ---*/ var iter, result; + function* withoutVal() { iter.next(); } + function* withVal() { iter.next(42); } diff --git a/test/built-ins/GeneratorPrototype/next/lone-return.js b/test/built-ins/GeneratorPrototype/next/lone-return.js index cae93289b439c393c61ca84fa4b2c769cda7a584..0a444cbc14f94075d1e26e1b13c5d768f8e58550 100644 --- a/test/built-ins/GeneratorPrototype/next/lone-return.js +++ b/test/built-ins/GeneratorPrototype/next/lone-return.js @@ -8,7 +8,9 @@ description: > features: [generators] ---*/ -function* g() { return 23; } +function* g() { + return 23; +} var iter = g(); var result; diff --git a/test/built-ins/GeneratorPrototype/next/lone-yield.js b/test/built-ins/GeneratorPrototype/next/lone-yield.js index 76199c672100f8367bef497aba671dc2546583b3..c909af148039042ef6ed4d20e9d41195a3655eb3 100644 --- a/test/built-ins/GeneratorPrototype/next/lone-yield.js +++ b/test/built-ins/GeneratorPrototype/next/lone-yield.js @@ -8,7 +8,9 @@ description: > features: [generators] ---*/ -function* g() { yield 1; } +function* g() { + yield 1; +} var iter = g(); var result; diff --git a/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js index dee7dfc4efa8f3ddc1c097d282b2b47bcfb2c1aa..25727d062d4a42fa546df5b63ab4b447f0a471df 100644 --- a/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js +++ b/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js @@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype; assert.throws( TypeError, - function() { GeneratorPrototype.next.call({}); }, + function() { + GeneratorPrototype.next.call({}); + }, 'ordinary object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call({}, 1); }, + function() { + GeneratorPrototype.next.call({}, 1); + }, 'ordinary object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(function() {}); }, + function() { + GeneratorPrototype.next.call(function() {}); + }, 'function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(function() {}, 1); }, + function() { + GeneratorPrototype.next.call(function() {}, 1); + }, 'function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(g); }, + function() { + GeneratorPrototype.next.call(g); + }, 'generator function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(g, 1); }, + function() { + GeneratorPrototype.next.call(g, 1); + }, 'generator function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(g.prototype); }, + function() { + GeneratorPrototype.next.call(g.prototype); + }, 'generator function prototype object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(g.prototype, 1); }, + function() { + GeneratorPrototype.next.call(g.prototype, 1); + }, 'generator function prototype object (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/next/this-val-not-object.js b/test/built-ins/GeneratorPrototype/next/this-val-not-object.js index 646590b6fed75f2470f2dc6aca4bb85ed1e84d50..c42b5777f0f0f80f5d3ba4ea9702d0bc036b96c4 100644 --- a/test/built-ins/GeneratorPrototype/next/this-val-not-object.js +++ b/test/built-ins/GeneratorPrototype/next/this-val-not-object.js @@ -26,66 +26,90 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(undefined); }, + function() { + GeneratorPrototype.next.call(undefined); + }, 'undefined (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(undefined, 1); }, + function() { + GeneratorPrototype.next.call(undefined, 1); + }, 'undefined (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(null); }, + function() { + GeneratorPrototype.next.call(null); + }, 'null (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(null, 1); }, + function() { + GeneratorPrototype.next.call(null, 1); + }, 'null (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(true); }, + function() { + GeneratorPrototype.next.call(true); + }, 'boolean (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(true, 1); }, + function() { + GeneratorPrototype.next.call(true, 1); + }, 'boolean (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call('s'); }, + function() { + GeneratorPrototype.next.call('s'); + }, 'string (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call('s', 1); }, + function() { + GeneratorPrototype.next.call('s', 1); + }, 'string (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(1); }, + function() { + GeneratorPrototype.next.call(1); + }, 'number (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(1, 1); }, + function() { + GeneratorPrototype.next.call(1, 1); + }, 'number (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(symbol); }, + function() { + GeneratorPrototype.next.call(symbol); + }, 'symbol (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(symbol, 1); }, + function() { + GeneratorPrototype.next.call(symbol, 1); + }, 'symbol (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/return/from-state-executing.js b/test/built-ins/GeneratorPrototype/return/from-state-executing.js index 9cf5a78bdf5f95d816e40b28d68ce3e2590884ed..203c1a7465c87e508a4fd5e5f8d347c75be4bb48 100644 --- a/test/built-ins/GeneratorPrototype/return/from-state-executing.js +++ b/test/built-ins/GeneratorPrototype/return/from-state-executing.js @@ -37,6 +37,7 @@ features: [generators] ---*/ var iter, result; + function* g() { iter.return(42); } diff --git a/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js b/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js index b20ad0aed55ed243507488e2773b9b42bc85a748..34e6eebfb7bd9ef6ba6a805a13d007c3c3fbfac3 100644 --- a/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js +++ b/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var bodyCount = 0; + function* G() { bodyCount += 1; } diff --git a/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js index 1af04d29960f35d95c95a8d36ae779247a36108b..dd0ff4b332d5216ad58371e46602db901068acf0 100644 --- a/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js +++ b/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js @@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype; assert.throws( TypeError, - function() { GeneratorPrototype.return.call({}); }, + function() { + GeneratorPrototype.return.call({}); + }, 'ordinary object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call({}, 1); }, + function() { + GeneratorPrototype.return.call({}, 1); + }, 'ordinary object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(function() {}); }, + function() { + GeneratorPrototype.return.call(function() {}); + }, 'function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(function() {}, 1); }, + function() { + GeneratorPrototype.return.call(function() {}, 1); + }, 'function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(g); }, + function() { + GeneratorPrototype.return.call(g); + }, 'generator function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(g, 1); }, + function() { + GeneratorPrototype.return.call(g, 1); + }, 'generator function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(g.prototype); }, + function() { + GeneratorPrototype.return.call(g.prototype); + }, 'generator function prototype object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(g.prototype, 1); }, + function() { + GeneratorPrototype.return.call(g.prototype, 1); + }, 'generator function prototype object (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/return/this-val-not-object.js b/test/built-ins/GeneratorPrototype/return/this-val-not-object.js index edf0b124ed4ea91249854428e0608f9c9e974f56..c8431b407c14320c0f41c92e0f8e6dc74eeef0ee 100644 --- a/test/built-ins/GeneratorPrototype/return/this-val-not-object.js +++ b/test/built-ins/GeneratorPrototype/return/this-val-not-object.js @@ -26,66 +26,90 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(undefined); }, + function() { + GeneratorPrototype.return.call(undefined); + }, 'undefined (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(undefined, 1); }, + function() { + GeneratorPrototype.return.call(undefined, 1); + }, 'undefined (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(null); }, + function() { + GeneratorPrototype.return.call(null); + }, 'null (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(null, 1); }, + function() { + GeneratorPrototype.return.call(null, 1); + }, 'null (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(true); }, + function() { + GeneratorPrototype.return.call(true); + }, 'boolean (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(true, 1); }, + function() { + GeneratorPrototype.return.call(true, 1); + }, 'boolean (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call('s'); }, + function() { + GeneratorPrototype.return.call('s'); + }, 'string (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call('s', 1); }, + function() { + GeneratorPrototype.return.call('s', 1); + }, 'string (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(1); }, + function() { + GeneratorPrototype.return.call(1); + }, 'number (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(1, 1); }, + function() { + GeneratorPrototype.return.call(1, 1); + }, 'number (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(symbol); }, + function() { + GeneratorPrototype.return.call(symbol); + }, 'symbol (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(symbol, 1); }, + function() { + GeneratorPrototype.return.call(symbol, 1); + }, 'symbol (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js b/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js index f1b1bdc44138b64180dd64d063f708ce56514bfb..d7c40026dd3868c51b894d421bab15975f81e886 100644 --- a/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield; try { diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js b/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js index f354530be2cf368719c7713f52381393f1433ca4..b7880cea80a22265f46914dcf01c8cf80f070852 100644 --- a/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js +++ b/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js @@ -11,6 +11,7 @@ features: [generators] var afterCatch = 0; var unreachable = 0; + function* g() { try { throw new Error(); diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js index 16c9573f6c12fb49074f0d0c709953521afa9e59..a995017d2a0d75f615320700751315881b362255 100644 --- a/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js @@ -11,6 +11,7 @@ features: [generators] var inCatch = 0; var unreachable = 0; + function* g() { try { throw new Error(); diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js b/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js index 3e925ba10660004b87021501e0d5db6d25f3343f..2d86cb3bf1c867410fe064cec7800064928b641b 100644 --- a/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js @@ -11,6 +11,7 @@ features: [generators] var inTry = 0; var unreachable = 0; + function* g() { try { inTry += 1; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js b/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js index 1f1522fbb812eba6ee8da99f495089dd45c59916..24be6db3c5945b5496b72ce47a149b2ee1dad7e9 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js @@ -10,12 +10,11 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield; unreachable += 1; - try { - } finally { - } + try {} finally {} } var iter = g(); var result; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js index 9066852be2d1890342f69e1110c253ed9fda09cf..665e968b4600d47f0ecb4f972191f2529e87953b 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js @@ -11,9 +11,9 @@ features: [generators] var afterFinally = 0; var unreachable = 0; + function* g() { - try { - } finally {} + try {} finally {} afterFinally += 1; yield; unreachable += 1; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js index 25e1c134eaddf94a647759891e7e5e291c913564..937a0bd28071ed7cbde7d415e627b32665dd2e98 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js @@ -13,6 +13,7 @@ features: [generators] var inCatch = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { try { diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js index 42ff56701b039bc03583c240a9a0777398efe796..6bfef0e3042eb2f2456376f941d34ed845fd9795 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js @@ -11,11 +11,11 @@ features: [generators] var inFinally = 0; var unreachable = 0; + function* g() { try { throw new Error(); - try { - } catch (e) {} + try {} catch (e) {} } finally { inFinally += 1; yield; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js index 8cb4b6ba1e09cc57ef8d56e19c177833a4ded177..9d8d5b6aee7a005d99920b254b1f7c8b3feff2b7 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js @@ -13,6 +13,7 @@ features: [generators] var inTry = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { try { diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js index 2342f69a60ddaf79679bd265700491255def4408..5e056c140c62bc4125f43c9248715e741d979185 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js @@ -13,6 +13,7 @@ features: [generators] var inCatch = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { try { @@ -29,7 +30,7 @@ function* g() { var iter = g(); var result; - iter.next(); +iter.next(); assert.sameValue(inCatch, 1, '`catch` code path executed'); assert.sameValue(inFinally, 1, '`finally` code path executed'); diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js index f97d9bb48580425fa8e21b959240e5c2bf785adf..7121ebd7799a486a381d29e3959e4ad012b6372f 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js @@ -13,6 +13,7 @@ features: [generators] var inTry = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { inTry += 1; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js index 4ea893dc3427ff7a8ad5b808b0e0707afbc3db2a..fbec889d98d57287910d3e0b271e9c06981dcc2d 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js @@ -11,9 +11,9 @@ features: [generators] var inFinally = 0; var unreachable = 0; + function* g() { - try { - } finally { + try {} finally { inFinally += 1; yield; unreachable += 1; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js b/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js index 5b0dce6ef2f6be4430899aada983eca05e271cb5..336c0389b5c8bb563804280a17c478063f4e0467 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js @@ -12,6 +12,7 @@ features: [generators] var inTry = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { inTry += 1; diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js index 3d8e6cbf5ddbfa99d7037064f4b45a04372c299c..209ab9fed56995d050448eb901629a5bb7712677 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js @@ -9,13 +9,16 @@ features: [generators] ---*/ function E() {} + function* G() {} var iter; iter = G(); iter.next(); -assert.throws(E, function() { iter.throw(new E()); }); +assert.throws(E, function() { + iter.throw(new E()); +}); var result = iter.next(); diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-executing.js b/test/built-ins/GeneratorPrototype/throw/from-state-executing.js index 2af2f73ab3dd4756480310502c08bceabc84876e..df1601517a74a0145dfcd401a0ef01ad0fd94a80 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-executing.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-executing.js @@ -37,6 +37,7 @@ features: [generators] ---*/ var iter, result; + function* g() { iter.throw(42); } diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js index 53d44904e5a4e0c08449f8e520a91a299e74ee75..3bf6296c356d9f62fda7e500f85876c1a516d417 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js @@ -10,6 +10,7 @@ features: [generators] ---*/ function E() {} + function* G() { yield 1; yield 2; @@ -17,7 +18,9 @@ function* G() { var iter; iter = G(); -assert.throws(E, function() { iter.throw(new E()); }); +assert.throws(E, function() { + iter.throw(new E()); +}); var result = iter.next(); diff --git a/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js index 8667ad89796568fc10b4990f2afa36739f9d1c83..fae6fe7b75e814921effb403a2fec728ee774f55 100644 --- a/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js +++ b/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js @@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype; assert.throws( TypeError, - function() { GeneratorPrototype.throw.call({}); }, + function() { + GeneratorPrototype.throw.call({}); + }, 'ordinary object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call({}, 1); }, + function() { + GeneratorPrototype.throw.call({}, 1); + }, 'ordinary object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(function() {}); }, + function() { + GeneratorPrototype.throw.call(function() {}); + }, 'function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(function() {}, 1); }, + function() { + GeneratorPrototype.throw.call(function() {}, 1); + }, 'function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(g); }, + function() { + GeneratorPrototype.throw.call(g); + }, 'generator function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(g, 1); }, + function() { + GeneratorPrototype.throw.call(g, 1); + }, 'generator function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(g.prototype); }, + function() { + GeneratorPrototype.throw.call(g.prototype); + }, 'generator function prototype object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(g.prototype, 1); }, + function() { + GeneratorPrototype.throw.call(g.prototype, 1); + }, 'generator function prototype object (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js b/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js index 8b4d342be2602f484ebce287bc9002ea2d1dbeaf..8122f2b3823fbc9a0ce79decb71b9344ca6bc327 100644 --- a/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js +++ b/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js @@ -26,66 +26,90 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(undefined); }, + function() { + GeneratorPrototype.throw.call(undefined); + }, 'undefined (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(undefined, 1); }, + function() { + GeneratorPrototype.throw.call(undefined, 1); + }, 'undefined (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(null); }, + function() { + GeneratorPrototype.throw.call(null); + }, 'null (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(null, 1); }, + function() { + GeneratorPrototype.throw.call(null, 1); + }, 'null (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(true); }, + function() { + GeneratorPrototype.throw.call(true); + }, 'boolean (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(true, 1); }, + function() { + GeneratorPrototype.throw.call(true, 1); + }, 'boolean (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call('s'); }, + function() { + GeneratorPrototype.throw.call('s'); + }, 'string (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call('s', 1); }, + function() { + GeneratorPrototype.throw.call('s', 1); + }, 'string (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(1); }, + function() { + GeneratorPrototype.throw.call(1); + }, 'number (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(1, 1); }, + function() { + GeneratorPrototype.throw.call(1, 1); + }, 'number (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(symbol); }, + function() { + GeneratorPrototype.throw.call(symbol); + }, 'symbol (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(symbol, 1); }, + function() { + GeneratorPrototype.throw.call(symbol, 1); + }, 'symbol (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js index bfd3086c7a384f96f953087eea2230ee9e49a78f..bc2707e5c84d7d9bd4314beb851febd0f526c53e 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; unreachable += 1; @@ -31,7 +32,9 @@ assert.sameValue( unreachable, 0, 'statement following `yield` not executed (paused at yield)' ); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js b/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js index 1e69125421ef551dc68b922f683b57735c2a07d7..1866ad20dceb0264181e37627bc7b5f6558b20dd 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js @@ -11,6 +11,7 @@ features: [generators] var obj = {}; var unreachable = 0; + function* g() { yield 1; try { @@ -41,7 +42,9 @@ result = iter.next(); assert.sameValue(result.value, 3, 'Fourth result `value`'); assert.sameValue(result.done, false, 'Fourth result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js index 176b4cc4126453cfa26e295636b6b21e45fa191b..93700442876a6747c11d5455f9b422244e81609c 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { @@ -38,7 +39,9 @@ result = iter.next(); assert.sameValue(result.value, exception, 'Third result `value`'); assert.sameValue(result.done, false, 'Third result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js b/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js index af352ae29b8aaf0e9c24decafe88469fb8062157..e63430ce6ce55d56db1672e9a920beba309ee06d 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js index 4ecd883b9b68598908058ec0cb7d5617207c1d71..daad602d03736ebdd7d224573985a85a31d4d1b9 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; unreachable += 1; @@ -33,7 +34,9 @@ assert.sameValue( unreachable, 0, 'statement following `yield` not executed (paused at yield)' ); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, @@ -45,7 +48,7 @@ result = iter.next(); assert.sameValue( result.value, undefined, 'Result `value` is undefined when done' ); -assert.sameValue( result.done, true, 'Result `done` flag is `true` when done'); +assert.sameValue(result.done, true, 'Result `done` flag is `true` when done'); assert.sameValue( unreachable, 0, 'statement following `yield` not executed (once "completed")' ); diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js index fdc9fa55d2c6c3dc9a72a51a75b30b8387f481b1..aac9dd1309739392712a4291c4770facc2fabc4f 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { @@ -39,7 +40,9 @@ result = iter.next(); assert.sameValue(result.value, 4, 'Third result `value`'); assert.sameValue(result.done, false, 'Third result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js index c69d12f424ae4cbdf838e38005b6e28035e50e19..16c78fe31348db022c647b178787961301c0a20d 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js @@ -11,6 +11,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; @@ -47,7 +48,9 @@ result = iter.throw(new Test262Error()); assert.sameValue(result.value, 4, 'Fourth result `value`'); assert.sameValue(result.done, false, 'Fourth result `done` flag'); -assert.throws(Test262Error, function() { iter.next(); }); +assert.throws(Test262Error, function() { + iter.next(); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js index 8c5392ea7afea2b12f3fe5491378db9568f6965c..eb691f39ce439f4f4f0fb33aeeb401cfb8c721e5 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; @@ -38,7 +39,9 @@ result = iter.next(); assert.sameValue(result.value, 4, 'Second result `value`'); assert.sameValue(result.done, false, 'First result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js index 6b0ae2647a14e5ae58228ce097cd6490e2814688..20c833b456155cf8a81e14b83134d7cebcbb0070 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js @@ -11,6 +11,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js index 93c9cbad5e6d179f355b8d8dc704894fd637241a..cb1c4318b4f49581e93e7a5353c5015526b83273 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js @@ -11,6 +11,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; @@ -57,7 +58,9 @@ assert.sameValue( 'statement following `yield` not executed (following `throw`)' ); -assert.throws(Test262Error, function() { iter.next(); }); +assert.throws(Test262Error, function() { + iter.next(); +}); result = iter.next(); assert.sameValue( diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js index 942234e3ccc64e76d0caebb27006571d5ce5ee96..5ce3a05164738b56031fa8dceb849c66ad34f6f5 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js @@ -11,6 +11,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; @@ -43,7 +44,9 @@ assert.sameValue( 'statement following `yield` not executed (following `throw`)' ); -assert.throws(Test262Error, function() { iter.next(); }); +assert.throws(Test262Error, function() { + iter.next(); +}); result = iter.next(); assert.sameValue( diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js index 8a83967c56ec05ac0cb3717224df38fbe0c2fa4e..62898711670b5e684731059dbcc99510b2108854 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { @@ -35,7 +36,9 @@ result = iter.next(); assert.sameValue(result.value, 3, 'Third result `value`'); assert.sameValue(result.done, false, 'Third result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js index 19764d8b7b5898d9b356268ef96f1c2adde7da5f..91105b8b70ccdcf5f3c1a890040a1bc80376dfb5 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { @@ -41,7 +42,9 @@ assert.sameValue( 'statement following `yield` not executed (following `throw`)' ); -assert.throws(Test262Error, function() { iter.next(); }); +assert.throws(Test262Error, function() { + iter.next(); +}); result = iter.next(); assert.sameValue( diff --git a/test/built-ins/Infinity/15.1.1.2-0.js b/test/built-ins/Infinity/15.1.1.2-0.js index a2e63985e2478a8a12bfa3d4eff5fdff85d474fc..4c713b5919b0afefd48eb21425377e6bcc52fdf7 100644 --- a/test/built-ins/Infinity/15.1.1.2-0.js +++ b/test/built-ins/Infinity/15.1.1.2-0.js @@ -8,7 +8,7 @@ description: > (false) ---*/ - var desc = Object.getOwnPropertyDescriptor(this, 'Infinity'); +var desc = Object.getOwnPropertyDescriptor(this, 'Infinity'); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Infinity/S15.1.1.2_A1.js b/test/built-ins/Infinity/S15.1.1.2_A1.js index 063168d55f8fa7472a2b965b9dc6957391a3e30c..5895191bd04cd76bd2330b358a4449a3ceb7856b 100644 --- a/test/built-ins/Infinity/S15.1.1.2_A1.js +++ b/test/built-ins/Infinity/S15.1.1.2_A1.js @@ -9,21 +9,21 @@ description: Use typeof, isNaN, isFinite // CHECK#1 if (typeof(Infinity) !== "number") { - $ERROR('#1: typeof(Infinity) === "number". Actual: ' + (typeof(Infinity))); + $ERROR('#1: typeof(Infinity) === "number". Actual: ' + (typeof(Infinity))); } // CHECK#2 if (isFinite(Infinity) !== false) { - $ERROR('#2: Infinity === Not-a-Finite. Actual: ' + (Infinity)); + $ERROR('#2: Infinity === Not-a-Finite. Actual: ' + (Infinity)); } // CHECK#3 if (isNaN(Infinity) !== false) { - $ERROR('#3: Infinity === Not-a-Number. Actual: ' + (Infinity)); + $ERROR('#3: Infinity === Not-a-Number. Actual: ' + (Infinity)); } // CHECK#4 if (Infinity !== Number.POSITIVE_INFINITY) { - $ERROR('#4: Infinity === Number.POSITIVE_INFINITY. Actual: ' + (Infinity)); + $ERROR('#4: Infinity === Number.POSITIVE_INFINITY. Actual: ' + (Infinity)); } diff --git a/test/built-ins/Infinity/S15.1.1.2_A2_T1.js b/test/built-ins/Infinity/S15.1.1.2_A2_T1.js index 0a6435466340d51cc50059889cfa539b1662ae81..1575771b246b39e0b129274164ac90e73f43ffac 100644 --- a/test/built-ins/Infinity/S15.1.1.2_A2_T1.js +++ b/test/built-ins/Infinity/S15.1.1.2_A2_T1.js @@ -11,5 +11,5 @@ includes: [propertyHelper.js] // CHECK#1 verifyNotWritable(this, "Infinity", null, true); if (typeof(Infinity) === "boolean") { - $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity))); + $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity))); } diff --git a/test/built-ins/Infinity/S15.1.1.2_A2_T2.js b/test/built-ins/Infinity/S15.1.1.2_A2_T2.js index d6c4093870169e5337636e6c4c123c5f65106989..ea99c3061f880fc5e60d36a52e8c4642cd223670 100644 --- a/test/built-ins/Infinity/S15.1.1.2_A2_T2.js +++ b/test/built-ins/Infinity/S15.1.1.2_A2_T2.js @@ -11,5 +11,5 @@ flags: [noStrict] // CHECK#1 Infinity = true; if (typeof(Infinity) === "boolean") { - $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity))); + $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity))); } diff --git a/test/built-ins/Infinity/S15.1.1.2_A3_T2.js b/test/built-ins/Infinity/S15.1.1.2_A3_T2.js index 8e8433f4dd421bb391b0d4f4088486fb93061754..09b1a7467816ec405cad27a8b26dc911330b8868 100644 --- a/test/built-ins/Infinity/S15.1.1.2_A3_T2.js +++ b/test/built-ins/Infinity/S15.1.1.2_A3_T2.js @@ -10,5 +10,5 @@ flags: [noStrict] // CHECK#1 if (delete Infinity !== false) { - $ERROR('#1: delete Infinity === false. Actual: ' + (delete Infinity)); + $ERROR('#1: delete Infinity === false. Actual: ' + (delete Infinity)); } diff --git a/test/built-ins/Infinity/S15.1.1.2_A4.js b/test/built-ins/Infinity/S15.1.1.2_A4.js index fe9c76f6d16dcb796b16a36dd9d5c72f73559187..73dadfecc70a4eeb1380661f1222747fcc7ee979 100644 --- a/test/built-ins/Infinity/S15.1.1.2_A4.js +++ b/test/built-ins/Infinity/S15.1.1.2_A4.js @@ -10,6 +10,6 @@ description: Use for-in statement // CHECK#1 for (var prop in this) { if (prop === "Infinity") { - $ERROR('#1: The Infinity is DontEnum'); + $ERROR('#1: The Infinity is DontEnum'); } } diff --git a/test/built-ins/JSON/15.12-0-1.js b/test/built-ins/JSON/15.12-0-1.js index 7dcb5975bda04f0690fc0f69e2ac91bd4b61d4b5..1d0776cc74ea760b87efb01d4e50b037c00e9401 100644 --- a/test/built-ins/JSON/15.12-0-1.js +++ b/test/built-ins/JSON/15.12-0-1.js @@ -10,6 +10,6 @@ es5id: 15.12-0-1 description: JSON must be a built-in object ---*/ - var o = JSON; +var o = JSON; assert.sameValue(typeof(o), "object", 'typeof(o)'); diff --git a/test/built-ins/JSON/15.12-0-2.js b/test/built-ins/JSON/15.12-0-2.js index 924b54991a9edc430c5897bcdec588e429780906..5c086b5336e4e64c7f26776977973b147ea3ed1e 100644 --- a/test/built-ins/JSON/15.12-0-2.js +++ b/test/built-ins/JSON/15.12-0-2.js @@ -10,7 +10,7 @@ es5id: 15.12-0-2 description: JSON must not support the [[Construct]] method ---*/ - var o = JSON; +var o = JSON; assert.throws(TypeError, function() { - var j = new JSON(); + var j = new JSON(); }); diff --git a/test/built-ins/JSON/15.12-0-3.js b/test/built-ins/JSON/15.12-0-3.js index 4a511110ac453e3e2c5e7843f9b810026f538a8e..4e082c49f0fa1f1a4f3d3c5b13fc13b633678bf0 100644 --- a/test/built-ins/JSON/15.12-0-3.js +++ b/test/built-ins/JSON/15.12-0-3.js @@ -10,7 +10,7 @@ es5id: 15.12-0-3 description: JSON must not support the [[Call]] method ---*/ - var o = JSON; +var o = JSON; assert.throws(TypeError, function() { - var j = JSON(); + var j = JSON(); }); diff --git a/test/built-ins/JSON/15.12-0-4.js b/test/built-ins/JSON/15.12-0-4.js index 565dcc95b5941fbb6920be7c7b2fc6b854d81ca2..804c336872659a3a87090e5a24b3ab1bc8c47234 100644 --- a/test/built-ins/JSON/15.12-0-4.js +++ b/test/built-ins/JSON/15.12-0-4.js @@ -12,11 +12,11 @@ es5id: 15.12-0-4 description: JSON object's properties must be non enumerable ---*/ - var o = JSON; - var i = 0; - for (var p in o) { - i++; - } - +var o = JSON; +var i = 0; +for (var p in o) { + i++; +} + assert.sameValue(i, 0, 'i'); diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-1.js b/test/built-ins/JSON/parse/15.12.1.1-0-1.js index d1bb9eecd009cec9bed0a79919af32b35da397e1..6134ce18f066d84c2324e24236a25c557737ee67 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-0-1.js +++ b/test/built-ins/JSON/parse/15.12.1.1-0-1.js @@ -7,5 +7,5 @@ description: The JSON lexical grammar treats whitespace as a token seperator ---*/ assert.throws(SyntaxError, function() { - JSON.parse('12\t\r\n 34'); // should produce a syntax error as whitespace results in two tokens + JSON.parse('12\t\r\n 34'); // should produce a syntax error as whitespace results in two tokens }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-2.js b/test/built-ins/JSON/parse/15.12.1.1-0-2.js index 8254a4d62ab48f31568314e4999ad5afe879e7e3..e2e3f87e102f4ca670bab139c3665549f5f62cb6 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-0-2.js +++ b/test/built-ins/JSON/parse/15.12.1.1-0-2.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('\u000b1234'); // should produce a syntax error + JSON.parse('\u000b1234'); // should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-3.js b/test/built-ins/JSON/parse/15.12.1.1-0-3.js index fb213cb00dd33cd1d9b19a57bafb1d332ee02310..32fe7723100dda04c926431924c657116a1a8dab 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-0-3.js +++ b/test/built-ins/JSON/parse/15.12.1.1-0-3.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('\u000c1234'); // should produce a syntax error + JSON.parse('\u000c1234'); // should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-4.js b/test/built-ins/JSON/parse/15.12.1.1-0-4.js index 34b31816c972f445d745aead541eb9105d115905..879335aa1852de23ee429fa6d0fa6bb55492312b 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-0-4.js +++ b/test/built-ins/JSON/parse/15.12.1.1-0-4.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('\u00a01234'); // should produce a syntax error + JSON.parse('\u00a01234'); // should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-5.js b/test/built-ins/JSON/parse/15.12.1.1-0-5.js index e18222fd23f7bc085a00f0b9b9e0e932c9db6012..59aff18b63d1912d7f18e4d4114ba5a7b52fe812 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-0-5.js +++ b/test/built-ins/JSON/parse/15.12.1.1-0-5.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('\u200b1234'); // should produce a syntax error + JSON.parse('\u200b1234'); // should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-6.js b/test/built-ins/JSON/parse/15.12.1.1-0-6.js index cfaf7d0505511c3571941ca95216451e97e84cb0..ff2889373fd5ff653294bfc0d0edd3981b431a82 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-0-6.js +++ b/test/built-ins/JSON/parse/15.12.1.1-0-6.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('\ufeff1234'); // should produce a syntax error a + JSON.parse('\ufeff1234'); // should produce a syntax error a }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-8.js b/test/built-ins/JSON/parse/15.12.1.1-0-8.js index fa7bb87b3d9a46c8392917af5e55c2f64e6d5ce8..d342003b96f669356af012acf2668dc4bfbcdaff 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-0-8.js +++ b/test/built-ins/JSON/parse/15.12.1.1-0-8.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('\u2028\u20291234'); // should produce a syntax error + JSON.parse('\u2028\u20291234'); // should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-0-9.js b/test/built-ins/JSON/parse/15.12.1.1-0-9.js index e669bb290ef382e2d7cf61a902b7729b334fcf03..5deb8a5813931886755d1dfdd16608e68d2537e2 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-0-9.js +++ b/test/built-ins/JSON/parse/15.12.1.1-0-9.js @@ -6,8 +6,8 @@ es5id: 15.12.1.1-0-9 description: Whitespace characters can appear before/after any JSONtoken ---*/ - JSON.parse('\t\r \n{\t\r \n'+ - '"property"\t\r \n:\t\r \n{\t\r \n}\t\r \n,\t\r \n' + - '"prop2"\t\r \n:\t\r \n'+ - '[\t\r \ntrue\t\r \n,\t\r \nnull\t\r \n,123.456\t\r \n]'+ - '\t\r \n}\t\r \n'); // should JOSN parse without error +JSON.parse('\t\r \n{\t\r \n' + + '"property"\t\r \n:\t\r \n{\t\r \n}\t\r \n,\t\r \n' + + '"prop2"\t\r \n:\t\r \n' + + '[\t\r \ntrue\t\r \n,\t\r \nnull\t\r \n,123.456\t\r \n]' + + '\t\r \n}\t\r \n'); // should JOSN parse without error diff --git a/test/built-ins/JSON/parse/15.12.1.1-g1-1.js b/test/built-ins/JSON/parse/15.12.1.1-g1-1.js index 4325a2899d5bac412949d71c5ad5a1294a15ea81..3b0ccd4709d137e4f884c63703e3a9ad3ec18490 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g1-1.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g1-1.js @@ -9,5 +9,5 @@ description: The JSON lexical grammar treats <TAB> as a whitespace character assert.sameValue(JSON.parse('\t1234'), 1234, '<TAB> should be ignored'); assert.throws(SyntaxError, function() { - JSON.parse('12\t34'); + JSON.parse('12\t34'); }, '<TAB> should produce a syntax error as whitespace results in two tokens'); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g1-2.js b/test/built-ins/JSON/parse/15.12.1.1-g1-2.js index 4c71c01a765d1a34575daa4a888bfc2fc12c45c6..f42e2c7a80183daf40f8f97560f4ac4964a97442 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g1-2.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g1-2.js @@ -9,5 +9,5 @@ description: The JSON lexical grammar treats <CR> as a whitespace character assert.sameValue(JSON.parse('\r1234'), 1234, '<cr> should be ignored'); assert.throws(SyntaxError, function() { - JSON.parse('12\r34'); + JSON.parse('12\r34'); }, '<CR> should produce a syntax error as whitespace results in two tokens'); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g1-3.js b/test/built-ins/JSON/parse/15.12.1.1-g1-3.js index 80e533c416537fd0ad3d5c0b880c48a659b73ba5..7de418059771a677c9e6837c737fda5a4c279181 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g1-3.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g1-3.js @@ -9,5 +9,5 @@ description: The JSON lexical grammar treats <LF> as a whitespace character assert.sameValue(JSON.parse('\n1234'), 1234, '<LF> should be ignored'); assert.throws(SyntaxError, function() { - JSON.parse('12\n34'); + JSON.parse('12\n34'); }, '<LF> should produce a syntax error as whitespace results in two tokens'); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g1-4.js b/test/built-ins/JSON/parse/15.12.1.1-g1-4.js index b00e82b558d73004ee0a146fc949887a64272d99..03684d8f56e4271e47d8a69404108cf427cf3705 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g1-4.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g1-4.js @@ -9,5 +9,5 @@ description: The JSON lexical grammar treats <SP> as a whitespace character assert.sameValue(JSON.parse(' 1234'), 1234, '<SP> should be ignored'); assert.throws(SyntaxError, function() { - JSON.parse('12 34'); + JSON.parse('12 34'); }, '<SP> should produce a syntax error as whitespace results in two tokens'); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g2-4.js b/test/built-ins/JSON/parse/15.12.1.1-g2-4.js index cf4a5d47f17fefdf85a811eeaa8dadfd0a9b89b6..97a669bbb35f5d2a193a858b510111a88f097cab 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g2-4.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g2-4.js @@ -7,5 +7,5 @@ description: A JSONString must both begin and end with double quotes ---*/ assert.throws(SyntaxError, function() { - JSON.parse('"ab'+"c'"); + JSON.parse('"ab' + "c'"); }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g4-1.js b/test/built-ins/JSON/parse/15.12.1.1-g4-1.js index d7b8a458485ef6b279360a875ac88201ca679f51..6015ce7988441e09868f76e615c2e31d39886381 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g4-1.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g4-1.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('"\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007"'); // invalid string characters should produce a syntax error + JSON.parse('"\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007"'); // invalid string characters should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g4-2.js b/test/built-ins/JSON/parse/15.12.1.1-g4-2.js index 5022dcbca34e5c4b251b2a68c1fe4a08bc514a4b..a5d434e6d4e524b272a3642567d13d094ac1a001 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g4-2.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g4-2.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('"\u0008\u0009\u000a\u000b\u000c\u000d\u000e\u000f"'); // invalid string characters should produce a syntax error + JSON.parse('"\u0008\u0009\u000a\u000b\u000c\u000d\u000e\u000f"'); // invalid string characters should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g4-3.js b/test/built-ins/JSON/parse/15.12.1.1-g4-3.js index 9d13dbb696e3221801024de9daaf428822f0beb0..da95a89e9a03d79cb9f8208aef9b13571d7e5563 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g4-3.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g4-3.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('"\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017"'); // invalid string characters should produce a syntax error + JSON.parse('"\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017"'); // invalid string characters should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g4-4.js b/test/built-ins/JSON/parse/15.12.1.1-g4-4.js index e222184eb6e44dd36747c1e8a726446466b4732f..9e584f0ffb0476fbdcea9975a6dea40764a323ef 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g4-4.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g4-4.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('"\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f"'); // invalid string characters should produce a syntax error + JSON.parse('"\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f"'); // invalid string characters should produce a syntax error }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g5-2.js b/test/built-ins/JSON/parse/15.12.1.1-g5-2.js index d03a299208e6254fa9b207a207b721ab24566594..5ba676d88d15ce3edd0b1c3483f029486dcc01fa 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g5-2.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g5-2.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('"\\u005"') + JSON.parse('"\\u005"') }); diff --git a/test/built-ins/JSON/parse/15.12.1.1-g5-3.js b/test/built-ins/JSON/parse/15.12.1.1-g5-3.js index e577bd6f6090264c5bf833a7ef88753a750879b1..d6085f0826ec16d37447be52744045f0988d8bcd 100644 --- a/test/built-ins/JSON/parse/15.12.1.1-g5-3.js +++ b/test/built-ins/JSON/parse/15.12.1.1-g5-3.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(SyntaxError, function() { - JSON.parse('"\\u0X50"') + JSON.parse('"\\u0X50"') }); diff --git a/test/built-ins/JSON/parse/15.12.2-0-1.js b/test/built-ins/JSON/parse/15.12.2-0-1.js index 7d3cc1d3e0858f14e352e1a1cf6c84c32bc5e452..2bb7779492198d30b502ee24bdae08ac39172244 100644 --- a/test/built-ins/JSON/parse/15.12.2-0-1.js +++ b/test/built-ins/JSON/parse/15.12.2-0-1.js @@ -17,6 +17,6 @@ es5id: 15.12.2-0-1 description: JSON.parse must exist as a function ---*/ - var f = JSON.parse; +var f = JSON.parse; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/JSON/parse/15.12.2-0-2.js b/test/built-ins/JSON/parse/15.12.2-0-2.js index 40ebfdb2fdbf8b423f62dff2c20f561c7c532dfc..fe9569381de2f4eb831b3fa7f03a99b1ae9e02c5 100644 --- a/test/built-ins/JSON/parse/15.12.2-0-2.js +++ b/test/built-ins/JSON/parse/15.12.2-0-2.js @@ -17,7 +17,7 @@ es5id: 15.12.2-0-2 description: JSON.parse must exist as a function taking 2 parameters ---*/ - var f = JSON.parse; +var f = JSON.parse; assert.sameValue(typeof(f), "function", 'typeof(f)'); assert.sameValue(f.length, 2, 'f.length'); diff --git a/test/built-ins/JSON/parse/15.12.2-0-3.js b/test/built-ins/JSON/parse/15.12.2-0-3.js index 068cf69fc793f5b9bbb9493f81bd9da302166b6d..de7d3f825ef42635e339a818e25aebaef67bb811 100644 --- a/test/built-ins/JSON/parse/15.12.2-0-3.js +++ b/test/built-ins/JSON/parse/15.12.2-0-3.js @@ -10,7 +10,7 @@ es5id: 15.12.2-0-3 description: JSON.parse must be deletable (configurable) ---*/ - var o = JSON; - var desc = Object.getOwnPropertyDescriptor(o, "parse"); +var o = JSON; +var desc = Object.getOwnPropertyDescriptor(o, "parse"); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/JSON/parse/15.12.2-2-1.js b/test/built-ins/JSON/parse/15.12.2-2-1.js index a2a42946f188a68f547716eb8621bef7520fc44b..d307ad6d0ee2d57c77a0f3377e23c519370c7749 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-1.js +++ b/test/built-ins/JSON/parse/15.12.2-2-1.js @@ -8,42 +8,42 @@ description: > character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{ ' + nullChars[index] + ' : "John" } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{ ' + nullChars[index] + ' : "John" } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-10.js b/test/built-ins/JSON/parse/15.12.2-2-10.js index 0f3c73ac110b001832f67106c4a06eebaa8d9f11..24f298c884de2c142b527ef1419d4913fbf121eb 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-10.js +++ b/test/built-ins/JSON/parse/15.12.2-2-10.js @@ -8,42 +8,42 @@ description: > null character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{ "name" : ' + "Jo" + nullChars[index] + "hn" + ' } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{ "name" : ' + "Jo" + nullChars[index] + "hn" + ' } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-2.js b/test/built-ins/JSON/parse/15.12.2-2-2.js index d577d5b76b1de1a041984b2d3dada7272cd61d49..6af5601aef66e85972fa0cffe367cb6d9d5a2534 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-2.js +++ b/test/built-ins/JSON/parse/15.12.2-2-2.js @@ -8,42 +8,42 @@ description: > null character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{ ' + nullChars[index] + "name" + ' : "John" } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{ ' + nullChars[index] + "name" + ' : "John" } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-3.js b/test/built-ins/JSON/parse/15.12.2-2-3.js index 20f19e1b2ce14388f3beedcdff61ef9c05d90fcb..0bd6dc9e9eaded2b7d4a990fbc3a31eb79564853 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-3.js +++ b/test/built-ins/JSON/parse/15.12.2-2-3.js @@ -8,42 +8,42 @@ description: > null character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{' + "name" + nullChars[index] + ' : "John" } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{' + "name" + nullChars[index] + ' : "John" } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-4.js b/test/built-ins/JSON/parse/15.12.2-2-4.js index 755f4578f853369418ba867262f2b2f160906162..819f7160fbcdd18de29cc520d62ae4adf5a3c6df 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-4.js +++ b/test/built-ins/JSON/parse/15.12.2-2-4.js @@ -8,42 +8,42 @@ description: > with a null character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{' + nullChars[index] + "name" + nullChars[index] + ' : "John" } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{' + nullChars[index] + "name" + nullChars[index] + ' : "John" } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-5.js b/test/built-ins/JSON/parse/15.12.2-2-5.js index 1b0a6240bb70bc5f1138ecda05b01bec1dcf48d3..ebd3e27be5d85f4ccf36dcbde2896bcc9d6ef8ff 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-5.js +++ b/test/built-ins/JSON/parse/15.12.2-2-5.js @@ -8,42 +8,42 @@ description: > null character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{ ' + "na" + nullChars[index] + "me" + ' : "John" } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{ ' + "na" + nullChars[index] + "me" + ' : "John" } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-6.js b/test/built-ins/JSON/parse/15.12.2-2-6.js index c4fb8b863c5d00f654a5a728df5fdff034f7eea6..80f4a5de68f215d25899b97f112b33b577d62307 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-6.js +++ b/test/built-ins/JSON/parse/15.12.2-2-6.js @@ -8,42 +8,42 @@ description: > character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{ "name" : ' + nullChars[index] + ' } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{ "name" : ' + nullChars[index] + ' } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-7.js b/test/built-ins/JSON/parse/15.12.2-2-7.js index 2cb912b1fa6448b0fa93082aa79c55380559b272..ed1db8a0956e5d3cd35bdc85e34815cbafac9980 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-7.js +++ b/test/built-ins/JSON/parse/15.12.2-2-7.js @@ -8,42 +8,42 @@ description: > null character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + ' } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + ' } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-8.js b/test/built-ins/JSON/parse/15.12.2-2-8.js index ab571c59f09998ac8863ed2a4417612690f04843..ae58602b3e602442a8f15497a39ed12751657eb0 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-8.js +++ b/test/built-ins/JSON/parse/15.12.2-2-8.js @@ -8,42 +8,42 @@ description: > null character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{ "name" : ' + "John" + nullChars[index] + ' } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{ "name" : ' + "John" + nullChars[index] + ' } '); + }); +} diff --git a/test/built-ins/JSON/parse/15.12.2-2-9.js b/test/built-ins/JSON/parse/15.12.2-2-9.js index ab7ca39ccdce0666d34b7e867b3c2d40ff22f617..02b7bb72dc185d4db4147c23e98ef5458d0e547c 100644 --- a/test/built-ins/JSON/parse/15.12.2-2-9.js +++ b/test/built-ins/JSON/parse/15.12.2-2-9.js @@ -8,42 +8,42 @@ description: > ends with a null character ---*/ - var nullChars = new Array(); - nullChars[0] = '\"\u0000\"'; - nullChars[1] = '\"\u0001\"'; - nullChars[2] = '\"\u0002\"'; - nullChars[3] = '\"\u0003\"'; - nullChars[4] = '\"\u0004\"'; - nullChars[5] = '\"\u0005\"'; - nullChars[6] = '\"\u0006\"'; - nullChars[7] = '\"\u0007\"'; - nullChars[8] = '\"\u0008\"'; - nullChars[9] = '\"\u0009\"'; - nullChars[10] = '\"\u000A\"'; - nullChars[11] = '\"\u000B\"'; - nullChars[12] = '\"\u000C\"'; - nullChars[13] = '\"\u000D\"'; - nullChars[14] = '\"\u000E\"'; - nullChars[15] = '\"\u000F\"'; - nullChars[16] = '\"\u0010\"'; - nullChars[17] = '\"\u0011\"'; - nullChars[18] = '\"\u0012\"'; - nullChars[19] = '\"\u0013\"'; - nullChars[20] = '\"\u0014\"'; - nullChars[21] = '\"\u0015\"'; - nullChars[22] = '\"\u0016\"'; - nullChars[23] = '\"\u0017\"'; - nullChars[24] = '\"\u0018\"'; - nullChars[25] = '\"\u0019\"'; - nullChars[26] = '\"\u001A\"'; - nullChars[27] = '\"\u001B\"'; - nullChars[28] = '\"\u001C\"'; - nullChars[29] = '\"\u001D\"'; - nullChars[30] = '\"\u001E\"'; - nullChars[31] = '\"\u001F\"'; +var nullChars = new Array(); +nullChars[0] = '\"\u0000\"'; +nullChars[1] = '\"\u0001\"'; +nullChars[2] = '\"\u0002\"'; +nullChars[3] = '\"\u0003\"'; +nullChars[4] = '\"\u0004\"'; +nullChars[5] = '\"\u0005\"'; +nullChars[6] = '\"\u0006\"'; +nullChars[7] = '\"\u0007\"'; +nullChars[8] = '\"\u0008\"'; +nullChars[9] = '\"\u0009\"'; +nullChars[10] = '\"\u000A\"'; +nullChars[11] = '\"\u000B\"'; +nullChars[12] = '\"\u000C\"'; +nullChars[13] = '\"\u000D\"'; +nullChars[14] = '\"\u000E\"'; +nullChars[15] = '\"\u000F\"'; +nullChars[16] = '\"\u0010\"'; +nullChars[17] = '\"\u0011\"'; +nullChars[18] = '\"\u0012\"'; +nullChars[19] = '\"\u0013\"'; +nullChars[20] = '\"\u0014\"'; +nullChars[21] = '\"\u0015\"'; +nullChars[22] = '\"\u0016\"'; +nullChars[23] = '\"\u0017\"'; +nullChars[24] = '\"\u0018\"'; +nullChars[25] = '\"\u0019\"'; +nullChars[26] = '\"\u001A\"'; +nullChars[27] = '\"\u001B\"'; +nullChars[28] = '\"\u001C\"'; +nullChars[29] = '\"\u001D\"'; +nullChars[30] = '\"\u001E\"'; +nullChars[31] = '\"\u001F\"'; - for (var index in nullChars) { - assert.throws(SyntaxError, function() { - var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + nullChars[index] + ' } '); - }); - } +for (var index in nullChars) { + assert.throws(SyntaxError, function() { + var obj = JSON.parse('{ "name" : ' + nullChars[index] + "John" + nullChars[index] + ' } '); + }); +} diff --git a/test/built-ins/JSON/parse/revived-proxy.js b/test/built-ins/JSON/parse/revived-proxy.js index fe3686849c0bac4a487f179a2fc71690e8c495eb..fbcb3aa4663c7f97cda30e959ef8ab7b7c947dcb 100644 --- a/test/built-ins/JSON/parse/revived-proxy.js +++ b/test/built-ins/JSON/parse/revived-proxy.js @@ -35,7 +35,10 @@ info: | features: [Proxy] ---*/ -var objectProxy = new Proxy({ length: 0, other: 0 }, {}); +var objectProxy = new Proxy({ + length: 0, + other: 0 +}, {}); var arrayProxy = new Proxy([], {}); var arrayProxyProxy = new Proxy(arrayProxy, {}); var visitedOther, injectProxy; diff --git a/test/built-ins/JSON/parse/reviver-object-define-prop-err.js b/test/built-ins/JSON/parse/reviver-object-define-prop-err.js index c42cff0a677a4ba2fead6bb18bb598d85ec928c2..d62dbaf894300152fa2f6bf9536338b5ad7b0e0b 100644 --- a/test/built-ins/JSON/parse/reviver-object-define-prop-err.js +++ b/test/built-ins/JSON/parse/reviver-object-define-prop-err.js @@ -30,7 +30,9 @@ info: | features: [Proxy] ---*/ -var badDefine = new Proxy({ 0: null }, { +var badDefine = new Proxy({ + 0: null +}, { defineProperty: function() { throw new Test262Error(); } diff --git a/test/built-ins/JSON/parse/reviver-object-delete-err.js b/test/built-ins/JSON/parse/reviver-object-delete-err.js index d596d4e27739155e6fd3ab8088aa3d93843a778b..edded21fa7063aab37fe3b98c50718be354383ac 100644 --- a/test/built-ins/JSON/parse/reviver-object-delete-err.js +++ b/test/built-ins/JSON/parse/reviver-object-delete-err.js @@ -28,7 +28,9 @@ info: | features: [Proxy] ---*/ -var badDelete = new Proxy({ a: 1 }, { +var badDelete = new Proxy({ + a: 1 +}, { deleteProperty: function() { throw new Test262Error(); } diff --git a/test/built-ins/JSON/stringify/15.12.3-0-1.js b/test/built-ins/JSON/stringify/15.12.3-0-1.js index c79c6f026553283e856c6f52c844ee8360808f72..5cc4240c7de4a8978159a4a92c34af4467935a33 100644 --- a/test/built-ins/JSON/stringify/15.12.3-0-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-0-1.js @@ -17,6 +17,6 @@ es5id: 15.12.3-0-1 description: JSON.stringify must exist as be a function ---*/ - var f = JSON.stringify; +var f = JSON.stringify; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-0-2.js b/test/built-ins/JSON/stringify/15.12.3-0-2.js index 3f5fe1ec080b59d708bc787f01dbfce284c15efc..08e864d0c88bc6ef2746ac68d3b6f110b97a47e3 100644 --- a/test/built-ins/JSON/stringify/15.12.3-0-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-0-2.js @@ -17,7 +17,7 @@ es5id: 15.12.3-0-2 description: JSON.stringify must exist as be a function taking 3 parameters ---*/ - var f = JSON.stringify; +var f = JSON.stringify; assert.sameValue(typeof(f), "function", 'typeof(f)'); assert.sameValue(f.length, 3, 'f.length'); diff --git a/test/built-ins/JSON/stringify/15.12.3-0-3.js b/test/built-ins/JSON/stringify/15.12.3-0-3.js index d8a575973a328d2669b42127d0490b7d1d43fd06..76e41ffb8a45801e127182f5ae4d7d027ac93a56 100644 --- a/test/built-ins/JSON/stringify/15.12.3-0-3.js +++ b/test/built-ins/JSON/stringify/15.12.3-0-3.js @@ -10,7 +10,7 @@ es5id: 15.12.3-0-3 description: JSON.stringify must be deletable (configurable) ---*/ - var o = JSON; - var desc = Object.getOwnPropertyDescriptor(o, "stringify"); +var o = JSON; +var desc = Object.getOwnPropertyDescriptor(o, "stringify"); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-10.js b/test/built-ins/JSON/stringify/15.12.3-11-10.js index f151731964870b6a5ae47c8485768fd38c9093ac..c59045ebb057c8af13be865f39e2f5df3a2b11e0 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-10.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-10.js @@ -8,4 +8,6 @@ description: > value can return undefined. ---*/ -assert.sameValue(JSON.stringify(42, function(k, v) { return undefined }), undefined, 'JSON.stringify(42, function(k, v) { return undefined })'); +assert.sameValue(JSON.stringify(42, function(k, v) { + return undefined +}), undefined, 'JSON.stringify(42, function(k, v) { return undefined })'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-11.js b/test/built-ins/JSON/stringify/15.12.3-11-11.js index da886044b92a4bdeb12f3e8a6bc155edc9566afe..f4da04f92cd329e973e0c648ce5970363705421c 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-11.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-11.js @@ -8,4 +8,8 @@ description: > can return undefined. ---*/ -assert.sameValue(JSON.stringify({prop:1}, function(k, v) { return undefined }), undefined, 'JSON.stringify({prop:1}, function(k, v) { return undefined })'); +assert.sameValue(JSON.stringify({ + prop: 1 +}, function(k, v) { + return undefined +}), undefined, 'JSON.stringify({prop:1}, function(k, v) { return undefined })'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-12.js b/test/built-ins/JSON/stringify/15.12.3-11-12.js index 5fdfea83836c5f1a6b2c08d6f6f37ca8ed99051c..1238189a0f2868966da81b1dd12bc0a481f86b60 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-12.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-12.js @@ -8,4 +8,6 @@ description: > can return an Array. ---*/ -assert.sameValue(JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v }), '[4,2]', 'JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v })'); +assert.sameValue(JSON.stringify(42, function(k, v) { + return v == 42 ? [4, 2] : v +}), '[4,2]', 'JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v })'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-13.js b/test/built-ins/JSON/stringify/15.12.3-11-13.js index e98f67116431e878592ee123cf38261d89d95ec0..22b244c0b66f7301f3d3e2884cb8f76b0fdf441b 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-13.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-13.js @@ -8,4 +8,8 @@ description: > can return an Object. ---*/ -assert.sameValue(JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v}), '{"forty":2}', 'JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v})'); +assert.sameValue(JSON.stringify(42, function(k, v) { + return v == 42 ? { + forty: 2 + } : v +}), '{"forty":2}', 'JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v})'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-15.js b/test/built-ins/JSON/stringify/15.12.3-11-15.js index d2cb9319145ed318d5473a0d0b52f59dcdc2f695..5a4b35c96e22c488de3a3808150361cb98440fd9 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-15.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-15.js @@ -8,4 +8,6 @@ description: > returns the replacer value. ---*/ -assert.sameValue(JSON.stringify(function() {}, function(k,v) {return 99}), '99', 'JSON.stringify(function() {}, function(k,v) {return 99})'); +assert.sameValue(JSON.stringify(function() {}, function(k, v) { + return 99 +}), '99', 'JSON.stringify(function() {}, function(k,v) {return 99})'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-16.js b/test/built-ins/JSON/stringify/15.12.3-11-16.js index e9d92d5c2dba3b6b441938ce0b465f113d427b00..23f89c2f9ca8dccc38a465a228b7403dbfa666d7 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-16.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-16.js @@ -9,46 +9,48 @@ description: > step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-17.js b/test/built-ins/JSON/stringify/15.12.3-11-17.js index fe8a268b6fa51a3881441b5d2eb014441812088b..9723236294182a0464b9ac6eaf531d35554f0f2f 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-17.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-17.js @@ -9,46 +9,48 @@ description: > Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-18.js b/test/built-ins/JSON/stringify/15.12.3-11-18.js index 721fe41e3c58fd5d773113cd9457875da2291b5e..6766a4e199561889e0afa537c747ee8fd6d566c7 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-18.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-18.js @@ -9,46 +9,48 @@ description: > Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-19.js b/test/built-ins/JSON/stringify/15.12.3-11-19.js index c372e890f420498a8af51095f05bf0da84b492a4..052e394f27c9aacab093d00282e603296533bb44 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-19.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-19.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-2.js b/test/built-ins/JSON/stringify/15.12.3-11-2.js index f6dc5e86225351b4fb41e3685fa6e2e28ffe1fcc..adc1c36c8835ff9acd22e499764d43bf74cd6a71 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-2.js @@ -8,4 +8,6 @@ description: > undefined value. ---*/ -assert.sameValue(JSON.stringify(undefined, function(k, v) { return "replacement" }), '"replacement"', 'JSON.stringify(undefined, function(k, v) { return "replacement" })'); +assert.sameValue(JSON.stringify(undefined, function(k, v) { + return "replacement" +}), '"replacement"', 'JSON.stringify(undefined, function(k, v) { return "replacement" })'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-20.js b/test/built-ins/JSON/stringify/15.12.3-11-20.js index 6b7c2e6f4f9bad5bc1fb3af4c7acee840fa834f3..8c9bc27838e03e85b909820697854d222a9c25c1 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-20.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-20.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "na\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fme": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "na\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fme": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-21.js b/test/built-ins/JSON/stringify/15.12.3-11-21.js index e22b848cc97221e9bb9f6bdcd014fb6c6381885f..ca7e598d61c942a2738bb7386791f14257384823 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-21.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-21.js @@ -9,46 +9,48 @@ description: > Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-22.js b/test/built-ins/JSON/stringify/15.12.3-11-22.js index 238b6c35f7cfde5ab6254d50ba4c891c0c149ab7..eec1325004d82a8c207601cfc4697c6be4613c4f 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-22.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-22.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-23.js b/test/built-ins/JSON/stringify/15.12.3-11-23.js index c19435273b6438a01d5e5bc4a33915a572ae2c13..982968f34db12bbf4fba31480f94bb9cc7da7256 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-23.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-23.js @@ -9,46 +9,48 @@ description: > Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "John\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "John\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-24.js b/test/built-ins/JSON/stringify/15.12.3-11-24.js index 17a9c9631e5375609428a82c92fb5f88a26a32c2..3fc4140a2c953b2a6ca0214912bfb5a190175001 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-24.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-24.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-25.js b/test/built-ins/JSON/stringify/15.12.3-11-25.js index 146d71200ebd7d25e55da71dbc8a43117a05b3e5..9a26fa418138329b7ecb4d9ad94fb9372f9a0acb 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-25.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-25.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "Jo\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fhn" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "Jo\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fhn" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-26.js b/test/built-ins/JSON/stringify/15.12.3-11-26.js index a04f354a098170238eabc589e5c44f6c2c499437..142160ce5d3f41542b96105fae6385568de24af3 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-26.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-26.js @@ -8,11 +8,11 @@ description: > abstract operation JA(value) step 10.b.iii) ---*/ - var arrObj = []; - arrObj[0] = "a"; - arrObj[1] = "b"; - arrObj[2] = "c"; +var arrObj = []; +arrObj[0] = "a"; +arrObj[1] = "b"; +arrObj[2] = "c"; - var jsonText = JSON.stringify(arrObj, undefined, "").toString(); +var jsonText = JSON.stringify(arrObj, undefined, "").toString(); assert.sameValue(jsonText.charAt(jsonText.length - 1), "]", 'jsonText.charAt(jsonText.length - 1)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-4-1.js b/test/built-ins/JSON/stringify/15.12.3-4-1.js index 0f7eafd118d0e7773753b740eab3765e63bdadfe..d681486988ddabe5a1abbb9452122b346686690c 100644 --- a/test/built-ins/JSON/stringify/15.12.3-4-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-4-1.js @@ -8,4 +8,4 @@ description: > or arrays.. ---*/ -assert.sameValue(JSON.stringify([42],{}), '[42]', 'JSON.stringify([42],{})'); +assert.sameValue(JSON.stringify([42], {}), '[42]', 'JSON.stringify([42],{})'); diff --git a/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js b/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js index 719f653c9f42ec26288dfc046e48380156defa8b..0304b03c2f2fa73f214ba17b81acff2977875049 100644 --- a/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js @@ -8,6 +8,15 @@ description: > Number values ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, new Number(5)), JSON.stringify(obj,null, 5), 'JSON.stringify(obj,null, new Number(5))'); +assert.sameValue(JSON.stringify(obj, null, new Number(5)), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, new Number(5))'); diff --git a/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js b/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js index 034123aec18624d3cbe726a826326b537dd8166b..baf3d06f5d126585bcb0360ddfb269b08d977396 100644 --- a/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js @@ -8,6 +8,15 @@ description: > String values ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, new String('xxx')), JSON.stringify(obj,null, 'xxx'), 'JSON.stringify(obj,null, new String("xxx"))'); +assert.sameValue(JSON.stringify(obj, null, new String('xxx')), JSON.stringify(obj, null, 'xxx'), 'JSON.stringify(obj,null, new String("xxx"))'); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-a-1.js b/test/built-ins/JSON/stringify/15.12.3-6-a-1.js index fd0d4ded4bc661b563f4b5b64276aad30b80660c..2d7e6386f07519b53864816acd54242b6fb49f0e 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-a-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-a-1.js @@ -8,6 +8,15 @@ description: > same as a space argument of 10. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, 10), JSON.stringify(obj,null, 100), 'JSON.stringify(obj,null, 10)'); +assert.sameValue(JSON.stringify(obj, null, 10), JSON.stringify(obj, null, 100), 'JSON.stringify(obj,null, 10)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-a-2.js b/test/built-ins/JSON/stringify/15.12.3-6-a-2.js index 1cfe50a805e12491c66f7893b2505ed061892660..16349f1f3d6a51db3534d4ca21c4fd4415b34671 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-a-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-a-2.js @@ -8,6 +8,15 @@ description: > their integer part. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, 5.99999), JSON.stringify(obj,null, 5), 'JSON.stringify(obj,null, 5.99999)'); +assert.sameValue(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, 5.99999)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-1.js b/test/built-ins/JSON/stringify/15.12.3-6-b-1.js index d5eea1024f4028984b22bdf91547a020c0058afd..d178f1eef3b6763abd84a38bfceb0bb4f065b2fc 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-b-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-b-1.js @@ -8,7 +8,16 @@ description: > (0.999999)the same as empty string space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; /* empty string should be same as no space arg */ -assert.sameValue(JSON.stringify(obj,null, 0.999999), JSON.stringify(obj)); +assert.sameValue(JSON.stringify(obj, null, 0.999999), JSON.stringify(obj)); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-2.js b/test/built-ins/JSON/stringify/15.12.3-6-b-2.js index d1bf8401b23a63d115af1b76367fa8bb3f0fd172..504e939e67811ad9fd5e49ac8c8459773153ac28 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-b-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-b-2.js @@ -8,7 +8,16 @@ description: > same as empty string space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; /* empty string should be same as no space arg */ -assert.sameValue(JSON.stringify(obj,null, 0), JSON.stringify(obj)); +assert.sameValue(JSON.stringify(obj, null, 0), JSON.stringify(obj)); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-3.js b/test/built-ins/JSON/stringify/15.12.3-6-b-3.js index 9310f9470bbf95674b6ebb0d0c95a96b79c285b5..92db3c82542919b2b3befb620b1cf62b6e625f4a 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-b-3.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-b-3.js @@ -8,7 +8,16 @@ description: > same as empty string space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; - /* empty string should be same as no space arg */ - assert.sameValue(JSON.stringify(obj,null, -5), JSON.stringify(obj)); +/* empty string should be same as no space arg */ +assert.sameValue(JSON.stringify(obj, null, -5), JSON.stringify(obj)); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-4.js b/test/built-ins/JSON/stringify/15.12.3-6-b-4.js index de033036742cd7bf9511048a260d4cfa1c40f410..e492e43a3ce14c13af820994604ff6e9f8ab9c0d 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-b-4.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-b-4.js @@ -8,8 +8,17 @@ description: > is equivalent to a string of spaces of that length. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; - var fiveSpaces = ' '; - // '12345' +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; +var fiveSpaces = ' '; +// '12345' -assert.sameValue(JSON.stringify(obj,null, 5), JSON.stringify(obj, null, fiveSpaces), 'JSON.stringify(obj,null, 5)'); +assert.sameValue(JSON.stringify(obj, null, 5), JSON.stringify(obj, null, fiveSpaces), 'JSON.stringify(obj,null, 5)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-7-a-1.js b/test/built-ins/JSON/stringify/15.12.3-7-a-1.js index e16a25e6f905bf526a959c939da578fcdb972a31..fd579d854df1151223fa2e0bec5bb1e6465746d6 100644 --- a/test/built-ins/JSON/stringify/15.12.3-7-a-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-7-a-1.js @@ -8,6 +8,15 @@ description: > arguments. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, '0123456789xxxxxxxxx'), JSON.stringify(obj,null, '0123456789'), 'JSON.stringify(obj,null, "0123456789xxxxxxxxx")'); +assert.sameValue(JSON.stringify(obj, null, '0123456789xxxxxxxxx'), JSON.stringify(obj, null, '0123456789'), 'JSON.stringify(obj,null, "0123456789xxxxxxxxx")'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-1.js b/test/built-ins/JSON/stringify/15.12.3-8-a-1.js index c95e950e615d1d1f10d10cf74c9cddac1dcee2f8..7fc0583f6140591481963be2d65d49c5cb959f22 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-1.js @@ -8,6 +8,15 @@ description: > missing space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, ''), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, ''), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-2.js b/test/built-ins/JSON/stringify/15.12.3-8-a-2.js index 0443eb753ac0299ded060fca80cd3f39ac383f6e..eacd51d52c49dee14a1b0ac7a8ea14c11ee1368c 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-2.js @@ -8,6 +8,15 @@ description: > missing space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, true), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, true), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-3.js b/test/built-ins/JSON/stringify/15.12.3-8-a-3.js index 6d4bc3eb86c3b845f07bbe805f09940344ddd50d..072eb9d5368b75938ac8069d57f6a5420ca76b31 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-3.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-3.js @@ -8,6 +8,15 @@ description: > space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, null), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, null), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-4.js b/test/built-ins/JSON/stringify/15.12.3-8-a-4.js index d13b9c5c80433cab05d92301c6da5d5cb6b083d7..7ac1a28ecfd5e1e39e8add376c548802c6a5e4a7 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-4.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-4.js @@ -8,6 +8,15 @@ description: > as a missing space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, new Boolean(true)), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, new Boolean(true)), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-5.js b/test/built-ins/JSON/stringify/15.12.3-8-a-5.js index 56532c4ecc27e0ea20b1cbd350d4b09c81c7f06b..4f05d178f901d94b6497d5116ff2ccbd4bc9a81a 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-5.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-5.js @@ -8,6 +8,15 @@ description: > the same as a missing space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, obj), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, obj), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js index 6f6fa62da5c1782c5d07fa6e970a972198a34654..447652a8b16839a310f32a3f509e36df6c619d62 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js @@ -8,9 +8,11 @@ description: > toJSON call to literal strings. ---*/ - var obj = { - prop:42, - toJSON: function () {return 'fortytwo objects'} - }; +var obj = { + prop: 42, + toJSON: function() { + return 'fortytwo objects' + } +}; assert.sameValue(JSON.stringify([obj]), '["fortytwo objects"]', 'JSON.stringify([obj])'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js index b665d80044c0899da501d028addca9960826c505..aa418fefd56ffade3affe42241e3f138475018d3 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js @@ -8,9 +8,11 @@ description: > toJSON call to literal Number. ---*/ - var obj = { - prop:42, - toJSON: function () {return new Number(42)} - }; +var obj = { + prop: 42, + toJSON: function() { + return new Number(42) + } +}; assert.sameValue(JSON.stringify([obj]), '[42]', 'JSON.stringify([obj])'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js index 9a192f26c13bc164f3e9a79fb6297680254f6b50..6f4eaccdf1f8e6684efd086c6e852215aa207489 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js @@ -8,9 +8,11 @@ description: > toJSON call to literal Boolean values. ---*/ - var obj = { - prop:42, - toJSON: function () {return new Boolean(true)} - }; +var obj = { + prop: 42, + toJSON: function() { + return new Boolean(true) + } +}; assert.sameValue(JSON.stringify([obj]), '[true]', 'JSON.stringify([obj])'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js index 853acb01d693a6f7fb55a133415254c324118d6a..aefb5d77ca4210e3410a3eaa4ff472d093cf0e6c 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js @@ -8,4 +8,6 @@ description: > replacer functions to literal strings. ---*/ -assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new String('fortytwo'):v}), '["fortytwo"]', 'JSON.stringify([42], function(k,v) {return v===42? new String("fortytwo"):v})'); +assert.sameValue(JSON.stringify([42], function(k, v) { + return v === 42 ? new String('fortytwo') : v +}), '["fortytwo"]', 'JSON.stringify([42], function(k,v) {return v===42? new String("fortytwo"):v})'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js index 7888996d77a7f1501871296d41270a8742b67e6f..87b0df0ac0627dcf02bdf105e1ecca5e4a2669f8 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js @@ -8,4 +8,6 @@ description: > replacer functions to literal numbers. ---*/ -assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new Number(84):v}), '[84]', 'JSON.stringify([42], function(k,v) {return v===42? new Number(84):v})'); +assert.sameValue(JSON.stringify([42], function(k, v) { + return v === 42 ? new Number(84) : v +}), '[84]', 'JSON.stringify([42], function(k,v) {return v===42? new Number(84):v})'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js index adb582fe2016c60122f9b180a303f6a459b0cc75..a26ae4b2f03e70f1f61ad855d8e0c10fb7e1ea2a 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js @@ -8,4 +8,6 @@ description: > replacer functions to literal numbers. ---*/ -assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v}), '[false]', 'JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v})'); +assert.sameValue(JSON.stringify([42], function(k, v) { + return v === 42 ? new Boolean(false) : v +}), '[false]', 'JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v})'); diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-1.js b/test/built-ins/JSON/stringify/15.12.3_4-1-1.js index f9b5f68ab3b846ae3519141110ab98784b4602ae..40b42f57424a7a39b03bc1af9b8aa92481a9fa2d 100644 --- a/test/built-ins/JSON/stringify/15.12.3_4-1-1.js +++ b/test/built-ins/JSON/stringify/15.12.3_4-1-1.js @@ -6,9 +6,9 @@ es5id: 15.12.3_4-1-1 description: JSON.stringify a circular object throws a error ---*/ - var obj = {}; - obj.prop = obj; +var obj = {}; +obj.prop = obj; assert.throws(TypeError, function() { - JSON.stringify(obj); + JSON.stringify(obj); }); diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-2.js b/test/built-ins/JSON/stringify/15.12.3_4-1-2.js index a79907bd0faa48d401ce7a84a3e01eeaec4ee8aa..299853c9164d41fd05d63bcf17e2fe28dbe766aa 100644 --- a/test/built-ins/JSON/stringify/15.12.3_4-1-2.js +++ b/test/built-ins/JSON/stringify/15.12.3_4-1-2.js @@ -6,9 +6,9 @@ es5id: 15.12.3_4-1-2 description: JSON.stringify a circular object throws a TypeError ---*/ - var obj = {}; - obj.prop = obj; +var obj = {}; +obj.prop = obj; assert.throws(TypeError, function() { - JSON.stringify(obj); + JSON.stringify(obj); }); diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-3.js b/test/built-ins/JSON/stringify/15.12.3_4-1-3.js index 30d0a4339c7bd45721d0047404f0321b62b3bbc1..feb1a6c9c30ed52d16c9a1b31b2f9f4b7246895a 100644 --- a/test/built-ins/JSON/stringify/15.12.3_4-1-3.js +++ b/test/built-ins/JSON/stringify/15.12.3_4-1-3.js @@ -6,9 +6,13 @@ es5id: 15.12.3_4-1-3 description: JSON.stringify a indirectly circular object throws a error ---*/ - var obj = {p1: {p2: {}}}; - obj.p1.p2.prop = obj; +var obj = { + p1: { + p2: {} + } +}; +obj.p1.p2.prop = obj; assert.throws(TypeError, function() { - JSON.stringify(obj); + JSON.stringify(obj); }); diff --git a/test/built-ins/JSON/stringify/bigint-order.js b/test/built-ins/JSON/stringify/bigint-order.js index 7dc1d96727ea8e02e2f0c7a419a2ff9abe964321..a6de33687780c954cbf545483418161749fbaa25 100644 --- a/test/built-ins/JSON/stringify/bigint-order.js +++ b/test/built-ins/JSON/stringify/bigint-order.js @@ -27,16 +27,19 @@ let step; function replacer(x, k, v) { assert.sameValue(step++, 1); - assert.sameValue(v, 1n); + assert.sameValue(v, 1 n); return x; } -BigInt.prototype.toJSON = function () { assert.sameValue(step++, 0); return 1n; }; +BigInt.prototype.toJSON = function() { + assert.sameValue(step++, 0); + return 1 n; +}; step = 0; -assert.throws(TypeError, () => JSON.stringify(0n, (k, v) => replacer(2n, k, v))); +assert.throws(TypeError, () => JSON.stringify(0 n, (k, v) => replacer(2 n, k, v))); assert.sameValue(step, 2); step = 0; -assert.throws(TypeError, () => JSON.stringify(0n, (k, v) => replacer(Object(2n), k, v))); +assert.throws(TypeError, () => JSON.stringify(0 n, (k, v) => replacer(Object(2 n), k, v))); assert.sameValue(step, 2); diff --git a/test/built-ins/JSON/stringify/bigint-replacer.js b/test/built-ins/JSON/stringify/bigint-replacer.js index 03878ec5c1f2a9db087f601a148688c09efad4c4..72e19c14983b0efec4e448d30c8438cf2c6c7d8d 100644 --- a/test/built-ins/JSON/stringify/bigint-replacer.js +++ b/test/built-ins/JSON/stringify/bigint-replacer.js @@ -14,11 +14,13 @@ features: [BigInt] function replacer(k, v) { - if (typeof v === "bigint") - return "bigint"; - else - return v; + if (typeof v === "bigint") + return "bigint"; + else + return v; } assert.sameValue(JSON.stringify(0n, replacer), '"bigint"'); -assert.sameValue(JSON.stringify({x: 0n}, replacer), '{"x":"bigint"}'); +assert.sameValue(JSON.stringify({ + x: 0n +}, replacer), '{"x":"bigint"}'); diff --git a/test/built-ins/JSON/stringify/bigint-tojson.js b/test/built-ins/JSON/stringify/bigint-tojson.js index bf4f531f2a5a8aa3ec33dad202e2d19efd9eccf9..c314d74bddca3e05776a2099c1dec4400789f91b 100644 --- a/test/built-ins/JSON/stringify/bigint-tojson.js +++ b/test/built-ins/JSON/stringify/bigint-tojson.js @@ -14,5 +14,7 @@ info: | features: [BigInt] ---*/ -BigInt.prototype.toJSON = function () { return this.toString(); }; +BigInt.prototype.toJSON = function() { + return this.toString(); +}; assert.sameValue(JSON.stringify(0n), '"0"'); diff --git a/test/built-ins/JSON/stringify/bigint.js b/test/built-ins/JSON/stringify/bigint.js index 80d17799ef4b957be8da3fb5a0de1859d4676a69..bba26f4dc8b6332e4670b8a8216b8c239e574119 100644 --- a/test/built-ins/JSON/stringify/bigint.js +++ b/test/built-ins/JSON/stringify/bigint.js @@ -9,4 +9,6 @@ features: [BigInt] assert.throws(TypeError, () => JSON.stringify(0n)); assert.throws(TypeError, () => JSON.stringify(Object(0n))); -assert.throws(TypeError, () => JSON.stringify({x: 0n})); +assert.throws(TypeError, () => JSON.stringify({ + x: 0n +})); diff --git a/test/built-ins/JSON/stringify/replacer-proxy.js b/test/built-ins/JSON/stringify/replacer-proxy.js index 9ac8d5bb5f8d42ec1e04e3d3c44142e443eca8db..8ec585a987f61e559318046f2001753037174bec 100644 --- a/test/built-ins/JSON/stringify/replacer-proxy.js +++ b/test/built-ins/JSON/stringify/replacer-proxy.js @@ -36,10 +36,14 @@ var arrayProxyProxy = new Proxy(arrayProxy, {}); assert.sameValue(JSON.stringify(objectProxy), '{}'); assert.sameValue(JSON.stringify(arrayProxy), '[]', 'proxy for an array'); assert.sameValue( - JSON.stringify([[arrayProxy]]), '[[[]]]', 'proxy for an array (nested)' + JSON.stringify([ + [arrayProxy] + ]), '[[[]]]', 'proxy for an array (nested)' ); assert.sameValue( - JSON.stringify([[arrayProxyProxy]]), + JSON.stringify([ + [arrayProxyProxy] + ]), '[[[]]]', 'proxy for a proxy for an array (nested)' ); diff --git a/test/built-ins/JSON/stringify/value-proxy-revoked.js b/test/built-ins/JSON/stringify/value-proxy-revoked.js index 24b34f5dc45938985a8a10e2ed33e0038357f459..81cd50d989566ad08f89fc37f260ca4743a8b939 100644 --- a/test/built-ins/JSON/stringify/value-proxy-revoked.js +++ b/test/built-ins/JSON/stringify/value-proxy-revoked.js @@ -38,5 +38,9 @@ assert.throws(TypeError, function() { }, 'top-level value'); assert.throws(TypeError, function() { - JSON.stringify([[[handle.proxy]]]); + JSON.stringify([ + [ + [handle.proxy] + ] + ]); }, 'nested value'); diff --git a/test/built-ins/Map/iterable-calls-set.js b/test/built-ins/Map/iterable-calls-set.js index 989cab985c2b3c441a41111a68043193cd4e41d6..3b512eb4b139f5bdf0d8a58f874415f6c9acf8fb 100644 --- a/test/built-ins/Map/iterable-calls-set.js +++ b/test/built-ins/Map/iterable-calls-set.js @@ -18,7 +18,10 @@ includes: [compareArray.js] var mapSet = Map.prototype.set; var counter = 0; -var iterable = [["foo", 1], ["bar", 2]]; +var iterable = [ + ["foo", 1], + ["bar", 2] +]; var results = []; var _this = []; diff --git a/test/built-ins/Map/iterator-close-after-set-failure.js b/test/built-ins/Map/iterator-close-after-set-failure.js index 144d74373cd2a7ff7df2c59ce22ac1a93d2078c3..321c0a729fa45b3f425e74b9707a5acf08af9cbc 100644 --- a/test/built-ins/Map/iterator-close-after-set-failure.js +++ b/test/built-ins/Map/iterator-close-after-set-failure.js @@ -20,14 +20,19 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: [], done: false }; + return { + value: [], + done: false + }; }, return: function() { count += 1; } }; }; -Map.prototype.set = function() { throw new Test262Error(); } +Map.prototype.set = function() { + throw new Test262Error(); +} assert.throws(Test262Error, function() { new Map(iterable); diff --git a/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js b/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js index 4e8e10a6c03cb3d8fecbcf9f4636fb2652ce8c90..8c9bc4fe89c618ebc4de89f02cfdf126a45b01da 100644 --- a/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js +++ b/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js @@ -27,7 +27,10 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: nextItem, done: false }; + return { + value: nextItem, + done: false + }; }, return: function() { count += 1; diff --git a/test/built-ins/Map/iterator-items-are-not-object.js b/test/built-ins/Map/iterator-items-are-not-object.js index 18b2b6df2ef2c354c86f8f0b8176af9deccdd9f8..aceebcef7c3dc538175ddf5a164f972fb6c7ce37 100644 --- a/test/built-ins/Map/iterator-items-are-not-object.js +++ b/test/built-ins/Map/iterator-items-are-not-object.js @@ -44,5 +44,7 @@ assert.throws(TypeError, function() { }); assert.throws(TypeError, function() { - new Map([['a', 1], 2]); + new Map([ + ['a', 1], 2 + ]); }); diff --git a/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js b/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js index d4ec50d3f698bc4e256f942eb2901b7d5ad34849..89fc9ce3ca15d04ef185718ac08d002fe9fc4160 100644 --- a/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js +++ b/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js @@ -23,5 +23,8 @@ info: | Map.prototype.set = null; assert.throws(TypeError, function() { - new Map([[1,1], [2,2]]); + new Map([ + [1, 1], + [2, 2] + ]); }); diff --git a/test/built-ins/Map/map-iterable.js b/test/built-ins/Map/map-iterable.js index 3aab35f3dba5dea611c588c359886cea766bb1b5..e46330ead8ae5887ab4bc38c6ba0c73fd813347f 100644 --- a/test/built-ins/Map/map-iterable.js +++ b/test/built-ins/Map/map-iterable.js @@ -17,8 +17,8 @@ info: | ---*/ var m = new Map([ - [ "attr", 1 ], - [ "foo", 2 ] + ["attr", 1], + ["foo", 2] ]); assert.sameValue(m.size, 2, 'The value of `m.size` is `2`'); diff --git a/test/built-ins/Map/newtarget.js b/test/built-ins/Map/newtarget.js index a9589a4cc59cb22703a42e9c0c9dc224b963b396..0206d23b14f46eaa890f9954e77bdcfda8af2426 100644 --- a/test/built-ins/Map/newtarget.js +++ b/test/built-ins/Map/newtarget.js @@ -25,7 +25,10 @@ assert.sameValue( "`Object.getPrototypeOf(m1)` returns `Map.prototype`" ); -var m2 = new Map([[1, 1], [2, 2]]); +var m2 = new Map([ + [1, 1], + [2, 2] +]); assert.sameValue( Object.getPrototypeOf(m2), diff --git a/test/built-ins/Map/prototype/clear/clear-map.js b/test/built-ins/Map/prototype/clear/clear-map.js index b6580d0a4bd570475839c1bb75639a9925d4d945..e5341fbdd3abe54e74b765da45bd1ce3ab93290c 100644 --- a/test/built-ins/Map/prototype/clear/clear-map.js +++ b/test/built-ins/Map/prototype/clear/clear-map.js @@ -17,11 +17,14 @@ info: | features: [Symbol] ---*/ -var m1 = new Map([['foo', 'bar'], [1, 1]]); +var m1 = new Map([ + ['foo', 'bar'], + [1, 1] +]); var m2 = new Map(); var m3 = new Map(); m2.set('foo', 'bar'); -m2.set(1,1); +m2.set(1, 1); m2.set(Symbol('a'), Symbol('a')); m1.clear(); diff --git a/test/built-ins/Map/prototype/clear/clear.js b/test/built-ins/Map/prototype/clear/clear.js index 59f28de2e90d7e66fbbf99172305ff14ff335712..80fe0ac78615d84a996309ab38fe1457e1513e90 100644 --- a/test/built-ins/Map/prototype/clear/clear.js +++ b/test/built-ins/Map/prototype/clear/clear.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Map.prototype.clear, - 'function', - 'typeof Map.prototype.clear is "function"' + typeof Map.prototype.clear, + 'function', + 'typeof Map.prototype.clear is "function"' ); verifyNotEnumerable(Map.prototype, 'clear'); diff --git a/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js b/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js index f49aefda0a5fc93741043b1e4b5ec2d754dc7e53..e83b87d5cd910630e43ce1f68c73cf68def239f0 100644 --- a/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js +++ b/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js @@ -20,7 +20,11 @@ info: | 6. Return undefined. ---*/ -var m = new Map([[1,1], [2,2], [3,3]]); +var m = new Map([ + [1, 1], + [2, 2], + [3, 3] +]); var e = m.entries(); e.next(); diff --git a/test/built-ins/Map/prototype/clear/returns-undefined.js b/test/built-ins/Map/prototype/clear/returns-undefined.js index 1e1d662aa3f122fce4561a6aa7193e743f239eab..ce4cfcff21d69356af051401d2eedc76616504aa 100644 --- a/test/built-ins/Map/prototype/clear/returns-undefined.js +++ b/test/built-ins/Map/prototype/clear/returns-undefined.js @@ -16,7 +16,10 @@ info: | 6. Return undefined. ---*/ -var m1 = new Map([['foo', 'bar'], [1, 1]]); +var m1 = new Map([ + ['foo', 'bar'], + [1, 1] +]); assert.sameValue(m1.clear(), undefined, 'clears a map and returns undefined'); assert.sameValue(m1.clear(), undefined, 'returns undefined on an empty map'); diff --git a/test/built-ins/Map/prototype/delete/delete.js b/test/built-ins/Map/prototype/delete/delete.js index 4bf8688efab59b555a816167c3eea8aab5168b41..6d01496fe9b980c35f2bfb9561aa2891fc8e53e2 100644 --- a/test/built-ins/Map/prototype/delete/delete.js +++ b/test/built-ins/Map/prototype/delete/delete.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Map.prototype.delete, - 'function', - 'typeof Map.prototype.delete is "function"' + typeof Map.prototype.delete, + 'function', + 'typeof Map.prototype.delete is "function"' ); verifyNotEnumerable(Map.prototype, 'delete'); diff --git a/test/built-ins/Map/prototype/delete/does-not-break-iterators.js b/test/built-ins/Map/prototype/delete/does-not-break-iterators.js index 895a7ecef5feee593850d0b1575513d3c298af57..1a788fdc0ce6397e4b06d77b907a5b1e057d17a5 100644 --- a/test/built-ins/Map/prototype/delete/does-not-break-iterators.js +++ b/test/built-ins/Map/prototype/delete/does-not-break-iterators.js @@ -16,7 +16,11 @@ info: | ... ---*/ -var m = new Map([['a',1], ['b', 2], ['c', 3]]); +var m = new Map([ + ['a', 1], + ['b', 2], + ['c', 3] +]); var e = m.entries(); e.next(); diff --git a/test/built-ins/Map/prototype/delete/returns-false.js b/test/built-ins/Map/prototype/delete/returns-false.js index 2f2300d35ad8e22bc92dff351197f9a7379476ea..d1db1c97c9ca19d0a2e8f50744be63b5f1b5b92a 100644 --- a/test/built-ins/Map/prototype/delete/returns-false.js +++ b/test/built-ins/Map/prototype/delete/returns-false.js @@ -15,7 +15,10 @@ info: | 6. Return false. ---*/ -var m = new Map([['a',1], ['b', 2]]); +var m = new Map([ + ['a', 1], + ['b', 2] +]); assert.sameValue(m.delete('not-in-the-map'), false); diff --git a/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js b/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js index 02ad4b12d95d7ea0f2bbf7296f4c77ef2e9aaede..1f4ccb52ead885bf264fac969ce61f50ee1807d8 100644 --- a/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js +++ b/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js @@ -16,7 +16,10 @@ info: | ... ---*/ -var m = new Map([['a',1], ['b', 2]]); +var m = new Map([ + ['a', 1], + ['b', 2] +]); var result = m.delete('a'); diff --git a/test/built-ins/Map/prototype/entries/returns-iterator.js b/test/built-ins/Map/prototype/entries/returns-iterator.js index b2a8ef5c41acd68c26a6c5f38f231f50aa2e6359..96626b2448ce71db556b20c74ad4e22e2a6864d7 100644 --- a/test/built-ins/Map/prototype/entries/returns-iterator.js +++ b/test/built-ins/Map/prototype/entries/returns-iterator.js @@ -17,9 +17,9 @@ info: | ---*/ var map = new Map(); -map.set('a',1); -map.set('b',2); -map.set('c',3); +map.set('a', 1); +map.set('b', 2); +map.set('c', 3); var iterator = map.entries(); var result; diff --git a/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js b/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js index d61bb4e2db39d32649321b558a14f81c0fbfbc03..f377e9c6e8dd26b0a6f4bf4646b432ae1a6821ba 100644 --- a/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js +++ b/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js @@ -19,7 +19,9 @@ info: | flags: [noStrict] ---*/ -var map = new Map([[0, 0]]); +var map = new Map([ + [0, 0] +]); assert.throws(Test262Error, function() { map.forEach(function() { diff --git a/test/built-ins/Map/prototype/get/returns-undefined.js b/test/built-ins/Map/prototype/get/returns-undefined.js index 42744d8c64e86cbacbf4506fa10eb1a3337aecb2..84f511184ad9537e9409159c4f594edee6b9fb9c 100644 --- a/test/built-ins/Map/prototype/get/returns-undefined.js +++ b/test/built-ins/Map/prototype/get/returns-undefined.js @@ -20,7 +20,7 @@ var map = new Map(); assert.sameValue( map.get('item'), undefined, - 'returns undefined if key is not on the map' + 'returns undefined if key is not on the map' ); map.set('item', 1); diff --git a/test/built-ins/Map/prototype/has/return-false-different-key-types.js b/test/built-ins/Map/prototype/has/return-false-different-key-types.js index 0be565021b59e30627f5c92615f24b1f84d01b73..86c0897c0878862c48b685a4be3191368aa10560 100644 --- a/test/built-ins/Map/prototype/has/return-false-different-key-types.js +++ b/test/built-ins/Map/prototype/has/return-false-different-key-types.js @@ -18,7 +18,7 @@ features: [Symbol] var map = new Map(); assert.sameValue(map.has('str'), false); -assert.sameValue(map.has(1), false); +assert.sameValue(map.has(1), false); assert.sameValue(map.has(NaN), false); assert.sameValue(map.has(true), false); assert.sameValue(map.has(false), false); diff --git a/test/built-ins/Map/prototype/has/return-true-different-key-types.js b/test/built-ins/Map/prototype/has/return-true-different-key-types.js index 591f4510941aa40c5fc487313970778385589ddc..bcdaa0418c8eab8dcf8dac2092518739b4ac85b9 100644 --- a/test/built-ins/Map/prototype/has/return-true-different-key-types.js +++ b/test/built-ins/Map/prototype/has/return-true-different-key-types.js @@ -33,7 +33,7 @@ map.set(null, undefined); map.set(undefined, undefined); assert.sameValue(map.has('str'), true); -assert.sameValue(map.has(1), true); +assert.sameValue(map.has(1), true); assert.sameValue(map.has(NaN), true); assert.sameValue(map.has(true), true); assert.sameValue(map.has(false), true); diff --git a/test/built-ins/Map/prototype/set/append-new-values-return-map.js b/test/built-ins/Map/prototype/set/append-new-values-return-map.js index 8e5d430698c60090cca6a6069870d79058674175..5d84eb8a2406b175446c1958f6656073ad618ed8 100644 --- a/test/built-ins/Map/prototype/set/append-new-values-return-map.js +++ b/test/built-ins/Map/prototype/set/append-new-values-return-map.js @@ -20,7 +20,7 @@ var result = map.set(1, 1); assert.sameValue(result, map); -result = map.set(1,1).set(2,2).set(3,3); +result = map.set(1, 1).set(2, 2).set(3, 3); assert.sameValue(result, map, 'Map.prototype.set is chainable'); diff --git a/test/built-ins/Map/prototype/set/append-new-values.js b/test/built-ins/Map/prototype/set/append-new-values.js index 3cc9f6f62178dfde9258ce8bab5136ee2ed370df..93b99dcd92614762ba3240bf0ccc4ccf822a1622 100644 --- a/test/built-ins/Map/prototype/set/append-new-values.js +++ b/test/built-ins/Map/prototype/set/append-new-values.js @@ -17,7 +17,11 @@ features: [Symbol] ---*/ var s = Symbol(2); -var map = new Map([[4, 4], ['foo3', 3], [s, 2]]); +var map = new Map([ + [4, 4], + ['foo3', 3], + [s, 2] +]); map.set(null, 42); map.set(1, 'valid'); diff --git a/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js b/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js index 991c8a277088fdbad4520dc0b19bd7d5248720ca..427e7eb2c1f55234d98dad34ff1dd9dd7c9ae21d 100644 --- a/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js +++ b/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js @@ -16,11 +16,15 @@ info: | ... ---*/ -var map = new Map([[+0, 1]]); +var map = new Map([ + [+0, 1] +]); map.set(-0, 42); assert.sameValue(map.get(+0), 42, 'zero key is normalized in SameValueZero'); -map = new Map([[-0, 1]]); +map = new Map([ + [-0, 1] +]); map.set(+0, 42); assert.sameValue(map.get(-0), 42, 'zero key is normalized in SameValueZero'); diff --git a/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js b/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js index 447a8c4d9e2a312cb9133d9d66d219f8fd8d1b2c..f211e63a5b47b7dab005b920a14a658256f6d6e9 100644 --- a/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js +++ b/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js @@ -17,7 +17,9 @@ info: | ... ---*/ -var map = new Map([['item', 0]]); +var map = new Map([ + ['item', 0] +]); var map2 = new Map(); var x = map.set('item', 42); diff --git a/test/built-ins/Map/prototype/set/replaces-a-value.js b/test/built-ins/Map/prototype/set/replaces-a-value.js index 35b339dc6bf9f757eb03277b3ee5dcb676adc4f2..21f48ea88b79abd0f47a69eef3b003a9eac054e2 100644 --- a/test/built-ins/Map/prototype/set/replaces-a-value.js +++ b/test/built-ins/Map/prototype/set/replaces-a-value.js @@ -16,7 +16,9 @@ info: | ... ---*/ -var m = new Map([['item', 1]]); +var m = new Map([ + ['item', 1] +]); m.set('item', 42); assert.sameValue(m.get('item'), 42); diff --git a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js index 9d80385e546ff2720c89773abbf091a538dccef0..68782caab4a389999214c23160d9dbf372eee5f2 100644 --- a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js +++ b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js @@ -16,7 +16,10 @@ info: | features: [Symbol.iterator] ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map[Symbol.iterator](); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js index 93e0c4cef1422a13bbec45a1a8e919de36b0c88f..0190d8c356d722a9f27b960d32b29e2088d2b51b 100644 --- a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js +++ b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js @@ -16,7 +16,10 @@ info: | features: [Symbol.iterator] ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map[Symbol.iterator](); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js index 968f79a34990af640ddf16d05a875c10ad394312..56d0a4cd48b2a2b493b0963e5b49d9962d8e592a 100644 --- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js +++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map.entries(); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js index 06ac501d24d9d4049d9766fa8653a309c7d0b824..875ba5f36960871dfd8ba52de3327ce91024802b 100644 --- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js +++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map.keys(); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js index dccb08c52daa97c61547ba9be696f7e89bd600d3..912f5f15ec107d92b1394e73c892dfa4a68317fd 100644 --- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js +++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map[Symbol.iterator](); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js index 55a61d9a3d615018b49e009b7c12b446f7648c53..79822a393ca0b4a53b0829c461a5f5e84282eca8 100644 --- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js +++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map.values(); assert.throws(TypeError, function() { diff --git a/test/built-ins/Math/abs/S15.8.2.1_A3.js b/test/built-ins/Math/abs/S15.8.2.1_A3.js index 4584dc9c9a6c6d980a16bd4dd9903e8716ecd0eb..da4ec1890cf7da54068a589760cb3c4649e44b2e 100644 --- a/test/built-ins/Math/abs/S15.8.2.1_A3.js +++ b/test/built-ins/Math/abs/S15.8.2.1_A3.js @@ -11,5 +11,5 @@ description: Checking if Math.abs(-Infinity) equals to +Infinity var x = -Infinity; if (Math.abs(x) !== +Infinity) { - $ERROR("#1: 'var x=-Infinity; Math.abs(x) !== +Infinity'"); + $ERROR("#1: 'var x=-Infinity; Math.abs(x) !== +Infinity'"); } diff --git a/test/built-ins/Math/acosh/nan-returns.js b/test/built-ins/Math/acosh/nan-returns.js index 4917b4905ce4e7ae684a80eab2235698b074f87d..b58e45dd5661cff81b61ac2e4a8918e721859fe2 100644 --- a/test/built-ins/Math/acosh/nan-returns.js +++ b/test/built-ins/Math/acosh/nan-returns.js @@ -1,18 +1,18 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.acosh with special values -es6id: 20.2.2.3 -info: | - Math.acosh ( x ) - - - If x is NaN, the result is NaN. - - If x is less than 1, the result is NaN. ----*/ - -assert.sameValue(Math.acosh(NaN), NaN, "NaN"); -assert.sameValue(Math.acosh(0.999999), NaN, "0.999999"); -assert.sameValue(Math.acosh(0), NaN, "0"); -assert.sameValue(Math.acosh(-1), NaN, "-1"); -assert.sameValue(Math.acosh(-Infinity), NaN, "-Infinity"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.acosh with special values +es6id: 20.2.2.3 +info: | + Math.acosh ( x ) + + - If x is NaN, the result is NaN. + - If x is less than 1, the result is NaN. +---*/ + +assert.sameValue(Math.acosh(NaN), NaN, "NaN"); +assert.sameValue(Math.acosh(0.999999), NaN, "0.999999"); +assert.sameValue(Math.acosh(0), NaN, "0"); +assert.sameValue(Math.acosh(-1), NaN, "-1"); +assert.sameValue(Math.acosh(-Infinity), NaN, "-Infinity"); diff --git a/test/built-ins/Math/asinh/asinh-specialVals.js b/test/built-ins/Math/asinh/asinh-specialVals.js index 0c2fda9657c13aa6acbbff73f8c0cbb71c60cdf7..33d88207c0a77fc2a41c7fb18ee6c35228bbbf21 100644 --- a/test/built-ins/Math/asinh/asinh-specialVals.js +++ b/test/built-ins/Math/asinh/asinh-specialVals.js @@ -1,18 +1,18 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.asinh with special values -es6id: 20.2.2.5 ----*/ - -assert.sameValue(Math.asinh(NaN), Number.NaN, - "Math.asinh produces incorrect output for NaN"); -assert.sameValue(Math.asinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY, - "Math.asinh should produce negative infinity for Number.NEGATIVE_INFINITY"); -assert.sameValue(Math.asinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.asinh should produce positive infinity for Number.POSITIVE_INFINITY"); -assert.sameValue(1 / Math.asinh(-0), Number.NEGATIVE_INFINITY, - "Math.asinh should produce -0 for -0"); -assert.sameValue(1 / Math.asinh(0), Number.POSITIVE_INFINITY, - "Math.asinh should produce +0 for +0"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.asinh with special values +es6id: 20.2.2.5 +---*/ + +assert.sameValue(Math.asinh(NaN), Number.NaN, + "Math.asinh produces incorrect output for NaN"); +assert.sameValue(Math.asinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY, + "Math.asinh should produce negative infinity for Number.NEGATIVE_INFINITY"); +assert.sameValue(Math.asinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.asinh should produce positive infinity for Number.POSITIVE_INFINITY"); +assert.sameValue(1 / Math.asinh(-0), Number.NEGATIVE_INFINITY, + "Math.asinh should produce -0 for -0"); +assert.sameValue(1 / Math.asinh(0), Number.POSITIVE_INFINITY, + "Math.asinh should produce +0 for +0"); diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A1.js b/test/built-ins/Math/atan2/S15.8.2.5_A1.js index 0b1d92a2a2fc7b383771bc2d513d85dcfa923858..fafadc81bc7e147b702b2173d8d1e24e44f6540c 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A1.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A1.js @@ -24,14 +24,14 @@ var valnum = 7; var args = new Array(); for (var i = 0; i < 2; i++) { - args[i] = NaN; - for (var j = 0; j < valnum; j++) - { - args[1-i] = vals[j]; - assert.sameValue( - Math.atan2(args[0], args[1]), - NaN, - "(" + args[0] + ", " + args[1] + ")" - ); - } + args[i] = NaN; + for (var j = 0; j < valnum; j++) + { + args[1 - i] = vals[j]; + assert.sameValue( + Math.atan2(args[0], args[1]), + NaN, + "(" + args[0] + ", " + args[1] + ")" + ); + } } diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A16.js b/test/built-ins/Math/atan2/S15.8.2.5_A16.js index 19f2509a17384a43e5e3e76b9680a22e0af7592b..5c0ea9823f66e0a1d52dc3c4da0aaffcd5dabaf4 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A16.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A16.js @@ -20,8 +20,7 @@ var ynum = 3; for (var i = 0; i < ynum; i++) { assert.sameValue( - Math.atan2(y[i], x), - -0, + Math.atan2(y[i], x), -0, "(" + y[i] + ", Infinity)" ); } diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A4.js b/test/built-ins/Math/atan2/S15.8.2.5_A4.js index ef663e63ffe122333d82f5f215f1ffb440e8e248..5472b973f13e4ac2db790bf2efb2b69a720776c0 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A4.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A4.js @@ -12,7 +12,7 @@ var y = +0; var x = new Array(); x[0] = 0.000000000000001; x[2] = +Infinity; -x[1] = 1; +x[1] = 1; var xnum = 3; for (var i = 0; i < xnum; i++) diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A8.js b/test/built-ins/Math/atan2/S15.8.2.5_A8.js index 64dc40028f8fe35e6f6c851866abbfee9135ad4f..de7ff4e1e77356ebc483b6bf3f6f7b21435c4ffd 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A8.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A8.js @@ -12,14 +12,13 @@ var y = -0; var x = new Array(); x[0] = 0.000000000000001; x[2] = +Infinity; -x[1] = 1; +x[1] = 1; var xnum = 3; for (var i = 0; i < xnum; i++) { assert.sameValue( - Math.atan2(y, x[i]), - -0, + Math.atan2(y, x[i]), -0, "(-0, " + x[i] + ")" ); } diff --git a/test/built-ins/Math/atanh/atanh-specialVals.js b/test/built-ins/Math/atanh/atanh-specialVals.js index b144e4bb5e0f9541be2cb4a221aa19023718a8d2..9148c1bb43151391d74abb5d6e6c3ec497825e48 100644 --- a/test/built-ins/Math/atanh/atanh-specialVals.js +++ b/test/built-ins/Math/atanh/atanh-specialVals.js @@ -1,31 +1,31 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.atanh with special values -es6id: 20.2.2.7 ----*/ - -assert.sameValue(Math.atanh(-1.9), Number.NaN, - "Math.atanh produces incorrect output for -1.9"); -assert.sameValue(Math.atanh(NaN), Number.NaN, - "Math.atanh produces incorrect output for NaN"); -assert.sameValue(Math.atanh(-10), Number.NaN, - "Math.atanh produces incorrect output for -10"); -assert.sameValue(Math.atanh(-Infinity), Number.NaN, - "Math.atanh produces incorrect output for -Infinity"); -assert.sameValue(Math.atanh(1.9), Number.NaN, - "Math.atanh produces incorrect output for 1.9"); -assert.sameValue(Math.atanh(10), Number.NaN, - "Math.atanh produces incorrect output for 10"); -assert.sameValue(Math.atanh(Number.POSITIVE_INFINITY), Number.NaN, - "Math.atanh produces incorrect output for Number.POSITIVE_INFINITY"); - -assert.sameValue(Math.atanh(-1), Number.NEGATIVE_INFINITY, - "Math.atanh should produce negative infinity for -1"); -assert.sameValue(Math.atanh(+1), Number.POSITIVE_INFINITY, - "Math.atanh should produce positive infinity for +1"); -assert.sameValue(1/Math.atanh(-0), Number.NEGATIVE_INFINITY, - "Math.atanh should produce -0 for -0"); -assert.sameValue(1/Math.atanh(0), Number.POSITIVE_INFINITY, - "Math.atanh should produce +0 for +0"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.atanh with special values +es6id: 20.2.2.7 +---*/ + +assert.sameValue(Math.atanh(-1.9), Number.NaN, + "Math.atanh produces incorrect output for -1.9"); +assert.sameValue(Math.atanh(NaN), Number.NaN, + "Math.atanh produces incorrect output for NaN"); +assert.sameValue(Math.atanh(-10), Number.NaN, + "Math.atanh produces incorrect output for -10"); +assert.sameValue(Math.atanh(-Infinity), Number.NaN, + "Math.atanh produces incorrect output for -Infinity"); +assert.sameValue(Math.atanh(1.9), Number.NaN, + "Math.atanh produces incorrect output for 1.9"); +assert.sameValue(Math.atanh(10), Number.NaN, + "Math.atanh produces incorrect output for 10"); +assert.sameValue(Math.atanh(Number.POSITIVE_INFINITY), Number.NaN, + "Math.atanh produces incorrect output for Number.POSITIVE_INFINITY"); + +assert.sameValue(Math.atanh(-1), Number.NEGATIVE_INFINITY, + "Math.atanh should produce negative infinity for -1"); +assert.sameValue(Math.atanh(+1), Number.POSITIVE_INFINITY, + "Math.atanh should produce positive infinity for +1"); +assert.sameValue(1 / Math.atanh(-0), Number.NEGATIVE_INFINITY, + "Math.atanh should produce -0 for -0"); +assert.sameValue(1 / Math.atanh(0), Number.POSITIVE_INFINITY, + "Math.atanh should produce +0 for +0"); diff --git a/test/built-ins/Math/cbrt/cbrt-specialValues.js b/test/built-ins/Math/cbrt/cbrt-specialValues.js index a1f9fcde0b7f25fb3ea63cd3a552b1865403a6bb..9ac640cabec9872b4f110acc9cecb3ad1924e200 100644 --- a/test/built-ins/Math/cbrt/cbrt-specialValues.js +++ b/test/built-ins/Math/cbrt/cbrt-specialValues.js @@ -1,18 +1,18 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.cbrt with special values -es6id: 20.2.2.9 ----*/ - -assert.sameValue(Math.cbrt(NaN), Number.NaN, - "Math.cbrt produces incorrect output for NaN"); -assert.sameValue(Math.cbrt(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY, - "Math.cbrt should produce negative infinity for Number.NEGATIVE_INFINITY"); -assert.sameValue(Math.cbrt(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.cbrt should produce positive infinity for Number.POSITIVE_INFINITY"); -assert.sameValue(1/Math.cbrt(-0), Number.NEGATIVE_INFINITY, - "Math.cbrt should produce -0 for -0"); -assert.sameValue(1/Math.cbrt(0), Number.POSITIVE_INFINITY, - "Math.cbrt should produce +0 for +0"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.cbrt with special values +es6id: 20.2.2.9 +---*/ + +assert.sameValue(Math.cbrt(NaN), Number.NaN, + "Math.cbrt produces incorrect output for NaN"); +assert.sameValue(Math.cbrt(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY, + "Math.cbrt should produce negative infinity for Number.NEGATIVE_INFINITY"); +assert.sameValue(Math.cbrt(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.cbrt should produce positive infinity for Number.POSITIVE_INFINITY"); +assert.sameValue(1 / Math.cbrt(-0), Number.NEGATIVE_INFINITY, + "Math.cbrt should produce -0 for -0"); +assert.sameValue(1 / Math.cbrt(0), Number.POSITIVE_INFINITY, + "Math.cbrt should produce +0 for +0"); diff --git a/test/built-ins/Math/cbrt/prop-desc.js b/test/built-ins/Math/cbrt/prop-desc.js index 0a5a2657cc17c7011b0ac74b48b5f63fcad410b7..e7d83a78fd1cbcd2ded06c9d62bb1de9f07f1dd3 100644 --- a/test/built-ins/Math/cbrt/prop-desc.js +++ b/test/built-ins/Math/cbrt/prop-desc.js @@ -1,12 +1,12 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Testing descriptor property of Math.cbrt -includes: [propertyHelper.js] -es6id: 20.2.2.9 ----*/ - -verifyNotEnumerable(Math, "cbrt"); -verifyWritable(Math, "cbrt"); -verifyConfigurable(Math, "cbrt"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Testing descriptor property of Math.cbrt +includes: [propertyHelper.js] +es6id: 20.2.2.9 +---*/ + +verifyNotEnumerable(Math, "cbrt"); +verifyWritable(Math, "cbrt"); +verifyConfigurable(Math, "cbrt"); diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A4.js b/test/built-ins/Math/ceil/S15.8.2.6_A4.js index e600908cbf23020bfeb92448a797c2e58a46b3d6..6339e327e8f7a3501c9bdfa00643874df658f006 100644 --- a/test/built-ins/Math/ceil/S15.8.2.6_A4.js +++ b/test/built-ins/Math/ceil/S15.8.2.6_A4.js @@ -11,5 +11,5 @@ description: Checking if Math.ceil(x) is +Infinity, where x is +Infinity var x = +Infinity; if (Math.ceil(x) !== +Infinity) { - $ERROR("#1: 'var x = +Infinity; Math.ceil(x) !== +Infinity'"); + $ERROR("#1: 'var x = +Infinity; Math.ceil(x) !== +Infinity'"); } diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A5.js b/test/built-ins/Math/ceil/S15.8.2.6_A5.js index 74e605aab0ddbf9057116511da9b6533657aa163..c37068f60f13484d11c6997ae379428c61307d0f 100644 --- a/test/built-ins/Math/ceil/S15.8.2.6_A5.js +++ b/test/built-ins/Math/ceil/S15.8.2.6_A5.js @@ -11,5 +11,5 @@ description: Checking if Math.ceil(x) is -Infinity, where x is -Infinity var x = -Infinity; if (Math.ceil(x) !== -Infinity) { - $ERROR("#1: 'var x = -Infinity; Math.ceil(x) !== -Infinity'"); + $ERROR("#1: 'var x = -Infinity; Math.ceil(x) !== -Infinity'"); } diff --git a/test/built-ins/Math/ceil/S15.8.2.6_A7.js b/test/built-ins/Math/ceil/S15.8.2.6_A7.js index 9f6f715923c529131c9b8348549cac07117e0aa2..b951f80d4666b79d011cb6e8312555fdf6d02cd9 100644 --- a/test/built-ins/Math/ceil/S15.8.2.6_A7.js +++ b/test/built-ins/Math/ceil/S15.8.2.6_A7.js @@ -10,11 +10,11 @@ description: > ---*/ // CHECK#1 -for (var i=-1000; i<1000; i++) +for (var i = -1000; i < 1000; i++) { - var x = i/10.0; - if (Math.ceil(x) !== -Math.floor(-x)) - { - $ERROR("#1: 'x = " + x + "; Math.ceil(x) !== -Math.floor(-x)'"); - } + var x = i / 10.0; + if (Math.ceil(x) !== -Math.floor(-x)) + { + $ERROR("#1: 'x = " + x + "; Math.ceil(x) !== -Math.floor(-x)'"); + } } diff --git a/test/built-ins/Math/cos/S15.8.2.7_A2.js b/test/built-ins/Math/cos/S15.8.2.7_A2.js index a22ee05a7148d9aa3e2521da36dd6827e9f0a387..8d3ca7f5a7fc3261491b5f84bd7bb432983f9aa4 100644 --- a/test/built-ins/Math/cos/S15.8.2.7_A2.js +++ b/test/built-ins/Math/cos/S15.8.2.7_A2.js @@ -11,5 +11,5 @@ description: Checking if Math.cos(+0) is 1 var x = +0; if (Math.cos(x) !== 1) { - $ERROR("#1: 'var x = +0; Math.cos(x) !== 1'"); + $ERROR("#1: 'var x = +0; Math.cos(x) !== 1'"); } diff --git a/test/built-ins/Math/cos/S15.8.2.7_A3.js b/test/built-ins/Math/cos/S15.8.2.7_A3.js index b567b4406a8c1156d41e333a3d04612c50268721..ef100a28356a11add2ec2308198e6ad5e0565cd4 100644 --- a/test/built-ins/Math/cos/S15.8.2.7_A3.js +++ b/test/built-ins/Math/cos/S15.8.2.7_A3.js @@ -11,5 +11,5 @@ description: Checking if Math.cos(-0) is 1 var x = -0; if (Math.cos(x) !== 1) { - $ERROR("#1: 'var x = -0; Math.cos(x) !== 1'"); + $ERROR("#1: 'var x = -0; Math.cos(x) !== 1'"); } diff --git a/test/built-ins/Math/cosh/cosh-specialVals.js b/test/built-ins/Math/cosh/cosh-specialVals.js index 7c36a759ad9b39326a035da7ce410b09e612da7e..ddb54453916d56d26df6580fe2b6dd18cb6e1f7d 100644 --- a/test/built-ins/Math/cosh/cosh-specialVals.js +++ b/test/built-ins/Math/cosh/cosh-specialVals.js @@ -1,16 +1,16 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.cosh with special values -es6id: 20.2.2.13 ----*/ - -assert.sameValue(Math.cosh(NaN), Number.NaN, - "Math.cosh produces incorrect output for NaN"); -assert.sameValue(Math.cosh(0), 1, "Math.cosh should produce 1 for input = 0"); -assert.sameValue(Math.cosh(-0), 1, "Math.cosh should produce 1 for input = -0"); -assert.sameValue(Math.cosh(Number.NEGATIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.cosh should produce Number.POSITIVE_INFINITY for Number.NEGATIVE_INFINITY"); -assert.sameValue(Math.cosh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.cosh should produce Number.POSITIVE_INFINITY for Number.POSITIVE_INFINITY"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.cosh with special values +es6id: 20.2.2.13 +---*/ + +assert.sameValue(Math.cosh(NaN), Number.NaN, + "Math.cosh produces incorrect output for NaN"); +assert.sameValue(Math.cosh(0), 1, "Math.cosh should produce 1 for input = 0"); +assert.sameValue(Math.cosh(-0), 1, "Math.cosh should produce 1 for input = -0"); +assert.sameValue(Math.cosh(Number.NEGATIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.cosh should produce Number.POSITIVE_INFINITY for Number.NEGATIVE_INFINITY"); +assert.sameValue(Math.cosh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.cosh should produce Number.POSITIVE_INFINITY for Number.POSITIVE_INFINITY"); diff --git a/test/built-ins/Math/exp/S15.8.2.8_A2.js b/test/built-ins/Math/exp/S15.8.2.8_A2.js index db4ba2d12ad3db27ec70d5e58cacbc83fe50b770..11ea36c45091943175e206c8113297a3224386b0 100644 --- a/test/built-ins/Math/exp/S15.8.2.8_A2.js +++ b/test/built-ins/Math/exp/S15.8.2.8_A2.js @@ -11,5 +11,5 @@ description: Checking if Math.exp(+0) is 1 var x = +0; if (Math.exp(x) !== 1) { - $ERROR("#1: 'var x = +0; Math.exp(x) !== 1'"); + $ERROR("#1: 'var x = +0; Math.exp(x) !== 1'"); } diff --git a/test/built-ins/Math/exp/S15.8.2.8_A3.js b/test/built-ins/Math/exp/S15.8.2.8_A3.js index 32054e3e62d15ae7a913bfd27ccb76470b7f54fa..6f8e4ca46ef46b6232309ad0d532903963c6945c 100644 --- a/test/built-ins/Math/exp/S15.8.2.8_A3.js +++ b/test/built-ins/Math/exp/S15.8.2.8_A3.js @@ -11,5 +11,5 @@ description: Checking if Math.exp(-0) is 1 var x = -0; if (Math.exp(x) !== 1) { - $ERROR("#1: 'var x = -0; Math.exp(x) !== 1'"); + $ERROR("#1: 'var x = -0; Math.exp(x) !== 1'"); } diff --git a/test/built-ins/Math/exp/S15.8.2.8_A4.js b/test/built-ins/Math/exp/S15.8.2.8_A4.js index 94d37dc2f7679f3630629854e745938e2010d613..a4bb1e20423725b2393e415fce9494e437160a20 100644 --- a/test/built-ins/Math/exp/S15.8.2.8_A4.js +++ b/test/built-ins/Math/exp/S15.8.2.8_A4.js @@ -11,5 +11,5 @@ description: Checking if Math.exp(+Infinity) is +Ifinity var x = +Infinity; if (Math.exp(x) !== +Infinity) { - $ERROR("#1: 'var x = +Infinity; Math.exp(x) !== +Infinity'"); + $ERROR("#1: 'var x = +Infinity; Math.exp(x) !== +Infinity'"); } diff --git a/test/built-ins/Math/expm1/expm1-specialVals.js b/test/built-ins/Math/expm1/expm1-specialVals.js index 3d62cc398e69728d688764fabcc6a2d29bf2dee9..65aa97904d0eeb3fe121fc9865ca6b02a3b17005 100644 --- a/test/built-ins/Math/expm1/expm1-specialVals.js +++ b/test/built-ins/Math/expm1/expm1-specialVals.js @@ -1,18 +1,18 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.expm1 with sample values. -es6id: 20.2.2.15 ----*/ - -assert.sameValue(Math.expm1(NaN), Number.NaN, - "Math.expm1 produces incorrect output for NaN"); -assert.sameValue(Math.expm1(Number.NEGATIVE_INFINITY), -1, - "Math.expm1 should produce -1 for Number.NEGATIVE_INFINITY"); -assert.sameValue(Math.expm1(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.expm1 should produce POSITIVE infinity for Number.POSITIVE_INFINITY"); -assert.sameValue(1/Math.expm1(-0), Number.NEGATIVE_INFINITY, - "Math.expm1 should produce -0 for -0"); -assert.sameValue(1/Math.expm1(0), Number.POSITIVE_INFINITY, - "Math.expm1 should produce +0 for +0"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.expm1 with sample values. +es6id: 20.2.2.15 +---*/ + +assert.sameValue(Math.expm1(NaN), Number.NaN, + "Math.expm1 produces incorrect output for NaN"); +assert.sameValue(Math.expm1(Number.NEGATIVE_INFINITY), -1, + "Math.expm1 should produce -1 for Number.NEGATIVE_INFINITY"); +assert.sameValue(Math.expm1(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.expm1 should produce POSITIVE infinity for Number.POSITIVE_INFINITY"); +assert.sameValue(1 / Math.expm1(-0), Number.NEGATIVE_INFINITY, + "Math.expm1 should produce -0 for -0"); +assert.sameValue(1 / Math.expm1(0), Number.POSITIVE_INFINITY, + "Math.expm1 should produce +0 for +0"); diff --git a/test/built-ins/Math/floor/S15.8.2.9_A4.js b/test/built-ins/Math/floor/S15.8.2.9_A4.js index 2cdb904864e2fc79333e75e08e8c5e51a48a0ccd..a74af8c6e9d9c0b143b7853b343cbb04ebf82866 100644 --- a/test/built-ins/Math/floor/S15.8.2.9_A4.js +++ b/test/built-ins/Math/floor/S15.8.2.9_A4.js @@ -11,5 +11,5 @@ description: Checking if Math.floor(x) is +Infinity, where x is +Infinity var x = +Infinity; if (Math.floor(x) !== +Infinity) { - $ERROR("#1: 'var x = +Infinity; Math.floor(x) !== +Infinity'"); + $ERROR("#1: 'var x = +Infinity; Math.floor(x) !== +Infinity'"); } diff --git a/test/built-ins/Math/floor/S15.8.2.9_A5.js b/test/built-ins/Math/floor/S15.8.2.9_A5.js index 0d35398cabc7274ff7e881601bfc48004ce4e7c1..290ce49310ebf941937fe4f74ac5cfe1f23ac8e9 100644 --- a/test/built-ins/Math/floor/S15.8.2.9_A5.js +++ b/test/built-ins/Math/floor/S15.8.2.9_A5.js @@ -11,5 +11,5 @@ description: Checking if Math.floor(x) is -Infinity, where x is -Infinity var x = -Infinity; if (Math.floor(x) !== -Infinity) { - $ERROR("#1: 'var x = -Infinity; Math.floor(x) !== -Infinity'"); + $ERROR("#1: 'var x = -Infinity; Math.floor(x) !== -Infinity'"); } diff --git a/test/built-ins/Math/floor/S15.8.2.9_A7.js b/test/built-ins/Math/floor/S15.8.2.9_A7.js index 37b598401c8affe13c9fc0cf0d81789e562cf88b..2f19b43a799b4704eeddb159b14a5bbc9171585c 100644 --- a/test/built-ins/Math/floor/S15.8.2.9_A7.js +++ b/test/built-ins/Math/floor/S15.8.2.9_A7.js @@ -10,11 +10,11 @@ description: > ---*/ // CHECK#1 -for (var i=-1000; i<1000; i++) +for (var i = -1000; i < 1000; i++) { - var x = i/10.0; - if (-Math.ceil(-x) !== Math.floor(x)) - { - $ERROR("#1: 'x = " + x + "; Math.floor(x) !== -Math.ceil(-x)'"); - } + var x = i / 10.0; + if (-Math.ceil(-x) !== Math.floor(x)) + { + $ERROR("#1: 'x = " + x + "; Math.floor(x) !== -Math.ceil(-x)'"); + } } diff --git a/test/built-ins/Math/hypot/Math.hypot_Success_2.js b/test/built-ins/Math/hypot/Math.hypot_Success_2.js index 4106a0a7779ed8929df84d083d39d240f923f598..5fbe0deaa200a8467444928a9b099f1f9e7a6a9f 100644 --- a/test/built-ins/Math/hypot/Math.hypot_Success_2.js +++ b/test/built-ins/Math/hypot/Math.hypot_Success_2.js @@ -7,4 +7,4 @@ author: Ryan Lewis description: Math.hypot should return 5 if called with 3 and 4. ---*/ -assert.sameValue(Math.hypot(3,4), 5, 'Math.hypot(3,4)'); +assert.sameValue(Math.hypot(3, 4), 5, 'Math.hypot(3,4)'); diff --git a/test/built-ins/Math/log/S15.8.2.10_A3.js b/test/built-ins/Math/log/S15.8.2.10_A3.js index 93854fdfce7a3eb8d5992b0679245cd443572aac..b95438b2a71486dee3c149f758132d83222a938e 100644 --- a/test/built-ins/Math/log/S15.8.2.10_A3.js +++ b/test/built-ins/Math/log/S15.8.2.10_A3.js @@ -11,12 +11,12 @@ description: Checking if Math.log(+0) and Math.log(-0) equals to -Infinity var x = +0; if (Math.log(x) !== -Infinity) { - $ERROR("#1: 'var x=+0; Math.log(x) !== -Infinity'"); + $ERROR("#1: 'var x=+0; Math.log(x) !== -Infinity'"); } // CHECK#2 var x = -0; if (Math.log(x) !== -Infinity) { - $ERROR("#1: 'var x=-0; Math.log(x) !== -Infinity'"); + $ERROR("#1: 'var x=-0; Math.log(x) !== -Infinity'"); } diff --git a/test/built-ins/Math/log/S15.8.2.10_A5.js b/test/built-ins/Math/log/S15.8.2.10_A5.js index 1cf45192ef953125d0c87e1e27f0db16cb3ce272..045b73c50e5fde05f1cb93520b8a0262b157365b 100644 --- a/test/built-ins/Math/log/S15.8.2.10_A5.js +++ b/test/built-ins/Math/log/S15.8.2.10_A5.js @@ -11,5 +11,5 @@ description: Checking if Math.log(+Infinity) equals to +Infinity var x = +Infinity; if (Math.log(x) !== +Infinity) { - $ERROR("#1: 'var x=+Infinity; Math.log(x) !== +Infinity'"); + $ERROR("#1: 'var x=+Infinity; Math.log(x) !== +Infinity'"); } diff --git a/test/built-ins/Math/log10/Log10-specialVals.js b/test/built-ins/Math/log10/Log10-specialVals.js index 5a8411b760bcf7791d310eff5bf4b015e8ac76ae..341ea36e0913914e96bd29bfaa3cd6e3e3f6df42 100644 --- a/test/built-ins/Math/log10/Log10-specialVals.js +++ b/test/built-ins/Math/log10/Log10-specialVals.js @@ -1,33 +1,32 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.Log10 with sample values. -es6id: 20.2.2.20 ----*/ - -assert.sameValue(Math.log10(-0), Number.NEGATIVE_INFINITY, - "Math.log10 produces incorrect output for -0"); -assert.sameValue(Math.log10(+0), Number.NEGATIVE_INFINITY, - "Math.log10 produces incorrect output for +0"); -assert.sameValue(Math.log10(-0.9), Number.NaN, - "Math.log10 produces incorrect output for -0.9"); -assert.sameValue(Math.log10(NaN), Number.NaN, - "Math.log10 produces incorrect output for NaN"); -assert.sameValue(Math.log10(-10), Number.NaN, - "Math.log10 produces incorrect output for -10"); -assert.sameValue(Math.log10(null), Number.NEGATIVE_INFINITY, - "Math.log10 produces incorrect output for null"); -assert.sameValue(Math.log10(undefined), Number.NaN, - "Math.log10 produces incorrect output for undefined"); -assert.sameValue(Math.log10(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.log10 produces incorrect output for Number.POSITIVE_INFINITY"); -assert.sameValue(Math.log10(1), 0, - "Math.log10 produces incorrect output for 1"); -assert.sameValue(Math.log10(10.00), 1, - "Math.log10 produces incorrect output for 10.00"); -assert.sameValue(Math.log10(100.00), 2, - "Math.log10 produces incorrect output for 100.00"); -assert.sameValue(Math.log10(1000.00), 3, - "Math.log10 produces incorrect output for 1000.00"); - +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.Log10 with sample values. +es6id: 20.2.2.20 +---*/ + +assert.sameValue(Math.log10(-0), Number.NEGATIVE_INFINITY, + "Math.log10 produces incorrect output for -0"); +assert.sameValue(Math.log10(+0), Number.NEGATIVE_INFINITY, + "Math.log10 produces incorrect output for +0"); +assert.sameValue(Math.log10(-0.9), Number.NaN, + "Math.log10 produces incorrect output for -0.9"); +assert.sameValue(Math.log10(NaN), Number.NaN, + "Math.log10 produces incorrect output for NaN"); +assert.sameValue(Math.log10(-10), Number.NaN, + "Math.log10 produces incorrect output for -10"); +assert.sameValue(Math.log10(null), Number.NEGATIVE_INFINITY, + "Math.log10 produces incorrect output for null"); +assert.sameValue(Math.log10(undefined), Number.NaN, + "Math.log10 produces incorrect output for undefined"); +assert.sameValue(Math.log10(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.log10 produces incorrect output for Number.POSITIVE_INFINITY"); +assert.sameValue(Math.log10(1), 0, + "Math.log10 produces incorrect output for 1"); +assert.sameValue(Math.log10(10.00), 1, + "Math.log10 produces incorrect output for 10.00"); +assert.sameValue(Math.log10(100.00), 2, + "Math.log10 produces incorrect output for 100.00"); +assert.sameValue(Math.log10(1000.00), 3, + "Math.log10 produces incorrect output for 1000.00"); diff --git a/test/built-ins/Math/log2/log2-basicTests.js b/test/built-ins/Math/log2/log2-basicTests.js index 3feeb1df4a10d56a5f2e6b3936ed0a907c0fb008..bd3bb510a3a9f6786ce575c1d2dfe501f318c935 100644 --- a/test/built-ins/Math/log2/log2-basicTests.js +++ b/test/built-ins/Math/log2/log2-basicTests.js @@ -1,34 +1,34 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.Log2 with sample values. -es6id: 20.2.2.23 ----*/ - -assert.sameValue(Math.log2(-0), Number.NEGATIVE_INFINITY, - "Math.log2 produces incorrect output for -0"); -assert.sameValue(Math.log2(+0), Number.NEGATIVE_INFINITY, - "Math.log2 produces incorrect output for +0"); -assert.sameValue(Math.log2(-0.9), NaN, - "Math.log2 produces incorrect output for -0.9"); -assert.sameValue(Math.log2(NaN), NaN, - "Math.log2 produces incorrect output for NaN"); -assert.sameValue(Math.log2(-10), NaN, - "Math.log2 produces incorrect output for -10"); -assert.sameValue(Math.log2(-Infinity), NaN, - "Math.log2 produces incorrect output for -Infinity"); -assert.sameValue(Math.log2(null), Number.NEGATIVE_INFINITY, - "Math.log2 produces incorrect output for null"); -assert.sameValue(Math.log2(undefined), NaN, - "Math.log2 produces incorrect output for undefined"); -assert.sameValue(Math.log2(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.log2 produces incorrect output for Number.POSITIVE_INFINITY"); -assert.sameValue(Math.log2(1), 0, - "Math.log2 produces incorrect output for 1"); -assert.sameValue(Math.log2(2.00), 1, - "Math.log2 produces incorrect output for 2.00"); -assert.sameValue(Math.log2(4.00), 2, - "Math.log2 produces incorrect output for 4.00"); -assert.sameValue(Math.log2(8.00), 3, - "Math.log2 produces incorrect output for 8.00"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.Log2 with sample values. +es6id: 20.2.2.23 +---*/ + +assert.sameValue(Math.log2(-0), Number.NEGATIVE_INFINITY, + "Math.log2 produces incorrect output for -0"); +assert.sameValue(Math.log2(+0), Number.NEGATIVE_INFINITY, + "Math.log2 produces incorrect output for +0"); +assert.sameValue(Math.log2(-0.9), NaN, + "Math.log2 produces incorrect output for -0.9"); +assert.sameValue(Math.log2(NaN), NaN, + "Math.log2 produces incorrect output for NaN"); +assert.sameValue(Math.log2(-10), NaN, + "Math.log2 produces incorrect output for -10"); +assert.sameValue(Math.log2(-Infinity), NaN, + "Math.log2 produces incorrect output for -Infinity"); +assert.sameValue(Math.log2(null), Number.NEGATIVE_INFINITY, + "Math.log2 produces incorrect output for null"); +assert.sameValue(Math.log2(undefined), NaN, + "Math.log2 produces incorrect output for undefined"); +assert.sameValue(Math.log2(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.log2 produces incorrect output for Number.POSITIVE_INFINITY"); +assert.sameValue(Math.log2(1), 0, + "Math.log2 produces incorrect output for 1"); +assert.sameValue(Math.log2(2.00), 1, + "Math.log2 produces incorrect output for 2.00"); +assert.sameValue(Math.log2(4.00), 2, + "Math.log2 produces incorrect output for 4.00"); +assert.sameValue(Math.log2(8.00), 3, + "Math.log2 produces incorrect output for 8.00"); diff --git a/test/built-ins/Math/max/S15.8.2.11_A1.js b/test/built-ins/Math/max/S15.8.2.11_A1.js index a305b5b256775c57cccc01d9cd92a0bb871f17aa..4fb9984f555043fec1028604314ac69cfe61631f 100644 --- a/test/built-ins/Math/max/S15.8.2.11_A1.js +++ b/test/built-ins/Math/max/S15.8.2.11_A1.js @@ -10,5 +10,5 @@ description: Checking if Math.max() equals to -Infinity // CHECK#1 if (Math.max() != -Infinity) { - $ERROR("#1: 'Math.max() != -Infinity'"); + $ERROR("#1: 'Math.max() != -Infinity'"); } diff --git a/test/built-ins/Math/max/S15.8.2.11_A2.js b/test/built-ins/Math/max/S15.8.2.11_A2.js index 04aea82ec756ca288a22116cd620cba4e422cfe4..8507e9102d0ecca019c776dfd05bbbc690c99a1e 100644 --- a/test/built-ins/Math/max/S15.8.2.11_A2.js +++ b/test/built-ins/Math/max/S15.8.2.11_A2.js @@ -25,16 +25,16 @@ var valnum = 7; var args = new Array(); for (var i = 0; i <= 1; i++) { - args[i] = NaN; - for (var j = 0; j < valnum; j++) - { - args[1-i] = vals[j]; - assert.sameValue( - Math.max(args[0], args[1]), - NaN, - "max(" + args[0] + ", " + args[1] + ")" - ); - } + args[i] = NaN; + for (var j = 0; j < valnum; j++) + { + args[1 - i] = vals[j]; + assert.sameValue( + Math.max(args[0], args[1]), + NaN, + "max(" + args[0] + ", " + args[1] + ")" + ); + } } // CHECK #3 @@ -42,25 +42,25 @@ var k = 1; var l = 2; for (var i = 0; i <= 2; i++) { - args[i] = NaN; - if (i === 1) - { - k = 0; - } else if (i === 2) - { - l = 1; - } - for (var j = 0; j < valnum; j++) - { - for (var jj = 0; jj < valnum; jj++) - { - args[k] = vals[j]; - args[l] = vals[jj]; - assert.sameValue( - Math.max(args[0], args[1], args[2]), - NaN, - "max(" + args[0] + ", " + args[1] + ", " + args[2] + ")" - ); - } - } + args[i] = NaN; + if (i === 1) + { + k = 0; + } else if (i === 2) + { + l = 1; + } + for (var j = 0; j < valnum; j++) + { + for (var jj = 0; jj < valnum; jj++) + { + args[k] = vals[j]; + args[l] = vals[jj]; + assert.sameValue( + Math.max(args[0], args[1], args[2]), + NaN, + "max(" + args[0] + ", " + args[1] + ", " + args[2] + ")" + ); + } + } } diff --git a/test/built-ins/Math/max/S15.8.2.11_A4.js b/test/built-ins/Math/max/S15.8.2.11_A4.js index fab69fcf3041356c12b18274c9368efb8afc0bdc..7055503d30d8cfa7b8ddc192250b737f12dcd3ed 100644 --- a/test/built-ins/Math/max/S15.8.2.11_A4.js +++ b/test/built-ins/Math/max/S15.8.2.11_A4.js @@ -9,15 +9,15 @@ description: Checking if Math.max.length property is defined and equals to 2 // CHECK#1 if (typeof Math.max !== "function") { - $ERROR('#1: Math.max method is not defined'); + $ERROR('#1: Math.max method is not defined'); } // CHECK#2 if (typeof Math.max.length === "undefined") { - $ERROR('#2: length property of Math.max method is undefined'); + $ERROR('#2: length property of Math.max method is undefined'); } // CHECK#3 if (Math.max.length !== 2) { - $ERROR('#3: The length property of the Math.max method is not 2'); + $ERROR('#3: The length property of the Math.max method is not 2'); } diff --git a/test/built-ins/Math/min/S15.8.2.12_A1.js b/test/built-ins/Math/min/S15.8.2.12_A1.js index ef52ac7855d748553b5b87768b354b537a67e1e6..0a396aeadb3db554d0eccfea6c97cabab6198d84 100644 --- a/test/built-ins/Math/min/S15.8.2.12_A1.js +++ b/test/built-ins/Math/min/S15.8.2.12_A1.js @@ -10,5 +10,5 @@ description: Checking if Math.min() equals to +Infinity // CHECK#1 if (Math.min() != +Infinity) { - $ERROR("#1: 'Math.min() != +Infinity'"); + $ERROR("#1: 'Math.min() != +Infinity'"); } diff --git a/test/built-ins/Math/min/S15.8.2.12_A2.js b/test/built-ins/Math/min/S15.8.2.12_A2.js index 3ec27bf76fed3bbcac6b615f97da4374285720f4..2c90b2865890c747d5a75820ac5447319ec8fd06 100644 --- a/test/built-ins/Math/min/S15.8.2.12_A2.js +++ b/test/built-ins/Math/min/S15.8.2.12_A2.js @@ -26,16 +26,16 @@ var valnum = 7; var args = new Array(); for (var i = 0; i <= 1; i++) { - args[i] = NaN; - for (var j = 0; j < valnum; j++) - { - args[1-i] = vals[j]; - assert.sameValue( - Math.min(args[0], args[1]), - NaN, - "min(" + args[0] + ", " + args[1] + ")" - ); - } + args[i] = NaN; + for (var j = 0; j < valnum; j++) + { + args[1 - i] = vals[j]; + assert.sameValue( + Math.min(args[0], args[1]), + NaN, + "min(" + args[0] + ", " + args[1] + ")" + ); + } } // CHECK #3 @@ -43,25 +43,25 @@ var k = 1; var l = 2; for (var i = 0; i <= 2; i++) { - args[i] = NaN; - if (i === 1) - { - k = 0; - } else if (i === 2) - { - l = 1; - } - for (var j = 0; j < valnum; j++) - { - for (var jj = 0; jj < valnum; jj++) - { - args[k] = vals[j]; - args[l] = vals[jj]; - assert.sameValue( - Math.min(args[0], args[1], args[2]), - NaN, - "min(" + args[0] + ", " + args[1] + ", " + args[2] + ")" - ); - } - } + args[i] = NaN; + if (i === 1) + { + k = 0; + } else if (i === 2) + { + l = 1; + } + for (var j = 0; j < valnum; j++) + { + for (var jj = 0; jj < valnum; jj++) + { + args[k] = vals[j]; + args[l] = vals[jj]; + assert.sameValue( + Math.min(args[0], args[1], args[2]), + NaN, + "min(" + args[0] + ", " + args[1] + ", " + args[2] + ")" + ); + } + } } diff --git a/test/built-ins/Math/min/S15.8.2.12_A4.js b/test/built-ins/Math/min/S15.8.2.12_A4.js index d2555044cf0b259b90f9fe882300e06e733779b1..e4f16bed2e4f220d633373916deafeeade5829e4 100644 --- a/test/built-ins/Math/min/S15.8.2.12_A4.js +++ b/test/built-ins/Math/min/S15.8.2.12_A4.js @@ -9,15 +9,15 @@ description: Checking if Math.min.length property is defined and equals to 2 // CHECK#1 if (typeof Math.min !== "function") { - $ERROR('#1: Math.min method is not defined'); + $ERROR('#1: Math.min method is not defined'); } // CHECK#2 if (typeof Math.min.length === "undefined") { - $ERROR('#2: length property of Math.min method is undefined'); + $ERROR('#2: length property of Math.min method is undefined'); } // CHECK#3 if (Math.min.length !== 2) { - $ERROR('#3: The length property of the Math.min method is not 2'); + $ERROR('#3: The length property of the Math.min method is not 2'); } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A10.js b/test/built-ins/Math/pow/applying-the-exp-operator_A10.js index a21cdb0be83a8fae110eb6209f4de0796c8b4185..fc788b35f8da04727244d6bb756cbcdabae431c0 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A10.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A10.js @@ -19,8 +19,8 @@ var basenum = 6; for (var i = 0; i < basenum; i++) { - if (Math.pow(base[i],exponent) !== +Infinity) - { - $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity"); - } + if (Math.pow(base[i], exponent) !== +Infinity) + { + $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A11.js b/test/built-ins/Math/pow/applying-the-exp-operator_A11.js index 536b51474af8cc64d79238772a652e7642713627..f44e1d30cd7453884d4658019ab1521184a5f3f0 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A11.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A11.js @@ -17,8 +17,8 @@ var exponentnum = 4; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== +Infinity) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); - } + if (Math.pow(base, exponent[i]) !== +Infinity) + { + $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A13.js b/test/built-ins/Math/pow/applying-the-exp-operator_A13.js index 9096d37fb30425f9e2a2dd21f06214e510ceef0b..daac829f4588bc9aca82b5316d727213994a022c 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A13.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A13.js @@ -16,8 +16,8 @@ var exponentnum = 3; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== -Infinity) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity"); - } + if (Math.pow(base, exponent[i]) !== -Infinity) + { + $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A14.js b/test/built-ins/Math/pow/applying-the-exp-operator_A14.js index a987088d6f915a181208450e4e83e659b4b0f938..e5ab5e270d52d85ae220060a7590d1f50ac229ab 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A14.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A14.js @@ -18,8 +18,8 @@ var exponentnum = 5; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== +Infinity) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); - } + if (Math.pow(base, exponent[i]) !== +Infinity) + { + $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A18.js b/test/built-ins/Math/pow/applying-the-exp-operator_A18.js index ddf01dada1a4e8a5d7cebc85cf3cfc0fec84061b..565353c2c3b20aa1e2a1e65a29df41830dd172e8 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A18.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A18.js @@ -17,8 +17,8 @@ var exponentnum = 4; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== +Infinity) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); - } + if (Math.pow(base, exponent[i]) !== +Infinity) + { + $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A2.js b/test/built-ins/Math/pow/applying-the-exp-operator_A2.js index d0dc29cc2bd78af770d85a96651a6187493292bc..41d840c29cd6c7a2d6e4ae9a609609d248b51598 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A2.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A2.js @@ -22,8 +22,8 @@ var basenum = 9; for (var i = 0; i < basenum; i++) { - if (Math.pow(base[i],exponent) !== 1) - { - $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== 1"); - } + if (Math.pow(base[i], exponent) !== 1) + { + $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== 1"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A21.js b/test/built-ins/Math/pow/applying-the-exp-operator_A21.js index f5b246ed65e42a260c4e65b6176ae7adbea5897e..5a2cf3b0e888c7b7390b8a93d33fb6ce1a718aea 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A21.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A21.js @@ -16,8 +16,8 @@ var exponentnum = 3; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base,exponent[i]) !== -Infinity) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity"); - } + if (Math.pow(base, exponent[i]) !== -Infinity) + { + $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== -Infinity"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A22.js b/test/built-ins/Math/pow/applying-the-exp-operator_A22.js index de41acd01580999087861f5f89400f84046652db..8075195490503a3a608b9f7a4473a7d5b5d71a2c 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A22.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A22.js @@ -18,8 +18,8 @@ var exponentnum = 5; for (var i = 0; i < exponentnum; i++) { - if (Math.pow(base, exponent[i]) !== +Infinity) - { - $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); - } + if (Math.pow(base, exponent[i]) !== +Infinity) + { + $ERROR("#1: Math.pow(" + base + ", " + exponent[i] + ") !== +Infinity"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A23.js b/test/built-ins/Math/pow/applying-the-exp-operator_A23.js index 826a4305bb7adb7acdf450690e3fc2c52295ddf1..4104d287b52b2b50857b820cf227269e9cd2fd7f 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A23.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A23.js @@ -27,7 +27,7 @@ exponent[7] = Math.PI; var exponentnum = 8; for (var i = 0; i < basenum; i++) { - for (var j = 0; j < exponentnum; j++) { + for (var j = 0; j < exponentnum; j++) { assert.sameValue( Math.pow(base[i], exponent[j]), NaN, diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A3.js b/test/built-ins/Math/pow/applying-the-exp-operator_A3.js index e0edd6acf7df4f6d904ea59083c8ce29005924be..7fa5ecc4669f524283cbfddebd3d9057c53c512b 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A3.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A3.js @@ -22,8 +22,8 @@ var basenum = 9; for (var i = 0; i < basenum; i++) { - if (Math.pow(base[i],exponent) !== 1) - { - $ERROR("#1: Math.pow(" + base[i] + ", -0) !== 1"); - } + if (Math.pow(base[i], exponent) !== 1) + { + $ERROR("#1: Math.pow(" + base[i] + ", -0) !== 1"); + } } diff --git a/test/built-ins/Math/pow/applying-the-exp-operator_A5.js b/test/built-ins/Math/pow/applying-the-exp-operator_A5.js index a5bf6f33a318eacfaa8b389b0bf2f24ae1ab78c3..1d8fa231afdd33300ac2a205b17f357cfd227c21 100644 --- a/test/built-ins/Math/pow/applying-the-exp-operator_A5.js +++ b/test/built-ins/Math/pow/applying-the-exp-operator_A5.js @@ -19,8 +19,8 @@ var basenum = 6; for (var i = 0; i < basenum; i++) { - if (Math.pow(base[i],exponent) !== +Infinity) - { - $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity"); - } + if (Math.pow(base[i], exponent) !== +Infinity) + { + $ERROR("#1: Math.pow(" + base[i] + ", " + exponent + ") !== +Infinity"); + } } diff --git a/test/built-ins/Math/random/S15.8.2.14_A1.js b/test/built-ins/Math/random/S15.8.2.14_A1.js index 10cc9f4666e5f04a921d47c15a10fb91cf509d08..4b5db856bc6b8ddf89ce825063fd44505a4f3561 100644 --- a/test/built-ins/Math/random/S15.8.2.14_A1.js +++ b/test/built-ins/Math/random/S15.8.2.14_A1.js @@ -14,15 +14,15 @@ description: > // CHECK#1 for (var i = 0; i < 100; i++) { - var val = Math.random(); + var val = Math.random(); - assert.sameValue( - typeof val, 'number', 'should not produce a non-numeric value: ' + val - ); - assert.notSameValue(val, NaN, 'should not produce NaN'); + assert.sameValue( + typeof val, 'number', 'should not produce a non-numeric value: ' + val + ); + assert.notSameValue(val, NaN, 'should not produce NaN'); - if (val < 0 || val >= 1) - { - $ERROR("#1: Math.random() = " + val); - } + if (val < 0 || val >= 1) + { + $ERROR("#1: Math.random() = " + val); + } } diff --git a/test/built-ins/Math/round/S15.8.2.15_A4.js b/test/built-ins/Math/round/S15.8.2.15_A4.js index cfc81a02a16c93f5fdcdbc84357c6892cd8ced35..b5743303f01ab06a5e51d653eeb3b9a56685c112 100644 --- a/test/built-ins/Math/round/S15.8.2.15_A4.js +++ b/test/built-ins/Math/round/S15.8.2.15_A4.js @@ -11,5 +11,5 @@ description: Checking if Math.round(x) is +Infinity, where x is +Infinity var x = +Infinity; if (Math.round(x) !== +Infinity) { - $ERROR("#1: 'var x=+Infinity; Math.round(x) !== +Infinity'"); + $ERROR("#1: 'var x=+Infinity; Math.round(x) !== +Infinity'"); } diff --git a/test/built-ins/Math/round/S15.8.2.15_A5.js b/test/built-ins/Math/round/S15.8.2.15_A5.js index 8c0fff3b70fecaf75402ed0d8ca429bd8178d9f8..0447ef01c4416c39ae9f82cbca0783422f1b68af 100644 --- a/test/built-ins/Math/round/S15.8.2.15_A5.js +++ b/test/built-ins/Math/round/S15.8.2.15_A5.js @@ -11,5 +11,5 @@ description: Checking if Math.round(x) is -Infinity, where x is -Infinity var x = -Infinity; if (Math.round(x) !== -Infinity) { - $ERROR("#1: 'var x=-Infinity; Math.round(x) !== -Infinity'"); + $ERROR("#1: 'var x=-Infinity; Math.round(x) !== -Infinity'"); } diff --git a/test/built-ins/Math/round/S15.8.2.15_A6.js b/test/built-ins/Math/round/S15.8.2.15_A6.js index ffb74f313104785cc9e7fa6e5bde8779d9fffb82..a96cd1124bd9161662d7f4b107ed2f5171a44588 100644 --- a/test/built-ins/Math/round/S15.8.2.15_A6.js +++ b/test/built-ins/Math/round/S15.8.2.15_A6.js @@ -15,25 +15,25 @@ description: > // CHECK#1 for (var i = 0; i <= 1000; i++) { - var x = i/10.0; - if (Math.round(x) !== Math.floor(x + 0.5)) - { - $ERROR("#1: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'") - } + var x = i / 10.0; + if (Math.round(x) !== Math.floor(x + 0.5)) + { + $ERROR("#1: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'") + } } for (i = -5; i >= -1000; i--) { - if (i === -5) - { - x = -0.500000000000001; - } else - { - x = i/10.0; - } - - if (Math.round(x) !== Math.floor(x + 0.5)) - { - $ERROR("#2: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'") - } + if (i === -5) + { + x = -0.500000000000001; + } else + { + x = i / 10.0; + } + + if (Math.round(x) !== Math.floor(x + 0.5)) + { + $ERROR("#2: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'") + } } diff --git a/test/built-ins/Math/round/S15.8.2.15_A7.js b/test/built-ins/Math/round/S15.8.2.15_A7.js index ad26e408e0f4d6b8c22fa89225833a77a898927c..ed92c8bf5f19cc992ea0518bc46e4bb8095fdc29 100644 --- a/test/built-ins/Math/round/S15.8.2.15_A7.js +++ b/test/built-ins/Math/round/S15.8.2.15_A7.js @@ -21,7 +21,7 @@ if (1 / Math.round(-0.5) !== 1 / -0) { // CHECK#2 if (1 / Math.round(-0.25) !== 1 / -0) { - $ERROR("#2: '1 / Math.round(-0.25) !== 1 / -0'"); + $ERROR("#2: '1 / Math.round(-0.25) !== 1 / -0'"); } // CHECK#3 diff --git a/test/built-ins/Math/sign/sign-specialVals.js b/test/built-ins/Math/sign/sign-specialVals.js index 0e63fe895f2b2410cf9c8393fb7627e10fe4f402..9026c223ce3124d860310b5fbbffe9b88e1f6733 100644 --- a/test/built-ins/Math/sign/sign-specialVals.js +++ b/test/built-ins/Math/sign/sign-specialVals.js @@ -1,20 +1,20 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: > - Returns the sign of the x, indicating whether x is positive, negative or zero. -es6id: 20.2.2.29 ----*/ - -assert.sameValue(Math.sign(NaN), NaN, "NaN"); -assert.sameValue(Math.sign(-0), -0, "-0"); -assert.sameValue(Math.sign(0), 0, "0"); - -assert.sameValue(Math.sign(-0.000001), -1, "-0.000001"); -assert.sameValue(Math.sign(-1), -1, "-1"); -assert.sameValue(Math.sign(-Infinity), -1, "-Infinity"); - -assert.sameValue(Math.sign(0.000001), 1, "0.000001"); -assert.sameValue(Math.sign(1), 1, "1"); -assert.sameValue(Math.sign(Infinity), 1, "Infinity"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: > + Returns the sign of the x, indicating whether x is positive, negative or zero. +es6id: 20.2.2.29 +---*/ + +assert.sameValue(Math.sign(NaN), NaN, "NaN"); +assert.sameValue(Math.sign(-0), -0, "-0"); +assert.sameValue(Math.sign(0), 0, "0"); + +assert.sameValue(Math.sign(-0.000001), -1, "-0.000001"); +assert.sameValue(Math.sign(-1), -1, "-1"); +assert.sameValue(Math.sign(-Infinity), -1, "-Infinity"); + +assert.sameValue(Math.sign(0.000001), 1, "0.000001"); +assert.sameValue(Math.sign(1), 1, "1"); +assert.sameValue(Math.sign(Infinity), 1, "Infinity"); diff --git a/test/built-ins/Math/sinh/sinh-specialVals.js b/test/built-ins/Math/sinh/sinh-specialVals.js index cc93825cb242a3368ac5dec3b6cecf1a9d769725..beda3cd0f8a05c167959f0370ba510eaeaf031e4 100644 --- a/test/built-ins/Math/sinh/sinh-specialVals.js +++ b/test/built-ins/Math/sinh/sinh-specialVals.js @@ -1,18 +1,18 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.sinh with special values -es6id: 20.2.2.31 ----*/ - -assert.sameValue(Math.sinh(NaN), Number.NaN, - "Math.sinh produces incorrect output for NaN"); -assert.sameValue(Math.sinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY, - "Math.sinh should produce negative infinity for Number.NEGATIVE_INFINITY"); -assert.sameValue(Math.sinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.sinh should produce positive infinity for Number.POSITIVE_INFINITY"); -assert.sameValue(1/Math.sinh(-0), Number.NEGATIVE_INFINITY, - "Math.sinh should produce -0 for -0"); -assert.sameValue(1/Math.sinh(0), Number.POSITIVE_INFINITY, - "Math.sinh should produce +0 for +0"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.sinh with special values +es6id: 20.2.2.31 +---*/ + +assert.sameValue(Math.sinh(NaN), Number.NaN, + "Math.sinh produces incorrect output for NaN"); +assert.sameValue(Math.sinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY, + "Math.sinh should produce negative infinity for Number.NEGATIVE_INFINITY"); +assert.sameValue(Math.sinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.sinh should produce positive infinity for Number.POSITIVE_INFINITY"); +assert.sameValue(1 / Math.sinh(-0), Number.NEGATIVE_INFINITY, + "Math.sinh should produce -0 for -0"); +assert.sameValue(1 / Math.sinh(0), Number.POSITIVE_INFINITY, + "Math.sinh should produce +0 for +0"); diff --git a/test/built-ins/Math/sqrt/S15.8.2.17_A5.js b/test/built-ins/Math/sqrt/S15.8.2.17_A5.js index 45bf9cba50c6549adf778f3cbf0a44fccdd17a2d..8cfd5fc32483bf041f3de8c0e8078d12940d4c51 100644 --- a/test/built-ins/Math/sqrt/S15.8.2.17_A5.js +++ b/test/built-ins/Math/sqrt/S15.8.2.17_A5.js @@ -11,5 +11,5 @@ description: Checking if Math.sqrt(+Infinity) is +Infinity var x = +Infinity; if (Math.sqrt(x) !== +Infinity) { - $ERROR("#1: 'var x=+Infinity; Math.sqrt(x) !== +Infinity'"); + $ERROR("#1: 'var x=+Infinity; Math.sqrt(x) !== +Infinity'"); } diff --git a/test/built-ins/Math/tanh/tanh-specialVals.js b/test/built-ins/Math/tanh/tanh-specialVals.js index 27e9e57524d86642e2be5b96cea0c4804cf86307..a26b2af2aa7e4eff5e4e681dc6e130a7fce89d57 100644 --- a/test/built-ins/Math/tanh/tanh-specialVals.js +++ b/test/built-ins/Math/tanh/tanh-specialVals.js @@ -1,18 +1,18 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.tanh with special values -es6id: 20.2.2.34 ----*/ - -assert.sameValue(Math.tanh(NaN), Number.NaN, - "Math.tanh produces incorrect output for NaN"); -assert.sameValue(Math.tanh(Number.NEGATIVE_INFINITY), -1, - "Math.tanh should produce -1 for Number.NEGATIVE_INFINITY"); -assert.sameValue(Math.tanh(Number.POSITIVE_INFINITY), 1, - "Math.tanh should produce 1 for Number.POSITIVE_INFINITY"); -assert.sameValue(1/Math.tanh(-0), Number.NEGATIVE_INFINITY, - "Math.tanh should produce -0 for -0"); -assert.sameValue(1/Math.tanh(0), Number.POSITIVE_INFINITY, - "Math.tanh should produce +0 for +0"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.tanh with special values +es6id: 20.2.2.34 +---*/ + +assert.sameValue(Math.tanh(NaN), Number.NaN, + "Math.tanh produces incorrect output for NaN"); +assert.sameValue(Math.tanh(Number.NEGATIVE_INFINITY), -1, + "Math.tanh should produce -1 for Number.NEGATIVE_INFINITY"); +assert.sameValue(Math.tanh(Number.POSITIVE_INFINITY), 1, + "Math.tanh should produce 1 for Number.POSITIVE_INFINITY"); +assert.sameValue(1 / Math.tanh(-0), Number.NEGATIVE_INFINITY, + "Math.tanh should produce -0 for -0"); +assert.sameValue(1 / Math.tanh(0), Number.POSITIVE_INFINITY, + "Math.tanh should produce +0 for +0"); diff --git a/test/built-ins/Math/trunc/trunc-sampleTests.js b/test/built-ins/Math/trunc/trunc-sampleTests.js index 92834c73054487d9e87305122a68965b41a1078f..a99c6cb50c6e50e1b40b0143e8857033b558b3a1 100644 --- a/test/built-ins/Math/trunc/trunc-sampleTests.js +++ b/test/built-ins/Math/trunc/trunc-sampleTests.js @@ -1,47 +1,47 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: sample tests for trunc -es6id: 20.2.2.35 ----*/ - -assert.sameValue(1 / Math.trunc(0.02047410048544407), Number.POSITIVE_INFINITY, - "Math.trunc should produce +0 for values between 0 and 1"); -assert.sameValue(1 / Math.trunc(0.00000000000000001), Number.POSITIVE_INFINITY, - "Math.trunc should produce +0 for values between 0 and 1"); -assert.sameValue(1 / Math.trunc(0.9999999999999999), Number.POSITIVE_INFINITY, - "Math.trunc should produce +0 for values between 0 and 1"); -assert.sameValue(1 / Math.trunc(Number.EPSILON), Number.POSITIVE_INFINITY, - "Math.trunc should produce +0 for values between 0 and 1"); -assert.sameValue(1 / Math.trunc(Number.MIN_VALUE), Number.POSITIVE_INFINITY, - "Math.trunc should produce +0 for values between 0 and 1"); - -assert.sameValue(1 / Math.trunc(-0.02047410048544407), Number.NEGATIVE_INFINITY, - "Math.trunc should produce -0 for values between -1 and 0"); -assert.sameValue(1 / Math.trunc(-0.00000000000000001), Number.NEGATIVE_INFINITY, - "Math.trunc should produce -0 for values between -1 and 0"); -assert.sameValue(1 / Math.trunc(-0.9999999999999999), Number.NEGATIVE_INFINITY, - "Math.trunc should produce -0 for values between -1 and 0"); -assert.sameValue(1 / Math.trunc(-Number.EPSILON), Number.NEGATIVE_INFINITY, - "Math.trunc should produce -0 for values between -1 and 0"); -assert.sameValue(1 / Math.trunc(-Number.MIN_VALUE), Number.NEGATIVE_INFINITY, - "Math.trunc should produce -0 for values between -1 and 0"); - -assert.sameValue(Math.trunc(Number.MAX_VALUE), Math.floor(Number.MAX_VALUE), - "Math.trunc produces incorrect result for Number.MAX_VALUE"); -assert.sameValue(Math.trunc(10), Math.floor(10), - "Math.trunc produces incorrect result for 10"); -assert.sameValue(Math.trunc(3.9), Math.floor(3.9), - "Math.trunc produces incorrect result for 3.9"); -assert.sameValue(Math.trunc(4.9), Math.floor(4.9), - "Math.trunc produces incorrect result for 4.9"); - -assert.sameValue(Math.trunc(-Number.MAX_VALUE), Math.ceil(-Number.MAX_VALUE), - "Math.trunc produces incorrect result for -Number.MAX_VALUE"); -assert.sameValue(Math.trunc(-10), Math.ceil(-10), - "Math.trunc produces incorrect result for -10"); -assert.sameValue(Math.trunc(-3.9), Math.ceil(-3.9), - "Math.trunc produces incorrect result for -3.9"); -assert.sameValue(Math.trunc(-4.9), Math.ceil(-4.9), - "Math.trunc produces incorrect result for -4.9"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: sample tests for trunc +es6id: 20.2.2.35 +---*/ + +assert.sameValue(1 / Math.trunc(0.02047410048544407), Number.POSITIVE_INFINITY, + "Math.trunc should produce +0 for values between 0 and 1"); +assert.sameValue(1 / Math.trunc(0.00000000000000001), Number.POSITIVE_INFINITY, + "Math.trunc should produce +0 for values between 0 and 1"); +assert.sameValue(1 / Math.trunc(0.9999999999999999), Number.POSITIVE_INFINITY, + "Math.trunc should produce +0 for values between 0 and 1"); +assert.sameValue(1 / Math.trunc(Number.EPSILON), Number.POSITIVE_INFINITY, + "Math.trunc should produce +0 for values between 0 and 1"); +assert.sameValue(1 / Math.trunc(Number.MIN_VALUE), Number.POSITIVE_INFINITY, + "Math.trunc should produce +0 for values between 0 and 1"); + +assert.sameValue(1 / Math.trunc(-0.02047410048544407), Number.NEGATIVE_INFINITY, + "Math.trunc should produce -0 for values between -1 and 0"); +assert.sameValue(1 / Math.trunc(-0.00000000000000001), Number.NEGATIVE_INFINITY, + "Math.trunc should produce -0 for values between -1 and 0"); +assert.sameValue(1 / Math.trunc(-0.9999999999999999), Number.NEGATIVE_INFINITY, + "Math.trunc should produce -0 for values between -1 and 0"); +assert.sameValue(1 / Math.trunc(-Number.EPSILON), Number.NEGATIVE_INFINITY, + "Math.trunc should produce -0 for values between -1 and 0"); +assert.sameValue(1 / Math.trunc(-Number.MIN_VALUE), Number.NEGATIVE_INFINITY, + "Math.trunc should produce -0 for values between -1 and 0"); + +assert.sameValue(Math.trunc(Number.MAX_VALUE), Math.floor(Number.MAX_VALUE), + "Math.trunc produces incorrect result for Number.MAX_VALUE"); +assert.sameValue(Math.trunc(10), Math.floor(10), + "Math.trunc produces incorrect result for 10"); +assert.sameValue(Math.trunc(3.9), Math.floor(3.9), + "Math.trunc produces incorrect result for 3.9"); +assert.sameValue(Math.trunc(4.9), Math.floor(4.9), + "Math.trunc produces incorrect result for 4.9"); + +assert.sameValue(Math.trunc(-Number.MAX_VALUE), Math.ceil(-Number.MAX_VALUE), + "Math.trunc produces incorrect result for -Number.MAX_VALUE"); +assert.sameValue(Math.trunc(-10), Math.ceil(-10), + "Math.trunc produces incorrect result for -10"); +assert.sameValue(Math.trunc(-3.9), Math.ceil(-3.9), + "Math.trunc produces incorrect result for -3.9"); +assert.sameValue(Math.trunc(-4.9), Math.ceil(-4.9), + "Math.trunc produces incorrect result for -4.9"); diff --git a/test/built-ins/Math/trunc/trunc-specialVals.js b/test/built-ins/Math/trunc/trunc-specialVals.js index a1d6e1cb267d5a05e72a5cc24c17d50da4777d74..19efbf6b658e883756d0933d1bceb7c3b3a8ae23 100644 --- a/test/built-ins/Math/trunc/trunc-specialVals.js +++ b/test/built-ins/Math/trunc/trunc-specialVals.js @@ -1,16 +1,16 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.trunc with sample values. -es6id: 20.2.2.35 ----*/ - -assert.sameValue(Math.trunc(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY, - "Math.trunc should produce negative infinity for Number.NEGATIVE_INFINITY"); -assert.sameValue(Math.trunc(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.trunc should produce positive infinity for Number.POSITIVE_INFINITY"); -assert.sameValue(1/Math.trunc(-0), Number.NEGATIVE_INFINITY, - "Math.trunc should produce -0 for -0"); -assert.sameValue(1/Math.trunc(0), Number.POSITIVE_INFINITY, - "Math.trunc should produce +0 for +0"); +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.trunc with sample values. +es6id: 20.2.2.35 +---*/ + +assert.sameValue(Math.trunc(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY, + "Math.trunc should produce negative infinity for Number.NEGATIVE_INFINITY"); +assert.sameValue(Math.trunc(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.trunc should produce positive infinity for Number.POSITIVE_INFINITY"); +assert.sameValue(1 / Math.trunc(-0), Number.NEGATIVE_INFINITY, + "Math.trunc should produce -0 for -0"); +assert.sameValue(1 / Math.trunc(0), Number.POSITIVE_INFINITY, + "Math.trunc should produce +0 for +0"); diff --git a/test/built-ins/NaN/15.1.1.1-0.js b/test/built-ins/NaN/15.1.1.1-0.js index c8638ede8c0322fd43eba71b225cfba787b69589..f775484dbd605dfc45e4a6f03e5099d6f6c10acd 100644 --- a/test/built-ins/NaN/15.1.1.1-0.js +++ b/test/built-ins/NaN/15.1.1.1-0.js @@ -6,7 +6,7 @@ es5id: 15.1.1.1-0 description: Global.NaN is a data property with default attribute values (false) ---*/ - var desc = Object.getOwnPropertyDescriptor(this, 'NaN'); +var desc = Object.getOwnPropertyDescriptor(this, 'NaN'); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/NaN/S15.1.1.1_A2_T1.js b/test/built-ins/NaN/S15.1.1.1_A2_T1.js index 2ed88aa61e127f2b1392b7a8d8604519031fc8f0..0fe23aa65e16568cbeda089315ff8c5500a5dd5d 100644 --- a/test/built-ins/NaN/S15.1.1.1_A2_T1.js +++ b/test/built-ins/NaN/S15.1.1.1_A2_T1.js @@ -11,5 +11,5 @@ includes: [propertyHelper.js] // CHECK#1 verifyNotWritable(this, "NaN", null, true); if (typeof(NaN) === "boolean") { - $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN))); + $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN))); } diff --git a/test/built-ins/NaN/S15.1.1.1_A2_T2.js b/test/built-ins/NaN/S15.1.1.1_A2_T2.js index e357fbe37032004fd7f7f1f82d1a2f34382f661e..f2654376c9fe6d23c05dac95f69de41fa74ebe8f 100644 --- a/test/built-ins/NaN/S15.1.1.1_A2_T2.js +++ b/test/built-ins/NaN/S15.1.1.1_A2_T2.js @@ -11,5 +11,5 @@ flags: [noStrict] // CHECK#1 NaN = true; if (typeof(NaN) === "boolean") { - $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN))); + $ERROR('#1: NaN = true; typeof(NaN) !== "boolean". Actual: ' + (typeof(NaN))); } diff --git a/test/built-ins/NaN/S15.1.1.1_A3_T2.js b/test/built-ins/NaN/S15.1.1.1_A3_T2.js index c9e072c4b4c0f3385e5ee30d0c7422cc36b310ee..475c1eb9b5ee7664ec98f41cebada7f9fd6db2be 100644 --- a/test/built-ins/NaN/S15.1.1.1_A3_T2.js +++ b/test/built-ins/NaN/S15.1.1.1_A3_T2.js @@ -10,5 +10,5 @@ flags: [noStrict] // CHECK#1 if (delete NaN !== false) { - $ERROR('#1: delete NaN === false. Actual: ' + (delete NaN)); + $ERROR('#1: delete NaN === false. Actual: ' + (delete NaN)); } diff --git a/test/built-ins/NaN/S15.1.1.1_A4.js b/test/built-ins/NaN/S15.1.1.1_A4.js index 797f524381c04159b2b432f6e73dcf40fd953bdd..a4ec30485715bee6750794c2ce73a1d6af40d6d2 100644 --- a/test/built-ins/NaN/S15.1.1.1_A4.js +++ b/test/built-ins/NaN/S15.1.1.1_A4.js @@ -10,6 +10,6 @@ description: Use for-in statement // CHECK#1 for (var prop in this) { if (prop === "NaN") { - $ERROR('#1: The NaN is DontEnum'); + $ERROR('#1: The NaN is DontEnum'); } } diff --git a/test/built-ins/Number/15.7.3-2.js b/test/built-ins/Number/15.7.3-2.js index e4bba35d8c6a0f2f737a16752bc24a5ae1aebf9c..e867affdb88c86134acf794aefe62e49877ce177 100644 --- a/test/built-ins/Number/15.7.3-2.js +++ b/test/built-ins/Number/15.7.3-2.js @@ -8,6 +8,6 @@ description: > object (using getPrototypeOf) ---*/ - var p = Object.getPrototypeOf(Number); +var p = Object.getPrototypeOf(Number); assert.sameValue(p, Function.prototype, 'p'); diff --git a/test/built-ins/Number/15.7.4-1.js b/test/built-ins/Number/15.7.4-1.js index 7b620b069d54b62ded8a3f1d03ea38d1efec5469..6b24e6c17a9483a13a90fda8d96fa6ff61556ba9 100644 --- a/test/built-ins/Number/15.7.4-1.js +++ b/test/built-ins/Number/15.7.4-1.js @@ -6,7 +6,7 @@ es5id: 15.7.4-1 description: "Number prototype object: its [[Class]] must be 'Number'" ---*/ - var numProto = Object.getPrototypeOf(new Number(42)); - var s = Object.prototype.toString.call(numProto ); +var numProto = Object.getPrototypeOf(new Number(42)); +var s = Object.prototype.toString.call(numProto); assert.sameValue(s, '[object Number]', 's'); diff --git a/test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js b/test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js index 8378470ec7d8a2f083680cf9d62cb4bc8e065bcd..0a23c4427b877705fe22712b64d4fa4e2e4be97b 100644 --- a/test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js +++ b/test/built-ins/Number/MAX_VALUE/S15.7.3.2_A4.js @@ -8,8 +8,8 @@ description: Checking if enumerating Number.MAX_VALUE fails ---*/ //CHECK#1 -for(var x in Number) { - if(x === "MAX_VALUE") { +for (var x in Number) { + if (x === "MAX_VALUE") { $ERROR('#1: Number.MAX_VALUE has the attribute DontEnum'); } } diff --git a/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js b/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js index 0435aa0df82c92f374e556bf51abfccfe70abdd4..83c607d5801faa3f62e1748ab6d44e2b551be61e 100644 --- a/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js +++ b/test/built-ins/Number/MIN_VALUE/S15.7.3.3_A4.js @@ -8,8 +8,8 @@ description: Checking if enumerating Number.MIN_VALUE fails ---*/ //CHECK#1 -for(var x in Number) { - if(x === "MIN_VALUE") { +for (var x in Number) { + if (x === "MIN_VALUE") { $ERROR('#1: Number.MIN_VALUE has the attribute DontEnum'); } } diff --git a/test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js b/test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js index 2136e588d47edb8540b7afac02c3995a7be02876..d6a7450bd5bb67c7f99cc45e4871d7dd51af1295 100644 --- a/test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js +++ b/test/built-ins/Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] verifyNotWritable(Number, "NEGATIVE_INFINITY", null, 1); if (isFinite(Number.NEGATIVE_INFINITY)) { $ERROR('#1: Number.NEGATIVE_INFINITY = 1; Number.NEGATIVE_INFINITY === -Infinity'); -} else { +} else { if (Number.NEGATIVE_INFINITY >= 0) { $ERROR('#1: Number.NEGATIVE_INFINITY = 1; Number.NEGATIVE_INFINITY === -Infinity'); } diff --git a/test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js b/test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js index f13ec952da7dfd9db663573fa1f6346cd2f5dc58..a087f3247e13e51bf16c6b5ad554a1b3e9a13bf1 100644 --- a/test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js +++ b/test/built-ins/Number/POSITIVE_INFINITY/S15.7.3.6_A2.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] verifyNotWritable(Number, "POSITIVE_INFINITY", null, 1); if (isFinite(Number.POSITIVE_INFINITY)) { $ERROR('#1: Number.POSITIVE_INFINITY = 1; Number.POSITIVE_INFINITY === +Infinity'); -} else { +} else { if (Number.POSITIVE_INFINITY <= 0) { $ERROR('#1: Number.POSITIVE_INFINITY = 1; Number.POSITIVE_INFINITY === +Infinity'); } diff --git a/test/built-ins/Number/S15.7.1.1_A1.js b/test/built-ins/Number/S15.7.1.1_A1.js index e42b6a024b9245f081692bdcf35d063bd89bb07d..1d094a056fff29cff6e04e74536f015be5cad623 100644 --- a/test/built-ins/Number/S15.7.1.1_A1.js +++ b/test/built-ins/Number/S15.7.1.1_A1.js @@ -10,23 +10,23 @@ description: Used values "10", 10, new String("10"), new Object(10) and "abc" ---*/ //CHECK#1 -if( typeof Number("10") !== "number" ) { - $ERROR('#1: typeof Number("10") should be "number", actual is "'+typeof Number("10")+'"'); +if (typeof Number("10") !== "number") { + $ERROR('#1: typeof Number("10") should be "number", actual is "' + typeof Number("10") + '"'); } //CHECK#2 -if( typeof Number(10) !== "number" ) { - $ERROR('#2: typeof Number(10) should be "number", actual is "'+typeof Number(10)+'"'); +if (typeof Number(10) !== "number") { + $ERROR('#2: typeof Number(10) should be "number", actual is "' + typeof Number(10) + '"'); } //CHECK#3 -if( typeof Number(new String("10")) !== "number" ) { - $ERROR('#3: typeof Number(new String("10")) should be "number", actual is "'+typeof Number(new String("10"))+'"'); +if (typeof Number(new String("10")) !== "number") { + $ERROR('#3: typeof Number(new String("10")) should be "number", actual is "' + typeof Number(new String("10")) + '"'); } //CHECK#4 -if( typeof Number(new Object(10)) !== "number" ) { - $ERROR('#4: typeof Number(new Object(10)) should be "number", actual is "'+typeof Number(new Object(10))+'"'); +if (typeof Number(new Object(10)) !== "number") { + $ERROR('#4: typeof Number(new Object(10)) should be "number", actual is "' + typeof Number(new Object(10)) + '"'); } //CHECK #5 diff --git a/test/built-ins/Number/S15.7.1.1_A2.js b/test/built-ins/Number/S15.7.1.1_A2.js index f38fa26dd1cfe8ef349a11050b65c6f82d2d9109..0b41b4d39ae721bc04698a1cd68a20e00598bf84 100644 --- a/test/built-ins/Number/S15.7.1.1_A2.js +++ b/test/built-ins/Number/S15.7.1.1_A2.js @@ -8,13 +8,13 @@ description: Call Number() and check result ---*/ //CHECK#1 -if( typeof Number() !== "number" ) { - $ERROR('#1: typeof Number() should be "number", actual is "'+typeof Number()+'"'); +if (typeof Number() !== "number") { + $ERROR('#1: typeof Number() should be "number", actual is "' + typeof Number() + '"'); } //CHECK#2 -if( Number() !== 0 ) { - $ERROR('#2: Number() === 0, actual is '+Number()); -} else if( 1/Number() !== Number.POSITIVE_INFINITY ) { - $ERROR('#2: Number() === +0, actual is '+Number()); +if (Number() !== 0) { + $ERROR('#2: Number() === 0, actual is ' + Number()); +} else if (1 / Number() !== Number.POSITIVE_INFINITY) { + $ERROR('#2: Number() === +0, actual is ' + Number()); } diff --git a/test/built-ins/Number/S15.7.2.1_A1.js b/test/built-ins/Number/S15.7.2.1_A1.js index ba99b0608426fe149f18a8cfbfc3cae698f41c3a..37106c76d389f0cc082842e1789947c7a39e9465 100644 --- a/test/built-ins/Number/S15.7.2.1_A1.js +++ b/test/built-ins/Number/S15.7.2.1_A1.js @@ -21,13 +21,13 @@ if (new Number() === undefined) { //CHECK#3 var x3 = new Number(); -if(typeof x3 !== "object"){ +if (typeof x3 !== "object") { $ERROR("#3: typeof new Number() === 'object'"); } //CHECK#4 var x4 = new Number(); -if(x4 === undefined){ +if (x4 === undefined) { $ERROR("#4: new Number() should not be undefined"); } @@ -43,12 +43,12 @@ if (new Number(10) === undefined) { //CHECK#7 var x7 = new Number(10); -if(typeof x7 !== "object"){ +if (typeof x7 !== "object") { $ERROR("#7: typeof new Number(10) === 'object'"); } //CHECK#8 var x8 = new Number(10); -if(x8 === undefined){ +if (x8 === undefined) { $ERROR("#8: new Number(10) should not be undefined"); } diff --git a/test/built-ins/Number/S15.7.2.1_A3.js b/test/built-ins/Number/S15.7.2.1_A3.js index bf524cd4c01758b59234a4b401a9f0ac7c6b4e30..0782599cb11df0edc32175420223af5625bd745f 100644 --- a/test/built-ins/Number/S15.7.2.1_A3.js +++ b/test/built-ins/Number/S15.7.2.1_A3.js @@ -19,6 +19,6 @@ if (x1.valueOf() !== 1) { var x2 = new Number(); if (x2.valueOf() !== 0) { $ERROR('#2.1: var x2 = new Number(); x2.valueOf() === 0'); -} else if( 1/x2.valueOf() !== Number.POSITIVE_INFINITY ) { +} else if (1 / x2.valueOf() !== Number.POSITIVE_INFINITY) { $ERROR('#2.2: var x2 = new Number(); x2.valueOf() === +0'); } diff --git a/test/built-ins/Number/S15.7.3_A1.js b/test/built-ins/Number/S15.7.3_A1.js index 9f7f11f08b3a424eb0afe4e42d71bfd4f5875dda..3bf26e28e5789a7be3afd979f47124190d766c6c 100644 --- a/test/built-ins/Number/S15.7.3_A1.js +++ b/test/built-ins/Number/S15.7.3_A1.js @@ -7,6 +7,6 @@ es5id: 15.7.3_A1 description: Checking existence of the property "prototype" ---*/ -if(!Number.hasOwnProperty("prototype")){ +if (!Number.hasOwnProperty("prototype")) { $ERROR('#1: The Number constructor has the property "prototype"'); } diff --git a/test/built-ins/Number/S15.7.3_A2.js b/test/built-ins/Number/S15.7.3_A2.js index d01bc84191dd734dc166b3f806e97c106e50de39..069c25eb88b6c5f0828cdd7f75da3ed25198ef28 100644 --- a/test/built-ins/Number/S15.7.3_A2.js +++ b/test/built-ins/Number/S15.7.3_A2.js @@ -7,6 +7,6 @@ es5id: 15.7.3_A2 description: Checking existence of the property "MAX_VALUE" ---*/ -if(!Number.hasOwnProperty("MAX_VALUE")){ +if (!Number.hasOwnProperty("MAX_VALUE")) { $ERROR('#1: The Number constructor has the property "MAX_VALUE"'); } diff --git a/test/built-ins/Number/S15.7.3_A3.js b/test/built-ins/Number/S15.7.3_A3.js index dfe4f3e3f92c133b5082a5f2a55357ab2b48c67d..0e66e69d2501447526c8b640ba667153d24954c6 100644 --- a/test/built-ins/Number/S15.7.3_A3.js +++ b/test/built-ins/Number/S15.7.3_A3.js @@ -7,6 +7,6 @@ es5id: 15.7.3_A3 description: Checking existence of the property "MIN_VALUE" ---*/ -if(!Number.hasOwnProperty("MIN_VALUE")){ +if (!Number.hasOwnProperty("MIN_VALUE")) { $ERROR('#1: The Number constructor has the property "MIN_VALUE"'); } diff --git a/test/built-ins/Number/S15.7.3_A4.js b/test/built-ins/Number/S15.7.3_A4.js index 7c9dadce0cbb8105452835bfc0961b0012ecad00..9b1bff195c0924a487c6461313e7b5e78e50a6db 100644 --- a/test/built-ins/Number/S15.7.3_A4.js +++ b/test/built-ins/Number/S15.7.3_A4.js @@ -7,6 +7,6 @@ es5id: 15.7.3_A4 description: Checking existence of the property "NaN" ---*/ -if(!Number.hasOwnProperty("NaN")){ +if (!Number.hasOwnProperty("NaN")) { $ERROR('#1: The Number constructor has the property "NaN"'); } diff --git a/test/built-ins/Number/S15.7.3_A5.js b/test/built-ins/Number/S15.7.3_A5.js index c6b326159844b8ee513416291d0e58ff7e68b032..03ce9dfd5220194b98925cd9e3e4bb094d1a4d28 100644 --- a/test/built-ins/Number/S15.7.3_A5.js +++ b/test/built-ins/Number/S15.7.3_A5.js @@ -7,6 +7,6 @@ es5id: 15.7.3_A5 description: Checking existence of the property "NEGATIVE_INFINITY" ---*/ -if(!Number.hasOwnProperty("NEGATIVE_INFINITY")){ +if (!Number.hasOwnProperty("NEGATIVE_INFINITY")) { $ERROR('#1: The Number constructor has the property "NEGATIVE_INFINITY"'); } diff --git a/test/built-ins/Number/S15.7.3_A6.js b/test/built-ins/Number/S15.7.3_A6.js index 7afcbf2bb9675d679e86614e74b866ba8ed9e827..3c201312984bded48800648c45305c75bc3b9bdd 100644 --- a/test/built-ins/Number/S15.7.3_A6.js +++ b/test/built-ins/Number/S15.7.3_A6.js @@ -7,6 +7,6 @@ es5id: 15.7.3_A6 description: Checking existence of the property "POSITIVE_INFINITY" ---*/ -if(!Number.hasOwnProperty("POSITIVE_INFINITY")){ +if (!Number.hasOwnProperty("POSITIVE_INFINITY")) { $ERROR('#1: The Number constructor has the property "POSITIVE_INFINITY"'); } diff --git a/test/built-ins/Number/S15.7.3_A8.js b/test/built-ins/Number/S15.7.3_A8.js index 7b79c2a4face9f5b807080a2be52747709d80ad5..449a75274532bd34cb4c9dfb985365b869271d41 100644 --- a/test/built-ins/Number/S15.7.3_A8.js +++ b/test/built-ins/Number/S15.7.3_A8.js @@ -8,7 +8,7 @@ description: Checking Number.length property ---*/ //CHECK#1 -if (!Number.hasOwnProperty("length")){ +if (!Number.hasOwnProperty("length")) { $ERROR('#1: Number constructor has length property'); } diff --git a/test/built-ins/Number/S15.7.5_A1_T01.js b/test/built-ins/Number/S15.7.5_A1_T01.js index 043024634b08a3d4a91e7d97406f5644779486aa..6c7afa9e32b2082aa8b5e15f243b96841db540f9 100644 --- a/test/built-ins/Number/S15.7.5_A1_T01.js +++ b/test/built-ins/Number/S15.7.5_A1_T01.js @@ -10,11 +10,11 @@ description: Checking property constructor ---*/ //CHECK#1 -if((new Number()).hasOwnProperty("constructor") !== false){ +if ((new Number()).hasOwnProperty("constructor") !== false) { $ERROR('#1: Number instance must have no special property "constructor"'); } //CHECK#2 -if((new Number()).constructor !== Number.prototype.constructor){ +if ((new Number()).constructor !== Number.prototype.constructor) { $ERROR('#2: Number instance property "constructor" must be inherited from Number prototype object'); } diff --git a/test/built-ins/Number/S15.7.5_A1_T02.js b/test/built-ins/Number/S15.7.5_A1_T02.js index b77d071736d252475c0ebfa39bd5135cac725302..c3ea2aeac03e4724c932c9ea1965596dd64b788a 100644 --- a/test/built-ins/Number/S15.7.5_A1_T02.js +++ b/test/built-ins/Number/S15.7.5_A1_T02.js @@ -10,11 +10,11 @@ description: Checking property toString ---*/ //CHECK#1 -if((new Number()).hasOwnProperty("toString") !== false){ +if ((new Number()).hasOwnProperty("toString") !== false) { $ERROR('#1: Number instance must have no special property "toString"'); } //CHECK#2 -if((new Number()).toString !== Number.prototype.toString){ +if ((new Number()).toString !== Number.prototype.toString) { $ERROR('#2: Number instance property "toString" must be inherited from Number prototype object'); } diff --git a/test/built-ins/Number/S15.7.5_A1_T03.js b/test/built-ins/Number/S15.7.5_A1_T03.js index 4958bef8ee8184511cee28eadee9ec5d4460643d..83ff9a762bd003ba6c0ef5dfdbe158c902cf46e0 100644 --- a/test/built-ins/Number/S15.7.5_A1_T03.js +++ b/test/built-ins/Number/S15.7.5_A1_T03.js @@ -10,11 +10,11 @@ description: Checking property toLocaleString ---*/ //CHECK#1 -if((new Number()).hasOwnProperty("toLocaleString") !== false){ +if ((new Number()).hasOwnProperty("toLocaleString") !== false) { $ERROR('#1: Number instance must have no special property "toLocaleString"'); } //CHECK#2 -if((new Number()).toLocaleString !== Number.prototype.toLocaleString){ +if ((new Number()).toLocaleString !== Number.prototype.toLocaleString) { $ERROR('#2: Number instance property "toLocaleString" must be inherited from Number prototype object'); } diff --git a/test/built-ins/Number/S15.7.5_A1_T04.js b/test/built-ins/Number/S15.7.5_A1_T04.js index 22fe3db0039fbe6ebc6b1d689f2a2154558f781c..3643e41ae313715e73a003f8a5f3af6d51e4ce1a 100644 --- a/test/built-ins/Number/S15.7.5_A1_T04.js +++ b/test/built-ins/Number/S15.7.5_A1_T04.js @@ -10,11 +10,11 @@ description: Checking property valueOf ---*/ //CHECK#1 -if((new Number()).hasOwnProperty("valueOf") !== false){ +if ((new Number()).hasOwnProperty("valueOf") !== false) { $ERROR('#1: Number instance must have no special property "valueOf"'); } //CHECK#2 -if((new Number()).valueOf !== Number.prototype.valueOf){ +if ((new Number()).valueOf !== Number.prototype.valueOf) { $ERROR('#2: Number instance property "valueOf" must be inherited from Number prototype object'); } diff --git a/test/built-ins/Number/S15.7.5_A1_T05.js b/test/built-ins/Number/S15.7.5_A1_T05.js index 7c64a6a7f4358a97106246cbedf7534b96b41efb..947f8358e67a87fb3b572e124f9dc55183449070 100644 --- a/test/built-ins/Number/S15.7.5_A1_T05.js +++ b/test/built-ins/Number/S15.7.5_A1_T05.js @@ -10,11 +10,11 @@ description: Checking property toFixed ---*/ //CHECK#1 -if((new Number()).hasOwnProperty("toFixed") !== false){ +if ((new Number()).hasOwnProperty("toFixed") !== false) { $ERROR('#1: Number instance must have no special property "toFixed"'); } //CHECK#2 -if((new Number()).toFixed !== Number.prototype.toFixed){ +if ((new Number()).toFixed !== Number.prototype.toFixed) { $ERROR('#2: Number instance property "toFixed" must be inherited from Number prototype object'); } diff --git a/test/built-ins/Number/S15.7.5_A1_T06.js b/test/built-ins/Number/S15.7.5_A1_T06.js index 4c5eb4a238245711bdecad41b8ead6b56a157120..762d85b1149b50df7a255d453a8abc8574871793 100644 --- a/test/built-ins/Number/S15.7.5_A1_T06.js +++ b/test/built-ins/Number/S15.7.5_A1_T06.js @@ -10,11 +10,11 @@ description: Checking property toExponential ---*/ //CHECK#1 -if((new Number()).hasOwnProperty("toExponential") !== false){ +if ((new Number()).hasOwnProperty("toExponential") !== false) { $ERROR('#1: Number instance must have no special property "toExponential"'); } //CHECK#2 -if((new Number()).toExponential !== Number.prototype.toExponential){ +if ((new Number()).toExponential !== Number.prototype.toExponential) { $ERROR('#2: Number instance property "toExponential" must be inherited from Number prototype object'); } diff --git a/test/built-ins/Number/S15.7.5_A1_T07.js b/test/built-ins/Number/S15.7.5_A1_T07.js index fd36a65b1c2f1732a58704aa68bdfef5cc0d1373..a7a260d10bfaddcb385209b891551edcb10c04e7 100644 --- a/test/built-ins/Number/S15.7.5_A1_T07.js +++ b/test/built-ins/Number/S15.7.5_A1_T07.js @@ -10,11 +10,11 @@ description: Checking property toPrecision ---*/ //CHECK#1 -if((new Number()).hasOwnProperty("toPrecision") !== false){ +if ((new Number()).hasOwnProperty("toPrecision") !== false) { $ERROR('#1: Number instance must have no special property "toPrecision"'); } //CHECK#2 -if((new Number()).toPrecision !== Number.prototype.toPrecision){ +if ((new Number()).toPrecision !== Number.prototype.toPrecision) { $ERROR('#2: Number instance property "toPrecision" must be inherited from Number prototype object'); } diff --git a/test/built-ins/Number/S8.12.8_A3.js b/test/built-ins/Number/S8.12.8_A3.js index ea01590a57f70ce0e9bae9586145a55bd1d1827d..f9ca248a698d8cabcf92c548cbc2156885269fa9 100644 --- a/test/built-ins/Number/S8.12.8_A3.js +++ b/test/built-ins/Number/S8.12.8_A3.js @@ -13,12 +13,19 @@ description: > try { - var __obj = {toString: function() {return "1"}, valueOf: function() {return new Object();}} + var __obj = { + toString: function() { + return "1" + }, + valueOf: function() { + return new Object(); + } + } if (Number(__obj) !== 1) { $ERROR('#1.1: var __obj = {toNumber: function() {return "1"}, valueOf: function() {return new Object();}}; Number(__obj) === 1. Actual: ' + (Number(__obj))); } } -catch(e) +catch (e) { $ERROR('#1.2: var __obj = {toNumber: function() {return "1"}, valueOf: function() {return new Object();}}; Number(__obj) === 1. Actual: ' + (e)); } diff --git a/test/built-ins/Number/S8.12.8_A4.js b/test/built-ins/Number/S8.12.8_A4.js index 1a1aa0894f28d9ea9cddb4876937a993b5ff14ab..1cd3cbf015517879bbc3b2058c7beec622cd6b76 100644 --- a/test/built-ins/Number/S8.12.8_A4.js +++ b/test/built-ins/Number/S8.12.8_A4.js @@ -13,11 +13,18 @@ description: > try { - var __obj = {valueOf:function(){return new Object;},toString: function() {return new Object();}} + var __obj = { + valueOf: function() { + return new Object; + }, + toString: function() { + return new Object(); + } + } Number(__obj); $ERROR('#1.1: var __obj = {valueOf:function(){return new Object;},toNumber: function() {return new Object();}}; Number(__obj) throw TypeError. Actual: ' + (Number(__obj))); } -catch(e) +catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#1.2: var __obj = {valueOf:function(){return new Object;},toNumber: function() {return new Object();}}; Number(__obj) throw TypeError. Actual: ' + (e)); diff --git a/test/built-ins/Number/S9.1_A1_T1.js b/test/built-ins/Number/S9.1_A1_T1.js index b081181596f3e9620c7d8429f266ff882db873f6..458f74711b9827aa9df790e5786e3d62f6bf324d 100644 --- a/test/built-ins/Number/S9.1_A1_T1.js +++ b/test/built-ins/Number/S9.1_A1_T1.js @@ -12,13 +12,27 @@ description: > ---*/ // CHECK#1 -var object = {valueOf: function() {return "1"}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return "1" + }, + toString: function() { + return 0 + } +}; if (Number(object) !== 1) { $ERROR('#1: var object = {valueOf: function() {return "1"}, toString: function() {return 0}}; Number(object) === 1. Actual: ' + (Number(object))); } // CHECK#2 -var object = {valueOf: function() {return {}}, toString: function() {return "0"}}; +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "0" + } +}; if (Number(object) !== 0) { $ERROR('#2: var object = {valueOf: function() {return {}}, toString: function() {return "0"}}; Number(object) === 0. Actual: ' + (Number(object))); } diff --git a/test/built-ins/Number/S9.3.1_A1.js b/test/built-ins/Number/S9.3.1_A1.js index 030b818344ce36f703b78b21b5015112319776c9..0730f501735b3a5a1875cb176ba11de2014378b6 100644 --- a/test/built-ins/Number/S9.3.1_A1.js +++ b/test/built-ins/Number/S9.3.1_A1.js @@ -11,7 +11,7 @@ description: Number('') convert to Number by explicit transformation if (Number("") !== 0) { $ERROR('#1.1: Number("") === 0. Actual: ' + (Number(""))); } else { - if (1/Number("") !== Number.POSITIVE_INFINITY) { + if (1 / Number("") !== Number.POSITIVE_INFINITY) { $ERROR('#1.2: Number("") == +0. Actual: -0'); } } diff --git a/test/built-ins/Number/S9.3.1_A10.js b/test/built-ins/Number/S9.3.1_A10.js index b13c0855e8eba2df52170cffcadf03f89733aa0b..2f3206e5a9522803ee23f43ee9010d117f359e56 100644 --- a/test/built-ins/Number/S9.3.1_A10.js +++ b/test/built-ins/Number/S9.3.1_A10.js @@ -11,6 +11,6 @@ description: Compare Number('.12345') with +('12345')*1e-5 ---*/ // CHECK#1 -if (Number(".12345") !== +("12345")*1e-5) { +if (Number(".12345") !== +("12345") * 1e-5) { $ERROR('#1: Number(".12345") === +("12345")*1e-5'); } diff --git a/test/built-ins/Number/S9.3.1_A11.js b/test/built-ins/Number/S9.3.1_A11.js index b33d96633f92b4e2aa4f8705a522b641766ca085..3d1ec721f2685296846eb60655b9327eb8451cc3 100644 --- a/test/built-ins/Number/S9.3.1_A11.js +++ b/test/built-ins/Number/S9.3.1_A11.js @@ -13,11 +13,11 @@ description: > ---*/ // CHECK#1 -if (Number(".12345e6") !== +("12345")*1e1) { +if (Number(".12345e6") !== +("12345") * 1e1) { $ERROR('#1: Number(".12345e6") === +("12345")*1e1'); } // CHECK#2 -if (Number(".12345e-3") !== Number("12345")*1e-8) { +if (Number(".12345e-3") !== Number("12345") * 1e-8) { $ERROR('#2: Number(".12345e-3") === Number("12345")*1e-8'); } diff --git a/test/built-ins/Number/S9.3.1_A12.js b/test/built-ins/Number/S9.3.1_A12.js index 57ff2f1756d43b76b1b4b6183edf05e38e842b99..4435832ca2a7846e6567eb5bd8a0ecd27a1b4d58 100644 --- a/test/built-ins/Number/S9.3.1_A12.js +++ b/test/built-ins/Number/S9.3.1_A12.js @@ -12,11 +12,11 @@ description: > ---*/ // CHECK#1 -if (Number("12345e6") !== +("12345")*1e6) { +if (Number("12345e6") !== +("12345") * 1e6) { $ERROR('#1: Number("12345e6") === +("12345")*1e6'); } // CHECK#2 -if (Number("12345e-6") !== Number("12345")*1e-6) { +if (Number("12345e-6") !== Number("12345") * 1e-6) { $ERROR('#2: Number("12345e-6") === Number("12345")*1e-6'); } diff --git a/test/built-ins/Number/S9.3.1_A13.js b/test/built-ins/Number/S9.3.1_A13.js index f356b228c74591f5bbb8e70761123b0fb0fa6c80..08414f98b2036237df6734504bb68da30c11183e 100644 --- a/test/built-ins/Number/S9.3.1_A13.js +++ b/test/built-ins/Number/S9.3.1_A13.js @@ -10,16 +10,16 @@ description: Compare '12' with Number("1")*10+Number("2") and analogous ---*/ // CHECK#1 -if (+("12") !== Number("1")*10+Number("2")) { +if (+("12") !== Number("1") * 10 + Number("2")) { $ERROR('#1: +("12") === Number("1")*10+Number("2")'); } // CHECK#2 -if (Number("123") !== Number("12")*10+Number("3")) { +if (Number("123") !== Number("12") * 10 + Number("3")) { $ERROR('#2: Number("123") === Number("12")*10+Number("3")'); } // CHECK#2 -if (Number("1234") !== Number("123")*10+Number("4")) { +if (Number("1234") !== Number("123") * 10 + Number("4")) { $ERROR('#2: Number("1234") === Number("123")*10+Number("4")'); } diff --git a/test/built-ins/Number/S9.3.1_A14.js b/test/built-ins/Number/S9.3.1_A14.js index 5b83689c803f9ecd23e0443c52bdc467acbef18c..e00fce7d718d20e1e561aee0ad634e4921fbfb35 100644 --- a/test/built-ins/Number/S9.3.1_A14.js +++ b/test/built-ins/Number/S9.3.1_A14.js @@ -8,6 +8,6 @@ description: Compare Number('+1234567890') with +('1234567890') ---*/ // CHECK#1 -if (Number("+1234567890") !== +("1234567890")) { +if (Number("+1234567890") !== +("1234567890")) { $ERROR('#1: Number("+1234567890") === +("1234567890")'); } diff --git a/test/built-ins/Number/S9.3.1_A15.js b/test/built-ins/Number/S9.3.1_A15.js index 5428195b72cb7409ed2e4749570c24962c0be5d7..41efa9880375bee603a3db3d649acbbe56e258e2 100644 --- a/test/built-ins/Number/S9.3.1_A15.js +++ b/test/built-ins/Number/S9.3.1_A15.js @@ -10,6 +10,6 @@ description: Compare -Number('1234567890') with ('-1234567890') ---*/ // CHECK#1 -if (+("-1234567890") !== -Number("1234567890")) { +if (+("-1234567890") !== -Number("1234567890")) { $ERROR('#1: +("-1234567890") === -Number("1234567890")'); } diff --git a/test/built-ins/Number/S9.3.1_A17.js b/test/built-ins/Number/S9.3.1_A17.js index a41a110fb041349eebdc14324cfe61c6b4144024..8600d6eacba90de3720a41517364bbe4a61b285f 100644 --- a/test/built-ins/Number/S9.3.1_A17.js +++ b/test/built-ins/Number/S9.3.1_A17.js @@ -8,16 +8,16 @@ description: Compare Number('0x1') and Number('0X1') with 1 ---*/ // CHECK#1 -if (Number("1") !== 1) { +if (Number("1") !== 1) { $ERROR('#1: Number("1") === 1. Actual: ' + (Number("1"))); } // CHECK#2 -if (Number("0x1") !== 1) { +if (Number("0x1") !== 1) { $ERROR('#2: Number("0x1") === 1. Actual: ' + (Number("0x1"))); } // CHECK#3 -if (+("0X1") !== 1) { +if (+("0X1") !== 1) { $ERROR('#3: +("0X1") === 1. Actual: ' + (+("0X1"))); } diff --git a/test/built-ins/Number/S9.3.1_A18.js b/test/built-ins/Number/S9.3.1_A18.js index 0bccc171dc166ae7a965da7b230e0ed3bf5a8940..1ab8affeb4fc95218e221dac926cec32fa2d0eb6 100644 --- a/test/built-ins/Number/S9.3.1_A18.js +++ b/test/built-ins/Number/S9.3.1_A18.js @@ -8,16 +8,16 @@ description: Compare Number('0x2') and Number('0X2') with 2 ---*/ // CHECK#1 -if (+("2") !== 2) { +if (+("2") !== 2) { $ERROR('#1: +("2") === 2. Actual: ' + (+("2"))); } // CHECK#2 -if (Number("0x2") !== 2) { +if (Number("0x2") !== 2) { $ERROR('#2: Number("0x2") === 2. Actual: ' + (Number("0x2"))); } // CHECK#3 -if (Number("0X2") !== 2) { +if (Number("0X2") !== 2) { $ERROR('#3: Number("0X2") === 2. Actual: ' + (Number("0X2"))); } diff --git a/test/built-ins/Number/S9.3.1_A19.js b/test/built-ins/Number/S9.3.1_A19.js index 1982f636a39c41b25b127fd15a6a505fa67e2bd3..5c17b0996d358957bd738352b00bbbc845ab3ae4 100644 --- a/test/built-ins/Number/S9.3.1_A19.js +++ b/test/built-ins/Number/S9.3.1_A19.js @@ -8,16 +8,16 @@ description: Compare Number('0x3') and Number('0X3') with 3 ---*/ // CHECK#1 -if (Number("3") !== 3) { +if (Number("3") !== 3) { $ERROR('#1: Number("3") === 3. Actual: ' + (Number("3"))); } // CHECK#2 -if (+("0x3") !== 3) { +if (+("0x3") !== 3) { $ERROR('#2: +("0x3") === 3. Actual: ' + (+("0x3"))); } // CHECK#3 -if (Number("0X3") !== 3) { +if (Number("0X3") !== 3) { $ERROR('#3: Number("0X3") === 3. Actual: ' + (Number("0X3"))); } diff --git a/test/built-ins/Number/S9.3.1_A2.js b/test/built-ins/Number/S9.3.1_A2.js index e52c47e0e8dee930dd468803da3847e83e40bb53..697c5e72311ca88b4574c2b6c1e47341058b34df 100644 --- a/test/built-ins/Number/S9.3.1_A2.js +++ b/test/built-ins/Number/S9.3.1_A2.js @@ -13,7 +13,7 @@ description: > if (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== 0) { $ERROR('#1.1: Number("\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000") === 0. Actual: ' + (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000"))); } else { - if (1/Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== Number.POSITIVE_INFINITY) { $ERROR('#1.2: Number("\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000") === +0. Actual: -0'); } } @@ -22,7 +22,7 @@ if (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u2000\u if (Number(" ") !== 0) { $ERROR('#2.1: Number(" ") === 0. Actual: ' + (Number(" "))); } else { - if (1/Number(" ") !== Number.POSITIVE_INFINITY) { + if (1 / Number(" ") !== Number.POSITIVE_INFINITY) { $ERROR('#2.2: Number(" ") === +0. Actual: -0'); } } @@ -31,7 +31,7 @@ if (Number(" ") !== 0) { if (Number("\t") !== 0) { $ERROR('#3.1: Number("\\t") === 0. Actual: ' + (Number("\t"))); } else { - if (1/Number("\t") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\t") !== Number.POSITIVE_INFINITY) { $ERROR('#3.2: Number("\\t") === +0. Actual: -0'); } } @@ -40,7 +40,7 @@ if (Number("\t") !== 0) { if (Number("\r") !== 0) { $ERROR('#4.1: Number("\\r") === 0. Actual: ' + (Number("\r"))); } else { - if (1/Number("\r") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\r") !== Number.POSITIVE_INFINITY) { $ERROR('#4.2: Number("\\r") === +0. Actual: -0'); } } @@ -49,7 +49,7 @@ if (Number("\r") !== 0) { if (Number("\n") !== 0) { $ERROR('#5.1: Number("\\n") === 0. Actual: ' + (Number("\n"))); } else { - if (1/Number("\n") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\n") !== Number.POSITIVE_INFINITY) { $ERROR('#5.2: Number("\\n") === +0. Actual: -0'); } } @@ -58,7 +58,7 @@ if (Number("\n") !== 0) { if (Number("\f") !== 0) { $ERROR('#6.1: Number("\\f") === 0. Actual: ' + (Number("\f"))); } else { - if (1/Number("\f") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\f") !== Number.POSITIVE_INFINITY) { $ERROR('#6.2: Number("\\f") === +0. Actual: -0'); } } @@ -67,7 +67,7 @@ if (Number("\f") !== 0) { if (Number("\u0009") !== 0) { $ERROR('#7.1: Number("\\u0009") === 0. Actual: ' + (Number("\u0009"))); } else { - if (1/Number("\u0009") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u0009") !== Number.POSITIVE_INFINITY) { $ERROR('#7.2: Number("\\u0009") === +0. Actual: -0'); } } @@ -76,7 +76,7 @@ if (Number("\u0009") !== 0) { if (Number("\u000A") !== 0) { $ERROR('#8.1: Number("\\u000A") === 0. Actual: ' + (Number("\u000A"))); } else { - if (1/Number("\u000A") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u000A") !== Number.POSITIVE_INFINITY) { $ERROR('#8.2: Number("\\u000A") === +0. Actual: -0'); } } @@ -85,7 +85,7 @@ if (Number("\u000A") !== 0) { if (Number("\u000B") !== 0) { $ERROR('#9.1: Number("\\u000B") === 0. Actual: ' + (Number("\u000B"))); } else { - if (1/Number("\u000B") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u000B") !== Number.POSITIVE_INFINITY) { $ERROR('#9.1.2: Number("\\u000B") === +0. Actual: -0'); } } @@ -94,7 +94,7 @@ if (Number("\u000B") !== 0) { if (Number("\u000C") !== 0) { $ERROR('#10.1: Number("\\u000C") === 0. Actual: ' + (Number("\u000C"))); } else { - if (1/Number("\u000C") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u000C") !== Number.POSITIVE_INFINITY) { $ERROR('#10.2: Number("\\u000C") === +0. Actual: -0'); } } @@ -103,7 +103,7 @@ if (Number("\u000C") !== 0) { if (Number("\u000D") !== 0) { $ERROR('#11.1: Number("\\u000D") === 0. Actual: ' + (Number("\u000D"))); } else { - if (1/Number("\u000D") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u000D") !== Number.POSITIVE_INFINITY) { $ERROR('#11.2: Number("\\u000D") === +0. Actual: -0'); } } @@ -112,7 +112,7 @@ if (Number("\u000D") !== 0) { if (Number("\u00A0") !== 0) { $ERROR('#12.1: Number("\\u00A0") === 0. Actual: ' + (Number("\u00A0"))); } else { - if (1/Number("\u00A0") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u00A0") !== Number.POSITIVE_INFINITY) { $ERROR('#12.2: Number("\\u00A0") === +0. Actual: -0'); } } @@ -121,7 +121,7 @@ if (Number("\u00A0") !== 0) { if (Number("\u0020") !== 0) { $ERROR('#13.1: Number("\\u0020") === 0. Actual: ' + (Number("\u0020"))); } else { - if (1/Number("\u0020") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u0020") !== Number.POSITIVE_INFINITY) { $ERROR('#13.2: Number("\\u0020") === +0. Actual: -0'); } } @@ -130,7 +130,7 @@ if (Number("\u0020") !== 0) { if (Number("\u2028") !== 0) { $ERROR('#14.1: Number("\\u2028") === 0. Actual: ' + (Number("\u2028"))); } else { - if (1/Number("\u2028") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2028") !== Number.POSITIVE_INFINITY) { $ERROR('#14.2: Number("\\u2028") === +0. Actual: -0'); } } @@ -139,7 +139,7 @@ if (Number("\u2028") !== 0) { if (Number("\u2029") !== 0) { $ERROR('#15.1: Number("\\u2029") === 0. Actual: ' + (Number("\u2029"))); } else { - if (1/Number("\u2029") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2029") !== Number.POSITIVE_INFINITY) { $ERROR('#15.2: Number("\\u2029") === +0. Actual: -0'); } } @@ -148,7 +148,7 @@ if (Number("\u2029") !== 0) { if (Number("\u1680") !== 0) { $ERROR('#16.1: Number("\\u1680") === 0. Actual: ' + (Number("\u1680"))); } else { - if (1/Number("\u1680") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u1680") !== Number.POSITIVE_INFINITY) { $ERROR('#16.2: Number("\\u1680") === +0. Actual: -0'); } } @@ -157,7 +157,7 @@ if (Number("\u1680") !== 0) { if (Number("\u2000") !== 0) { $ERROR('#17.1: Number("\\u2000") === 0. Actual: ' + (Number("\u2000"))); } else { - if (1/Number("\u2000") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2000") !== Number.POSITIVE_INFINITY) { $ERROR('#17.2: Number("\\u2000") === +0. Actual: -0'); } } @@ -166,7 +166,7 @@ if (Number("\u2000") !== 0) { if (Number("\u2001") !== 0) { $ERROR('#18.1: Number("\\u2001") === 0. Actual: ' + (Number("\u2001"))); } else { - if (1/Number("\u2001") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2001") !== Number.POSITIVE_INFINITY) { $ERROR('#18.2: Number("\\u2001") === +0. Actual: -0'); } } @@ -175,7 +175,7 @@ if (Number("\u2001") !== 0) { if (Number("\u2002") !== 0) { $ERROR('#19.1: Number("\\u2002") === 0. Actual: ' + (Number("\u2002"))); } else { - if (1/Number("\u2002") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2002") !== Number.POSITIVE_INFINITY) { $ERROR('#19.2: Number("\\u2002") === +0. Actual: -0'); } } @@ -184,7 +184,7 @@ if (Number("\u2002") !== 0) { if (Number("\u2003") !== 0) { $ERROR('#20.1: Number("\\u2003") === 0. Actual: ' + (Number("\u2003"))); } else { - if (1/Number("\u2003") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2003") !== Number.POSITIVE_INFINITY) { $ERROR('#20.2: Number("\\u2003") === +0. Actual: -0'); } } @@ -193,7 +193,7 @@ if (Number("\u2003") !== 0) { if (Number("\u2004") !== 0) { $ERROR('#21.1: Number("\\u2004") === 0. Actual: ' + (Number("\u2004"))); } else { - if (1/Number("\u2004") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2004") !== Number.POSITIVE_INFINITY) { $ERROR('#21.2: Number("\\u2004") === +0. Actual: -0'); } } @@ -202,7 +202,7 @@ if (Number("\u2004") !== 0) { if (Number("\u2005") !== 0) { $ERROR('#22.1: Number("\\u2005") === 0. Actual: ' + (Number("\u2005"))); } else { - if (1/Number("\u2005") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2005") !== Number.POSITIVE_INFINITY) { $ERROR('#22.2: Number("\\u2005") === +0. Actual: -0'); } } @@ -211,7 +211,7 @@ if (Number("\u2005") !== 0) { if (Number("\u2006") !== 0) { $ERROR('#23.1: Number("\\u2006") === 0. Actual: ' + (Number("\u2006"))); } else { - if (1/Number("\u2006") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2006") !== Number.POSITIVE_INFINITY) { $ERROR('#23.2: Number("\\u2006") === +0. Actual: -0'); } } @@ -220,7 +220,7 @@ if (Number("\u2006") !== 0) { if (Number("\u2007") !== 0) { $ERROR('#24.1: Number("\\u2007") === 0. Actual: ' + (Number("\u2007"))); } else { - if (1/Number("\u2007") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2007") !== Number.POSITIVE_INFINITY) { $ERROR('#24.2: Number("\\u2007") === +0. Actual: -0'); } } @@ -229,7 +229,7 @@ if (Number("\u2007") !== 0) { if (Number("\u2008") !== 0) { $ERROR('#25.1: Number("\\u2008") === 0. Actual: ' + (Number("\u2008"))); } else { - if (1/Number("\u2008") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2008") !== Number.POSITIVE_INFINITY) { $ERROR('#25.2: Number("\\u2008") === +0. Actual: -0'); } } @@ -238,7 +238,7 @@ if (Number("\u2008") !== 0) { if (Number("\u2009") !== 0) { $ERROR('#26.1: Number("\\u2009") === 0. Actual: ' + (Number("\u2009"))); } else { - if (1/Number("\u2009") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u2009") !== Number.POSITIVE_INFINITY) { $ERROR('#26.2: Number("\\u2009") === +0. Actual: -0'); } } @@ -247,7 +247,7 @@ if (Number("\u2009") !== 0) { if (Number("\u200A") !== 0) { $ERROR('#27.1: Number("\\u200A") === 0. Actual: ' + (Number("\u200A"))); } else { - if (1/Number("\u200A") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u200A") !== Number.POSITIVE_INFINITY) { $ERROR('#27.2: Number("\\u200A") === +0. Actual: -0'); } } @@ -256,7 +256,7 @@ if (Number("\u200A") !== 0) { if (Number("\u202F") !== 0) { $ERROR('#28.1: Number("\\u202F") === 0. Actual: ' + (Number("\u202F"))); } else { - if (1/Number("\u202F") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u202F") !== Number.POSITIVE_INFINITY) { $ERROR('#28.2: Number("\\u202F") === +0. Actual: -0'); } } @@ -265,7 +265,7 @@ if (Number("\u202F") !== 0) { if (Number("\u205F") !== 0) { $ERROR('#29.1: Number("\\u205F") === 0. Actual: ' + (Number("\u205F"))); } else { - if (1/Number("\u205F") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u205F") !== Number.POSITIVE_INFINITY) { $ERROR('#29.2: Number("\\u205F") === +0. Actual: -0'); } } @@ -274,7 +274,7 @@ if (Number("\u205F") !== 0) { if (Number("\u3000") !== 0) { $ERROR('#30.1: Number("\\u3000") === 0. Actual: ' + (Number("\u3000"))); } else { - if (1/Number("\u3000") !== Number.POSITIVE_INFINITY) { + if (1 / Number("\u3000") !== Number.POSITIVE_INFINITY) { $ERROR('#30.2: Number("\\u3000") === +0. Actual: -0'); } } diff --git a/test/built-ins/Number/S9.3.1_A20.js b/test/built-ins/Number/S9.3.1_A20.js index 76c6c6f8f341bd7f17fca075ecbdaab6952e384e..c6a4614bf3ad04f0602fabd4f6104a68a2b7cd9d 100644 --- a/test/built-ins/Number/S9.3.1_A20.js +++ b/test/built-ins/Number/S9.3.1_A20.js @@ -8,16 +8,16 @@ description: Compare Number('0x4') and Number('0X4') with 4 ---*/ // CHECK#1 -if (Number("4") !== 4) { +if (Number("4") !== 4) { $ERROR('#1: Number("4") === 4. Actual: ' + (Number("4"))); } // CHECK#2 -if (Number("0x4") !== 4) { +if (Number("0x4") !== 4) { $ERROR('#2: Number("0x4") === 4. Actual: ' + (Number("0x4"))); } // CHECK#3 -if (+("0X4") !== 4) { +if (+("0X4") !== 4) { $ERROR('#3: +("0X4") === 4. Actual: ' + (+("0X4"))); } diff --git a/test/built-ins/Number/S9.3.1_A21.js b/test/built-ins/Number/S9.3.1_A21.js index 1fbf9ab104d6fe8370b969955ab5988ce61b84ce..32f800a3644e6de096e673ad71b9d42d499e1d3e 100644 --- a/test/built-ins/Number/S9.3.1_A21.js +++ b/test/built-ins/Number/S9.3.1_A21.js @@ -8,16 +8,16 @@ description: Compare Number('0x5') and Number('0X5') with 5 ---*/ // CHECK#1 -if (+("5") !== 5) { +if (+("5") !== 5) { $ERROR('#1: +("5") === 5. Actual: ' + (+("5"))); } // CHECK#2 -if (Number("0x5") !== 5) { +if (Number("0x5") !== 5) { $ERROR('#2: Number("0x5") === 5. Actual: ' + (Number("0x5"))); } // CHECK#3 -if (Number("0X5") !== 5) { +if (Number("0X5") !== 5) { $ERROR('#3: Number("0X5") === 5. Actual: ' + (Number("0X5"))); } diff --git a/test/built-ins/Number/S9.3.1_A22.js b/test/built-ins/Number/S9.3.1_A22.js index d2f8a03ddeda9869660ccbc68c4aa353dde8ab6a..8ca71ebe3d8e4a6cba2233c920d12bf02ad2c872 100644 --- a/test/built-ins/Number/S9.3.1_A22.js +++ b/test/built-ins/Number/S9.3.1_A22.js @@ -8,16 +8,16 @@ description: Compare Number('0x6') and Number('0X6') with 6 ---*/ // CHECK#1 -if (Number("6") !== 6) { +if (Number("6") !== 6) { $ERROR('#1: Number("6") === 6. Actual: ' + (Number("6"))); } // CHECK#2 -if (+("0x6") !== 6) { +if (+("0x6") !== 6) { $ERROR('#2: +("0x6") === 6. Actual: ' + (+("0x6"))); } // CHECK#3 -if (Number("0X6") !== 6) { +if (Number("0X6") !== 6) { $ERROR('#3: Number("0X6") === 6. Actual: ' + (Number("0X6"))); } diff --git a/test/built-ins/Number/S9.3.1_A23.js b/test/built-ins/Number/S9.3.1_A23.js index 18cf4300dab3942f44c02a09858840b681580521..c0d57edbc0529aa4a091d9725b38d9e2b623ae00 100644 --- a/test/built-ins/Number/S9.3.1_A23.js +++ b/test/built-ins/Number/S9.3.1_A23.js @@ -8,16 +8,16 @@ description: Compare Number('0x7') and Number('0X7') with 7 ---*/ // CHECK#1 -if (Number("7") !== 7) { +if (Number("7") !== 7) { $ERROR('#1: Number("7") === 7. Actual: ' + (Number("7"))); } // CHECK#2 -if (Number("0x7") !== 7) { +if (Number("0x7") !== 7) { $ERROR('#2: Number("0x7") === 7. Actual: ' + (Number("0x7"))); } // CHECK#3 -if (+("0X7") !== 7) { +if (+("0X7") !== 7) { $ERROR('#3: +("0X7") === 7. Actual: ' + (+("0X7"))); } diff --git a/test/built-ins/Number/S9.3.1_A24.js b/test/built-ins/Number/S9.3.1_A24.js index 7f439f7296308d88da0ee991c7d94dfcbdacc9c9..c1970da5a5f0150922e10acad55644cfe8eeab90 100644 --- a/test/built-ins/Number/S9.3.1_A24.js +++ b/test/built-ins/Number/S9.3.1_A24.js @@ -8,16 +8,16 @@ description: Compare Number('0x8') and Number('0X8') with 8 ---*/ // CHECK#1 -if (+("8") !== 8) { +if (+("8") !== 8) { $ERROR('#1: +("8") === 8. Actual: ' + (+("8"))); } // CHECK#2 -if (Number("0x8") !== 8) { +if (Number("0x8") !== 8) { $ERROR('#2: Number("0x8") === 8. Actual: ' + (Number("0x8"))); } // CHECK#3 -if (Number("0X8") !== 8) { +if (Number("0X8") !== 8) { $ERROR('#3: Number("0X8") === 8. Actual: ' + (Number("0X8"))); } diff --git a/test/built-ins/Number/S9.3.1_A25.js b/test/built-ins/Number/S9.3.1_A25.js index 0a96493939a3c2df3e6fe96bf36ff544b0abadb6..671da26d20a6d02a4afa3fba485b5163f582c4dc 100644 --- a/test/built-ins/Number/S9.3.1_A25.js +++ b/test/built-ins/Number/S9.3.1_A25.js @@ -8,16 +8,16 @@ description: Compare Number('0x9') and Number('0X9') with 9 ---*/ // CHECK#1 -if (Number("9") !== 9) { +if (Number("9") !== 9) { $ERROR('#1: Number("9") === 9. Actual: ' + (Number("9"))); } // CHECK#2 -if (+("0x9") !== 9) { +if (+("0x9") !== 9) { $ERROR('#2: +("0x9") === 9. Actual: ' + (+("0x9"))); } // CHECK#3 -if (Number("0X9") !== 9) { +if (Number("0X9") !== 9) { $ERROR('#3: Number("0X9") === 9. Actual: ' + (Number("0X9"))); } diff --git a/test/built-ins/Number/S9.3.1_A26.js b/test/built-ins/Number/S9.3.1_A26.js index 526af63de9d210f8d7e7f14bdfe89897a9bd960c..a392efa30ea54a4755d6f2d269a7fcdcf6b3e11a 100644 --- a/test/built-ins/Number/S9.3.1_A26.js +++ b/test/built-ins/Number/S9.3.1_A26.js @@ -10,21 +10,21 @@ description: > ---*/ // CHECK#1 -if (Number("0xa") !== 10) { +if (Number("0xa") !== 10) { $ERROR('#1: Number("0xa") === 10. Actual: ' + (Number("0xa"))); } // CHECK#2 -if (Number("0xA") !== 10) { +if (Number("0xA") !== 10) { $ERROR('#2: Number("0xA") === 10. Actual: ' + (Number("0xA"))); } // CHECK#3 -if (Number("0Xa") !== 10) { +if (Number("0Xa") !== 10) { $ERROR('#3: Number("0Xa") === 10. Actual: ' + (Number("0Xa"))); } // CHECK#4 -if (+("0XA") !== 10) { +if (+("0XA") !== 10) { $ERROR('#4: +("0XA") === 10. Actual: ' + (+("0XA"))); } diff --git a/test/built-ins/Number/S9.3.1_A27.js b/test/built-ins/Number/S9.3.1_A27.js index 95a1c48030a532d74b8701017bb72b5a489d562e..4a2eba667400185b818d78617e638b5f653b54d0 100644 --- a/test/built-ins/Number/S9.3.1_A27.js +++ b/test/built-ins/Number/S9.3.1_A27.js @@ -10,21 +10,21 @@ description: > ---*/ // CHECK#1 -if (Number("0xb") !== 11) { +if (Number("0xb") !== 11) { $ERROR('#1: Number("0xb") === 11. Actual: ' + (Number("0xb"))); } // CHECK#2 -if (Number("0xB") !== 11) { +if (Number("0xB") !== 11) { $ERROR('#2: Number("0xB") === 11. Actual: ' + (Number("0xB"))); } // CHECK#3 -if (+("0Xb") !== 11) { +if (+("0Xb") !== 11) { $ERROR('#3: +("0Xb") === 11. Actual: ' + (+("0Xb"))); } // CHECK#4 -if (Number("0XB") !== 11) { +if (Number("0XB") !== 11) { $ERROR('#4: Number("0XB") === 11. Actual: ' + (Number("0XB"))); } diff --git a/test/built-ins/Number/S9.3.1_A28.js b/test/built-ins/Number/S9.3.1_A28.js index d7fe6d8cb97515e578e24c7a36d9be19ebb798e7..83c7986594571ed074210fe8cb68f3dae3a41861 100644 --- a/test/built-ins/Number/S9.3.1_A28.js +++ b/test/built-ins/Number/S9.3.1_A28.js @@ -10,21 +10,21 @@ description: > ---*/ // CHECK#1 -if (Number("0xc") !== 12) { +if (Number("0xc") !== 12) { $ERROR('#1: Number("0xc") === 12. Actual: ' + (Number("0xc"))); } // CHECK#2 -if (+("0xC") !== 12) { +if (+("0xC") !== 12) { $ERROR('#2: +("0xC") === 12. Actual: ' + (+("0xC"))); } // CHECK#3 -if (Number("0Xc") !== 12) { +if (Number("0Xc") !== 12) { $ERROR('#3: Number("0Xc") === 12. Actual: ' + (Number("0Xc"))); } // CHECK#4 -if (Number("0XC") !== 12) { +if (Number("0XC") !== 12) { $ERROR('#4: Number("0XC") === 12. Actual: ' + (Number("0XC"))); } diff --git a/test/built-ins/Number/S9.3.1_A29.js b/test/built-ins/Number/S9.3.1_A29.js index f62f3a778be99417e88d0cf7bbb13bdfb0f7d311..b08f6790786849073967d4f2b25abdf2f56202be 100644 --- a/test/built-ins/Number/S9.3.1_A29.js +++ b/test/built-ins/Number/S9.3.1_A29.js @@ -10,21 +10,21 @@ description: > ---*/ // CHECK#1 -if (+("0xd") !== 13) { +if (+("0xd") !== 13) { $ERROR('#1: +("0xd") === 13. Actual: ' + (+("0xd"))); } // CHECK#2 -if (Number("0xD") !== 13) { +if (Number("0xD") !== 13) { $ERROR('#2: Number("0xD") === 13. Actual: ' + (Number("0xD"))); } // CHECK#3 -if (Number("0Xd") !== 13) { +if (Number("0Xd") !== 13) { $ERROR('#3: Number("0Xd") === 13. Actual: ' + (Number("0Xd"))); } // CHECK#4 -if (Number("0XD") !== 13) { +if (Number("0XD") !== 13) { $ERROR('#4: Number("0XD") === 13. Actual: ' + (Number("0XD"))); } diff --git a/test/built-ins/Number/S9.3.1_A30.js b/test/built-ins/Number/S9.3.1_A30.js index 261bd8b1e4a1b2a07ad9b1df1dd8863685cabd76..f2e43e227d274ca594243cf19ec7bba1c37eb38a 100644 --- a/test/built-ins/Number/S9.3.1_A30.js +++ b/test/built-ins/Number/S9.3.1_A30.js @@ -10,21 +10,21 @@ description: > ---*/ // CHECK#1 -if (Number("0xe") !== 14) { +if (Number("0xe") !== 14) { $ERROR('#1: Number("0xe") === 14. Actual: ' + (Number("0xe"))); } // CHECK#2 -if (Number("0xE") !== 14) { +if (Number("0xE") !== 14) { $ERROR('#2: Number("0xE") === 14. Actual: ' + (Number("0xE"))); } // CHECK#3 -if (Number("0Xe") !== 14) { +if (Number("0Xe") !== 14) { $ERROR('#3: Number("0Xe") === 14. Actual: ' + (Number("0Xe"))); } // CHECK#4 -if (+("0XE") !== 14) { +if (+("0XE") !== 14) { $ERROR('#4: +("0XE") === 14. Actual: ' + (+("0XE"))); } diff --git a/test/built-ins/Number/S9.3.1_A31.js b/test/built-ins/Number/S9.3.1_A31.js index 6cc699d2bd46993cbaa3e5afc5ad32470cbee0a8..4a328c4688d620bb91e430047f168e11ac1c15e5 100644 --- a/test/built-ins/Number/S9.3.1_A31.js +++ b/test/built-ins/Number/S9.3.1_A31.js @@ -10,21 +10,21 @@ description: > ---*/ // CHECK#1 -if (Number("0xf") !== 15) { +if (Number("0xf") !== 15) { $ERROR('#1: Number("0xf") === 15. Actual: ' + (Number("0xf"))); } // CHECK#2 -if (Number("0xF") !== 15) { +if (Number("0xF") !== 15) { $ERROR('#2: Number("0xF") === 15. Actual: ' + (Number("0xF"))); } // CHECK#3 -if (+("0Xf") !== 15) { +if (+("0Xf") !== 15) { $ERROR('#3: +("0Xf") === 15. Actual: ' + (+("0Xf"))); } // CHECK#4 -if (Number("0XF") !== 15) { +if (Number("0XF") !== 15) { $ERROR('#4: Number("0XF") === 15. Actual: ' + (Number("0XF"))); } diff --git a/test/built-ins/Number/S9.3.1_A32.js b/test/built-ins/Number/S9.3.1_A32.js index 31f860763cc4d2b1907391f705ffcef6c9514f14..143ae00314d2e7195677a3125354ed0189f6bb9b 100644 --- a/test/built-ins/Number/S9.3.1_A32.js +++ b/test/built-ins/Number/S9.3.1_A32.js @@ -12,12 +12,12 @@ description: Use various long numbers, for example, 1234567890.1234567890 ---*/ // CHECK#1 -if (Number("1234567890.1234567890") !== 1234567890.1234567890) { +if (Number("1234567890.1234567890") !== 1234567890.1234567890) { $ERROR('#1: Number("1234567890.1234567890") === 1234567890.1234567890. Actual: ' + (Number("1234567890.1234567890"))); } // CHECK#2 -if (Number("1234567890.1234567890") !== 1234567890.1234567000) { +if (Number("1234567890.1234567890") !== 1234567890.1234567000) { $ERROR('#2: Number("1234567890.1234567890") === 1234567890.1234567000. Actual: ' + (Number("1234567890.1234567890"))); } @@ -27,11 +27,11 @@ if (+("1234567890.1234567890") === 1234567890.123456) { } // CHECK#4 -if (Number("0.12345678901234567890") !== 0.123456789012345678) { +if (Number("0.12345678901234567890") !== 0.123456789012345678) { $ERROR('#4: Number("0.12345678901234567890") === 0.123456789012345678. Actual: ' + (Number("0.12345678901234567890"))); } // CHECK#4 -if (Number("00.12345678901234567890") !== 0.123456789012345678) { +if (Number("00.12345678901234567890") !== 0.123456789012345678) { $ERROR('#4: Number("00.12345678901234567890") === 0.123456789012345678. Actual: ' + (Number("00.12345678901234567890"))); } diff --git a/test/built-ins/Number/S9.3.1_A3_T2.js b/test/built-ins/Number/S9.3.1_A3_T2.js index 2b1a70c10b1ba89f281e1e3232466a0f8e79d837..cb69897ccae43a48489362ca57fa410c4ac36021 100644 --- a/test/built-ins/Number/S9.3.1_A3_T2.js +++ b/test/built-ins/Number/S9.3.1_A3_T2.js @@ -10,8 +10,8 @@ es5id: 9.3.1_A3_T2 description: dynamic string ---*/ -function dynaString(s1, s2){ - return String(s1)+String(s2); +function dynaString(s1, s2) { + return String(s1) + String(s2); } // CHECK#1 diff --git a/test/built-ins/Number/S9.3.1_A3_T2_U180E.js b/test/built-ins/Number/S9.3.1_A3_T2_U180E.js index 0fd742865d1f2573f1a35715d9ae64a9a6833b81..b9ed8acd770b390ef81d670698af14a7bef8492e 100644 --- a/test/built-ins/Number/S9.3.1_A3_T2_U180E.js +++ b/test/built-ins/Number/S9.3.1_A3_T2_U180E.js @@ -31,7 +31,7 @@ info: | features: [u180e] ---*/ -function dynaString(s1, s2){ +function dynaString(s1, s2) { return String(s1) + String(s2); } diff --git a/test/built-ins/Number/S9.3.1_A4_T1.js b/test/built-ins/Number/S9.3.1_A4_T1.js index 5e1307fe71eae21c2536f639a6eb658e74d8894f..13708e3bf75bc5f3cd50b3213286d43767ea1007 100644 --- a/test/built-ins/Number/S9.3.1_A4_T1.js +++ b/test/built-ins/Number/S9.3.1_A4_T1.js @@ -14,7 +14,7 @@ if (Number("+0") !== Number("0")) { $ERROR('#1.1: Number("+0") === Number("0")'); } else { // CHECK#2 - if (1/Number("+0") !== 1/Number("0")) { + if (1 / Number("+0") !== 1 / Number("0")) { $ERROR('#2.2: 1/Number("+0") === 1/Number("0")'); } } diff --git a/test/built-ins/Number/S9.3.1_A4_T2.js b/test/built-ins/Number/S9.3.1_A4_T2.js index 5046e90f3416b7c7bbc2e9be3c2d38cb6613ef4b..83d5b961ec08023e2968711ad5a6cdae9e01b753 100644 --- a/test/built-ins/Number/S9.3.1_A4_T2.js +++ b/test/built-ins/Number/S9.3.1_A4_T2.js @@ -9,8 +9,8 @@ es5id: 9.3.1_A4_T2 description: Compare Number('+' + 'any_number') with Number('any_number') ---*/ -function dynaString(s1, s2){ - return String(s1)+String(s2); +function dynaString(s1, s2) { + return String(s1) + String(s2); } // CHECK#1 @@ -18,7 +18,7 @@ if (Number(dynaString("+", "0")) !== Number("0")) { $ERROR('#1: Number("+"+"0") === Number("0")'); } else { // CHECK#2 - if (1/Number(dynaString("+", "0")) !== 1/Number("0")) { + if (1 / Number(dynaString("+", "0")) !== 1 / Number("0")) { $ERROR('#2: 1/Number("+"+"0") === 1/Number("0")'); } } diff --git a/test/built-ins/Number/S9.3.1_A5_T1.js b/test/built-ins/Number/S9.3.1_A5_T1.js index a1223636cd627248d23303d02923255452fe271f..2b84aa762f1a576a779774c7d1e504efb5891e79 100644 --- a/test/built-ins/Number/S9.3.1_A5_T1.js +++ b/test/built-ins/Number/S9.3.1_A5_T1.js @@ -14,7 +14,7 @@ if (Number("-0") !== -Number("0")) { $ERROR('#1: Number("-0") === -Number("0")'); } else { // CHECK#2 - if (1/Number("-0") !== -1/Number("0")) { + if (1 / Number("-0") !== -1 / Number("0")) { $ERROR('#2: 1/Number("-0") === -1/Number("0")'); } } diff --git a/test/built-ins/Number/S9.3.1_A5_T3.js b/test/built-ins/Number/S9.3.1_A5_T3.js index 2b2e68f8d9dd6f34e2aa670ce1ccd857ff71d254..d73f0d793123f5270be530ac3fc38701b45a7fd0 100644 --- a/test/built-ins/Number/S9.3.1_A5_T3.js +++ b/test/built-ins/Number/S9.3.1_A5_T3.js @@ -9,8 +9,8 @@ es5id: 9.3.1_A5_T3 description: Compare Number('-' + 'any_number') with -Number('any_number') ---*/ -function dynaString(s1, s2){ - return String(s1)+String(s2); +function dynaString(s1, s2) { + return String(s1) + String(s2); } // CHECK#1 @@ -18,7 +18,7 @@ if (Number(dynaString("-", "0")) !== -Number("0")) { $ERROR('#1: Number("-"+"0") === -Number("0")'); } else { // CHECK#2 - if (1/Number(dynaString("-", "0")) !== -1/Number("0")) { + if (1 / Number(dynaString("-", "0")) !== -1 / Number("0")) { $ERROR('#2: 1/Number("-"+"0") === -1/Number("0")'); } } diff --git a/test/built-ins/Number/S9.3.1_A6_T2.js b/test/built-ins/Number/S9.3.1_A6_T2.js index 4edb53988eef4f34a73f1dd080c9208bf50ef62b..940ca1fc088a5c53997b581272697552b7fcc91b 100644 --- a/test/built-ins/Number/S9.3.1_A6_T2.js +++ b/test/built-ins/Number/S9.3.1_A6_T2.js @@ -11,8 +11,8 @@ description: > 10e10000, 10E10000 and Number("10e10000") ---*/ -function dynaString(s1, s2){ - return String(s1)+String(s2); +function dynaString(s1, s2) { + return String(s1) + String(s2); } diff --git a/test/built-ins/Number/S9.3.1_A7.js b/test/built-ins/Number/S9.3.1_A7.js index 04a1250106b5505617436c3e23f920784f686033..4e763ee4873d293fe476e680c390b6d4d3a6a4b3 100644 --- a/test/built-ins/Number/S9.3.1_A7.js +++ b/test/built-ins/Number/S9.3.1_A7.js @@ -11,6 +11,6 @@ description: Compare Number('1234.5678') with Number('1234')+(+('5678')*1e-4) ---*/ // CHECK#1 -if (Number("1234.5678") !== Number("1234")+(+("5678")*1e-4)) { +if (Number("1234.5678") !== Number("1234") + (+("5678") * 1e-4)) { $ERROR('#1: Number("1234.5678") === Number("1234")+(+("5678")*1e-4)'); } diff --git a/test/built-ins/Number/S9.3.1_A8.js b/test/built-ins/Number/S9.3.1_A8.js index ca4e35d084df20c50f62b61976baba3dceb6f843..8726eb9e74a0420ef203f0c79f528630edf81abc 100644 --- a/test/built-ins/Number/S9.3.1_A8.js +++ b/test/built-ins/Number/S9.3.1_A8.js @@ -12,11 +12,11 @@ description: > ---*/ // CHECK#1 -if (Number("1234e5") !== Number("1234")*1e5) { +if (Number("1234e5") !== Number("1234") * 1e5) { $ERROR('#1: Number("1234e5") === Number("1234")*1e5'); } // CHECK#2 -if (Number("1234.e5") !== +("1234")*1e5) { +if (Number("1234.e5") !== +("1234") * 1e5) { $ERROR('#2: Number("1234.e5") === +("1234")*1e5'); } diff --git a/test/built-ins/Number/S9.3.1_A9.js b/test/built-ins/Number/S9.3.1_A9.js index 35b9c8fabbab02eff7a2e69db6b1303423d9cb6f..a12a7d66f80b25a8b9d260182921aa2886ca04c5 100644 --- a/test/built-ins/Number/S9.3.1_A9.js +++ b/test/built-ins/Number/S9.3.1_A9.js @@ -15,11 +15,11 @@ description: > ---*/ // CHECK#1 -if (Number("1234.5678e9") !== (Number("1234")+(Number("5678")*1e-4))*1e9) { +if (Number("1234.5678e9") !== (Number("1234") + (Number("5678") * 1e-4)) * 1e9) { $ERROR('#1: Number("1234.5678e9") === (Number("1234")+(Number("5678")*1e-4))*1e9'); } // CHECK#2 -if (+("1234.5678e-9") !== (Number("1234")+(Number("5678")*1e-4))*1e-9) { +if (+("1234.5678e-9") !== (Number("1234") + (Number("5678") * 1e-4)) * 1e-9) { $ERROR('#2: +("1234.5678e-9") === (Number("1234")+(Number("5678")*1e-4))*1e-9'); } diff --git a/test/built-ins/Number/S9.3_A2_T1.js b/test/built-ins/Number/S9.3_A2_T1.js index 6094444ecc91f95f576673721e13611ac5772548..88110ad6fdd5235f0868866ba321c6603515c7c5 100644 --- a/test/built-ins/Number/S9.3_A2_T1.js +++ b/test/built-ins/Number/S9.3_A2_T1.js @@ -9,9 +9,9 @@ description: null convert to Number by explicit transformation // CHECK #1 if (Number(null) !== 0) { - $ERROR('#1.1: Number(null) === 0. Actual: ' + (Number(null))); + $ERROR('#1.1: Number(null) === 0. Actual: ' + (Number(null))); } else { - if (1/Number(null) !== Number.POSITIVE_INFINITY) { + if (1 / Number(null) !== Number.POSITIVE_INFINITY) { $ERROR('#1.2: Number(null) === +0. Actual: -0'); - } + } } diff --git a/test/built-ins/Number/S9.3_A3_T1.js b/test/built-ins/Number/S9.3_A3_T1.js index 36cc4ccd0f2c67c0e8a2e4f57dff87afd007d8f7..1f3cbd96cef0c47d1cae97d6e5c23a834f6e5bba 100644 --- a/test/built-ins/Number/S9.3_A3_T1.js +++ b/test/built-ins/Number/S9.3_A3_T1.js @@ -13,12 +13,12 @@ description: False and true convert to Number by explicit transformation if (Number(false) !== +0) { $ERROR('#1.1: Number(false) === 0. Actual: ' + (Number(false))); } else { - if (1/Number(false) !== Number.POSITIVE_INFINITY) { + if (1 / Number(false) !== Number.POSITIVE_INFINITY) { $ERROR('#1.2: Number(false) === +0. Actual: -0'); } } // CHECK#2 if (Number(true) !== 1) { - $ERROR('#2: Number(true) === 1. Actual: ' + (Number(true))); + $ERROR('#2: Number(true) === 1. Actual: ' + (Number(true))); } diff --git a/test/built-ins/Number/S9.3_A4.1_T1.js b/test/built-ins/Number/S9.3_A4.1_T1.js index 42321e8d82c15d4529c3fc6509618cf8acfab2f8..798b22369d21b1059fb849f3eca13045675ca5b8 100644 --- a/test/built-ins/Number/S9.3_A4.1_T1.js +++ b/test/built-ins/Number/S9.3_A4.1_T1.js @@ -17,7 +17,7 @@ if (Number(13) !== 13) { } // CHECK#2 -if (Number(-13) !== -13) { +if (Number(-13) !== -13) { $ERROR('#2: Number(-13) === -13. Actual: ' + (Number(-13))); } diff --git a/test/built-ins/Number/S9.3_A4.2_T1.js b/test/built-ins/Number/S9.3_A4.2_T1.js index 23af423dc51b025c3a29cbb99e573d405c5284bf..bdf4e43b8e8cf869d51dcd87924c938442f2158c 100644 --- a/test/built-ins/Number/S9.3_A4.2_T1.js +++ b/test/built-ins/Number/S9.3_A4.2_T1.js @@ -19,7 +19,7 @@ assert.sameValue(Number(NaN), NaN, "NaN"); if (Number(+0) !== +0) { $ERROR('#2.1: Number(+0) === 0. Actual: ' + (Number(+0))); } else { - if (1/Number(+0) !== Number.POSITIVE_INFINITY) { + if (1 / Number(+0) !== Number.POSITIVE_INFINITY) { $ERROR('#2.2: Number(+0) === +0. Actual: -0'); } } @@ -28,7 +28,7 @@ if (Number(+0) !== +0) { if (Number(-0) !== -0) { $ERROR('#3.1: Number(-0) === 0. Actual: ' + (Number(-0))); } else { - if (1/Number(-0) !== Number.NEGATIVE_INFINITY) { + if (1 / Number(-0) !== Number.NEGATIVE_INFINITY) { $ERROR('#3.2: Number(-0) === -0. Actual: +0'); } } diff --git a/test/built-ins/Number/S9.3_A5_T1.js b/test/built-ins/Number/S9.3_A5_T1.js index 5536e9739d43d63eb374d530b450aeadc9acd304..e00d195eaa800fac6a61cedab031b0a8274fbe9d 100644 --- a/test/built-ins/Number/S9.3_A5_T1.js +++ b/test/built-ins/Number/S9.3_A5_T1.js @@ -29,7 +29,7 @@ assert.sameValue(Number(new Number(NaN)), NaN, "Number(new Number(NaN)"); if (Number(new Number(null)) !== 0) { $ERROR('#4.1: Number(new Number(null)) === 0. Actual: ' + (Number(new Number(null)))); } else { - if (1/Number(new Number(null)) !== Number.POSITIVE_INFINITY) { + if (1 / Number(new Number(null)) !== Number.POSITIVE_INFINITY) { $ERROR('#4.2: Number(new Number(null)) === +0. Actual: -0'); } } @@ -46,7 +46,7 @@ if (Number(new Number(true)) !== 1) { if (Number(new Number(false)) !== +0) { $ERROR('#7.1: Number(new Number(false)) === 0. Actual: ' + (Number(new Number(false)))); } else { - if (1/Number(new Number(false)) !== Number.POSITIVE_INFINITY) { + if (1 / Number(new Number(false)) !== Number.POSITIVE_INFINITY) { $ERROR('#7.2: Number(new Number(false)) === +0. Actual: -0'); } } @@ -60,56 +60,78 @@ if (Number(new Boolean(true)) !== 1) { if (Number(new Boolean(false)) !== +0) { $ERROR('#9.1: Number(new Boolean(false)) === 0. Actual: ' + (Number(new Boolean(false)))); } else { - if (1/Number(new Boolean(false)) !== Number.POSITIVE_INFINITY) { + if (1 / Number(new Boolean(false)) !== Number.POSITIVE_INFINITY) { $ERROR('#9.2: Number(new Boolean(false)) === +0. Actual: -0'); } } // CHECK#10 -assert.sameValue(Number(new Array(2,4,8,16,32)), NaN, "Number(new Array(2,4,8,16,32))"); +assert.sameValue(Number(new Array(2, 4, 8, 16, 32)), NaN, "Number(new Array(2,4,8,16,32))"); // CHECK#11 var myobj1 = { - ToNumber : function(){return 12345;}, - toString : function(){return "67890";}, - valueOf : function(){return "[object MyObj]";} - }; + ToNumber: function() { + return 12345; + }, + toString: function() { + return "67890"; + }, + valueOf: function() { + return "[object MyObj]"; + } +}; assert.sameValue(Number(myobj1), NaN, "Number(myobj1)"); // CHECK#12 var myobj2 = { - ToNumber : function(){return 12345;}, - toString : function(){return "67890";}, - valueOf : function(){return "9876543210";} - }; + ToNumber: function() { + return 12345; + }, + toString: function() { + return "67890"; + }, + valueOf: function() { + return "9876543210"; + } +}; -if (Number(myobj2) !== 9876543210){ +if (Number(myobj2) !== 9876543210) { $ERROR("#12: Number(myobj2) calls ToPrimitive with hint Number. Exptected: 9876543210. Actual: " + (Number(myobj2))); } // CHECK#13 var myobj3 = { - ToNumber : function(){return 12345;}, - toString : function(){return "[object MyObj]";} - }; + ToNumber: function() { + return 12345; + }, + toString: function() { + return "[object MyObj]"; + } +}; assert.sameValue(Number(myobj3), NaN, "Number(myobj3)"); // CHECK#14 var myobj4 = { - ToNumber : function(){return 12345;}, - toString : function(){return "67890";} - }; + ToNumber: function() { + return 12345; + }, + toString: function() { + return "67890"; + } +}; -if (Number(myobj4) !== 67890){ +if (Number(myobj4) !== 67890) { $ERROR("#14: Number(myobj4) calls ToPrimitive with hint Number. Exptected: 67890. Actual: " + (Number(myobj4))); } // CHECK#15 var myobj5 = { - ToNumber : function(){return 12345;} - }; + ToNumber: function() { + return 12345; + } +}; assert.sameValue(Number(myobj5), NaN, "Number(myobj5)"); diff --git a/test/built-ins/Number/prototype/15.7.3.1-2.js b/test/built-ins/Number/prototype/15.7.3.1-2.js index dbb49123f6998eb0a5d48be9c12768a4947cecdf..0d3bd2a221e769ef7c76931910ed96ca14669151 100644 --- a/test/built-ins/Number/prototype/15.7.3.1-2.js +++ b/test/built-ins/Number/prototype/15.7.3.1-2.js @@ -6,6 +6,6 @@ es5id: 15.7.3.1-2 description: Number.prototype, initial value is the Number prototype object ---*/ - // assume that Number.prototype has not been modified. +// assume that Number.prototype has not been modified. assert.sameValue(Object.getPrototypeOf(new Number(42)), Number.prototype, 'Object.getPrototypeOf(new Number(42))'); diff --git a/test/built-ins/Number/prototype/S15.7.3.1_A3.js b/test/built-ins/Number/prototype/S15.7.3.1_A3.js index 5f86ce5fa5f81f0bc389f8aabf3864d4e5965c5e..5abcc2012d50ebbbad7124872555757bdc0640da 100644 --- a/test/built-ins/Number/prototype/S15.7.3.1_A3.js +++ b/test/built-ins/Number/prototype/S15.7.3.1_A3.js @@ -10,6 +10,6 @@ description: Checking value of Number.prototype property //CHECK#1 if (Number.prototype != 0) { $ERROR('#2: Number.prototype == +0'); -} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){ +} else if (1 / Number.prototype != Number.POSITIVE_INFINITY) { $ERROR('#2: Number.prototype == +0'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A1.js b/test/built-ins/Number/prototype/S15.7.4_A1.js index a9c7aab468b0997c6b20b786bc726f38e96ad75c..a314e8c9c81d0bcfdaef7e3e5fa2de7f47712674 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A1.js +++ b/test/built-ins/Number/prototype/S15.7.4_A1.js @@ -17,7 +17,7 @@ if (typeof Number.prototype !== "object") { //CHECK#2 if (Number.prototype != 0) { $ERROR('#2: Number.prototype == +0'); -} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){ +} else if (1 / Number.prototype != Number.POSITIVE_INFINITY) { $ERROR('#2: Number.prototype == +0'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.1.js b/test/built-ins/Number/prototype/S15.7.4_A3.1.js index 102060a357e038484cdddf7097ebe232a6c0706c..46fc97dd6e8c3f1ed5bb1b376a074fc5c8631bb8 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.1.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.1.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if(Number.prototype.hasOwnProperty("constructor") !== true){ +if (Number.prototype.hasOwnProperty("constructor") !== true) { $ERROR('#1: The Number prototype object has the property constructor'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.2.js b/test/built-ins/Number/prototype/S15.7.4_A3.2.js index d233dc7e167564d4968dbdabbbf6cf99fe159f83..c4f97672cd41d2c093627225985b578b943d5a8e 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.2.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.2.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if(Number.prototype.hasOwnProperty("toString") !== true){ +if (Number.prototype.hasOwnProperty("toString") !== true) { $ERROR('#1: The Number prototype object has the property toString'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.3.js b/test/built-ins/Number/prototype/S15.7.4_A3.3.js index ad9b3ec4f28eb353e74fab46eac22f2f474f112b..ffae90cb49abc87b323434ca4b0d36f790f1ef3c 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.3.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.3.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if(Number.prototype.hasOwnProperty("toLocaleString") !== true){ +if (Number.prototype.hasOwnProperty("toLocaleString") !== true) { $ERROR('#1: The Number prototype object has the property toLocaleString'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.4.js b/test/built-ins/Number/prototype/S15.7.4_A3.4.js index 76bb43fca8975acbcb8f090ff1fb03750d9ef28a..11d7b1c404450664259ef863c501168a5a885062 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.4.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.4.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if(Number.prototype.hasOwnProperty("valueOf") !== true){ +if (Number.prototype.hasOwnProperty("valueOf") !== true) { $ERROR('#1: The Number prototype object has the property valueOf'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.5.js b/test/built-ins/Number/prototype/S15.7.4_A3.5.js index 7ff9bccfddc1ed333ddfd3a5ff0c0bd3ebec841c..5d54261f763841916552ebea4676884bdb9478d0 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.5.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.5.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if(Number.prototype.hasOwnProperty("toFixed") !== true){ +if (Number.prototype.hasOwnProperty("toFixed") !== true) { $ERROR('#1: The Number prototype object has the property toFixed'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.6.js b/test/built-ins/Number/prototype/S15.7.4_A3.6.js index 71efe0c73538c070386e30a9491426c81f7d7959..4860f866df3e8335aa74711b55cc7800c6abef82 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.6.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.6.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if(Number.prototype.hasOwnProperty("toExponential") !== true){ +if (Number.prototype.hasOwnProperty("toExponential") !== true) { $ERROR('#1: The Number prototype object has the property toExponential'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.7.js b/test/built-ins/Number/prototype/S15.7.4_A3.7.js index fcd674d13a5f9854047cc48c7f4638f301b62a2d..edf58debfe938f42a1c1dd0c18e5792d1455a44e 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.7.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.7.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if(Number.prototype.hasOwnProperty("toPrecision") !== true){ +if (Number.prototype.hasOwnProperty("toPrecision") !== true) { $ERROR('#1: The Number prototype object has the property toPrecision'); } diff --git a/test/built-ins/Number/prototype/toExponential/range.js b/test/built-ins/Number/prototype/toExponential/range.js index 8560ade75f8d7b5d2e694f855ea6fa1f261abb9d..f6f025f638b0e6dc6eb005ed0db5fe6850085c33 100644 --- a/test/built-ins/Number/prototype/toExponential/range.js +++ b/test/built-ins/Number/prototype/toExponential/range.js @@ -17,5 +17,3 @@ assert.throws(RangeError, () => (3).toExponential(-1)); assert.sameValue((3).toExponential(100), "3.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0"); assert.throws(RangeError, () => (3).toExponential(101)); - - diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js index 726ceadd197fdd8daf635624fb23394ae762d618..37dd400ede24159324a96866ccad50fa526c8e23 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js @@ -10,62 +10,62 @@ description: calling on Number prototype object ---*/ //CHECK#1 -if(Number.prototype.toFixed() !== "0"){ +if (Number.prototype.toFixed() !== "0") { $ERROR('#1: Number.prototype.toFixed() === "0"'); } //CHECK#2 -if(Number.prototype.toFixed(0) !== "0"){ +if (Number.prototype.toFixed(0) !== "0") { $ERROR('#2: Number.prototype.toFixed(0) === "0"'); } //CHECK#3 -if(Number.prototype.toFixed(1) !== "0.0"){ +if (Number.prototype.toFixed(1) !== "0.0") { $ERROR('#3: Number.prototype.toFixed(1) === "0.0"'); } //CHECK#4 -if(Number.prototype.toFixed(1.1) !== "0.0"){ +if (Number.prototype.toFixed(1.1) !== "0.0") { $ERROR('#4: Number.prototype.toFixed(1.1) === "0.0"'); } //CHECK#5 -if(Number.prototype.toFixed(0.9) !== "0"){ +if (Number.prototype.toFixed(0.9) !== "0") { $ERROR('#5: Number.prototype.toFixed(0.9) === "0"'); } //CHECK#6 -if(Number.prototype.toFixed("1") !== "0.0"){ +if (Number.prototype.toFixed("1") !== "0.0") { $ERROR('#6: Number.prototype.toFixed("1") === "0.0"'); } //CHECK#7 -if(Number.prototype.toFixed("1.1") !== "0.0"){ +if (Number.prototype.toFixed("1.1") !== "0.0") { $ERROR('#7: Number.prototype.toFixed("1.1") === "0.0"'); } //CHECK#8 -if(Number.prototype.toFixed("0.9") !== "0"){ +if (Number.prototype.toFixed("0.9") !== "0") { $ERROR('#8: Number.prototype.toFixed("0.9") === "0"'); } //CHECK#9 -if(Number.prototype.toFixed(Number.NaN) !== "0"){ +if (Number.prototype.toFixed(Number.NaN) !== "0") { $ERROR('#9: Number.prototype.toFixed(Number.NaN) === "0"'); } //CHECK#10 -if(Number.prototype.toFixed("some string") !== "0"){ +if (Number.prototype.toFixed("some string") !== "0") { $ERROR('#9: Number.prototype.toFixed("some string") === "0"'); } //CHECK#11 -try{ - if(Number.prototype.toFixed(-0.1) !== "0"){ +try { + if (Number.prototype.toFixed(-0.1) !== "0") { $ERROR('#10: Number.prototype.toFixed(-0.1) === "0"'); } } -catch(e){ - $ERROR('#10: Number.prototype.toFixed(-0.1) should not throw '+e); +catch (e) { + $ERROR('#10: Number.prototype.toFixed(-0.1) should not throw ' + e); } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js index 00d8c80654dcde79604ee023edbeaa21fe7424e0..7732b7ee5c18795aa48b8a3b0b03993667990a3a 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js @@ -10,61 +10,61 @@ description: calling on Number object ---*/ //CHECK#1 -if((new Number(1)).toFixed() !== "1"){ +if ((new Number(1)).toFixed() !== "1") { $ERROR('#1: (new Number(1)).prototype.toFixed() === "1"'); } //CHECK#2 -if((new Number(1)).toFixed(0) !== "1"){ +if ((new Number(1)).toFixed(0) !== "1") { $ERROR('#2: (new Number(1)).prototype.toFixed(0) === "1"'); } //CHECK#3 -if((new Number(1)).toFixed(1) !== "1.0"){ +if ((new Number(1)).toFixed(1) !== "1.0") { $ERROR('#3: (new Number(1)).prototype.toFixed(1) === "1.0"'); } //CHECK#4 -if((new Number(1)).toFixed(1.1) !== "1.0"){ +if ((new Number(1)).toFixed(1.1) !== "1.0") { $ERROR('#4: (new Number(1)).toFixed(1.1) === "1.0"'); } //CHECK#5 -if((new Number(1)).toFixed(0.9) !== "1"){ +if ((new Number(1)).toFixed(0.9) !== "1") { $ERROR('#5: (new Number(1)).toFixed(0.9) === "1"'); } //CHECK#6 -if((new Number(1)).toFixed("1") !== "1.0"){ +if ((new Number(1)).toFixed("1") !== "1.0") { $ERROR('#6: (new Number(1)).toFixed("1") === "1.0"'); } //CHECK#7 -if((new Number(1)).toFixed("1.1") !== "1.0"){ +if ((new Number(1)).toFixed("1.1") !== "1.0") { $ERROR('#7: (new Number(1)).toFixed("1.1") === "1.0"'); } //CHECK#8 -if((new Number(1)).toFixed("0.9") !== "1"){ +if ((new Number(1)).toFixed("0.9") !== "1") { $ERROR('#8: (new Number(1)).toFixed("0.9") === "1"'); } //CHECK#9 -if((new Number(1)).toFixed(Number.NaN) !== "1"){ +if ((new Number(1)).toFixed(Number.NaN) !== "1") { $ERROR('#9: (new Number(1)).toFixed(Number.NaN) === "1"'); } //CHECK#10 -if((new Number(1)).toFixed("some string") !== "1"){ +if ((new Number(1)).toFixed("some string") !== "1") { $ERROR('#9: (new Number(1)).toFixed("some string") === "1"'); } //CHECK#10 -try{ - if((new Number(1)).toFixed(-0.1) !== "1"){ +try { + if ((new Number(1)).toFixed(-0.1) !== "1") { $ERROR('#10: (new Number(1)).toFixed(-0.1) === "1"'); } } -catch(e){ - $ERROR('#10: (new Number(1)).toFixed(-0.1) should not throw '+e); +catch (e) { + $ERROR('#10: (new Number(1)).toFixed(-0.1) should not throw ' + e); } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js index ab98bf30c942f3a4056462ee91e4ee3841fd2bb1..7fc8f14853bbedacd383915d2f184c527042b024 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js @@ -8,62 +8,62 @@ description: NaN is computed by new Number("string") ---*/ //CHECK#1 -if((new Number("a")).toFixed() !== "NaN"){ +if ((new Number("a")).toFixed() !== "NaN") { $ERROR('#1: (new Number("a")).prototype.toFixed() === "NaN"'); } //CHECK#2 -if((new Number("a")).toFixed(0) !== "NaN"){ +if ((new Number("a")).toFixed(0) !== "NaN") { $ERROR('#2: (new Number("a")).prototype.toFixed(0) === "NaN"'); } //CHECK#3 -if((new Number("a")).toFixed(1) !== "NaN"){ +if ((new Number("a")).toFixed(1) !== "NaN") { $ERROR('#3: (new Number("a")).prototype.toFixed(1) === "NaN"'); } //CHECK#4 -if((new Number("a")).toFixed(1.1) !== "NaN"){ +if ((new Number("a")).toFixed(1.1) !== "NaN") { $ERROR('#4: (new Number("a")).toFixed(1.1) === "NaN"'); } //CHECK#5 -if((new Number("a")).toFixed(0.9) !== "NaN"){ +if ((new Number("a")).toFixed(0.9) !== "NaN") { $ERROR('#5: (new Number("a")).toFixed(0.9) === "NaN"'); } //CHECK#6 -if((new Number("a")).toFixed("1") !== "NaN"){ +if ((new Number("a")).toFixed("1") !== "NaN") { $ERROR('#6: (new Number("a")).toFixed("1") === "NaN"'); } //CHECK#7 -if((new Number("a")).toFixed("1.1") !== "NaN"){ +if ((new Number("a")).toFixed("1.1") !== "NaN") { $ERROR('#7: (new Number("a")).toFixed("1.1") === "NaN"'); } //CHECK#8 -if((new Number("a")).toFixed("0.9") !== "NaN"){ +if ((new Number("a")).toFixed("0.9") !== "NaN") { $ERROR('#8: (new Number("a")).toFixed("0.9") === "NaN"'); } //CHECK#9 -if((new Number("a")).toFixed(Number.NaN) !== "NaN"){ +if ((new Number("a")).toFixed(Number.NaN) !== "NaN") { $ERROR('#9: (new Number("a")).toFixed(Number.NaN) === "NaN"'); } //CHECK#10 -if((new Number("a")).toFixed("some string") !== "NaN"){ +if ((new Number("a")).toFixed("some string") !== "NaN") { $ERROR('#9: (new Number("a")).toFixed("some string") === "NaN"'); } //CHECK#10 -try{ +try { s = (new Number("a")).toFixed(Number.POSITIVE_INFINITY); $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN'); } -catch(e){ - if(!(e instanceof RangeError)){ - $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e); +catch (e) { + if (!(e instanceof RangeError)) { + $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js index 459fcd998deecaf7dbc6e634fcb80b20e4a04162..cb96395d03fd56b23621616b7f73f2d8b79cfd38 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js @@ -8,62 +8,62 @@ description: direct usage of NaN ---*/ //CHECK#1 -if(Number.NaN.toFixed() !== "NaN"){ +if (Number.NaN.toFixed() !== "NaN") { $ERROR('#1: Number.NaN.prototype.toFixed() === "NaN"'); } //CHECK#2 -if(Number.NaN.toFixed(0) !== "NaN"){ +if (Number.NaN.toFixed(0) !== "NaN") { $ERROR('#2: Number.NaN.prototype.toFixed(0) === "NaN"'); } //CHECK#3 -if(Number.NaN.toFixed(1) !== "NaN"){ +if (Number.NaN.toFixed(1) !== "NaN") { $ERROR('#3: Number.NaN.prototype.toFixed(1) === "NaN"'); } //CHECK#4 -if(Number.NaN.toFixed(1.1) !== "NaN"){ +if (Number.NaN.toFixed(1.1) !== "NaN") { $ERROR('#4: Number.NaN.toFixed(1.1) === "NaN"'); } //CHECK#5 -if(Number.NaN.toFixed(0.9) !== "NaN"){ +if (Number.NaN.toFixed(0.9) !== "NaN") { $ERROR('#5: Number.NaN.toFixed(0.9) === "NaN"'); } //CHECK#6 -if(Number.NaN.toFixed("1") !== "NaN"){ +if (Number.NaN.toFixed("1") !== "NaN") { $ERROR('#6: Number.NaN.toFixed("1") === "NaN"'); } //CHECK#7 -if(Number.NaN.toFixed("1.1") !== "NaN"){ +if (Number.NaN.toFixed("1.1") !== "NaN") { $ERROR('#7: Number.NaN.toFixed("1.1") === "NaN"'); } //CHECK#8 -if(Number.NaN.toFixed("0.9") !== "NaN"){ +if (Number.NaN.toFixed("0.9") !== "NaN") { $ERROR('#8: Number.NaN.toFixed("0.9") === "NaN"'); } //CHECK#9 -if(Number.NaN.toFixed(Number.NaN) !== "NaN"){ +if (Number.NaN.toFixed(Number.NaN) !== "NaN") { $ERROR('#9: Number.NaN.toFixed(Number.NaN) === "NaN"'); } //CHECK#10 -if(Number.NaN.toFixed("some string") !== "NaN"){ +if (Number.NaN.toFixed("some string") !== "NaN") { $ERROR('#9: Number.NaN.toFixed("some string") === "NaN"'); } //CHECK#10 -try{ +try { s = Number.NaN.toFixed(Number.POSITIVE_INFINITY); $ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN'); } -catch(e){ - if(!(e instanceof RangeError)){ - $ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e); +catch (e) { + if (!(e instanceof RangeError)) { + $ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js index e2318bff2adca7f3f78f277085c12e6aad9807fe..e577c80f0ccf87a8f40353e10e48ed1c6f0603a3 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js @@ -8,62 +8,62 @@ description: x is 10^21 ---*/ //CHECK#1 -if((new Number(1e21)).toFixed() !== String(1e21)){ +if ((new Number(1e21)).toFixed() !== String(1e21)) { $ERROR('#1: (new Number(1e21)).prototype.toFixed() === String(1e21)'); } //CHECK#2 -if((new Number(1e21)).toFixed(0) !== String(1e21)){ +if ((new Number(1e21)).toFixed(0) !== String(1e21)) { $ERROR('#2: (new Number(1e21)).prototype.toFixed(0) === String(1e21)'); } //CHECK#3 -if((new Number(1e21)).toFixed(1) !== String(1e21)){ +if ((new Number(1e21)).toFixed(1) !== String(1e21)) { $ERROR('#3: (new Number(1e21)).prototype.toFixed(1) === String(1e21)'); } //CHECK#4 -if((new Number(1e21)).toFixed(1.1) !== String(1e21)){ +if ((new Number(1e21)).toFixed(1.1) !== String(1e21)) { $ERROR('#4: (new Number(1e21)).toFixed(1.1) === String(1e21)'); } //CHECK#5 -if((new Number(1e21)).toFixed(0.9) !== String(1e21)){ +if ((new Number(1e21)).toFixed(0.9) !== String(1e21)) { $ERROR('#5: (new Number(1e21)).toFixed(0.9) === String(1e21)'); } //CHECK#6 -if((new Number(1e21)).toFixed("1") !== String(1e21)){ +if ((new Number(1e21)).toFixed("1") !== String(1e21)) { $ERROR('#6: (new Number(1e21)).toFixed("1") === String(1e21)'); } //CHECK#7 -if((new Number(1e21)).toFixed("1.1") !== String(1e21)){ +if ((new Number(1e21)).toFixed("1.1") !== String(1e21)) { $ERROR('#7: (new Number(1e21)).toFixed("1.1") === String(1e21)'); } //CHECK#8 -if((new Number(1e21)).toFixed("0.9") !== String(1e21)){ +if ((new Number(1e21)).toFixed("0.9") !== String(1e21)) { $ERROR('#8: (new Number(1e21)).toFixed("0.9") === String(1e21)'); } //CHECK#9 -if((new Number(1e21)).toFixed(Number.NaN) !== String(1e21)){ +if ((new Number(1e21)).toFixed(Number.NaN) !== String(1e21)) { $ERROR('#9: (new Number(1e21)).toFixed(Number.NaN) === String(1e21)'); } //CHECK#10 -if((new Number(1e21)).toFixed("some string") !== String(1e21)){ +if ((new Number(1e21)).toFixed("some string") !== String(1e21)) { $ERROR('#9: (new Number(1e21)).toFixed("some string") === String(1e21)'); } //CHECK#10 -try{ +try { s = (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY); $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN'); } -catch(e){ - if(!(e instanceof RangeError)){ - $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e); +catch (e) { + if (!(e instanceof RangeError)) { + $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js index 280def37672d9f5f24f3ff42df627540a0b941f5..ad7bf816cd3002b586e672f432487e38c46c1899 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js @@ -8,11 +8,11 @@ description: Checking Number prototype itself ---*/ //CHECK#1 -if(Number.prototype.toFixed.hasOwnProperty("length") !== true){ +if (Number.prototype.toFixed.hasOwnProperty("length") !== true) { $ERROR('#1: The length property of the toFixed method is 1'); } //CHECK#2 -if(Number.prototype.toFixed.length !== 1){ +if (Number.prototype.toFixed.length !== 1) { $ERROR('#2: The length property of the toFixed method is 1'); } diff --git a/test/built-ins/Number/prototype/toFixed/return-type.js b/test/built-ins/Number/prototype/toFixed/return-type.js index 9bbfeeb8682e05e01748332d90bb1c156fe85f8a..106be090eef35d8975f31c64dda65e4b6796770e 100644 --- a/test/built-ins/Number/prototype/toFixed/return-type.js +++ b/test/built-ins/Number/prototype/toFixed/return-type.js @@ -7,4 +7,4 @@ description: > Number.prototype.toFixed returns a string value ---*/ -assert.sameValue(typeof (123.456).toFixed(), "string"); +assert.sameValue(typeof(123.456).toFixed(), "string"); diff --git a/test/built-ins/Number/prototype/toPrecision/range.js b/test/built-ins/Number/prototype/toPrecision/range.js index ddaed46e7dbe45ae034336578f99501fa41417e9..5c5b39cb0ca251ab11230154421e94270a0a78b9 100644 --- a/test/built-ins/Number/prototype/toPrecision/range.js +++ b/test/built-ins/Number/prototype/toPrecision/range.js @@ -18,4 +18,3 @@ assert.throws(RangeError, () => (3).toPrecision(-10)); assert.sameValue((3).toPrecision(100), "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); assert.throws(RangeError, () => (3).toPrecision(101)); - diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js index 7100e7673050470ebfd0b4dfaf3a70abd2171b31..fb57dde9633f82afda72b61c08af08cc35a5f433 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js @@ -11,41 +11,41 @@ description: undefined radix ---*/ //CHECK#1 -if(Number.prototype.toString() !== "0"){ +if (Number.prototype.toString() !== "0") { $ERROR('#1: Number.prototype.toString() === "0"'); } //CHECK#2 -if((new Number()).toString() !== "0"){ +if ((new Number()).toString() !== "0") { $ERROR('#2: (new Number()).toString() === "0"'); } //CHECK#3 -if((new Number(0)).toString() !== "0"){ +if ((new Number(0)).toString() !== "0") { $ERROR('#3: (new Number(0)).toString() === "0"'); } //CHECK#4 -if((new Number(-1)).toString() !== "-1"){ +if ((new Number(-1)).toString() !== "-1") { $ERROR('#4: (new Number(-1)).toString() === "-1"'); } //CHECK#5 -if((new Number(1)).toString() !== "1"){ +if ((new Number(1)).toString() !== "1") { $ERROR('#5: (new Number(1)).toString() === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString() !== "NaN"){ +if ((new Number(Number.NaN)).toString() !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString() === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString() !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString() !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString() === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString() !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString() !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString() === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js index 48f0f4a84568aa4a64ec6ce3e3666649d810bd99..73b2fb8e93f99d8938ca994e971ee4f038376300 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js @@ -11,41 +11,41 @@ description: radix is 10 ---*/ //CHECK#1 -if(Number.prototype.toString(10) !== "0"){ +if (Number.prototype.toString(10) !== "0") { $ERROR('#1: Number.prototype.toString(10) === "0"'); } //CHECK#2 -if((new Number()).toString(10) !== "0"){ +if ((new Number()).toString(10) !== "0") { $ERROR('#2: (new Number()).toString(10) === "0"'); } //CHECK#3 -if((new Number(0)).toString(10) !== "0"){ +if ((new Number(0)).toString(10) !== "0") { $ERROR('#3: (new Number(0)).toString(10) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(10) !== "-1"){ +if ((new Number(-1)).toString(10) !== "-1") { $ERROR('#4: (new Number(-1)).toString(10) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(10) !== "1"){ +if ((new Number(1)).toString(10) !== "1") { $ERROR('#5: (new Number(1)).toString(10) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(10) !== "NaN"){ +if ((new Number(Number.NaN)).toString(10) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(10) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(10) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(10) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(10) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(10) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(10) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(10) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js index 16c179d448946a4946425030424de040514411a5..8ed410a745b55e7ee9c044f981ba9ed679b410f4 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js @@ -11,41 +11,41 @@ description: radix is undefined value ---*/ //CHECK#1 -if(Number.prototype.toString(undefined) !== "0"){ +if (Number.prototype.toString(undefined) !== "0") { $ERROR('#1: Number.prototype.toString(undefined) === "0"'); } //CHECK#2 -if((new Number()).toString(undefined) !== "0"){ +if ((new Number()).toString(undefined) !== "0") { $ERROR('#2: (new Number()).toString(undefined) === "0"'); } //CHECK#3 -if((new Number(0)).toString(undefined) !== "0"){ +if ((new Number(0)).toString(undefined) !== "0") { $ERROR('#3: (new Number(0)).toString(undefined) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(undefined) !== "-1"){ +if ((new Number(-1)).toString(undefined) !== "-1") { $ERROR('#4: (new Number(-1)).toString(undefined) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(undefined) !== "1"){ +if ((new Number(1)).toString(undefined) !== "1") { $ERROR('#5: (new Number(1)).toString(undefined) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(undefined) !== "NaN"){ +if ((new Number(Number.NaN)).toString(undefined) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(undefined) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(undefined) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(undefined) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(undefined) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(undefined) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(undefined) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(undefined) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js index 20c270d5d295a3c0ceb60187afb198afa7742b43..fd829eee88d524e7c684245b8254146c9c04b473 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js @@ -10,41 +10,41 @@ description: radix is 2 ---*/ //CHECK#1 -if(Number.prototype.toString(2) !== "0"){ +if (Number.prototype.toString(2) !== "0") { $ERROR('#1: Number.prototype.toString(2) === "0"'); } //CHECK#2 -if((new Number()).toString(2) !== "0"){ +if ((new Number()).toString(2) !== "0") { $ERROR('#2: (new Number()).toString(2) === "0"'); } //CHECK#3 -if((new Number(0)).toString(2) !== "0"){ +if ((new Number(0)).toString(2) !== "0") { $ERROR('#3: (new Number(0)).toString(2) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(2) !== "-1"){ +if ((new Number(-1)).toString(2) !== "-1") { $ERROR('#4: (new Number(-1)).toString(2) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(2) !== "1"){ +if ((new Number(1)).toString(2) !== "1") { $ERROR('#5: (new Number(1)).toString(2) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(2) !== "NaN"){ +if ((new Number(Number.NaN)).toString(2) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(2) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(2) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(2) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(2) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(2) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(2) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(2) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js index 2d3d73c3617e32b79be549a46c4b3cfa17196c14..2bf3e565b724940e0ff141787741acc65fe06ddd 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js @@ -10,41 +10,41 @@ description: radix is 3 ---*/ //CHECK#1 -if(Number.prototype.toString(3) !== "0"){ +if (Number.prototype.toString(3) !== "0") { $ERROR('#1: Number.prototype.toString(3) === "0"'); } //CHECK#2 -if((new Number()).toString(3) !== "0"){ +if ((new Number()).toString(3) !== "0") { $ERROR('#2: (new Number()).toString(3) === "0"'); } //CHECK#3 -if((new Number(0)).toString(3) !== "0"){ +if ((new Number(0)).toString(3) !== "0") { $ERROR('#3: (new Number(0)).toString(3) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(3) !== "-1"){ +if ((new Number(-1)).toString(3) !== "-1") { $ERROR('#4: (new Number(-1)).toString(3) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(3) !== "1"){ +if ((new Number(1)).toString(3) !== "1") { $ERROR('#5: (new Number(1)).toString(3) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(3) !== "NaN"){ +if ((new Number(Number.NaN)).toString(3) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(3) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(3) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(3) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(3) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(3) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(3) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(3) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js index 33979bd07ad07e61d64b864d1d42de75c1154087..e6f6d98f8890ae509075297ce2495a339ddd2ec6 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js @@ -10,41 +10,41 @@ description: radix is 4 ---*/ //CHECK#1 -if(Number.prototype.toString(4) !== "0"){ +if (Number.prototype.toString(4) !== "0") { $ERROR('#1: Number.prototype.toString(4) === "0"'); } //CHECK#2 -if((new Number()).toString(4) !== "0"){ +if ((new Number()).toString(4) !== "0") { $ERROR('#2: (new Number()).toString(4) === "0"'); } //CHECK#3 -if((new Number(0)).toString(4) !== "0"){ +if ((new Number(0)).toString(4) !== "0") { $ERROR('#3: (new Number(0)).toString(4) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(4) !== "-1"){ +if ((new Number(-1)).toString(4) !== "-1") { $ERROR('#4: (new Number(-1)).toString(4) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(4) !== "1"){ +if ((new Number(1)).toString(4) !== "1") { $ERROR('#5: (new Number(1)).toString(4) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(4) !== "NaN"){ +if ((new Number(Number.NaN)).toString(4) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(4) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(4) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(4) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(4) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(4) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(4) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(4) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js index f1a4eb7f426f234c2920b241abda50e475561aed..d6f7c812db0db1844c4a62d4a69fcce43383167a 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js @@ -10,41 +10,41 @@ description: radix is 5 ---*/ //CHECK#1 -if(Number.prototype.toString(5) !== "0"){ +if (Number.prototype.toString(5) !== "0") { $ERROR('#1: Number.prototype.toString(5) === "0"'); } //CHECK#2 -if((new Number()).toString(5) !== "0"){ +if ((new Number()).toString(5) !== "0") { $ERROR('#2: (new Number()).toString(5) === "0"'); } //CHECK#3 -if((new Number(0)).toString(5) !== "0"){ +if ((new Number(0)).toString(5) !== "0") { $ERROR('#3: (new Number(0)).toString(5) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(5) !== "-1"){ +if ((new Number(-1)).toString(5) !== "-1") { $ERROR('#4: (new Number(-1)).toString(5) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(5) !== "1"){ +if ((new Number(1)).toString(5) !== "1") { $ERROR('#5: (new Number(1)).toString(5) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(5) !== "NaN"){ +if ((new Number(Number.NaN)).toString(5) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(5) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(5) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(5) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(5) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(5) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(5) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(5) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js index 8b9866606b9bad17eed30a8e7e4fd4735e7053a5..80da9e51e8a1deb72ce927375303b8cee5bdd931 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js @@ -10,41 +10,41 @@ description: radix is 6 ---*/ //CHECK#1 -if(Number.prototype.toString(6) !== "0"){ +if (Number.prototype.toString(6) !== "0") { $ERROR('#1: Number.prototype.toString(6) === "0"'); } //CHECK#2 -if((new Number()).toString(6) !== "0"){ +if ((new Number()).toString(6) !== "0") { $ERROR('#2: (new Number()).toString(6) === "0"'); } //CHECK#3 -if((new Number(0)).toString(6) !== "0"){ +if ((new Number(0)).toString(6) !== "0") { $ERROR('#3: (new Number(0)).toString(6) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(6) !== "-1"){ +if ((new Number(-1)).toString(6) !== "-1") { $ERROR('#4: (new Number(-1)).toString(6) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(6) !== "1"){ +if ((new Number(1)).toString(6) !== "1") { $ERROR('#5: (new Number(1)).toString(6) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(6) !== "NaN"){ +if ((new Number(Number.NaN)).toString(6) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(6) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(6) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(6) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(6) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(6) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(6) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(6) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js index 3422a253cb235179236fe53dac0c76d1b724562b..aac01ee0a8646e46d85ab9351f87117802beee7e 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js @@ -10,41 +10,41 @@ description: radix is 7 ---*/ //CHECK#1 -if(Number.prototype.toString(7) !== "0"){ +if (Number.prototype.toString(7) !== "0") { $ERROR('#1: Number.prototype.toString(7) === "0"'); } //CHECK#2 -if((new Number()).toString(7) !== "0"){ +if ((new Number()).toString(7) !== "0") { $ERROR('#2: (new Number()).toString(7) === "0"'); } //CHECK#3 -if((new Number(0)).toString(7) !== "0"){ +if ((new Number(0)).toString(7) !== "0") { $ERROR('#3: (new Number(0)).toString(7) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(7) !== "-1"){ +if ((new Number(-1)).toString(7) !== "-1") { $ERROR('#4: (new Number(-1)).toString(7) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(7) !== "1"){ +if ((new Number(1)).toString(7) !== "1") { $ERROR('#5: (new Number(1)).toString(7) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(7) !== "NaN"){ +if ((new Number(Number.NaN)).toString(7) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(7) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(7) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(7) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(7) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(7) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(7) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(7) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js index 131adda254b1cdddec61a56688d7e9bd70f5d39e..334a1205f97f4b5cf0c1ff067621e64753143332 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js @@ -10,41 +10,41 @@ description: radix is 8 ---*/ //CHECK#1 -if(Number.prototype.toString(8) !== "0"){ +if (Number.prototype.toString(8) !== "0") { $ERROR('#1: Number.prototype.toString(8) === "0"'); } //CHECK#2 -if((new Number()).toString(8) !== "0"){ +if ((new Number()).toString(8) !== "0") { $ERROR('#2: (new Number()).toString(8) === "0"'); } //CHECK#3 -if((new Number(0)).toString(8) !== "0"){ +if ((new Number(0)).toString(8) !== "0") { $ERROR('#3: (new Number(0)).toString(8) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(8) !== "-1"){ +if ((new Number(-1)).toString(8) !== "-1") { $ERROR('#4: (new Number(-1)).toString(8) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(8) !== "1"){ +if ((new Number(1)).toString(8) !== "1") { $ERROR('#5: (new Number(1)).toString(8) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(8) !== "NaN"){ +if ((new Number(Number.NaN)).toString(8) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(8) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(8) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(8) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(8) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(8) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(8) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(8) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js index c668382830707d26250cef287cce1c9b8dfa00ff..50d674deef0003b22c2dd6f1f48b10c41bb246ef 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js @@ -10,41 +10,41 @@ description: radix is 9 ---*/ //CHECK#1 -if(Number.prototype.toString(9) !== "0"){ +if (Number.prototype.toString(9) !== "0") { $ERROR('#1: Number.prototype.toString(9) === "0"'); } //CHECK#2 -if((new Number()).toString(9) !== "0"){ +if ((new Number()).toString(9) !== "0") { $ERROR('#2: (new Number()).toString(9) === "0"'); } //CHECK#3 -if((new Number(0)).toString(9) !== "0"){ +if ((new Number(0)).toString(9) !== "0") { $ERROR('#3: (new Number(0)).toString(9) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(9) !== "-1"){ +if ((new Number(-1)).toString(9) !== "-1") { $ERROR('#4: (new Number(-1)).toString(9) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(9) !== "1"){ +if ((new Number(1)).toString(9) !== "1") { $ERROR('#5: (new Number(1)).toString(9) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(9) !== "NaN"){ +if ((new Number(Number.NaN)).toString(9) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(9) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(9) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(9) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(9) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(9) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(9) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(9) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js index e4a0903530adbced133ec549711f08b26335effa..98014b16cef4fc81842c7398d04154538a605fa9 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js @@ -10,41 +10,41 @@ description: radix is 11 ---*/ //CHECK#1 -if(Number.prototype.toString(11) !== "0"){ +if (Number.prototype.toString(11) !== "0") { $ERROR('#1: Number.prototype.toString(11) === "0"'); } //CHECK#2 -if((new Number()).toString(11) !== "0"){ +if ((new Number()).toString(11) !== "0") { $ERROR('#2: (new Number()).toString(11) === "0"'); } //CHECK#3 -if((new Number(0)).toString(11) !== "0"){ +if ((new Number(0)).toString(11) !== "0") { $ERROR('#3: (new Number(0)).toString(11) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(11) !== "-1"){ +if ((new Number(-1)).toString(11) !== "-1") { $ERROR('#4: (new Number(-1)).toString(11) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(11) !== "1"){ +if ((new Number(1)).toString(11) !== "1") { $ERROR('#5: (new Number(1)).toString(11) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(11) !== "NaN"){ +if ((new Number(Number.NaN)).toString(11) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(11) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(11) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(11) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(11) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(11) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(11) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(11) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js index 5804302f3f329b9e4e936ac13ff2ca4ed00b060e..6a2f03a541e421e5d7ad472d8f0c032aca076c99 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js @@ -10,41 +10,41 @@ description: radix is 12 ---*/ //CHECK#1 -if(Number.prototype.toString(12) !== "0"){ +if (Number.prototype.toString(12) !== "0") { $ERROR('#1: Number.prototype.toString(12) === "0"'); } //CHECK#2 -if((new Number()).toString(12) !== "0"){ +if ((new Number()).toString(12) !== "0") { $ERROR('#2: (new Number()).toString(12) === "0"'); } //CHECK#3 -if((new Number(0)).toString(12) !== "0"){ +if ((new Number(0)).toString(12) !== "0") { $ERROR('#3: (new Number(0)).toString(12) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(12) !== "-1"){ +if ((new Number(-1)).toString(12) !== "-1") { $ERROR('#4: (new Number(-1)).toString(12) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(12) !== "1"){ +if ((new Number(1)).toString(12) !== "1") { $ERROR('#5: (new Number(1)).toString(12) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(12) !== "NaN"){ +if ((new Number(Number.NaN)).toString(12) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(12) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(12) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(12) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(12) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(12) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(12) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(12) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js index 277dc39211e9cbd3e651f40ddc94614aa7537f29..01036067193c25ca8bbe6ae36814154c7f2c5e57 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js @@ -10,41 +10,41 @@ description: radix is 13 ---*/ //CHECK#1 -if(Number.prototype.toString(13) !== "0"){ +if (Number.prototype.toString(13) !== "0") { $ERROR('#1: Number.prototype.toString(13) === "0"'); } //CHECK#2 -if((new Number()).toString(13) !== "0"){ +if ((new Number()).toString(13) !== "0") { $ERROR('#2: (new Number()).toString(13) === "0"'); } //CHECK#3 -if((new Number(0)).toString(13) !== "0"){ +if ((new Number(0)).toString(13) !== "0") { $ERROR('#3: (new Number(0)).toString(13) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(13) !== "-1"){ +if ((new Number(-1)).toString(13) !== "-1") { $ERROR('#4: (new Number(-1)).toString(13) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(13) !== "1"){ +if ((new Number(1)).toString(13) !== "1") { $ERROR('#5: (new Number(1)).toString(13) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(13) !== "NaN"){ +if ((new Number(Number.NaN)).toString(13) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(13) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(13) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(13) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(13) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(13) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(13) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(13) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js index eead1a53200e60f4c556aeb6c01571d50f62414b..86b09f7ee0325efa06339fd4bad6880063a524e4 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js @@ -10,41 +10,41 @@ description: radix is 14 ---*/ //CHECK#1 -if(Number.prototype.toString(14) !== "0"){ +if (Number.prototype.toString(14) !== "0") { $ERROR('#1: Number.prototype.toString(14) === "0"'); } //CHECK#2 -if((new Number()).toString(14) !== "0"){ +if ((new Number()).toString(14) !== "0") { $ERROR('#2: (new Number()).toString(14) === "0"'); } //CHECK#3 -if((new Number(0)).toString(14) !== "0"){ +if ((new Number(0)).toString(14) !== "0") { $ERROR('#3: (new Number(0)).toString(14) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(14) !== "-1"){ +if ((new Number(-1)).toString(14) !== "-1") { $ERROR('#4: (new Number(-1)).toString(14) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(14) !== "1"){ +if ((new Number(1)).toString(14) !== "1") { $ERROR('#5: (new Number(1)).toString(14) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(14) !== "NaN"){ +if ((new Number(Number.NaN)).toString(14) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(14) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(14) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(14) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(14) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(14) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(14) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(14) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js index 01b284aaf036b45d6410e611acafc6a4631d3a8c..22947fb578760e494d100b89c3711e88225636bf 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js @@ -10,41 +10,41 @@ description: radix is 15 ---*/ //CHECK#1 -if(Number.prototype.toString(15) !== "0"){ +if (Number.prototype.toString(15) !== "0") { $ERROR('#1: Number.prototype.toString(15) === "0"'); } //CHECK#2 -if((new Number()).toString(15) !== "0"){ +if ((new Number()).toString(15) !== "0") { $ERROR('#2: (new Number()).toString(15) === "0"'); } //CHECK#3 -if((new Number(0)).toString(15) !== "0"){ +if ((new Number(0)).toString(15) !== "0") { $ERROR('#3: (new Number(0)).toString(15) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(15) !== "-1"){ +if ((new Number(-1)).toString(15) !== "-1") { $ERROR('#4: (new Number(-1)).toString(15) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(15) !== "1"){ +if ((new Number(1)).toString(15) !== "1") { $ERROR('#5: (new Number(1)).toString(15) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(15) !== "NaN"){ +if ((new Number(Number.NaN)).toString(15) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(15) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(15) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(15) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(15) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(15) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(15) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(15) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js index ed1c70aae6b0a039961c6d5414cf5df48047291e..9daf9df1a3adea3ccf65bcf2bb60d22c3c5c5cb6 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js @@ -10,41 +10,41 @@ description: radix is 16 ---*/ //CHECK#1 -if(Number.prototype.toString(16) !== "0"){ +if (Number.prototype.toString(16) !== "0") { $ERROR('#1: Number.prototype.toString(16) === "0"'); } //CHECK#2 -if((new Number()).toString(16) !== "0"){ +if ((new Number()).toString(16) !== "0") { $ERROR('#2: (new Number()).toString(16) === "0"'); } //CHECK#3 -if((new Number(0)).toString(16) !== "0"){ +if ((new Number(0)).toString(16) !== "0") { $ERROR('#3: (new Number(0)).toString(16) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(16) !== "-1"){ +if ((new Number(-1)).toString(16) !== "-1") { $ERROR('#4: (new Number(-1)).toString(16) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(16) !== "1"){ +if ((new Number(1)).toString(16) !== "1") { $ERROR('#5: (new Number(1)).toString(16) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(16) !== "NaN"){ +if ((new Number(Number.NaN)).toString(16) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(16) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(16) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(16) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(16) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(16) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(16) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(16) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js index 5355c100f3ac11b9afed19b4068ec3540c138a25..2154961ee3f2af5ebf3b272b590958fe4324745c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js @@ -10,41 +10,41 @@ description: radix is 17 ---*/ //CHECK#1 -if(Number.prototype.toString(17) !== "0"){ +if (Number.prototype.toString(17) !== "0") { $ERROR('#1: Number.prototype.toString(17) === "0"'); } //CHECK#2 -if((new Number()).toString(17) !== "0"){ +if ((new Number()).toString(17) !== "0") { $ERROR('#2: (new Number()).toString(17) === "0"'); } //CHECK#3 -if((new Number(0)).toString(17) !== "0"){ +if ((new Number(0)).toString(17) !== "0") { $ERROR('#3: (new Number(0)).toString(17) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(17) !== "-1"){ +if ((new Number(-1)).toString(17) !== "-1") { $ERROR('#4: (new Number(-1)).toString(17) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(17) !== "1"){ +if ((new Number(1)).toString(17) !== "1") { $ERROR('#5: (new Number(1)).toString(17) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(17) !== "NaN"){ +if ((new Number(Number.NaN)).toString(17) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(17) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(17) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(17) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(17) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(17) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(17) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(17) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js index 5367718efd56bcf7a877082c5848301da687fc97..b2c9559b196ba48e31f3fa358c978f775c94382f 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js @@ -10,41 +10,41 @@ description: radix is 18 ---*/ //CHECK#1 -if(Number.prototype.toString(18) !== "0"){ +if (Number.prototype.toString(18) !== "0") { $ERROR('#1: Number.prototype.toString(18) === "0"'); } //CHECK#2 -if((new Number()).toString(18) !== "0"){ +if ((new Number()).toString(18) !== "0") { $ERROR('#2: (new Number()).toString(18) === "0"'); } //CHECK#3 -if((new Number(0)).toString(18) !== "0"){ +if ((new Number(0)).toString(18) !== "0") { $ERROR('#3: (new Number(0)).toString(18) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(18) !== "-1"){ +if ((new Number(-1)).toString(18) !== "-1") { $ERROR('#4: (new Number(-1)).toString(18) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(18) !== "1"){ +if ((new Number(1)).toString(18) !== "1") { $ERROR('#5: (new Number(1)).toString(18) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(18) !== "NaN"){ +if ((new Number(Number.NaN)).toString(18) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(18) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(18) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(18) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(18) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(18) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(18) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(18) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js index bc51f7c3a3131417b58dc44c56341249e8d2b622..93469824ba9aa2a1826a48bc578695ca4cab6a78 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js @@ -10,41 +10,41 @@ description: radix is 19 ---*/ //CHECK#1 -if(Number.prototype.toString(19) !== "0"){ +if (Number.prototype.toString(19) !== "0") { $ERROR('#1: Number.prototype.toString(19) === "0"'); } //CHECK#2 -if((new Number()).toString(19) !== "0"){ +if ((new Number()).toString(19) !== "0") { $ERROR('#2: (new Number()).toString(19) === "0"'); } //CHECK#3 -if((new Number(0)).toString(19) !== "0"){ +if ((new Number(0)).toString(19) !== "0") { $ERROR('#3: (new Number(0)).toString(19) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(19) !== "-1"){ +if ((new Number(-1)).toString(19) !== "-1") { $ERROR('#4: (new Number(-1)).toString(19) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(19) !== "1"){ +if ((new Number(1)).toString(19) !== "1") { $ERROR('#5: (new Number(1)).toString(19) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(19) !== "NaN"){ +if ((new Number(Number.NaN)).toString(19) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(19) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(19) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(19) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(19) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(19) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(19) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(19) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js index f5ebae9497025450fc1d79c3f64e0b4f34db5b64..3c0aa4a40430f8ebd228ca80956a48110b1d8888 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js @@ -10,41 +10,41 @@ description: radix is 20 ---*/ //CHECK#1 -if(Number.prototype.toString(20) !== "0"){ +if (Number.prototype.toString(20) !== "0") { $ERROR('#1: Number.prototype.toString(20) === "0"'); } //CHECK#2 -if((new Number()).toString(20) !== "0"){ +if ((new Number()).toString(20) !== "0") { $ERROR('#2: (new Number()).toString(20) === "0"'); } //CHECK#3 -if((new Number(0)).toString(20) !== "0"){ +if ((new Number(0)).toString(20) !== "0") { $ERROR('#3: (new Number(0)).toString(20) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(20) !== "-1"){ +if ((new Number(-1)).toString(20) !== "-1") { $ERROR('#4: (new Number(-1)).toString(20) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(20) !== "1"){ +if ((new Number(1)).toString(20) !== "1") { $ERROR('#5: (new Number(1)).toString(20) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(20) !== "NaN"){ +if ((new Number(Number.NaN)).toString(20) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(20) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(20) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(20) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(20) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(20) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(20) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(20) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js index a4247983484de2457b2a4f499f9eb5a4e2ee0a1b..1ccdc57c6bb152397bd39598245c52b7533e2744 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js @@ -10,41 +10,41 @@ description: radix is 21 ---*/ //CHECK#1 -if(Number.prototype.toString(21) !== "0"){ +if (Number.prototype.toString(21) !== "0") { $ERROR('#1: Number.prototype.toString(21) === "0"'); } //CHECK#2 -if((new Number()).toString(21) !== "0"){ +if ((new Number()).toString(21) !== "0") { $ERROR('#2: (new Number()).toString(21) === "0"'); } //CHECK#3 -if((new Number(0)).toString(21) !== "0"){ +if ((new Number(0)).toString(21) !== "0") { $ERROR('#3: (new Number(0)).toString(21) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(21) !== "-1"){ +if ((new Number(-1)).toString(21) !== "-1") { $ERROR('#4: (new Number(-1)).toString(21) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(21) !== "1"){ +if ((new Number(1)).toString(21) !== "1") { $ERROR('#5: (new Number(1)).toString(21) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(21) !== "NaN"){ +if ((new Number(Number.NaN)).toString(21) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(21) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(21) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(21) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(21) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(21) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(21) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(21) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js index 8ee2cae70a22d4c192829751c12224ed25ce0df0..762ef884dbf15e5bfea6488203114c1dc82cfe04 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js @@ -10,41 +10,41 @@ description: radix is 22 ---*/ //CHECK#1 -if(Number.prototype.toString(22) !== "0"){ +if (Number.prototype.toString(22) !== "0") { $ERROR('#1: Number.prototype.toString(22) === "0"'); } //CHECK#2 -if((new Number()).toString(22) !== "0"){ +if ((new Number()).toString(22) !== "0") { $ERROR('#2: (new Number()).toString(22) === "0"'); } //CHECK#3 -if((new Number(0)).toString(22) !== "0"){ +if ((new Number(0)).toString(22) !== "0") { $ERROR('#3: (new Number(0)).toString(22) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(22) !== "-1"){ +if ((new Number(-1)).toString(22) !== "-1") { $ERROR('#4: (new Number(-1)).toString(22) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(22) !== "1"){ +if ((new Number(1)).toString(22) !== "1") { $ERROR('#5: (new Number(1)).toString(22) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(22) !== "NaN"){ +if ((new Number(Number.NaN)).toString(22) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(22) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(22) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(22) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(22) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(22) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(22) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(22) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js index 6588d3e702876fede35ae2845fac43e0e8cae9ff..d7bb9b9e928e6b551a7fccb3def6a95044b4a1a2 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js @@ -10,41 +10,41 @@ description: radix is 23 ---*/ //CHECK#1 -if(Number.prototype.toString(23) !== "0"){ +if (Number.prototype.toString(23) !== "0") { $ERROR('#1: Number.prototype.toString(23) === "0"'); } //CHECK#2 -if((new Number()).toString(23) !== "0"){ +if ((new Number()).toString(23) !== "0") { $ERROR('#2: (new Number()).toString(23) === "0"'); } //CHECK#3 -if((new Number(0)).toString(23) !== "0"){ +if ((new Number(0)).toString(23) !== "0") { $ERROR('#3: (new Number(0)).toString(23) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(23) !== "-1"){ +if ((new Number(-1)).toString(23) !== "-1") { $ERROR('#4: (new Number(-1)).toString(23) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(23) !== "1"){ +if ((new Number(1)).toString(23) !== "1") { $ERROR('#5: (new Number(1)).toString(23) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(23) !== "NaN"){ +if ((new Number(Number.NaN)).toString(23) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(23) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(23) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(23) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(23) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(23) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(23) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(23) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js index f9e726d495ed7dcc166d6dbcfddfa9cdfab4e3e7..90f3a18f5ed313858f2c177e0fd485d8cf6b6d6f 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js @@ -10,41 +10,41 @@ description: radix is 24 ---*/ //CHECK#1 -if(Number.prototype.toString(24) !== "0"){ +if (Number.prototype.toString(24) !== "0") { $ERROR('#1: Number.prototype.toString(24) === "0"'); } //CHECK#2 -if((new Number()).toString(24) !== "0"){ +if ((new Number()).toString(24) !== "0") { $ERROR('#2: (new Number()).toString(24) === "0"'); } //CHECK#3 -if((new Number(0)).toString(24) !== "0"){ +if ((new Number(0)).toString(24) !== "0") { $ERROR('#3: (new Number(0)).toString(24) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(24) !== "-1"){ +if ((new Number(-1)).toString(24) !== "-1") { $ERROR('#4: (new Number(-1)).toString(24) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(24) !== "1"){ +if ((new Number(1)).toString(24) !== "1") { $ERROR('#5: (new Number(1)).toString(24) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(24) !== "NaN"){ +if ((new Number(Number.NaN)).toString(24) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(24) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(24) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(24) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(24) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(24) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(24) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(24) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js index 7a8be29a9d32104780f09f0cc077f4b4d636777c..4d959df9620569329c6c47228c82ce5f3fbf2f44 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js @@ -10,41 +10,41 @@ description: radix is 25 ---*/ //CHECK#1 -if(Number.prototype.toString(25) !== "0"){ +if (Number.prototype.toString(25) !== "0") { $ERROR('#1: Number.prototype.toString(25) === "0"'); } //CHECK#2 -if((new Number()).toString(25) !== "0"){ +if ((new Number()).toString(25) !== "0") { $ERROR('#2: (new Number()).toString(25) === "0"'); } //CHECK#3 -if((new Number(0)).toString(25) !== "0"){ +if ((new Number(0)).toString(25) !== "0") { $ERROR('#3: (new Number(0)).toString(25) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(25) !== "-1"){ +if ((new Number(-1)).toString(25) !== "-1") { $ERROR('#4: (new Number(-1)).toString(25) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(25) !== "1"){ +if ((new Number(1)).toString(25) !== "1") { $ERROR('#5: (new Number(1)).toString(25) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(25) !== "NaN"){ +if ((new Number(Number.NaN)).toString(25) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(25) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(25) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(25) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(25) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(25) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(25) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(25) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js index 46b4b8c66bb7b92fd827ac4ea78feafd6ceea9f2..a17f0941943134ade17a62059a4dfe337f37e4f3 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js @@ -10,41 +10,41 @@ description: radix is 26 ---*/ //CHECK#1 -if(Number.prototype.toString(26) !== "0"){ +if (Number.prototype.toString(26) !== "0") { $ERROR('#1: Number.prototype.toString(26) === "0"'); } //CHECK#2 -if((new Number()).toString(26) !== "0"){ +if ((new Number()).toString(26) !== "0") { $ERROR('#2: (new Number()).toString(26) === "0"'); } //CHECK#3 -if((new Number(0)).toString(26) !== "0"){ +if ((new Number(0)).toString(26) !== "0") { $ERROR('#3: (new Number(0)).toString(26) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(26) !== "-1"){ +if ((new Number(-1)).toString(26) !== "-1") { $ERROR('#4: (new Number(-1)).toString(26) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(26) !== "1"){ +if ((new Number(1)).toString(26) !== "1") { $ERROR('#5: (new Number(1)).toString(26) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(26) !== "NaN"){ +if ((new Number(Number.NaN)).toString(26) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(26) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(26) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(26) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(26) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(26) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(26) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(26) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js index 534de71ecbb5a64351fccbc42ae4cbdad52e556e..69bb10dc8afa76ef7c7b4779413aba84be64608f 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js @@ -10,41 +10,41 @@ description: radix is 27 ---*/ //CHECK#1 -if(Number.prototype.toString(27) !== "0"){ +if (Number.prototype.toString(27) !== "0") { $ERROR('#1: Number.prototype.toString(27) === "0"'); } //CHECK#2 -if((new Number()).toString(27) !== "0"){ +if ((new Number()).toString(27) !== "0") { $ERROR('#2: (new Number()).toString(27) === "0"'); } //CHECK#3 -if((new Number(0)).toString(27) !== "0"){ +if ((new Number(0)).toString(27) !== "0") { $ERROR('#3: (new Number(0)).toString(27) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(27) !== "-1"){ +if ((new Number(-1)).toString(27) !== "-1") { $ERROR('#4: (new Number(-1)).toString(27) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(27) !== "1"){ +if ((new Number(1)).toString(27) !== "1") { $ERROR('#5: (new Number(1)).toString(27) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(27) !== "NaN"){ +if ((new Number(Number.NaN)).toString(27) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(27) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(27) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(27) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(27) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(27) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(27) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(27) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js index 71cd097751d65335d9439d3fa5059cbe6554d0df..f80f78216a9606aa8b92668f18d7aa79fe7cd042 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js @@ -10,41 +10,41 @@ description: radix is 28 ---*/ //CHECK#1 -if(Number.prototype.toString(28) !== "0"){ +if (Number.prototype.toString(28) !== "0") { $ERROR('#1: Number.prototype.toString(28) === "0"'); } //CHECK#2 -if((new Number()).toString(28) !== "0"){ +if ((new Number()).toString(28) !== "0") { $ERROR('#2: (new Number()).toString(28) === "0"'); } //CHECK#3 -if((new Number(0)).toString(28) !== "0"){ +if ((new Number(0)).toString(28) !== "0") { $ERROR('#3: (new Number(0)).toString(28) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(28) !== "-1"){ +if ((new Number(-1)).toString(28) !== "-1") { $ERROR('#4: (new Number(-1)).toString(28) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(28) !== "1"){ +if ((new Number(1)).toString(28) !== "1") { $ERROR('#5: (new Number(1)).toString(28) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(28) !== "NaN"){ +if ((new Number(Number.NaN)).toString(28) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(28) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(28) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(28) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(28) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(28) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(28) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(28) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js index f8dd136b8a7d5c5425f6f363b1d07bc26356cc07..e76d2439340520e0638d47d9ea31c5cbc17052ed 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js @@ -10,41 +10,41 @@ description: radix is 29 ---*/ //CHECK#1 -if(Number.prototype.toString(29) !== "0"){ +if (Number.prototype.toString(29) !== "0") { $ERROR('#1: Number.prototype.toString(29) === "0"'); } //CHECK#2 -if((new Number()).toString(29) !== "0"){ +if ((new Number()).toString(29) !== "0") { $ERROR('#2: (new Number()).toString(29) === "0"'); } //CHECK#3 -if((new Number(0)).toString(29) !== "0"){ +if ((new Number(0)).toString(29) !== "0") { $ERROR('#3: (new Number(0)).toString(29) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(29) !== "-1"){ +if ((new Number(-1)).toString(29) !== "-1") { $ERROR('#4: (new Number(-1)).toString(29) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(29) !== "1"){ +if ((new Number(1)).toString(29) !== "1") { $ERROR('#5: (new Number(1)).toString(29) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(29) !== "NaN"){ +if ((new Number(Number.NaN)).toString(29) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(29) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(29) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(29) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(29) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(29) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(29) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(29) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js index deda5fc2e3e05b7aa5429d9dde82c293904c5bd1..1785e33be0e0302e89ecd0a5469ee2e88d43f105 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js @@ -10,41 +10,41 @@ description: radix is 30 ---*/ //CHECK#1 -if(Number.prototype.toString(30) !== "0"){ +if (Number.prototype.toString(30) !== "0") { $ERROR('#1: Number.prototype.toString(30) === "0"'); } //CHECK#2 -if((new Number()).toString(30) !== "0"){ +if ((new Number()).toString(30) !== "0") { $ERROR('#2: (new Number()).toString(30) === "0"'); } //CHECK#3 -if((new Number(0)).toString(30) !== "0"){ +if ((new Number(0)).toString(30) !== "0") { $ERROR('#3: (new Number(0)).toString(30) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(30) !== "-1"){ +if ((new Number(-1)).toString(30) !== "-1") { $ERROR('#4: (new Number(-1)).toString(30) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(30) !== "1"){ +if ((new Number(1)).toString(30) !== "1") { $ERROR('#5: (new Number(1)).toString(30) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(30) !== "NaN"){ +if ((new Number(Number.NaN)).toString(30) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(30) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(30) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(30) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(30) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(30) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(30) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(30) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js index c675984c0766b5bd039de15dbd30a1becc3d20eb..13d43a251c285c9c503b52998897dd00ec878764 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js @@ -10,41 +10,41 @@ description: radix is 31 ---*/ //CHECK#1 -if(Number.prototype.toString(31) !== "0"){ +if (Number.prototype.toString(31) !== "0") { $ERROR('#1: Number.prototype.toString(31) === "0"'); } //CHECK#2 -if((new Number()).toString(31) !== "0"){ +if ((new Number()).toString(31) !== "0") { $ERROR('#2: (new Number()).toString(31) === "0"'); } //CHECK#3 -if((new Number(0)).toString(31) !== "0"){ +if ((new Number(0)).toString(31) !== "0") { $ERROR('#3: (new Number(0)).toString(31) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(31) !== "-1"){ +if ((new Number(-1)).toString(31) !== "-1") { $ERROR('#4: (new Number(-1)).toString(31) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(31) !== "1"){ +if ((new Number(1)).toString(31) !== "1") { $ERROR('#5: (new Number(1)).toString(31) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(31) !== "NaN"){ +if ((new Number(Number.NaN)).toString(31) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(31) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(31) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(31) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(31) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(31) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(31) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(31) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js index abe0383848f0fa0ce25ce06870ef6e5ebdb2251f..41055500e01ed83bd6e3cf7cea91374ca3fb9908 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js @@ -10,41 +10,41 @@ description: radix is 32 ---*/ //CHECK#1 -if(Number.prototype.toString(32) !== "0"){ +if (Number.prototype.toString(32) !== "0") { $ERROR('#1: Number.prototype.toString(32) === "0"'); } //CHECK#2 -if((new Number()).toString(32) !== "0"){ +if ((new Number()).toString(32) !== "0") { $ERROR('#2: (new Number()).toString(32) === "0"'); } //CHECK#3 -if((new Number(0)).toString(32) !== "0"){ +if ((new Number(0)).toString(32) !== "0") { $ERROR('#3: (new Number(0)).toString(32) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(32) !== "-1"){ +if ((new Number(-1)).toString(32) !== "-1") { $ERROR('#4: (new Number(-1)).toString(32) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(32) !== "1"){ +if ((new Number(1)).toString(32) !== "1") { $ERROR('#5: (new Number(1)).toString(32) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(32) !== "NaN"){ +if ((new Number(Number.NaN)).toString(32) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(32) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(32) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(32) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(32) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(32) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(32) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(32) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js index 9f0187a6a6f09a1e588af141619f5795d91270f3..b14849bfa0f853d814e5cf4b7fb3d17c50ac1d66 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js @@ -10,41 +10,41 @@ description: radix is 33 ---*/ //CHECK#1 -if(Number.prototype.toString(33) !== "0"){ +if (Number.prototype.toString(33) !== "0") { $ERROR('#1: Number.prototype.toString(33) === "0"'); } //CHECK#2 -if((new Number()).toString(33) !== "0"){ +if ((new Number()).toString(33) !== "0") { $ERROR('#2: (new Number()).toString(33) === "0"'); } //CHECK#3 -if((new Number(0)).toString(33) !== "0"){ +if ((new Number(0)).toString(33) !== "0") { $ERROR('#3: (new Number(0)).toString(33) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(33) !== "-1"){ +if ((new Number(-1)).toString(33) !== "-1") { $ERROR('#4: (new Number(-1)).toString(33) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(33) !== "1"){ +if ((new Number(1)).toString(33) !== "1") { $ERROR('#5: (new Number(1)).toString(33) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(33) !== "NaN"){ +if ((new Number(Number.NaN)).toString(33) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(33) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(33) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(33) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(33) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(33) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(33) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(33) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js index 99543d170c60c40bd8506f7dcd86172eb9d5f2f4..9de1cca336cee642066410d75a22faef650d4f28 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js @@ -10,41 +10,41 @@ description: radix is 34 ---*/ //CHECK#1 -if(Number.prototype.toString(34) !== "0"){ +if (Number.prototype.toString(34) !== "0") { $ERROR('#1: Number.prototype.toString(34) === "0"'); } //CHECK#2 -if((new Number()).toString(34) !== "0"){ +if ((new Number()).toString(34) !== "0") { $ERROR('#2: (new Number()).toString(34) === "0"'); } //CHECK#3 -if((new Number(0)).toString(34) !== "0"){ +if ((new Number(0)).toString(34) !== "0") { $ERROR('#3: (new Number(0)).toString(34) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(34) !== "-1"){ +if ((new Number(-1)).toString(34) !== "-1") { $ERROR('#4: (new Number(-1)).toString(34) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(34) !== "1"){ +if ((new Number(1)).toString(34) !== "1") { $ERROR('#5: (new Number(1)).toString(34) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(34) !== "NaN"){ +if ((new Number(Number.NaN)).toString(34) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(34) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(34) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(34) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(34) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(34) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(34) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(34) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js index be9013758bbb90a248a5e3d097cfdcdf01b845e2..55fb04064f0b38f96443777e6b2320afb980ff55 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js @@ -10,41 +10,41 @@ description: radix is 35 ---*/ //CHECK#1 -if(Number.prototype.toString(35) !== "0"){ +if (Number.prototype.toString(35) !== "0") { $ERROR('#1: Number.prototype.toString(35) === "0"'); } //CHECK#2 -if((new Number()).toString(35) !== "0"){ +if ((new Number()).toString(35) !== "0") { $ERROR('#2: (new Number()).toString(35) === "0"'); } //CHECK#3 -if((new Number(0)).toString(35) !== "0"){ +if ((new Number(0)).toString(35) !== "0") { $ERROR('#3: (new Number(0)).toString(35) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(35) !== "-1"){ +if ((new Number(-1)).toString(35) !== "-1") { $ERROR('#4: (new Number(-1)).toString(35) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(35) !== "1"){ +if ((new Number(1)).toString(35) !== "1") { $ERROR('#5: (new Number(1)).toString(35) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(35) !== "NaN"){ +if ((new Number(Number.NaN)).toString(35) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(35) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(35) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(35) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(35) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(35) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(35) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(35) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js index 7c2cfabbc2a8b2da97abaa3c08447a84daac2320..82f8fea8729cc784ee39dcf420b91c8cd563d2fd 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js @@ -10,41 +10,41 @@ description: radix is 36 ---*/ //CHECK#1 -if(Number.prototype.toString(36) !== "0"){ +if (Number.prototype.toString(36) !== "0") { $ERROR('#1: Number.prototype.toString(36) === "0"'); } //CHECK#2 -if((new Number()).toString(36) !== "0"){ +if ((new Number()).toString(36) !== "0") { $ERROR('#2: (new Number()).toString(36) === "0"'); } //CHECK#3 -if((new Number(0)).toString(36) !== "0"){ +if ((new Number(0)).toString(36) !== "0") { $ERROR('#3: (new Number(0)).toString(36) === "0"'); } //CHECK#4 -if((new Number(-1)).toString(36) !== "-1"){ +if ((new Number(-1)).toString(36) !== "-1") { $ERROR('#4: (new Number(-1)).toString(36) === "-1"'); } //CHECK#5 -if((new Number(1)).toString(36) !== "1"){ +if ((new Number(1)).toString(36) !== "1") { $ERROR('#5: (new Number(1)).toString(36) === "1"'); } //CHECK#6 -if((new Number(Number.NaN)).toString(36) !== "NaN"){ +if ((new Number(Number.NaN)).toString(36) !== "NaN") { $ERROR('#6: (new Number(Number.NaN)).toString(36) === "NaN"'); } //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).toString(36) !== "Infinity"){ +if ((new Number(Number.POSITIVE_INFINITY)).toString(36) !== "Infinity") { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(36) === "Infinity"'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).toString(36) !== "-Infinity"){ +if ((new Number(Number.NEGATIVE_INFINITY)).toString(36) !== "-Infinity") { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(36) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js index bc2190c3e01e0bbfaaf51df29db133ff4889e131..cc6b6aadc11f2cb63c5e5a97123af284463c29ef 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js @@ -8,65 +8,57 @@ description: radix is 1 ---*/ //CHECK#1 -try{ +try { var n = Number.prototype.toString(1); $ERROR('#1: Number.prototype.toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#2 -try{ +try { var n = (new Number()).toString(1); $ERROR('#2: (new Number()).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#3 -try{ +try { var n = (new Number(0)).toString(1); $ERROR('#3: (new Number(0)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#4 -try{ +try { var n = (new Number(-1)).toString(1); $ERROR('#4: (new Number(-1)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#5 -try{ - var n =(new Number(1)).toString(1); +try { + var n = (new Number(1)).toString(1); $ERROR('#5: (new Number(1)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#6 -try{ - var n =(new Number(Number.NaN)).toString(1); +try { + var n = (new Number(Number.NaN)).toString(1); $ERROR('#6: (new Number(Number.NaN)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#7 -try{ - var n =(new Number(Number.POSITIVE_INFINITY)).toString(1); +try { + var n = (new Number(Number.POSITIVE_INFINITY)).toString(1); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#8 -try{ - var n =(new Number(Number.NEGATIVE_INFINITY)).toString(1); +try { + var n = (new Number(Number.NEGATIVE_INFINITY)).toString(1); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js index e26c3aa2900efdfd75184c4049f4584a92cdcedf..1033c384fbf00a8dcf3786b7925e165325df3ba3 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js @@ -8,65 +8,57 @@ description: radix is 37 ---*/ //CHECK#1 -try{ - var n =Number.prototype.toString(37); +try { + var n = Number.prototype.toString(37); $ERROR('#1: Number.prototype.toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#2 -try{ - var n =(new Number()).toString(37); +try { + var n = (new Number()).toString(37); $ERROR('#2: (new Number()).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#3 -try{ - var n =(new Number(0)).toString(37); +try { + var n = (new Number(0)).toString(37); $ERROR('#3: (new Number(0)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#4 -try{ - var n =(new Number(-1)).toString(37); +try { + var n = (new Number(-1)).toString(37); $ERROR('#4: (new Number(-1)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#5 -try{ - var n =(new Number(1)).toString(37); +try { + var n = (new Number(1)).toString(37); $ERROR('#5: (new Number(1)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#6 -try{ - var n =(new Number(Number.NaN)).toString(37); +try { + var n = (new Number(Number.NaN)).toString(37); $ERROR('#6: (new Number(Number.NaN)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#7 -try{ - var n =(new Number(Number.POSITIVE_INFINITY)).toString(37); +try { + var n = (new Number(Number.POSITIVE_INFINITY)).toString(37); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#8 -try{ - var n =(new Number(Number.NEGATIVE_INFINITY)).toString(37); +try { + var n = (new Number(Number.NEGATIVE_INFINITY)).toString(37); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js index a612293269468cd3a02771afc118b70547a0ef42..8c7b1ca54a67fcea616b61a9aec6538505dd2bd0 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js @@ -8,65 +8,57 @@ description: radix is null value ---*/ //CHECK#1 -try{ +try { var n = Number.prototype.toString(null); $ERROR('#1: Number.prototype.toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#2 -try{ +try { var n = (new Number()).toString(null); $ERROR('#2: (new Number()).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#3 -try{ +try { var n = (new Number(0)).toString(null); $ERROR('#3: (new Number(0)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#4 -try{ +try { var n = (new Number(-1)).toString(null); $ERROR('#4: (new Number(-1)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#5 -try{ +try { var n = (new Number(1)).toString(null); $ERROR('#5: (new Number(1)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#6 -try{ +try { var n = (new Number(Number.NaN)).toString(null); $ERROR('#6: (new Number(Number.NaN)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#7 -try{ +try { var n = (new Number(Number.POSITIVE_INFINITY)).toString(null); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#8 -try{ +try { var n = (new Number(Number.NEGATIVE_INFINITY)).toString(null); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js index 9437e809cde5e059dfcdb198c31e129a31547967..5a42dc9cf23b3f4ffa46259f0ae5ff52889958dc 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js @@ -8,65 +8,57 @@ description: radix is 0 ---*/ //CHECK#1 -try{ +try { var n = Number.prototype.toString(0); $ERROR('#1: Number.prototype.toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#2 -try{ +try { var n = (new Number()).toString(0); $ERROR('#2: (new Number()).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#3 -try{ +try { var n = (new Number(0)).toString(0); $ERROR('#3: (new Number(0)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#4 -try{ +try { var n = (new Number(-1)).toString(0); $ERROR('#4: (new Number(-1)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#5 -try{ +try { var n = (new Number(1)).toString(0); $ERROR('#5: (new Number(1)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#6 -try{ +try { var n = (new Number(Number.NaN)).toString(0); $ERROR('#6: (new Number(Number.NaN)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#7 -try{ +try { var n = (new Number(Number.POSITIVE_INFINITY)).toString(0); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#8 -try{ +try { var n = (new Number(Number.NEGATIVE_INFINITY)).toString(0); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js index f057f3b1c95e9a1a9dc1b4ef35f635083d7963d3..44d3c72f81fdc3f04508b89b7ccc1ba0b6c40cf5 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js @@ -11,27 +11,27 @@ description: transferring to the String objects ---*/ //CHECK#1 -try{ +try { var s1 = new String(); s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new String(); s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js index ba45672d6d6edebbf72500a4ec720df607a77724..23a395ee14b96d3e628834ff0aa2be202e3b9b39 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js @@ -11,27 +11,27 @@ description: transferring to the Boolean objects ---*/ //CHECK#1 -try{ +try { var s1 = new Boolean(); s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new Boolean(); s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js index 182a873aa462dd3ada8e527a15c3f254e40a5ad9..c0fb163144b37b22cac7c58085a0ccf0bb23cf52 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js @@ -11,27 +11,27 @@ description: transferring to the Date objects ---*/ //CHECK#1 -try{ +try { var s1 = new Date(); s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new Date(); s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js index bb62879f219d9c42ad1a3deb94bc24eb2e9c0209..32950e329d88da7d8270bdb68d6f0bdcc0bddc6b 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js @@ -11,27 +11,27 @@ description: transferring to the Object objects ---*/ //CHECK#1 -try{ +try { var s1 = new Object(); s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new Object(); s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js index 01e34d92a4c7d0f40bb8dc839b9a20d2ccc36e81..fc0f76e86efbfeb203a3af4641b408b0bd96c1c4 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js @@ -11,27 +11,31 @@ description: transferring to the other objects ---*/ //CHECK#1 -try{ - var s1 = {x: 1}; +try { + var s1 = { + x: 1 + }; s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ - var s2 = {x: 1}; +try { + var s2 = { + x: 1 + }; s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js index 1345810ac78a5e5bce57187e96972e1cf0fb605f..0bb16d143b412c0861ec89214127e1b321d6e277 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js @@ -8,27 +8,27 @@ description: Call without argument ---*/ //CHECK#1 -if(Number.prototype.valueOf() !== 0){ +if (Number.prototype.valueOf() !== 0) { $ERROR('#1: Number.prototype.valueOf() === 0'); } //CHECK#2 -if((new Number()).valueOf() !== 0){ +if ((new Number()).valueOf() !== 0) { $ERROR('#2: (new Number()).valueOf() === 0'); } //CHECK#3 -if((new Number(0)).valueOf() !== 0){ +if ((new Number(0)).valueOf() !== 0) { $ERROR('#3: (new Number(0)).valueOf() === 0'); } //CHECK#4 -if((new Number(-1)).valueOf() !== -1){ +if ((new Number(-1)).valueOf() !== -1) { $ERROR('#4: (new Number(-1)).valueOf() === -1'); } //CHECK#5 -if((new Number(1)).valueOf() !== 1){ +if ((new Number(1)).valueOf() !== 1) { $ERROR('#5: (new Number(1)).valueOf() === 1'); } @@ -40,11 +40,11 @@ assert.sameValue( ); //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).valueOf() !== Number.POSITIVE_INFINITY){ +if ((new Number(Number.POSITIVE_INFINITY)).valueOf() !== Number.POSITIVE_INFINITY) { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).valueOf() === Infinity'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).valueOf() !== Number.NEGATIVE_INFINITY){ +if ((new Number(Number.NEGATIVE_INFINITY)).valueOf() !== Number.NEGATIVE_INFINITY) { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).valueOf() === -Infinity'); } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js index 4f4a443894d3e6873111949253e473055e50484e..ff22bf71f24344e13811f807e26d41b70a21ee3d 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js @@ -8,27 +8,27 @@ description: calling with argument ---*/ //CHECK#1 -if(Number.prototype.valueOf("argument") !== 0){ +if (Number.prototype.valueOf("argument") !== 0) { $ERROR('#1: Number.prototype.valueOf("argument") === 0'); } //CHECK#2 -if((new Number()).valueOf("argument") !== 0){ +if ((new Number()).valueOf("argument") !== 0) { $ERROR('#2: (new Number()).valueOf("argument") === 0'); } //CHECK#3 -if((new Number(0)).valueOf("argument") !== 0){ +if ((new Number(0)).valueOf("argument") !== 0) { $ERROR('#3: (new Number(0)).valueOf("argument") === 0'); } //CHECK#4 -if((new Number(-1)).valueOf("argument") !== -1){ +if ((new Number(-1)).valueOf("argument") !== -1) { $ERROR('#4: (new Number(-1)).valueOf("argument") === -1'); } //CHECK#5 -if((new Number(1)).valueOf("argument") !== 1){ +if ((new Number(1)).valueOf("argument") !== 1) { $ERROR('#5: (new Number(1)).valueOf("argument") === 1'); } @@ -40,11 +40,11 @@ assert.sameValue( ); //CHECK#7 -if((new Number(Number.POSITIVE_INFINITY)).valueOf("argument") !== Number.POSITIVE_INFINITY){ +if ((new Number(Number.POSITIVE_INFINITY)).valueOf("argument") !== Number.POSITIVE_INFINITY) { $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).valueOf("argument") === Infinity'); } //CHECK#8 -if((new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") !== Number.NEGATIVE_INFINITY){ +if ((new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") !== Number.NEGATIVE_INFINITY) { $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") === -Infinity'); } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js index eae012d6348efe76f05dd8567e871228a8373c8b..dc32174b42ee246ae53fe2714610270af00d2e57 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js @@ -11,27 +11,27 @@ description: transferring to the String objects ---*/ //CHECK#1 -try{ +try { var s1 = new String(); s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new String(); s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js index 56521db0abf36df9e9f6037e81f7d92b38e71292..61c6c6369e3e00ba4f6217a29727e24ef7c925a7 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js @@ -11,27 +11,27 @@ description: transferring to the Boolean objects ---*/ //CHECK#1 -try{ +try { var s1 = new Boolean(); s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new Boolean(); s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js index 5d7a68dcd14055616af9b3e59fc562e1d7872313..503ca141e79ba85ea28413177c8aa59d027e8579 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js @@ -11,27 +11,27 @@ description: transferring to the Date objects ---*/ //CHECK#1 -try{ +try { var s1 = new Date(); s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new Date(); s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js index e6011f8d32eede7e8dac21f527b253ef01aec65d..af1438ba8dbac373b5bd4f97f59c053cd84eec8b 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js @@ -11,27 +11,27 @@ description: transferring to the Object objects ---*/ //CHECK#1 -try{ +try { var s1 = new Object(); s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ +try { var s2 = new Object(); s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js index 625dc68dee2fbea91186be70d3708c4845e63d4f..eb862fd33ff6f7205e0ccd7388ec0fb1988fbfa9 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js @@ -11,27 +11,31 @@ description: transferring to the other objects ---*/ //CHECK#1 -try{ - var s1 = {x: 1}; +try { + var s1 = { + x: 1 + }; s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ - var s2 = {x: 1}; +try { + var s2 = { + x: 1 + }; s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js b/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js index 36d2d44bfe4f27618c81c1291b746baaaa4f254d..7f840db50ec0b73e55cc9a95af90ce6273ba89e2 100644 --- a/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js +++ b/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js @@ -26,4 +26,3 @@ features: [numeric-separator-literal] ---*/ assert.sameValue(Number("1.0e+10_0"), NaN, "1.0e+10_0"); - diff --git a/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js b/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js index 1b48592c98ffa0758140b506803d10cc897524bc..888e62fb140e050c006eb10b46e7fd9f43673c99 100644 --- a/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js +++ b/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js @@ -37,5 +37,3 @@ assert.sameValue(Number("6_6"), NaN, "6_6"); assert.sameValue(Number("7_7"), NaN, "7_7"); assert.sameValue(Number("8_8"), NaN, "8_8"); assert.sameValue(Number("9_9"), NaN, "9_9"); - - diff --git a/test/built-ins/Object/S15.2.1.1_A1_T1.js b/test/built-ins/Object/S15.2.1.1_A1_T1.js index a7b7554443ec3c6ac1f6f8e755d39ef683b88b21..ed1059c6824918c81e755c7543a0f007af008fd7 100644 --- a/test/built-ins/Object/S15.2.1.1_A1_T1.js +++ b/test/built-ins/Object/S15.2.1.1_A1_T1.js @@ -11,24 +11,24 @@ description: Creating Object(null) and checking its properties var __obj = Object(null); -var n__obj = new Object(null); +var n__obj = new Object(null); -if (__obj.toString() !== n__obj.toString()){ - $ERROR('#1'); +if (__obj.toString() !== n__obj.toString()) { + $ERROR('#1'); } if (__obj.constructor !== n__obj.constructor) { - $ERROR('#2'); + $ERROR('#2'); } if (__obj.prototype !== n__obj.prototype) { - $ERROR('#3'); -} + $ERROR('#3'); +} if (__obj.toLocaleString() !== n__obj.toLocaleString()) { - $ERROR('#4'); + $ERROR('#4'); } if (typeof __obj !== typeof n__obj) { - $ERROR('#5'); + $ERROR('#5'); } diff --git a/test/built-ins/Object/S15.2.1.1_A1_T2.js b/test/built-ins/Object/S15.2.1.1_A1_T2.js index db9f99a7040f78e6ad933b518a2de4f84ca074d7..d49d7c709fa6cacf5e6ab0d9cec413daabe5c61e 100644 --- a/test/built-ins/Object/S15.2.1.1_A1_T2.js +++ b/test/built-ins/Object/S15.2.1.1_A1_T2.js @@ -16,22 +16,22 @@ var __obj = Object(void 0); var n__obj = new Object(void 0); -if (__obj.toString() !== n__obj.toString()){ - $ERROR('#1'); +if (__obj.toString() !== n__obj.toString()) { + $ERROR('#1'); } if (__obj.constructor !== n__obj.constructor) { - $ERROR('#2'); + $ERROR('#2'); } if (__obj.prototype !== n__obj.prototype) { - $ERROR('#3'); -} + $ERROR('#3'); +} if (__obj.toLocaleString() !== n__obj.toLocaleString()) { - $ERROR('#4'); + $ERROR('#4'); } if (typeof __obj !== typeof n__obj) { - $ERROR('#5'); + $ERROR('#5'); } diff --git a/test/built-ins/Object/S15.2.1.1_A1_T3.js b/test/built-ins/Object/S15.2.1.1_A1_T3.js index 4f572b14e3bd7aaefc29e424c2a34ad40382fb03..47685eae4309d597b28de22d4008e8f9f483a694 100644 --- a/test/built-ins/Object/S15.2.1.1_A1_T3.js +++ b/test/built-ins/Object/S15.2.1.1_A1_T3.js @@ -12,23 +12,23 @@ description: Creating Object() and checking its properties var __obj = Object(); var n__obj = new Object(); - -if (__obj.toString() !== n__obj.toString()){ - $ERROR('#1'); + +if (__obj.toString() !== n__obj.toString()) { + $ERROR('#1'); } if (__obj.constructor !== n__obj.constructor) { - $ERROR('#2'); + $ERROR('#2'); } if (__obj.prototype !== n__obj.prototype) { - $ERROR('#3'); -} + $ERROR('#3'); +} if (__obj.toLocaleString() !== n__obj.toLocaleString()) { - $ERROR('#4'); + $ERROR('#4'); } if (typeof __obj !== typeof n__obj) { - $ERROR('#5'); + $ERROR('#5'); } diff --git a/test/built-ins/Object/S15.2.1.1_A1_T4.js b/test/built-ins/Object/S15.2.1.1_A1_T4.js index ebfbe5d233894b4217e06bccf48c6a24f69f7850..15a35d0a05f846fc5129541de31a85677ced7668 100644 --- a/test/built-ins/Object/S15.2.1.1_A1_T4.js +++ b/test/built-ins/Object/S15.2.1.1_A1_T4.js @@ -11,24 +11,24 @@ description: Creating Object(undefined) and checking its properties var __obj = Object(undefined); -var n__obj = new Object(undefined); +var n__obj = new Object(undefined); -if (__obj.toString() !== n__obj.toString()){ - $ERROR('#1'); +if (__obj.toString() !== n__obj.toString()) { + $ERROR('#1'); } if (__obj.constructor !== n__obj.constructor) { - $ERROR('#2'); + $ERROR('#2'); } if (__obj.prototype !== n__obj.prototype) { - $ERROR('#3'); -} + $ERROR('#3'); +} if (__obj.toLocaleString() !== n__obj.toLocaleString()) { - $ERROR('#4'); + $ERROR('#4'); } if (typeof __obj !== typeof n__obj) { - $ERROR('#5'); + $ERROR('#5'); } diff --git a/test/built-ins/Object/S15.2.1.1_A1_T5.js b/test/built-ins/Object/S15.2.1.1_A1_T5.js index 5d1bf5bfe3ed2a114e3d3624ea3b1c780400cd57..bf55633125505f7707484da590db7c805eba6d1e 100644 --- a/test/built-ins/Object/S15.2.1.1_A1_T5.js +++ b/test/built-ins/Object/S15.2.1.1_A1_T5.js @@ -11,26 +11,26 @@ description: Creating Object(x) and checking its properties var __obj = Object(x); -var n__obj = new Object(x); +var n__obj = new Object(x); -if (__obj.toString() !== n__obj.toString()){ - $ERROR('#1'); +if (__obj.toString() !== n__obj.toString()) { + $ERROR('#1'); } if (__obj.constructor !== n__obj.constructor) { - $ERROR('#2'); + $ERROR('#2'); } if (__obj.prototype !== n__obj.prototype) { - $ERROR('#3'); -} + $ERROR('#3'); +} if (__obj.toLocaleString() !== n__obj.toLocaleString()) { - $ERROR('#4'); + $ERROR('#4'); } if (typeof __obj !== typeof n__obj) { - $ERROR('#5'); + $ERROR('#5'); } var x; diff --git a/test/built-ins/Object/S15.2.1.1_A2_T1.js b/test/built-ins/Object/S15.2.1.1_A2_T1.js index a6d56a54a01a14956c1987515a34726bc2e39f69..48bfbfd6e19123f6ffaaaae04c580b75cc140885 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T1.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T1.js @@ -11,7 +11,7 @@ description: Calling Object function with boolean argument value var bool = true; -if(typeof bool !== 'boolean'){ +if (typeof bool !== 'boolean') { $ERROR('#1: bool should be boolean primitive'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T10.js b/test/built-ins/Object/S15.2.1.1_A2_T10.js index bc3778df1981222ae9879c6b178fc49263ecf92c..c0f0606d782355406ac3f921e2e1f0bbf6a0db8d 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T10.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T10.js @@ -9,7 +9,7 @@ es5id: 15.2.1.1_A2_T10 description: Calling Object function with array of numbers as argument value ---*/ -var arr = [1,2,3]; +var arr = [1, 2, 3]; //CHECK#1 if (typeof arr !== 'object') { @@ -21,6 +21,6 @@ var n_obj = Object(arr); arr.push(4); //CHECK#2 -if ((n_obj !== arr)||(n_obj[3]!==4)) { +if ((n_obj !== arr) || (n_obj[3] !== 4)) { $ERROR('#2: Object([1,2,3]) returns ToObject([1,2,3])'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T11.js b/test/built-ins/Object/S15.2.1.1_A2_T11.js index 53e4e3884dd9913a146563303761ff930cb0562b..03ca6fbccb114bd4f5bdc26c5eae0f0ca4682d2b 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T11.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T11.js @@ -14,10 +14,12 @@ if (typeof func !== 'undefined') { $ERROR('#1: function expression can\'t be declarated'); } -var n_obj = Object(function func(){return 1;}); +var n_obj = Object(function func() { + return 1; +}); //CHECK#2 -if ((n_obj.constructor !== Function)||(n_obj()!==1)) { +if ((n_obj.constructor !== Function) || (n_obj() !== 1)) { $ERROR('#2: Object(function func(){return 1;}) returns function'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T12.js b/test/built-ins/Object/S15.2.1.1_A2_T12.js index da3f46fd03411bbe7c61764d4ecea008c9d8e7fc..820956ed6b802d72e0f43832cc30f57bbd7b7a5d 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T12.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T12.js @@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T12 description: Calling Object function with numeric expression as argument value ---*/ -var obj = Object(1.1*([].length+{q:1}["q"])); +var obj = Object(1.1 * ([].length + { + q: 1 +}["q"])); //CHECK#2 if (typeof obj !== "object") { @@ -22,7 +24,7 @@ if (obj.constructor !== Number) { } //CHECK#4 -if ((obj != 1.1)||(obj === 1.1)) { +if ((obj != 1.1) || (obj === 1.1)) { $ERROR('#4: Object(expression) returns ToObject(expression)'); } // diff --git a/test/built-ins/Object/S15.2.1.1_A2_T13.js b/test/built-ins/Object/S15.2.1.1_A2_T13.js index 09ba92926ff6d28b41c924b18093fe82d91ea18d..d301fb5eccfca45ec4a8695db13bf08fd2598598 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T13.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T13.js @@ -9,7 +9,7 @@ es5id: 15.2.1.1_A2_T13 description: Calling Object function with boolean expression as argument value ---*/ -var obj = Object((1===1)&&(!false)); +var obj = Object((1 === 1) && (!false)); //CHECK#1 if (obj.constructor !== Boolean) { @@ -27,6 +27,6 @@ if (!(obj)) { } //CHECK#3 -if (obj===true) { +if (obj === true) { $ERROR('#3: Object(expression) returns ToObject(expression)'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T14.js b/test/built-ins/Object/S15.2.1.1_A2_T14.js index 02fe89f795899f32def72b9dfe38773742366e02..69e429931535c585c8df196d9a1a17c27033c43b 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T14.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T14.js @@ -11,7 +11,7 @@ description: > argument value ---*/ -var obj = Object(""+1); +var obj = Object("" + 1); //CHECK#2 if (obj.constructor !== String) { @@ -24,6 +24,6 @@ if (typeof obj !== "object") { } //CHECK#4 -if ((obj != "1")||(obj === "1")) { +if ((obj != "1") || (obj === "1")) { $ERROR('#4: Object(expression) returns ToObject(expression)'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T2.js b/test/built-ins/Object/S15.2.1.1_A2_T2.js index 1a71e961efd637dc96d6b1ddaa162968a27abe22..d9241c2ce0849f2d02e4bb399a04a3d577f0e9d9 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T2.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T2.js @@ -12,7 +12,7 @@ description: Calling Object function with number argument value var num = 1.1; // CHECK#1 -if(typeof num !== 'number'){ +if (typeof num !== 'number') { $ERROR('#1: num = 1.1 should be Number primitive'); } @@ -29,7 +29,7 @@ if (obj.constructor !== Number) { } //CHECK#4 -if ((obj != 1.1)||(obj === 1.1)) { +if ((obj != 1.1) || (obj === 1.1)) { $ERROR('#4: Object(1.1) returns ToObject(1.1)'); } // diff --git a/test/built-ins/Object/S15.2.1.1_A2_T3.js b/test/built-ins/Object/S15.2.1.1_A2_T3.js index 8a99ff966016ae02503e645f4fe97ac182eaef0a..f0dc0a615814f730406d5f31f302f12ed4005ef2 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T3.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T3.js @@ -12,7 +12,7 @@ description: Calling Object function with string argument value var str = 'Luke Skywalker'; // CHECK#1 -if (typeof str !== 'string') { +if (typeof str !== 'string') { $ERROR('#1: "Luke Skywalker" should be a String primitive'); } @@ -29,6 +29,6 @@ if (typeof obj !== "object") { } //CHECK#4 -if ((obj != "Luke Skywalker")||(obj === "Luke Skywalker")) { +if ((obj != "Luke Skywalker") || (obj === "Luke Skywalker")) { $ERROR('#4: Object("Luke Skywalker") returns ToObject("Luke Skywalker")'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T4.js b/test/built-ins/Object/S15.2.1.1_A2_T4.js index 6d9cd33c8b18a9fca7757eb9b099b2e97d38daa5..21090a7a1d084e55dad05ce71afd6ff2e8650386 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T4.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T4.js @@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T4 description: Calling Object function with object argument value ---*/ -var obj = {flag:true}; +var obj = { + flag: true +}; //CHECK#1 if (typeof(obj) !== 'object') { @@ -19,6 +21,6 @@ if (typeof(obj) !== 'object') { var n_obj = Object(obj); //CHECK#2 -if ((n_obj !== obj)||(!(n_obj['flag']))) { +if ((n_obj !== obj) || (!(n_obj['flag']))) { $ERROR('#2: Object({flag:true}) returns ToObject({flag:true})'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T5.js b/test/built-ins/Object/S15.2.1.1_A2_T5.js index 0b230408913e86463bc873984dd0f69880e6c9c0..ff1c17d8bfcb4a87064052327c2a87266cf1f9b6 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T5.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T5.js @@ -12,7 +12,7 @@ description: Calling Object function with NaN argument value var num = NaN; // CHECK#1 -if(typeof num !== 'number'){ +if (typeof num !== 'number') { $ERROR('#1: num = NaN should have number type'); } @@ -24,7 +24,7 @@ if (obj.constructor !== Number) { } //CHECK#3 -if (typeof obj!=="object") { +if (typeof obj !== "object") { $ERROR('#2: Object(NaN) returns ToObject(NaN)'); } // diff --git a/test/built-ins/Object/S15.2.1.1_A2_T6.js b/test/built-ins/Object/S15.2.1.1_A2_T6.js index 9621af10f21afbbb6cd1bc85033fd9d11cce0d6c..0d1d4a3bb566342ecadb5dcdf22600f5d2932bcb 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T6.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T6.js @@ -12,7 +12,7 @@ description: Calling Object function with Infinity argument value var num = Infinity; // CHECK#1 -if(typeof num !== 'number'){ +if (typeof num !== 'number') { $ERROR('#1: num = Infinity should be a Number primitive'); } @@ -24,11 +24,11 @@ if (obj.constructor !== Number) { } //CHECK#3 -if (typeof obj!=="object") { +if (typeof obj !== "object") { $ERROR('#3: Object(Infinity) returns ToObject(Infinity)'); } //CHECK#4 -if ((obj != Infinity)||(obj === Infinity)) { +if ((obj != Infinity) || (obj === Infinity)) { $ERROR('#4: Object(Infinity) returns ToObject(Infinity)'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T7.js b/test/built-ins/Object/S15.2.1.1_A2_T7.js index 27fa0b2b80a865102badf0186457a77577c0425e..33d4117cd7214d83c38823f16ff9ebcbd8d0a4a6 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T7.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T7.js @@ -29,6 +29,6 @@ if (typeof obj !== "object") { } //CHECK#4 -if ((obj != "")||(obj === "")) { +if ((obj != "") || (obj === "")) { $ERROR('#4: Object("") returns ToObject("")'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T8.js b/test/built-ins/Object/S15.2.1.1_A2_T8.js index 16b04489f6d3c27e2aab9badeac020c377185d48..a55517655f4833fef765ddf9fce1a06040e0e7f1 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T8.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T8.js @@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T8 description: Calling Object function with function variable argument value ---*/ -var func = function(){return 1;}; +var func = function() { + return 1; +}; //CHECK#1 if (typeof func !== 'function') { @@ -19,6 +21,6 @@ if (typeof func !== 'function') { var n_obj = Object(func); //CHECK#2 -if ((n_obj !== func)||(n_obj()!==1)) { +if ((n_obj !== func) || (n_obj() !== 1)) { $ERROR('#2: Object(function) returns function'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T9.js b/test/built-ins/Object/S15.2.1.1_A2_T9.js index c41c5b646c77125890116b52f1dcf7d58ad8eae3..223566efc1ef541feb2f2bddcbf6a058b0dcd71d 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T9.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T9.js @@ -19,8 +19,10 @@ if (typeof func !== 'function') { var n_obj = Object(func); //CHECK#2 -if ((n_obj !== func)||(n_obj()!==1)) { +if ((n_obj !== func) || (n_obj() !== 1)) { $ERROR('#2: Object(function) returns function'); } -function func(){return 1;}; +function func() { + return 1; +}; diff --git a/test/built-ins/Object/S15.2.1.1_A3_T1.js b/test/built-ins/Object/S15.2.1.1_A3_T1.js index 49a0d680c8c0dd97831d9e2d54c3a715452d6fc8..de23e0a570b5ccf86e1f44b10b404ac531d6914d 100644 --- a/test/built-ins/Object/S15.2.1.1_A3_T1.js +++ b/test/built-ins/Object/S15.2.1.1_A3_T1.js @@ -9,7 +9,7 @@ es5id: 15.2.1.1_A3_T1 description: Creating an object with "Object(1,2,3)" ---*/ -var obj = Object(1,2,3); +var obj = Object(1, 2, 3); //CHECK#1 if (obj.constructor !== Number) { @@ -22,6 +22,6 @@ if (typeof obj !== "object") { } //CHECK#3 -if ((obj != 1)||(obj === 1)) { +if ((obj != 1) || (obj === 1)) { $ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;'); } diff --git a/test/built-ins/Object/S15.2.1.1_A3_T2.js b/test/built-ins/Object/S15.2.1.1_A3_T2.js index 9e4739970da24f6b142987a8fbc6b8fc181ae151..a19658eaaa367bb7255492cfa09f30db63d963bf 100644 --- a/test/built-ins/Object/S15.2.1.1_A3_T2.js +++ b/test/built-ins/Object/S15.2.1.1_A3_T2.js @@ -9,7 +9,7 @@ es5id: 15.2.1.1_A3_T2 description: Creating an object with "Object(null,2,3)" ---*/ -var obj = Object(null,2,3); +var obj = Object(null, 2, 3); //CHECK#1 if (obj.constructor !== Object) { diff --git a/test/built-ins/Object/S15.2.1.1_A3_T3.js b/test/built-ins/Object/S15.2.1.1_A3_T3.js index 5666f47ed0e824959deffbf5a55f57313c158bec..6d45592dae880ad88e0519bbcc78adff394fb744 100644 --- a/test/built-ins/Object/S15.2.1.1_A3_T3.js +++ b/test/built-ins/Object/S15.2.1.1_A3_T3.js @@ -9,7 +9,7 @@ es5id: 15.2.1.1_A3_T3 description: Creating an object with "Object((null,2,3),1,2)" ---*/ -var obj = Object((null,2,3),1,2); +var obj = Object((null, 2, 3), 1, 2); //CHECK#1 if (obj.constructor !== Number) { @@ -22,6 +22,6 @@ if (typeof obj !== "object") { } //CHECK#3 -if ((obj != 3)||(obj === 3)) { +if ((obj != 3) || (obj === 3)) { $ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;'); } diff --git a/test/built-ins/Object/S15.2.2.1_A1_T1.js b/test/built-ins/Object/S15.2.2.1_A1_T1.js index bacba29d835aa7a8b544a35ea69799e1ab99447b..f2ca067e80482852737a6400576ddb8b440d5ead 100644 --- a/test/built-ins/Object/S15.2.2.1_A1_T1.js +++ b/test/built-ins/Object/S15.2.2.1_A1_T1.js @@ -32,7 +32,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) { } // CHECK#3 -var to_string_result = '[object '+ 'Object' +']'; +var to_string_result = '[object ' + 'Object' + ']'; if (obj.toString() !== to_string_result) { $ERROR('#3: when new Object() calls the [[Class]] property of the newly constructed object is set to "Object".'); } diff --git a/test/built-ins/Object/S15.2.2.1_A1_T2.js b/test/built-ins/Object/S15.2.2.1_A1_T2.js index a54cffbef1ef8e3a26f32a24620aeb67f4a4cc2d..9d073d21583c9347822c027fad91abd74b9a142d 100644 --- a/test/built-ins/Object/S15.2.2.1_A1_T2.js +++ b/test/built-ins/Object/S15.2.2.1_A1_T2.js @@ -33,7 +33,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) { } // CHECK#3 -var to_string_result = '[object '+ 'Object' +']'; +var to_string_result = '[object ' + 'Object' + ']'; if (obj.toString() !== to_string_result) { $ERROR('#3: when new Object(undefined) calls the [[Class]] property of the newly constructed object is set to "Object".'); } diff --git a/test/built-ins/Object/S15.2.2.1_A1_T3.js b/test/built-ins/Object/S15.2.2.1_A1_T3.js index f6845dd2827df287d986e218140a4aba2560580e..754853b2115d4ff24320fa06b36f1c1d3ea2cd42 100644 --- a/test/built-ins/Object/S15.2.2.1_A1_T3.js +++ b/test/built-ins/Object/S15.2.2.1_A1_T3.js @@ -32,7 +32,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) { } // CHECK#3 -var to_string_result = '[object '+ 'Object' +']'; +var to_string_result = '[object ' + 'Object' + ']'; if (obj.toString() !== to_string_result) { $ERROR('#3: when new Object(null) calls the [[Class]] property of the newly constructed object is set to "Object".'); } diff --git a/test/built-ins/Object/S15.2.2.1_A1_T4.js b/test/built-ins/Object/S15.2.2.1_A1_T4.js index 36b2fe8d5b13c3d12eb5a3aaf84ee61b0e431da5..c04305b17bbc608af27af009db24bc1eedfe8dcf 100644 --- a/test/built-ins/Object/S15.2.2.1_A1_T4.js +++ b/test/built-ins/Object/S15.2.2.1_A1_T4.js @@ -32,7 +32,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) { } // CHECK#3 -var to_string_result = '[object '+ 'Object' +']'; +var to_string_result = '[object ' + 'Object' + ']'; if (obj.toString() !== to_string_result) { $ERROR('#3: when new Object(undefined) calls the [[Class]] property of the newly constructed object is set to "Object".'); } diff --git a/test/built-ins/Object/S15.2.2.1_A1_T5.js b/test/built-ins/Object/S15.2.2.1_A1_T5.js index ccd859a6b0449bda0db1e4de751e6e208c3394c5..b2835a9b8626c6dc21a2fc90d8f8e7c62f43e2fa 100644 --- a/test/built-ins/Object/S15.2.2.1_A1_T5.js +++ b/test/built-ins/Object/S15.2.2.1_A1_T5.js @@ -34,7 +34,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) { } // CHECK#3 -var to_string_result = '[object '+ 'Object' +']'; +var to_string_result = '[object ' + 'Object' + ']'; if (obj.toString() !== to_string_result) { $ERROR('#3: when new Object(undefined) calls the [[Class]] property of the newly constructed object is set to "Object".'); } diff --git a/test/built-ins/Object/S15.2.2.1_A2_T1.js b/test/built-ins/Object/S15.2.2.1_A2_T1.js index ef78c47baab79b42deb708e847e5f6f4f7f1baa1..1740d2fb234af2a3ce1a66c2e86be728fd7506d9 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T1.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T1.js @@ -9,7 +9,9 @@ es5id: 15.2.2.1_A2_T1 description: The value is Object ---*/ -var obj = {prop:1}; +var obj = { + prop: 1 +}; var n_obj = new Object(obj); diff --git a/test/built-ins/Object/S15.2.2.1_A2_T2.js b/test/built-ins/Object/S15.2.2.1_A2_T2.js index 20dcf2ab4303d9522b5fbad339b9245e921a7197..58fb4f0b539505390834610a49052bf384e6bcbf 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T2.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T2.js @@ -9,7 +9,9 @@ es5id: 15.2.2.1_A2_T2 description: The value is a function variable ---*/ -var func = function(){return 1;}; +var func = function() { + return 1; +}; var n_obj = new Object(func); diff --git a/test/built-ins/Object/S15.2.2.1_A2_T3.js b/test/built-ins/Object/S15.2.2.1_A2_T3.js index b6676e1126b1b9c25bc71857831c813dd4265cf3..2321141c2f3a34fb8449d9e4afa7312731ba23cd 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T3.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T3.js @@ -9,7 +9,7 @@ es5id: 15.2.2.1_A2_T3 description: The value is an array ---*/ -var arr = [1,2,3]; +var arr = [1, 2, 3]; var n_obj = new Object(arr); diff --git a/test/built-ins/Object/S15.2.2.1_A2_T5.js b/test/built-ins/Object/S15.2.2.1_A2_T5.js index ece80f45646167baec7cbe246faa4f5a297ad107..a0bb964544b9a88f90794f145b919993b7ccb4f5 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T5.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T5.js @@ -9,7 +9,7 @@ es5id: 15.2.2.1_A2_T5 description: The value is a Date object ---*/ -var obj = new Date(1978,3); +var obj = new Date(1978, 3); var n_obj = new Object(obj); @@ -19,6 +19,6 @@ if (n_obj !== obj) { } //CHECK#2 -if ((n_obj.getFullYear() !== 1978)||(n_obj.getMonth() !== 3)) { +if ((n_obj.getFullYear() !== 1978) || (n_obj.getMonth() !== 3)) { $ERROR('#2: When the Object constructor is called and if the value is an Object simply value returns.'); } diff --git a/test/built-ins/Object/S15.2.2.1_A2_T6.js b/test/built-ins/Object/S15.2.2.1_A2_T6.js index dd35d07dce15554e2f42d6100246a88ec2fafd7c..f2cdbfbf7832866bcc10f8037757675da4fd6b36 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T6.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T6.js @@ -21,4 +21,6 @@ if (n_obj() !== 1) { $ERROR('When the Object constructor is called and if the value is an Object simply value returns'); } -function func(){return 1;}; +function func() { + return 1; +}; diff --git a/test/built-ins/Object/S15.2.2.1_A2_T7.js b/test/built-ins/Object/S15.2.2.1_A2_T7.js index f2d898fa79516ea0fb9af106cbca8ca640cce519..a4cf47654c699002820e778a2958bc5b2f8bc40a 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T7.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T7.js @@ -14,7 +14,9 @@ if (typeof func !== 'undefined') { $ERROR('#0: function expression can\'t be declarated'); } -var n_obj = new Object(function func(){return 1;}); +var n_obj = new Object(function func() { + return 1; +}); //CHECK#1 if (n_obj.constructor !== Function) { diff --git a/test/built-ins/Object/S15.2.2.1_A3_T1.js b/test/built-ins/Object/S15.2.2.1_A3_T1.js index c1904f5e761c8f1211140767fbcba692bb0f879b..a1aca13ca6d4f7c21f54e8f443bafd619f8f8baf 100644 --- a/test/built-ins/Object/S15.2.2.1_A3_T1.js +++ b/test/built-ins/Object/S15.2.2.1_A3_T1.js @@ -12,7 +12,7 @@ description: Argument value is a nonempty string var str = 'Obi-Wan Kenobi'; //CHECK#1 -if (typeof str !== 'string') { +if (typeof str !== 'string') { $ERROR('#1: "Obi-Wan Kenobi" is NOT a String'); } @@ -30,11 +30,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != str) { +if (n_obj != str) { $ERROR('#4: When the Object constructor is called with String argument return ToObject(string)'); } //CHECK#5 -if ( n_obj === str) { +if (n_obj === str) { $ERROR('#5: When the Object constructor is called with String argument return ToObject(string)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A3_T2.js b/test/built-ins/Object/S15.2.2.1_A3_T2.js index d70da9bcfecb015b1f32d8e17d850971a4ca5f82..5b4a35edfb194e3beb692d1188c7b9d62c335375 100644 --- a/test/built-ins/Object/S15.2.2.1_A3_T2.js +++ b/test/built-ins/Object/S15.2.2.1_A3_T2.js @@ -12,7 +12,7 @@ description: Argument value is an empty string var str = ''; //CHECK#1 -if (typeof str !== 'string') { +if (typeof str !== 'string') { $ERROR('#1: "" is NOT a String'); } @@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != str) { +if (n_obj != str) { $ERROR('#4: When the Object constructor is called with String argument return ToObject(string)'); } //CHECK#5 -if ( n_obj === str) { +if (n_obj === str) { $ERROR('#5: When the Object constructor is called with String argument return ToObject(string)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A3_T3.js b/test/built-ins/Object/S15.2.2.1_A3_T3.js index e79b57a3447dfae4d803609344d8746b6c7e2d3a..8210a7d3e4e7083ccdabf5fe8f13d194cdbe0484 100644 --- a/test/built-ins/Object/S15.2.2.1_A3_T3.js +++ b/test/built-ins/Object/S15.2.2.1_A3_T3.js @@ -9,7 +9,7 @@ es5id: 15.2.2.1_A3_T3 description: Argument value is sum of empty string and number ---*/ -var n_obj = new Object(""+1); +var n_obj = new Object("" + 1); //CHECK#2 if (n_obj.constructor !== String) { @@ -22,11 +22,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != "1") { +if (n_obj != "1") { $ERROR('#4: When the Object constructor is called with String argument return ToObject(string)'); } //CHECK#5 -if ( n_obj === "1") { +if (n_obj === "1") { $ERROR('#5: When the Object constructor is called with String argument return ToObject(string)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A4_T1.js b/test/built-ins/Object/S15.2.2.1_A4_T1.js index 247ad06ea51178a2bd7f7d8c67920bdfb09bae7b..f3238f139c5ad311971802dae89f2d37c6d899b4 100644 --- a/test/built-ins/Object/S15.2.2.1_A4_T1.js +++ b/test/built-ins/Object/S15.2.2.1_A4_T1.js @@ -12,7 +12,7 @@ description: Argument value is "true" var bool = true; //CHECK#1 -if (typeof bool !== 'boolean') { +if (typeof bool !== 'boolean') { $ERROR('#1: true is NOT a boolean'); } @@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != bool) { +if (n_obj != bool) { $ERROR('#4: When the Object constructor is called with Boolean argument return ToObject(boolean)'); } //CHECK#5 -if ( n_obj === bool) { +if (n_obj === bool) { $ERROR('#5: When the Object constructor is called with Boolean argument return ToObject(boolean)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A4_T2.js b/test/built-ins/Object/S15.2.2.1_A4_T2.js index 7e39823dbfa2ae5b0f146c51f5d6df6da3755672..c84eeeed56c3a70e725198ae60b2b78b5d5941bf 100644 --- a/test/built-ins/Object/S15.2.2.1_A4_T2.js +++ b/test/built-ins/Object/S15.2.2.1_A4_T2.js @@ -12,7 +12,7 @@ description: Argument value is "false" var bool = false; //CHECK#1 -if (typeof bool !== 'boolean') { +if (typeof bool !== 'boolean') { $ERROR('#1: false is NOT a boolean'); } @@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != bool) { +if (n_obj != bool) { $ERROR('#4: When the Object constructor is called with Boolean argument return ToObject(boolean)'); } //CHECK#5 -if ( n_obj === bool) { +if (n_obj === bool) { $ERROR('#5: When the Object constructor is called with Boolean argument return ToObject(boolean)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A4_T3.js b/test/built-ins/Object/S15.2.2.1_A4_T3.js index 0cf32499795f15419e6cfcd8ba7b1d6639ada7e7..9515740fc05feaf20d3db16bbc2b2ef1805ecf14 100644 --- a/test/built-ins/Object/S15.2.2.1_A4_T3.js +++ b/test/built-ins/Object/S15.2.2.1_A4_T3.js @@ -9,7 +9,7 @@ es5id: 15.2.2.1_A4_T3 description: Argument value is boolean expression ---*/ -var n_obj = new Object((1===1)&&!(false)); +var n_obj = new Object((1 === 1) && !(false)); //CHECK#2 if (n_obj.constructor !== Boolean) { @@ -22,11 +22,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != true) { +if (n_obj != true) { $ERROR('#4: When the Object constructor is called with Boolean argument return ToObject(boolean)'); } //CHECK#5 -if ( n_obj === true) { +if (n_obj === true) { $ERROR('#5: When the Object constructor is called with Boolean argument return ToObject(boolean)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A5_T1.js b/test/built-ins/Object/S15.2.2.1_A5_T1.js index 658cf0e17d74ba385f006a26017ee9dbaa65f243..ec8809219d2c25c3c44a4c97843e7387de881259 100644 --- a/test/built-ins/Object/S15.2.2.1_A5_T1.js +++ b/test/built-ins/Object/S15.2.2.1_A5_T1.js @@ -12,7 +12,7 @@ description: Argument value is any number var num = 1.0; //CHECK#1 -if (typeof num !== 'number') { +if (typeof num !== 'number') { $ERROR('#1: 1.0 is NOT a number'); } @@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != num) { +if (n_obj != num) { $ERROR('#4: When the Object constructor is called with Number argument return ToObject(number)'); } //CHECK#5 -if ( n_obj === num) { +if (n_obj === num) { $ERROR('#5: When the Object constructor is called with Number argument return ToObject(number)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A5_T2.js b/test/built-ins/Object/S15.2.2.1_A5_T2.js index 7e5572401878328151b0ffd5a0a4d05c0659c928..722d6b38df609ece65577f15775e56ef67fd4402 100644 --- a/test/built-ins/Object/S15.2.2.1_A5_T2.js +++ b/test/built-ins/Object/S15.2.2.1_A5_T2.js @@ -12,7 +12,7 @@ description: Argument value is NaN var num = NaN; //CHECK#1 -if (typeof num !== 'number') { +if (typeof num !== 'number') { $ERROR('#1: NaN is NOT a number'); } diff --git a/test/built-ins/Object/S15.2.2.1_A5_T3.js b/test/built-ins/Object/S15.2.2.1_A5_T3.js index 188734c9ba53676af9a0eead7cd3c0c4288b544a..ae1d15c912545ee75581e6fcba17fb39c6622ec9 100644 --- a/test/built-ins/Object/S15.2.2.1_A5_T3.js +++ b/test/built-ins/Object/S15.2.2.1_A5_T3.js @@ -12,7 +12,7 @@ description: Argument value is Infinity var num = Infinity; //CHECK#1 -if (typeof num !== 'number') { +if (typeof num !== 'number') { $ERROR('#1: Infinity is NOT a number'); } @@ -29,11 +29,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != num) { +if (n_obj != num) { $ERROR('#4: When the Object constructor is called with Number argument return ToObject(number)'); } //CHECK#5 -if ( n_obj === num) { +if (n_obj === num) { $ERROR('#5: When the Object constructor is called with Number argument return ToObject(number)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A5_T4.js b/test/built-ins/Object/S15.2.2.1_A5_T4.js index 0d4e8ec8c2c4bb2d8f47a70abc7ee1aae114a5d5..1ea06e2c91d29b115dbfdc357473922d269604c5 100644 --- a/test/built-ins/Object/S15.2.2.1_A5_T4.js +++ b/test/built-ins/Object/S15.2.2.1_A5_T4.js @@ -9,7 +9,9 @@ es5id: 15.2.2.1_A5_T4 description: Argument value is numeric expression ---*/ -var n_obj = new Object( 2*([].length + {q:1}["q"])); +var n_obj = new Object(2 * ([].length + { + q: 1 +}["q"])); //CHECK#2 if (n_obj.constructor !== Number) { @@ -22,11 +24,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != 2) { +if (n_obj != 2) { $ERROR('#4: When the Object constructor is called with Number argument return ToObject(number)'); } //CHECK#5 -if ( n_obj === 2) { +if (n_obj === 2) { $ERROR('#5: When the Object constructor is called with Number argument return ToObject(number)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A6_T1.js b/test/built-ins/Object/S15.2.2.1_A6_T1.js index 45d034977c52ea7aaa40dcf40006444c5c2bce67..23f73a818ed5fef90678f9fdcd14cc5616d0604a 100644 --- a/test/built-ins/Object/S15.2.2.1_A6_T1.js +++ b/test/built-ins/Object/S15.2.2.1_A6_T1.js @@ -9,7 +9,7 @@ es5id: 15.2.2.1_A6_T1 description: Creating an object with "new Object(1,2,3)" ---*/ -var obj = new Object(1,2,3); +var obj = new Object(1, 2, 3); //CHECK#1 if (obj.constructor !== Number) { @@ -22,6 +22,6 @@ if (typeof obj !== "object") { } //CHECK#3 -if ((obj != 1)||(obj === 1)) { +if ((obj != 1) || (obj === 1)) { $ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;'); } diff --git a/test/built-ins/Object/S15.2.2.1_A6_T2.js b/test/built-ins/Object/S15.2.2.1_A6_T2.js index 136338da6a526d84c93ce88a675102d11c8f737d..537ed6e546aab8939166de2183cd963bd1e03308 100644 --- a/test/built-ins/Object/S15.2.2.1_A6_T2.js +++ b/test/built-ins/Object/S15.2.2.1_A6_T2.js @@ -9,7 +9,7 @@ es5id: 15.2.2.1_A6_T2 description: Creating an object with "new Object(null,2,3)" ---*/ -var obj = new Object(null,2,3); +var obj = new Object(null, 2, 3); //CHECK#1 if (obj.constructor !== Object) { diff --git a/test/built-ins/Object/S15.2.2.1_A6_T3.js b/test/built-ins/Object/S15.2.2.1_A6_T3.js index b7e307151f1fcd38134bb9f270b954dfc5f6d8db..cee0898bae2a2d524239eff6cdee333e339cdcc5 100644 --- a/test/built-ins/Object/S15.2.2.1_A6_T3.js +++ b/test/built-ins/Object/S15.2.2.1_A6_T3.js @@ -9,7 +9,7 @@ es5id: 15.2.2.1_A6_T3 description: Creating an object with "new Object((null,2,3),2,3)" ---*/ -var obj = new Object((null,2,3),1,2); +var obj = new Object((null, 2, 3), 1, 2); //CHECK#1 if (obj.constructor !== Number) { @@ -22,6 +22,6 @@ if (typeof obj !== "object") { } //CHECK#3 -if ((obj != 3)||(obj === 3)) { +if ((obj != 3) || (obj === 3)) { $ERROR('3#: Since Object as a function calling is the same as function calling list of arguments can appears in braces;'); } diff --git a/test/built-ins/Object/S15.2.3_A1.js b/test/built-ins/Object/S15.2.3_A1.js index 0b7564f500fd677b1a823031f53fe094056048e4..663f1eaaf11d22949c55e3060900e106bbd3b556 100644 --- a/test/built-ins/Object/S15.2.3_A1.js +++ b/test/built-ins/Object/S15.2.3_A1.js @@ -7,6 +7,6 @@ es5id: 15.2.3_A1 description: Checking existence of the property "prototype" ---*/ -if(!Object.hasOwnProperty("prototype")){ +if (!Object.hasOwnProperty("prototype")) { $ERROR('#1: The Object constructor has the property "prototype"'); } diff --git a/test/built-ins/Object/S15.2.3_A3.js b/test/built-ins/Object/S15.2.3_A3.js index 0c72e328327d6df2a43f3ddd22711127addff93c..cdff0f5ad46d4dc3ea7998f94d89b02c63342895 100644 --- a/test/built-ins/Object/S15.2.3_A3.js +++ b/test/built-ins/Object/S15.2.3_A3.js @@ -8,7 +8,7 @@ description: Checking Object.length ---*/ //CHECK#1 -if(!Object.hasOwnProperty("length")){ +if (!Object.hasOwnProperty("length")) { $ERROR('#1: The Object constructor has the property "length"'); } diff --git a/test/built-ins/Object/S15.2_A1.js b/test/built-ins/Object/S15.2_A1.js index 6cbac35e035a3c5683b53ca083221c09d32ceb11..b8bc45d87ec73855306e6fc79cad195769d47d70 100644 --- a/test/built-ins/Object/S15.2_A1.js +++ b/test/built-ins/Object/S15.2_A1.js @@ -7,10 +7,10 @@ es5id: 15.2_A1 description: Checking if Object equals to this.Object ---*/ -var obj=Object; +var obj = Object; -var thisobj=this.Object; +var thisobj = this.Object; -if(obj!==thisobj){ +if (obj !== thisobj) { $ERROR('Object is the property of global'); } diff --git a/test/built-ins/Object/S9.9_A3.js b/test/built-ins/Object/S9.9_A3.js index 0c10e8736a4b5cebdfdf22380baf94e88291a2f5..b527535393c60edd32c02c2cd6c207f0af51f71c 100644 --- a/test/built-ins/Object/S9.9_A3.js +++ b/test/built-ins/Object/S9.9_A3.js @@ -10,31 +10,31 @@ description: Trying to convert from Boolean to Object ---*/ // CHECK#1 -if (Object(true).valueOf() !== true){ +if (Object(true).valueOf() !== true) { $ERROR('#1: Object(true).valueOf() === true. Actual: ' + (Object(true).valueOf())); } // CHECK#2 -if (typeof Object(true) !== "object"){ +if (typeof Object(true) !== "object") { $ERROR('#2: typeof Object(true) === "object". Actual: ' + (typeof Object(true))); } // CHECK#3 -if (Object(true).constructor.prototype !== Boolean.prototype){ +if (Object(true).constructor.prototype !== Boolean.prototype) { $ERROR('#3: Object(true).constructor.prototype === Boolean.prototype. Actual: ' + (Object(true).constructor.prototype)); } // CHECK#4 -if (Object(false).valueOf() !== false){ +if (Object(false).valueOf() !== false) { $ERROR('#4: Object(false).valueOf() === false. Actual: ' + (Object(false).valueOf())); } // CHECK#5 -if (typeof Object(false) !== "object"){ +if (typeof Object(false) !== "object") { $ERROR('#5: typeof Object(false) === "object". Actual: ' + (typeof Object(false))); } // CHECK#6 -if (Object(false).constructor.prototype !== Boolean.prototype){ +if (Object(false).constructor.prototype !== Boolean.prototype) { $ERROR('#6: Object(false).constructor.prototype === Boolean.prototype. Actual: ' + (Object(false).constructor.prototype)); } diff --git a/test/built-ins/Object/S9.9_A4.js b/test/built-ins/Object/S9.9_A4.js index 36e813e8c0086391bdd9abab7f4c8eff83ec55ce..7421de20ce2d342f384dbe3cfaa6b50accf556a9 100644 --- a/test/built-ins/Object/S9.9_A4.js +++ b/test/built-ins/Object/S9.9_A4.js @@ -10,124 +10,124 @@ description: Converting from various numbers to Object ---*/ // CHECK#1 -if (Object(0).valueOf() !== 0){ +if (Object(0).valueOf() !== 0) { $ERROR('#1: Object(0).valueOf() === 0. Actual: ' + (Object(0).valueOf())); } // CHECK#2 -if (typeof Object(0) !== "object"){ +if (typeof Object(0) !== "object") { $ERROR('#2: typeof Object(0) === "object". Actual: ' + (typeof Object(0))); } // CHECK#3 -if (Object(0).constructor.prototype !== Number.prototype){ +if (Object(0).constructor.prototype !== Number.prototype) { $ERROR('#3: Object(0).constructor.prototype === Number.prototype. Actual: ' + (Object(0).constructor.prototype)); } // CHECK#4 -if (Object(-0).valueOf() !== -0){ +if (Object(-0).valueOf() !== -0) { $ERROR('#4.1: Object(-0).valueOf() === 0. Actual: ' + (Object(-0).valueOf())); -} else if (1/Object(-0).valueOf() !== Number.NEGATIVE_INFINITY) { +} else if (1 / Object(-0).valueOf() !== Number.NEGATIVE_INFINITY) { $ERROR('#4.2: Object(-0).valueOf() === -0. Actual: +0'); } // CHECK#5 -if (typeof Object(-0) !== "object"){ +if (typeof Object(-0) !== "object") { $ERROR('#5: typeof Object(-0) === "object". Actual: ' + (typeof Object(-0))); } // CHECK#6 -if (Object(-0).constructor.prototype !== Number.prototype){ +if (Object(-0).constructor.prototype !== Number.prototype) { $ERROR('#6: Object(-0).constructor.prototype === Number.prototype. Actual: ' + (Object(-0).constructor.prototype)); } // CHECK#7 -if (Object(1).valueOf() !== 1){ +if (Object(1).valueOf() !== 1) { $ERROR('#7: Object(1).valueOf() === 1. Actual: ' + (Object(1).valueOf())); } // CHECK#8 -if (typeof Object(1) !== "object"){ +if (typeof Object(1) !== "object") { $ERROR('#8: typeof Object(1) === "object". Actual: ' + (typeof Object(1))); } // CHECK#9 -if (Object(1).constructor.prototype !== Number.prototype){ +if (Object(1).constructor.prototype !== Number.prototype) { $ERROR('#9: Object(1).constructor.prototype === Number.prototype. Actual: ' + (Object(1).constructor.prototype)); } // CHECK#10 -if (Object(-1).valueOf() !== -1){ +if (Object(-1).valueOf() !== -1) { $ERROR('#10: Object(-1).valueOf() === -1. Actual: ' + (Object(-1).valueOf())); } // CHECK#11 -if (typeof Object(-1) !== "object"){ +if (typeof Object(-1) !== "object") { $ERROR('#11: typeof Object(-1) === "object". Actual: ' + (typeof Object(-1))); } // CHECK#12 -if (Object(-1).constructor.prototype !== Number.prototype){ +if (Object(-1).constructor.prototype !== Number.prototype) { $ERROR('#12: Object(-1).constructor.prototype === Number.prototype. Actual: ' + (Object(-1).constructor.prototype)); } // CHECK#13 -if (Object(Number.MIN_VALUE).valueOf() !== Number.MIN_VALUE){ +if (Object(Number.MIN_VALUE).valueOf() !== Number.MIN_VALUE) { $ERROR('#13: Object(Number.MIN_VALUE).valueOf() === Number.MIN_VALUE. Actual: ' + (Object(Number.MIN_VALUE).valueOf())); } // CHECK#14 -if (typeof Object(Number.MIN_VALUE) !== "object"){ +if (typeof Object(Number.MIN_VALUE) !== "object") { $ERROR('#14: typeof Object(Number.MIN_VALUE) === "object". Actual: ' + (typeof Object(Number.MIN_VALUE))); } // CHECK#15 -if (Object(Number.MIN_VALUE).constructor.prototype !== Number.prototype){ +if (Object(Number.MIN_VALUE).constructor.prototype !== Number.prototype) { $ERROR('#15: Object(Number.MIN_VALUE).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.MIN_VALUE).constructor.prototype)); } // CHECK#16 -if (Object(Number.MAX_VALUE).valueOf() !== Number.MAX_VALUE){ +if (Object(Number.MAX_VALUE).valueOf() !== Number.MAX_VALUE) { $ERROR('#16: Object(Number.MAX_VALUE).valueOf() === Number.MAX_VALUE. Actual: ' + (Object(Number.MAX_VALUE).valueOf())); } // CHECK#17 -if (typeof Object(Number.MAX_VALUE) !== "object"){ +if (typeof Object(Number.MAX_VALUE) !== "object") { $ERROR('#17: typeof Object(Number.MAX_VALUE) === "object". Actual: ' + (typeof Object(Number.MAX_VALUE))); } // CHECK#18 -if (Object(Number.MAX_VALUE).constructor.prototype !== Number.prototype){ +if (Object(Number.MAX_VALUE).constructor.prototype !== Number.prototype) { $ERROR('#18: Object(Number.MAX_VALUE).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.MAX_VALUE).constructor.prototype)); } // CHECK#19 -if (Object(Number.POSITIVE_INFINITY).valueOf() !== Number.POSITIVE_INFINITY){ +if (Object(Number.POSITIVE_INFINITY).valueOf() !== Number.POSITIVE_INFINITY) { $ERROR('#19: Object(Number.POSITIVE_INFINITY).valueOf() === Number.POSITIVE_INFINITY. Actual: ' + (Object(Number.POSITIVE_INFINITY).valueOf())); } // CHECK#20 -if (typeof Object(Number.POSITIVE_INFINITY) !== "object"){ +if (typeof Object(Number.POSITIVE_INFINITY) !== "object") { $ERROR('#20: typeof Object(Number.POSITIVE_INFINITY) === "object". Actual: ' + (typeof Object(Number.POSITIVE_INFINITY))); } // CHECK#21 -if (Object(Number.POSITIVE_INFINITY).constructor.prototype !== Number.prototype){ +if (Object(Number.POSITIVE_INFINITY).constructor.prototype !== Number.prototype) { $ERROR('#21: Object(Number.POSITIVE_INFINITY).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.POSITIVE_INFINITY).constructor.prototype)); } // CHECK#22 -if (Object(Number.NEGATIVE_INFINITY).valueOf() !== Number.NEGATIVE_INFINITY){ +if (Object(Number.NEGATIVE_INFINITY).valueOf() !== Number.NEGATIVE_INFINITY) { $ERROR('#22: Object(Number.NEGATIVE_INFINITY).valueOf() === Number.NEGATIVE_INFINITY. Actual: ' + (Object(Number.NEGATIVE_INFINITY).valueOf())); } // CHECK#23 -if (typeof Object(Number.NEGATIVE_INFINITY) !== "object"){ +if (typeof Object(Number.NEGATIVE_INFINITY) !== "object") { $ERROR('#23: typeof Object(Number.NEGATIVE_INFINITY) === "object". Actual: ' + (typeof Object(Number.NEGATIVE_INFINITY))); } // CHECK#24 -if (Object(Number.NEGATIVE_INFINITY).constructor.prototype !== Number.prototype){ +if (Object(Number.NEGATIVE_INFINITY).constructor.prototype !== Number.prototype) { $ERROR('#24: Object(Number.NEGATIVE_INFINITY).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.NEGATIVE_INFINITY).constructor.prototype)); } @@ -135,41 +135,41 @@ if (Object(Number.NEGATIVE_INFINITY).constructor.prototype !== Number.prototype) assert.sameValue(Object(NaN).valueOf(), NaN, "Object(NaN).valueOf()"); // CHECK#26 -if (typeof Object(Number.NaN) !== "object"){ +if (typeof Object(Number.NaN) !== "object") { $ERROR('#26: typeof Object(Number.NaN) === "object". Actual: ' + (typeof Object(Number.NaN))); } // CHECK#27 -if (Object(Number.NaN).constructor.prototype !== Number.prototype){ +if (Object(Number.NaN).constructor.prototype !== Number.prototype) { $ERROR('#27: Object(Number.NaN).constructor.prototype === Number.prototype. Actual: ' + (Object(Number.NaN).constructor.prototype)); } // CHECK#28 -if (Object(1.2345).valueOf() !== 1.2345){ +if (Object(1.2345).valueOf() !== 1.2345) { $ERROR('#28: Object(1.2345).valueOf() === 1.2345. Actual: ' + (Object(1.2345).valueOf())); } // CHECK#29 -if (typeof Object(1.2345) !== "object"){ +if (typeof Object(1.2345) !== "object") { $ERROR('#29: typeof Object(1.2345) === "object". Actual: ' + (typeof Object(1.2345))); } // CHECK#30 -if (Object(1.2345).constructor.prototype !== Number.prototype){ +if (Object(1.2345).constructor.prototype !== Number.prototype) { $ERROR('#30: Object(1.2345).constructor.prototype === Number.prototype. Actual: ' + (Object(1.2345).constructor.prototype)); } // CHECK#31 -if (Object(-1.2345).valueOf() !== -1.2345){ +if (Object(-1.2345).valueOf() !== -1.2345) { $ERROR('#31: Object(-1.2345).valueOf() === -1.2345. Actual: ' + (Object(-1.2345).valueOf())); } // CHECK#32 -if (typeof Object(-1.2345) !== "object"){ +if (typeof Object(-1.2345) !== "object") { $ERROR('#32: typeof Object(-1.2345) === "object". Actual: ' + (typeof Object(-1.2345))); } // CHECK#33 -if (Object(-1.2345).constructor.prototype !== Number.prototype){ +if (Object(-1.2345).constructor.prototype !== Number.prototype) { $ERROR('#33: Object(-1.2345).constructor.prototype === Number.prototype. Actual: ' + (Object(-1.2345).constructor.prototype)); } diff --git a/test/built-ins/Object/S9.9_A5.js b/test/built-ins/Object/S9.9_A5.js index f6ff7e642c6fc471f1f52eb9e57f007796afd069..a303eafc9f65098810ca250d091e27011a89b44c 100644 --- a/test/built-ins/Object/S9.9_A5.js +++ b/test/built-ins/Object/S9.9_A5.js @@ -10,61 +10,61 @@ description: Converting from various strings to Object ---*/ // CHECK#1 -if (Object("some string").valueOf() !== "some string"){ +if (Object("some string").valueOf() !== "some string") { $ERROR('#1: Object("some string").valueOf() === "some string". Actual: ' + (Object("some string").valueOf())); } // CHECK#2 -if (typeof Object("some string") !== "object"){ +if (typeof Object("some string") !== "object") { $ERROR('#2: typeof Object("some string") === "object". Actual: ' + (typeof Object("some string"))); } // CHECK#3 -if (Object("some string").constructor.prototype !== String.prototype){ +if (Object("some string").constructor.prototype !== String.prototype) { $ERROR('#3: Object("some string").constructor.prototype === String.prototype. Actual: ' + (Object("some string").constructor.prototype)); } // CHECK#4 -if (Object("").valueOf() !== ""){ +if (Object("").valueOf() !== "") { $ERROR('#4: Object("").valueOf() === false. Actual: ' + (Object("").valueOf())); } // CHECK#5 -if (typeof Object("") !== "object"){ +if (typeof Object("") !== "object") { $ERROR('#5: typeof Object("") === "object". Actual: ' + (typeof Object(""))); } // CHECK#6 -if (Object("").constructor.prototype !== String.prototype){ +if (Object("").constructor.prototype !== String.prototype) { $ERROR('#6: Object("").constructor.prototype === String.prototype. Actual: ' + (Object("").constructor.prototype)); } // CHECK#7 -if (Object("\r\t\b\n\v\f").valueOf() !== "\r\t\b\n\v\f"){ +if (Object("\r\t\b\n\v\f").valueOf() !== "\r\t\b\n\v\f") { $ERROR('#7: Object("\\r\\t\\b\\n\\v\\f").valueOf() === false. Actual: ' + (Object("\r\t\b\n\v\f").valueOf())); } // CHECK#8 -if (typeof Object("\r\t\b\n\v\f") !== "object"){ +if (typeof Object("\r\t\b\n\v\f") !== "object") { $ERROR('#8: typeof Object("\\r\\t\\b\\n\\v\\f") === "object". Actual: ' + (typeof Object("\r\t\b\n\v\f"))); } // CHECK#9 -if (Object("\r\t\b\n\v\f").constructor.prototype !== String.prototype){ +if (Object("\r\t\b\n\v\f").constructor.prototype !== String.prototype) { $ERROR('#9: Object("\\r\\t\\b\\n\\v\\f").constructor.prototype === String.prototype. Actual: ' + (Object("\r\t\b\n\v\f").constructor.prototype)); } // CHECK#10 -if (Object(String(10)).valueOf() !== "10"){ +if (Object(String(10)).valueOf() !== "10") { $ERROR('#10: Object(String(10)).valueOf() === false. Actual: ' + (Object(String(10)).valueOf())); } // CHECK#11 -if (typeof Object(String(10)) !== "object"){ +if (typeof Object(String(10)) !== "object") { $ERROR('#11: typeof Object(String(10)) === "object". Actual: ' + (typeof Object(String(10)))); } // CHECK#12 -if (Object(String(10)).constructor.prototype !== String.prototype){ +if (Object(String(10)).constructor.prototype !== String.prototype) { $ERROR('#12: Object(String(10)).constructor.prototype === String.prototype. Actual: ' + (Object(String(10)).constructor.prototype)); } diff --git a/test/built-ins/Object/S9.9_A6.js b/test/built-ins/Object/S9.9_A6.js index b6c19d4a67317fbb5421e1ebe180e2affea9e8e9..566177e3ac8ed558e0b9b60cd0fa840c692dedd5 100644 --- a/test/built-ins/Object/S9.9_A6.js +++ b/test/built-ins/Object/S9.9_A6.js @@ -9,31 +9,33 @@ es5id: 9.9_A6 description: Converting from Objects to Object ---*/ -function MyObject( val ) { - this.value = val; - this.valueOf = function (){ return this.value; } +function MyObject(val) { + this.value = val; + this.valueOf = function() { + return this.value; + } } var x = new MyObject(1); var y = Object(x); // CHECK#1 -if (y.valueOf() !== x.valueOf()){ +if (y.valueOf() !== x.valueOf()) { $ERROR('#1: Object(obj).valueOf() === obj.valueOf(). Actual: ' + (Object(obj).valueOf())); } // CHECK#2 -if (typeof y !== typeof x){ +if (typeof y !== typeof x) { $ERROR('#2: typeof Object(obj) === typeof obj. Actual: ' + (typeof Object(obj))); } // CHECK#3 -if (y.constructor.prototype !== x.constructor.prototype){ +if (y.constructor.prototype !== x.constructor.prototype) { $ERROR('#3: Object(obj).constructor.prototype === obj.constructor.prototype. Actual: ' + (Object(obj).constructor.prototype)); } // CHECK#4 -if (y !== x){ +if (y !== x) { $ERROR('#4: Object(obj) === obj'); } diff --git a/test/built-ins/Object/assign/ObjectOverride-sameproperty.js b/test/built-ins/Object/assign/ObjectOverride-sameproperty.js index dab26f33fa17a0383c09875af0e491fe44d40cbd..62566911183a28979f0131d4403c4c8253d30027 100644 --- a/test/built-ins/Object/assign/ObjectOverride-sameproperty.js +++ b/test/built-ins/Object/assign/ObjectOverride-sameproperty.js @@ -7,7 +7,13 @@ description: Object properties are assigned to target in ascending index order, es6id: 19.1.2.1 ---*/ -var target = {a: 1}; -var result = Object.assign(target,{a:2},{a:"c"}); +var target = { + a: 1 +}; +var result = Object.assign(target, { + a: 2 +}, { + a: "c" +}); assert.sameValue(result.a, "c", "The value should be 'c'."); diff --git a/test/built-ins/Object/assign/Override-notstringtarget.js b/test/built-ins/Object/assign/Override-notstringtarget.js index 49ade3cb54f37c32e26ec64a0a052fb1ebd7455b..8621d75ddc6368f375eeb0190e37a28cd9c9c4aa 100644 --- a/test/built-ins/Object/assign/Override-notstringtarget.js +++ b/test/built-ins/Object/assign/Override-notstringtarget.js @@ -8,9 +8,9 @@ es6id: 19.1.2.1 ---*/ var target = 12; -var result = Object.assign(target,"aaa","bb2b","1c"); +var result = Object.assign(target, "aaa", "bb2b", "1c"); -assert.sameValue(Object.keys(result).length, 4 , "The length should be 4 in the final object."); +assert.sameValue(Object.keys(result).length, 4, "The length should be 4 in the final object."); assert.sameValue(result[0], "1", "The value should be {\"0\":\"1\"}."); assert.sameValue(result[1], "c", "The value should be {\"1\":\"c\"}."); assert.sameValue(result[2], "2", "The value should be {\"2\":\"2\"}."); diff --git a/test/built-ins/Object/assign/Override.js b/test/built-ins/Object/assign/Override.js index efe94452efbb8ad7d14ee1201af3f2f9fc2fd254..cb0f60a8eead39ccc44587f54fce9a0c9c0988a2 100644 --- a/test/built-ins/Object/assign/Override.js +++ b/test/built-ins/Object/assign/Override.js @@ -7,7 +7,9 @@ esid: sec-object.assign ---*/ //"a" will be an property of the final object and the value should be 1 -var target = {a:1}; +var target = { + a: 1 +}; /* "1a2c3" have own enumerable properties, so it Should be wrapped to objects; {b:6} is an object,should be assigned to final object. @@ -15,9 +17,15 @@ undefined and null should be ignored; 125 is a number,it cannot has own enumerable properties; {a:"c"},{a:5} will override property a, the value should be 5. */ -var result = Object.assign(target,"1a2c3",{a:"c"},undefined,{b:6},null,125,{a:5}); +var result = Object.assign(target, "1a2c3", { + a: "c" +}, undefined, { + b: 6 +}, null, 125, { + a: 5 +}); -assert.sameValue(Object.keys(result).length, 7 , "The length should be 7 in the final object."); +assert.sameValue(Object.keys(result).length, 7, "The length should be 7 in the final object."); assert.sameValue(result.a, 5, "The value should be {a:5}."); assert.sameValue(result[0], "1", "The value should be {\"0\":\"1\"}."); assert.sameValue(result[1], "a", "The value should be {\"1\":\"a\"}."); diff --git a/test/built-ins/Object/assign/Source-Null-Undefined.js b/test/built-ins/Object/assign/Source-Null-Undefined.js index 8e8da3d2fb58726b999e82c168c1dda6e5a286d0..b41e102fc08192deb8be01bc6ebf3d914e77ace0 100644 --- a/test/built-ins/Object/assign/Source-Null-Undefined.js +++ b/test/built-ins/Object/assign/Source-Null-Undefined.js @@ -7,6 +7,6 @@ esid: sec-object.assign ---*/ var target = new Object(); -var result = Object.assign(target,undefined,null); +var result = Object.assign(target, undefined, null); assert.sameValue(result, target, "null and undefined should be ignored, result should be original object."); diff --git a/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js b/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js index eae453e21f6e0ca11f3c6ee318f1ee34f523cd0e..9989bb20948c07314afba822b19ce830d1635559 100644 --- a/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js +++ b/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js @@ -9,6 +9,6 @@ features: [Symbol] ---*/ var target = new Object(); -var result = Object.assign(target,123,true,Symbol('foo')); +var result = Object.assign(target, 123, true, Symbol('foo')); assert.sameValue(result, target, "Numbers, booleans, and symbols cannot have wrappers with own enumerable properties."); diff --git a/test/built-ins/Object/assign/Source-String.js b/test/built-ins/Object/assign/Source-String.js index fe2a8adf6af500faa4f7e7951c952b748b96dd21..78e006461ee988782723b42643ba93ecb5a5a943 100644 --- a/test/built-ins/Object/assign/Source-String.js +++ b/test/built-ins/Object/assign/Source-String.js @@ -7,7 +7,7 @@ esid: sec-object.assign ---*/ var target = new Object(); -var result = Object.assign(target,"123"); +var result = Object.assign(target, "123"); assert.sameValue(result[0], "1", "The value should be {\"0\":\"1\"}."); assert.sameValue(result[1], "2", "The value should be {\"1\":\"2\"}."); diff --git a/test/built-ins/Object/assign/Target-Boolean.js b/test/built-ins/Object/assign/Target-Boolean.js index d41c4ba5d03c4839129fcff9ad6a57d832d37253..457190cbfe326cb57a2b8453dac38e4d0c097b0e 100644 --- a/test/built-ins/Object/assign/Target-Boolean.js +++ b/test/built-ins/Object/assign/Target-Boolean.js @@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -var result = Object.assign(true,{a:1}); +var result = Object.assign(true, { + a: 1 +}); assert.sameValue(typeof result, "object", "Return value should be an object."); assert.sameValue(result.valueOf(), true, "Return value should be true."); diff --git a/test/built-ins/Object/assign/Target-Null.js b/test/built-ins/Object/assign/Target-Null.js index d5eb7803e31c88492edd2c2efc79587bd60aca66..07223a7e4a6141254d998b5a1313ec786ef6a6b0 100644 --- a/test/built-ins/Object/assign/Target-Null.js +++ b/test/built-ins/Object/assign/Target-Null.js @@ -7,4 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -assert.throws(TypeError, function(){Object.assign(null, {a:1});}); +assert.throws(TypeError, function() { + Object.assign(null, { + a: 1 + }); +}); diff --git a/test/built-ins/Object/assign/Target-Number.js b/test/built-ins/Object/assign/Target-Number.js index 0971ca3d10b74c6ce21dc2f4ec00b7e190ca9993..0dde68edcf2edc6303812ad785b01775699566c5 100644 --- a/test/built-ins/Object/assign/Target-Number.js +++ b/test/built-ins/Object/assign/Target-Number.js @@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -var result = Object.assign(1,{a:1}); +var result = Object.assign(1, { + a: 1 +}); assert.sameValue(typeof result, "object", "Return value should be an object."); assert.sameValue(result.valueOf(), 1, "Return value should be 1."); diff --git a/test/built-ins/Object/assign/Target-Object.js b/test/built-ins/Object/assign/Target-Object.js index d3ba7da0f8a4ed25d1833135a2d537f0761f3b3a..2aa73287f38360938bef9afdfe4f2c4bb925cad6 100644 --- a/test/built-ins/Object/assign/Target-Object.js +++ b/test/built-ins/Object/assign/Target-Object.js @@ -7,8 +7,12 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -var target = {foo: 1}; -var result = Object.assign(target,{a:2}); +var target = { + foo: 1 +}; +var result = Object.assign(target, { + a: 2 +}); assert.sameValue(result.foo, 1, "The value should be {foo: 1}."); assert.sameValue(result.a, 2, "The value should be {a: 2}."); diff --git a/test/built-ins/Object/assign/Target-String.js b/test/built-ins/Object/assign/Target-String.js index 2adecfb31f3440587cfa818c325474212ff1225e..0ecbe714c87929106c3d87c0ed1d39b5878f98db 100644 --- a/test/built-ins/Object/assign/Target-String.js +++ b/test/built-ins/Object/assign/Target-String.js @@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -var result = Object.assign("test",{a:1}); +var result = Object.assign("test", { + a: 1 +}); assert.sameValue(typeof result, "object", "Return value should be an object."); assert.sameValue(result.valueOf(), "test", "Return value should be 'test'."); diff --git a/test/built-ins/Object/assign/Target-Symbol.js b/test/built-ins/Object/assign/Target-Symbol.js index 2c24f4b504959391aeb7b44e8277ea3c9017a3c9..0917822f4d064ddc17f9827fbfbb85ffbb0bc8df 100644 --- a/test/built-ins/Object/assign/Target-Symbol.js +++ b/test/built-ins/Object/assign/Target-Symbol.js @@ -9,7 +9,9 @@ features: [Symbol] ---*/ var target = Symbol('foo'); -var result = Object.assign(target,{a:1}); +var result = Object.assign(target, { + a: 1 +}); assert.sameValue(typeof result, "object", "Return value should be a symbol object."); assert.sameValue(result.toString(), "Symbol(foo)", "Return value should be 'Symbol(foo)'."); diff --git a/test/built-ins/Object/assign/Target-Undefined.js b/test/built-ins/Object/assign/Target-Undefined.js index 9df5bee105b748ea0f3baab3f9bcc8a0faaf8fb7..03189f177946ba6f21385db834c3ec0674794507 100644 --- a/test/built-ins/Object/assign/Target-Undefined.js +++ b/test/built-ins/Object/assign/Target-Undefined.js @@ -7,4 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -assert.throws(TypeError, function(){Object.assign(undefined, {a:1});}); +assert.throws(TypeError, function() { + Object.assign(undefined, { + a: 1 + }); +}); diff --git a/test/built-ins/Object/assign/name.js b/test/built-ins/Object/assign/name.js index ba9dd0fbbb53da9048641a3ce3baf6f425f43155..6cb22e25c58b3c2c94e431d11009affc20c238a1 100644 --- a/test/built-ins/Object/assign/name.js +++ b/test/built-ins/Object/assign/name.js @@ -28,4 +28,3 @@ assert.sameValue( verifyNotEnumerable(Object.assign, 'name'); verifyNotWritable(Object.assign, 'name'); verifyConfigurable(Object.assign, 'name'); - diff --git a/test/built-ins/Object/assign/source-own-prop-error.js b/test/built-ins/Object/assign/source-own-prop-error.js index c6b7297fbda467b03b134a487c17206d319fef36..cea4275b9a9ec947ac991f32118736967dd2b0e0 100644 --- a/test/built-ins/Object/assign/source-own-prop-error.js +++ b/test/built-ins/Object/assign/source-own-prop-error.js @@ -13,7 +13,9 @@ info: | features: [Proxy] ---*/ -var source = new Proxy({ attr: null }, { +var source = new Proxy({ + attr: null +}, { getOwnPropertyDescriptor: function() { throw new Test262Error(); } diff --git a/test/built-ins/Object/assign/target-set-not-writable.js b/test/built-ins/Object/assign/target-set-not-writable.js index 4d751c595ae805aac85b3d2fc97a2bd650e64765..ad4b9704f8502d124cca8631d63f9dd2ebd9053a 100644 --- a/test/built-ins/Object/assign/target-set-not-writable.js +++ b/test/built-ins/Object/assign/target-set-not-writable.js @@ -21,5 +21,7 @@ Object.defineProperty(target, 'attr', { }); assert.throws(TypeError, function() { - Object.assign(target, { attr: 1 }); + Object.assign(target, { + attr: 1 + }); }); diff --git a/test/built-ins/Object/assign/target-set-user-error.js b/test/built-ins/Object/assign/target-set-user-error.js index b235b983eba208cdbada7d91d9ee043e5dc32bc1..8aec2c09598755f8ac9b2ea971226d8180233861 100644 --- a/test/built-ins/Object/assign/target-set-user-error.js +++ b/test/built-ins/Object/assign/target-set-user-error.js @@ -23,5 +23,7 @@ Object.defineProperty(target, 'attr', { }); assert.throws(Test262Error, function() { - Object.assign(target, { attr: 1 }); + Object.assign(target, { + attr: 1 + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-1-1.js b/test/built-ins/Object/create/15.2.3.5-1-1.js index dfec5679462324f650a108e3eab8d5ba0e02ee81..93e026783924506eeaa31dfc3b6eb34286c2ebe7 100644 --- a/test/built-ins/Object/create/15.2.3.5-1-1.js +++ b/test/built-ins/Object/create/15.2.3.5-1-1.js @@ -8,5 +8,5 @@ description: Object.create throws TypeError if 'O' is undefined assert.throws(TypeError, function() { - Object.create(undefined); + Object.create(undefined); }); diff --git a/test/built-ins/Object/create/15.2.3.5-1-2.js b/test/built-ins/Object/create/15.2.3.5-1-2.js index 36226f322a7f4298051ab5957d3b53cb48e39b5b..d15171aa3a6b45464d9ec7464485d1548e9244e4 100644 --- a/test/built-ins/Object/create/15.2.3.5-1-2.js +++ b/test/built-ins/Object/create/15.2.3.5-1-2.js @@ -6,4 +6,4 @@ es5id: 15.2.3.5-1-2 description: Object.create TypeError is not thrown if 'O' is null ---*/ - Object.create(null); +Object.create(null); diff --git a/test/built-ins/Object/create/15.2.3.5-1-3.js b/test/built-ins/Object/create/15.2.3.5-1-3.js index 2a8aa4b63918e8791c5212788eee6ab9fe52b261..5e88a60a58c98e1b98a582e1ff06a4c55d62a2ef 100644 --- a/test/built-ins/Object/create/15.2.3.5-1-3.js +++ b/test/built-ins/Object/create/15.2.3.5-1-3.js @@ -8,5 +8,5 @@ description: Object.create throws TypeError if 'O' is a boolean primitive assert.throws(TypeError, function() { - Object.create(true); + Object.create(true); }); diff --git a/test/built-ins/Object/create/15.2.3.5-1-4.js b/test/built-ins/Object/create/15.2.3.5-1-4.js index e33ef8ddb4c902a4ddacb2775201a5542eeedfb0..c748a5f1fddcaa406af99aec54d1e91012b80f6c 100644 --- a/test/built-ins/Object/create/15.2.3.5-1-4.js +++ b/test/built-ins/Object/create/15.2.3.5-1-4.js @@ -8,5 +8,5 @@ description: Object.create throws TypeError if 'O' is a number primitive assert.throws(TypeError, function() { - Object.create(2); + Object.create(2); }); diff --git a/test/built-ins/Object/create/15.2.3.5-1.js b/test/built-ins/Object/create/15.2.3.5-1.js index 645c0c974fe01fb17464c443ff12059a1d641718..1b44ca375105cf3a56d36a60cb11858c5dc444b5 100644 --- a/test/built-ins/Object/create/15.2.3.5-1.js +++ b/test/built-ins/Object/create/15.2.3.5-1.js @@ -8,5 +8,5 @@ description: Object.create throws TypeError if type of first param is not Object assert.throws(TypeError, function() { - Object.create(0); + Object.create(0); }); diff --git a/test/built-ins/Object/create/15.2.3.5-2-1.js b/test/built-ins/Object/create/15.2.3.5-2-1.js index a9a8c7b83b25ea8c91295908f9896c25c8684b70..4b340210c3fb2780a910786e9b878c10e11e778b 100644 --- a/test/built-ins/Object/create/15.2.3.5-2-1.js +++ b/test/built-ins/Object/create/15.2.3.5-2-1.js @@ -9,9 +9,9 @@ es5id: 15.2.3.5-2-1 description: Object.create creates new Object ---*/ - function base() {} - var b = new base(); - var prop = new Object(); - var d = Object.create(b); +function base() {} +var b = new base(); +var prop = new Object(); +var d = Object.create(b); assert.sameValue(typeof d, 'object', 'typeof d'); diff --git a/test/built-ins/Object/create/15.2.3.5-2-2.js b/test/built-ins/Object/create/15.2.3.5-2-2.js index d853baffe82a3167553febdc99c8c64e476a097c..a3687ef84587087bc25d90c8e5aef4fdb82d051a 100644 --- a/test/built-ins/Object/create/15.2.3.5-2-2.js +++ b/test/built-ins/Object/create/15.2.3.5-2-2.js @@ -6,6 +6,6 @@ es5id: 15.2.3.5-2-2 description: Object.create - returned object is an instance of Object ---*/ - var newObj = Object.create({}); +var newObj = Object.create({}); assert(newObj instanceof Object, 'newObj instanceof Object !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-3-1.js b/test/built-ins/Object/create/15.2.3.5-3-1.js index a63a939ad39f2d613ac429bd7ba7578e9a856a53..94e4050b69a811959f627a4e4f3dfae5dd45df52 100644 --- a/test/built-ins/Object/create/15.2.3.5-3-1.js +++ b/test/built-ins/Object/create/15.2.3.5-3-1.js @@ -9,9 +9,9 @@ es5id: 15.2.3.5-3-1 description: Object.create sets the prototype of the passed-in object ---*/ - function base() {} - var b = new base(); - var d = Object.create(b); +function base() {} +var b = new base(); +var d = Object.create(b); assert.sameValue(Object.getPrototypeOf(d), b, 'Object.getPrototypeOf(d)'); assert.sameValue(b.isPrototypeOf(d), true, 'b.isPrototypeOf(d)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-1.js b/test/built-ins/Object/create/15.2.3.5-4-1.js index be6c0fa63de4d595803b8451624d435f73c33364..cbcefe7684f89b5c2fa254778034e9b038470ff8 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-1.js +++ b/test/built-ins/Object/create/15.2.3.5-4-1.js @@ -11,11 +11,19 @@ description: > new properties ---*/ - function base() {} - var b = new base(); - var prop = new Object(); - var d = Object.create(b,{ "x": {value: true,writable: false}, - "y": {value: "str",writable: false} }); +function base() {} +var b = new base(); +var prop = new Object(); +var d = Object.create(b, { + "x": { + value: true, + writable: false + }, + "y": { + value: "str", + writable: false + } +}); assert.sameValue(Object.getPrototypeOf(d), b, 'Object.getPrototypeOf(d)'); assert.sameValue(b.isPrototypeOf(d), true, 'b.isPrototypeOf(d)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-10.js b/test/built-ins/Object/create/15.2.3.5-4-10.js index b62c3b3c420fac5f639cfe3dfa86def267843f4d..55d42da32a99e32721ff8a89a43627ee6491db34 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-10.js +++ b/test/built-ins/Object/create/15.2.3.5-4-10.js @@ -8,17 +8,17 @@ description: > step 2) ---*/ - var result = false; - Object.defineProperty(Math, "prop", { - get: function () { - result = (this === Math); - return {}; - }, - enumerable: true, - configurable: true - }); +var result = false; +Object.defineProperty(Math, "prop", { + get: function() { + result = (this === Math); + return {}; + }, + enumerable: true, + configurable: true +}); - var newObj = Object.create({}, Math); +var newObj = Object.create({}, Math); assert(result, 'result !== true'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-100.js b/test/built-ins/Object/create/15.2.3.5-4-100.js index 17f2ea33b44d2f07f070b3980826e562270f34b2..d219852c9fd8dbb016132e6477fd5a3e0788e468 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-100.js +++ b/test/built-ins/Object/create/15.2.3.5-4-100.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - value: "ownDataProperty" - } + prop: { + value: "ownDataProperty" + } }); assert(newObj.hasOwnProperty("prop"), "expected newObj to have 'prop'"); diff --git a/test/built-ins/Object/create/15.2.3.5-4-101.js b/test/built-ins/Object/create/15.2.3.5-4-101.js index a1aac19d6984d9bcc8faf306954dffc4a7e7e7f5..84bcf29eb5bf4c642c0e48261d97c8b066a78a95 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-101.js +++ b/test/built-ins/Object/create/15.2.3.5-4-101.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: false - } + prop: { + configurable: false + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-102.js b/test/built-ins/Object/create/15.2.3.5-4-102.js index d8fbe1baa58750cfb0d4ef3a22212dceac4d9f36..88aebe8b6ef1c2607214ece7c2756d757ec6061f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-102.js +++ b/test/built-ins/Object/create/15.2.3.5-4-102.js @@ -8,21 +8,21 @@ description: > 'Properties' is an inherited data property (8.10.5 step 4.a) ---*/ - var proto = { - configurable: true - }; +var proto = { + configurable: true +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-103.js b/test/built-ins/Object/create/15.2.3.5-4-103.js index 6217dc79a4b8ce43e59094ee886346be50b24d59..cd95c4308e648c09571c2a36cd6271be43f82075 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-103.js +++ b/test/built-ins/Object/create/15.2.3.5-4-103.js @@ -11,21 +11,20 @@ includes: [propertyHelper.js] ---*/ var proto = { - configurable: true + configurable: true }; -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); Object.defineProperty(descObj, "configurable", { - value: false + value: false }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); verifyNotConfigurable(newObj, "prop"); - diff --git a/test/built-ins/Object/create/15.2.3.5-4-104.js b/test/built-ins/Object/create/15.2.3.5-4-104.js index 8505738f010a54ef7a0bfed79447d8c78cad721c..1d9346fd8ea78c41393a95b135b1e708051c50a0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-104.js +++ b/test/built-ins/Object/create/15.2.3.5-4-104.js @@ -12,21 +12,21 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); Object.defineProperty(descObj, "configurable", { - value: false + value: false }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-105.js b/test/built-ins/Object/create/15.2.3.5-4-105.js index afff08cca5ba40d39e616a58268ee5922235a6b4..fbd5ea25bac084553e8154580bd715c691143eed 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-105.js +++ b/test/built-ins/Object/create/15.2.3.5-4-105.js @@ -8,19 +8,19 @@ description: > 'Properties' is own accessor property (8.10.5 step 4.a) ---*/ - var descObj = {}; - Object.defineProperty(descObj, "configurable", { - get: function () { - return true; - } - }); +var descObj = {}; +Object.defineProperty(descObj, "configurable", { + get: function() { + return true; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: descObj +}); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-106.js b/test/built-ins/Object/create/15.2.3.5-4-106.js index 721181e09fb338f8b304989b8e073395de74203b..b96690f70808d9abf983dedf3a397b2e98d970ce 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-106.js +++ b/test/built-ins/Object/create/15.2.3.5-4-106.js @@ -8,24 +8,24 @@ description: > 'Properties' is an inherited accessor property (8.10.5 step 4.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "configurable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: descObj +}); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-107.js b/test/built-ins/Object/create/15.2.3.5-4-107.js index 696cf44107613e3bd9d9bfeeb589ed304288d49f..0f1b7c6465757d343a098ab68cf8a8f40efcfadd 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-107.js +++ b/test/built-ins/Object/create/15.2.3.5-4-107.js @@ -11,23 +11,22 @@ includes: [propertyHelper.js] ---*/ var proto = { - configurable: true + configurable: true }; -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); Object.defineProperty(descObj, "configurable", { - get: function () { - return false; - } + get: function() { + return false; + } }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); verifyNotConfigurable(newObj, "prop"); - diff --git a/test/built-ins/Object/create/15.2.3.5-4-108.js b/test/built-ins/Object/create/15.2.3.5-4-108.js index af116897892aa7063058e7858a23f1d7ff758a7f..bd69f790efc06d9cc48f0bb92b0c0bc1e0619242 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-108.js +++ b/test/built-ins/Object/create/15.2.3.5-4-108.js @@ -12,23 +12,23 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); Object.defineProperty(descObj, "configurable", { - get: function () { - return false; - } + get: function() { + return false; + } }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-109.js b/test/built-ins/Object/create/15.2.3.5-4-109.js index c744dacb9f065f1218959d25efc29af26d7411c2..c8e9df1d8397efb61dbfaad78347e0e516471ab2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-109.js +++ b/test/built-ins/Object/create/15.2.3.5-4-109.js @@ -12,11 +12,11 @@ includes: [propertyHelper.js] var descObj = {}; Object.defineProperty(descObj, "configurable", { - set: function () { } + set: function() {} }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-11.js b/test/built-ins/Object/create/15.2.3.5-4-11.js index 4dbd85f61e6b2e9aa582911313aeaf6903d053fc..7f997a24497d306b2b39e41e000a0b5d5c266b29 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-11.js +++ b/test/built-ins/Object/create/15.2.3.5-4-11.js @@ -8,17 +8,17 @@ description: > step 2) ---*/ - var props = new Date(); - var result = false; +var props = new Date(); +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Date; - return {}; - }, - enumerable: true - }); - var newObj = Object.create({}, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Date; + return {}; + }, + enumerable: true +}); +var newObj = Object.create({}, props); assert(result, 'result !== true'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-110.js b/test/built-ins/Object/create/15.2.3.5-4-110.js index 12e0454defd6710ddda35dede072270fb31d1b8a..0f45922d8a64a71dda115e3c471f660e886de7ac 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-110.js +++ b/test/built-ins/Object/create/15.2.3.5-4-110.js @@ -12,21 +12,21 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); Object.defineProperty(descObj, "configurable", { - set: function () { } + set: function() {} }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-111.js b/test/built-ins/Object/create/15.2.3.5-4-111.js index 2acc75b9b8825be034dd21ec6849ad5fe5475f1a..523c329b87ef2441f4fbb893599320ca648313e4 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-111.js +++ b/test/built-ins/Object/create/15.2.3.5-4-111.js @@ -13,15 +13,15 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "configurable", { - set: function () { } + set: function() {} }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-112.js b/test/built-ins/Object/create/15.2.3.5-4-112.js index 81b491fb26a63014b01a0d974a6071bd864fab20..e698085cfc57af3f7d8facfccaa75f51fc52eb28 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-112.js +++ b/test/built-ins/Object/create/15.2.3.5-4-112.js @@ -9,17 +9,17 @@ description: > 'configurable' property (8.10.5 step 4.a) ---*/ - var descObj = function () { }; +var descObj = function() {}; - descObj.configurable = true; +descObj.configurable = true; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-113.js b/test/built-ins/Object/create/15.2.3.5-4-113.js index 26b9e86982f1f7a0b11964aa7743e56e9fcc1967..2708a2dcf10f698379291431fb0f41552b2f9da3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-113.js +++ b/test/built-ins/Object/create/15.2.3.5-4-113.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 4.a) ---*/ - var descObj = []; +var descObj = []; - descObj.configurable = true; +descObj.configurable = true; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-114.js b/test/built-ins/Object/create/15.2.3.5-4-114.js index 6ddb9994d72a44bae7fa4b58c4bcad8560bc6e47..31e69df69ae69b545ddda5055405817e16a36ab4 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-114.js +++ b/test/built-ins/Object/create/15.2.3.5-4-114.js @@ -9,16 +9,16 @@ description: > property (8.10.5 step 4.a) ---*/ - var descObj = new String(); +var descObj = new String(); - descObj.configurable = true; +descObj.configurable = true; - var newObj = Object.create({}, { - prop: descObj - }); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: descObj +}); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-115.js b/test/built-ins/Object/create/15.2.3.5-4-115.js index d7ad3da62468483bf4cc6c09592ef995ff5851f4..959214dc48d5d0cfb66331a99bd6059576c36d1c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-115.js +++ b/test/built-ins/Object/create/15.2.3.5-4-115.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 4.a) ---*/ - var descObj = new Boolean(false); +var descObj = new Boolean(false); - descObj.configurable = true; +descObj.configurable = true; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-116.js b/test/built-ins/Object/create/15.2.3.5-4-116.js index 861bd8b6551c07796894b2c858cbf0b200d45f25..30ec5cb1025fbb5b46ee6397334fd1eb9dacb38f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-116.js +++ b/test/built-ins/Object/create/15.2.3.5-4-116.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 4.a) ---*/ - var descObj = new Number(-9); +var descObj = new Number(-9); - descObj.configurable = true; +descObj.configurable = true; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-117.js b/test/built-ins/Object/create/15.2.3.5-4-117.js index 0def02aaa84c0f81672f246d076679de738dab35..4f1723e21a06d188823b80df00b86d3810fd21cd 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-117.js +++ b/test/built-ins/Object/create/15.2.3.5-4-117.js @@ -9,15 +9,15 @@ description: > property (8.10.5 step 4.a) ---*/ - Math.configurable = true; +Math.configurable = true; - var newObj = Object.create({}, { - prop: Math - }); +var newObj = Object.create({}, { + prop: Math +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-118.js b/test/built-ins/Object/create/15.2.3.5-4-118.js index 7fcd8a59d4df029d930bf0241c4a075d3158da0a..07a0c5613d3010dc72844f832e464a0b29d409a1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-118.js +++ b/test/built-ins/Object/create/15.2.3.5-4-118.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var descObj = new Date(); +var descObj = new Date(); - descObj.configurable = true; +descObj.configurable = true; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-119.js b/test/built-ins/Object/create/15.2.3.5-4-119.js index 2d92b08bb40dc2dd64fc13b9fe392cc3ed858f74..8b26b7a59ec50e5f07a4dce3543f38fd9e21cb76 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-119.js +++ b/test/built-ins/Object/create/15.2.3.5-4-119.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var descObj = new RegExp(); +var descObj = new RegExp(); - descObj.configurable = true; +descObj.configurable = true; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-12.js b/test/built-ins/Object/create/15.2.3.5-4-12.js index fd7b0a164a439ff514b89423ca32d8fde249913e..0050973e45c423a15ee07aa1bb1679db2da3c2d8 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-12.js +++ b/test/built-ins/Object/create/15.2.3.5-4-12.js @@ -8,17 +8,17 @@ description: > step 2) ---*/ - var props = new RegExp(); - var result = false; +var props = new RegExp(); +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof RegExp; - return {}; - }, - enumerable: true - }); - var newObj = Object.create({}, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof RegExp; + return {}; + }, + enumerable: true +}); +var newObj = Object.create({}, props); assert(result, 'result !== true'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-120.js b/test/built-ins/Object/create/15.2.3.5-4-120.js index 0ca99d1355d5b9133d02c1098e935fd56d27e9c1..c0e966771ba4342ef99259d39ba8431abed25919 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-120.js +++ b/test/built-ins/Object/create/15.2.3.5-4-120.js @@ -9,15 +9,15 @@ description: > property (8.10.5 step 4.a) ---*/ - JSON.configurable = true; +JSON.configurable = true; - var newObj = Object.create({}, { - prop: JSON - }); +var newObj = Object.create({}, { + prop: JSON +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-121.js b/test/built-ins/Object/create/15.2.3.5-4-121.js index 5e9ebc1be9289e22849a6d8ee45900e5e46e7236..2bb11aab731deda2243dd85c0e924f2469911e88 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-121.js +++ b/test/built-ins/Object/create/15.2.3.5-4-121.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 4.a) ---*/ - var descObj = new Error(); +var descObj = new Error(); - descObj.configurable = true; +descObj.configurable = true; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-122.js b/test/built-ins/Object/create/15.2.3.5-4-122.js index 13d7609e5e08c13ff017c226be99f672f37f840e..08a36f4bc2faceeca3df80c3cd647958b4784c41 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-122.js +++ b/test/built-ins/Object/create/15.2.3.5-4-122.js @@ -9,16 +9,18 @@ description: > 'configurable' property (8.10.5 step 4.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.configurable = true; +argObj.configurable = true; - var newObj = Object.create({}, { - prop: argObj - }); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: argObj +}); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-124.js b/test/built-ins/Object/create/15.2.3.5-4-124.js index 664fdd276556963067e3ea7e8006934d6c7a2cd1..595dacfa3114b7d3e672b098a442d20291c1a46f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-124.js +++ b/test/built-ins/Object/create/15.2.3.5-4-124.js @@ -9,15 +9,15 @@ description: > property (8.10.5 step 4.a) ---*/ - this.configurable = true; +this.configurable = true; - var newObj = Object.create({}, { - prop: this - }); +var newObj = Object.create({}, { + prop: this +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-125.js b/test/built-ins/Object/create/15.2.3.5-4-125.js index 9109a0ca0fca80914f9b9b52d34673ab30db8c2f..1ea05541e9a09b8998f8cad7388f370c1e95b7e9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-125.js +++ b/test/built-ins/Object/create/15.2.3.5-4-125.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: undefined - } + prop: { + configurable: undefined + } }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-126.js b/test/built-ins/Object/create/15.2.3.5-4-126.js index 03d1db1eb5cf7b794fe8551352cb0c650d5d2895..4e100ce3819163c76d31645047ac341cf2fcbcd1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-126.js +++ b/test/built-ins/Object/create/15.2.3.5-4-126.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: null - } + prop: { + configurable: null + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-127.js b/test/built-ins/Object/create/15.2.3.5-4-127.js index f66387a568f7e1aa962cf864bbbc29b24c047ca1..39f7fc35904348402ebeaf57f39002994a8094d3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-127.js +++ b/test/built-ins/Object/create/15.2.3.5-4-127.js @@ -8,17 +8,17 @@ description: > 'Properties' is true (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: true - } - }); +var newObj = Object.create({}, { + prop: { + configurable: true + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-128.js b/test/built-ins/Object/create/15.2.3.5-4-128.js index 3d050079938ab2c7f68dc6d39d91f439cf3d6e78..c8a10125c5301009989c7e441b7c2f7d2e757c2f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-128.js +++ b/test/built-ins/Object/create/15.2.3.5-4-128.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: false - } + prop: { + configurable: false + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-129.js b/test/built-ins/Object/create/15.2.3.5-4-129.js index 11cc44982b85e974a63a31d5752ccb0cffa17d89..14c74b0473d647229c7b88b5dc5cfe600c0bf78e 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-129.js +++ b/test/built-ins/Object/create/15.2.3.5-4-129.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: 0 - } + prop: { + configurable: 0 + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-13.js b/test/built-ins/Object/create/15.2.3.5-4-13.js index 582f529fdb7b9e9f7762d75f4e919f09ded5ec8c..41bd013b773ecd997f6ea7adbd7d35541efef866 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-13.js +++ b/test/built-ins/Object/create/15.2.3.5-4-13.js @@ -8,18 +8,18 @@ description: > step 2) ---*/ - var result = false; +var result = false; - Object.defineProperty(JSON, "prop", { - get: function () { - result = (this === JSON); - return {}; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(JSON, "prop", { + get: function() { + result = (this === JSON); + return {}; + }, + enumerable: true, + configurable: true +}); - var newObj = Object.create({}, JSON); +var newObj = Object.create({}, JSON); assert(result, 'result !== true'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-130.js b/test/built-ins/Object/create/15.2.3.5-4-130.js index 7bada285ccaa355dc3a2548bb2648f7029637f7e..83769b6caac47f61ebcec4be5c793e7b0f403ba7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-130.js +++ b/test/built-ins/Object/create/15.2.3.5-4-130.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: +0 - } + prop: { + configurable: +0 + } }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-131.js b/test/built-ins/Object/create/15.2.3.5-4-131.js index a4fdf40a2be4e19acd132a545dba715a92546d3d..e855085d7c5dab7328bb5abd9a6d4052c81ad31d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-131.js +++ b/test/built-ins/Object/create/15.2.3.5-4-131.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: -0 - } + prop: { + configurable: -0 + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-132.js b/test/built-ins/Object/create/15.2.3.5-4-132.js index 0377fd5f7afdf60b5df7b107b88250fa4b7373da..15f848797421a4ff56080738cc01e85758ee225b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-132.js +++ b/test/built-ins/Object/create/15.2.3.5-4-132.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: NaN - } + prop: { + configurable: NaN + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-133.js b/test/built-ins/Object/create/15.2.3.5-4-133.js index cd34826270edf91be5b3b015f311b059c9e8ca3d..2a06c3559931550cb58fccbcf93e7f5897bd1e41 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-133.js +++ b/test/built-ins/Object/create/15.2.3.5-4-133.js @@ -8,17 +8,17 @@ description: > 'Properties' is a positive number (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: 123 - } - }); +var newObj = Object.create({}, { + prop: { + configurable: 123 + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-134.js b/test/built-ins/Object/create/15.2.3.5-4-134.js index e74cde5e4f207da5d8b423536d9815528dcc2122..a6de3a3d741cabe2ea082df8e8ff43a1d6839dda 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-134.js +++ b/test/built-ins/Object/create/15.2.3.5-4-134.js @@ -8,17 +8,17 @@ description: > 'Properties' is a negative number (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: -123 - } - }); +var newObj = Object.create({}, { + prop: { + configurable: -123 + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-135.js b/test/built-ins/Object/create/15.2.3.5-4-135.js index 7b4d6b03f7edacf681c221b3addfd5a5c2b87b4a..d675ebc245ad50bac273c8f3cd58bf6e8e37d02a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-135.js +++ b/test/built-ins/Object/create/15.2.3.5-4-135.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - configurable: "" - } + prop: { + configurable: "" + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-136.js b/test/built-ins/Object/create/15.2.3.5-4-136.js index c00e28b6a41dec2c5b9e2caf456f642cb2555832..bb2ea1bfdaaf146da42d448237c6ec57b64f260c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-136.js +++ b/test/built-ins/Object/create/15.2.3.5-4-136.js @@ -8,17 +8,17 @@ description: > 'Properties' is a non-empty string (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: "abc" - } - }); +var newObj = Object.create({}, { + prop: { + configurable: "abc" + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-137.js b/test/built-ins/Object/create/15.2.3.5-4-137.js index 884d3f95f0cb4a4e0ae818e119c156af0fd2014d..ba189488ca3b1660e893d6a302f10d6fdee24023 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-137.js +++ b/test/built-ins/Object/create/15.2.3.5-4-137.js @@ -8,17 +8,17 @@ description: > 'Properties' is a Function object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: function () { } - } - }); +var newObj = Object.create({}, { + prop: { + configurable: function() {} + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-138.js b/test/built-ins/Object/create/15.2.3.5-4-138.js index 2a81156150631986dbd2e3743370b8c8163bf29f..c089064576ad2b2e1d507564374e7e04fc381c15 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-138.js +++ b/test/built-ins/Object/create/15.2.3.5-4-138.js @@ -8,17 +8,17 @@ description: > 'Properties' is an Array object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: [] - } - }); +var newObj = Object.create({}, { + prop: { + configurable: [] + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-139.js b/test/built-ins/Object/create/15.2.3.5-4-139.js index f821b617264f61d646f5a98fe65aa6c26e7fdafd..297f6d4cd413c9f29e04a7dbb0451d2b990bc437 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-139.js +++ b/test/built-ins/Object/create/15.2.3.5-4-139.js @@ -8,17 +8,17 @@ description: > 'Properties' is a String object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: new String("abc") - } - }); +var newObj = Object.create({}, { + prop: { + configurable: new String("abc") + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-14.js b/test/built-ins/Object/create/15.2.3.5-4-14.js index 91c6fe65cdf4f4e13c3883fb203f669856c1afef..13945c1dd7b96f415778b76ff295955c23ec97fd 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-14.js +++ b/test/built-ins/Object/create/15.2.3.5-4-14.js @@ -8,21 +8,24 @@ description: > step 2) ---*/ - var props = new Error("test"); - var result = false; +var props = new Error("test"); +var result = false; - (Object.getOwnPropertyNames(props)).forEach(function(name){ - props[name] = {value:11, configurable:true} - }); +(Object.getOwnPropertyNames(props)).forEach(function(name) { + props[name] = { + value: 11, + configurable: true + } +}); - Object.defineProperty(props, "prop15_2_3_5_4_14", { - get: function () { - result = this instanceof Error; - return {}; - }, - enumerable: true - }); - var newObj = Object.create({}, props); +Object.defineProperty(props, "prop15_2_3_5_4_14", { + get: function() { + result = this instanceof Error; + return {}; + }, + enumerable: true +}); +var newObj = Object.create({}, props); assert(result, 'result !== true'); assert(newObj.hasOwnProperty("prop15_2_3_5_4_14"), 'newObj.hasOwnProperty("prop15_2_3_5_4_14") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-140.js b/test/built-ins/Object/create/15.2.3.5-4-140.js index c4407af611cdf3c1798806cd0c26605940addf08..6157350c54234b1581dc7653a4d41db26cb366a9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-140.js +++ b/test/built-ins/Object/create/15.2.3.5-4-140.js @@ -8,17 +8,17 @@ description: > 'Properties' is a Boolean object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: new Boolean(true) - } - }); +var newObj = Object.create({}, { + prop: { + configurable: new Boolean(true) + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-141.js b/test/built-ins/Object/create/15.2.3.5-4-141.js index 9ad3bb849199c7eebb26672104667fba440037b4..c421aa6496cb2434c125c38d8be1632c8caf85f3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-141.js +++ b/test/built-ins/Object/create/15.2.3.5-4-141.js @@ -8,17 +8,17 @@ description: > 'Properties' is a Number object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: new Number(123) - } - }); +var newObj = Object.create({}, { + prop: { + configurable: new Number(123) + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-142.js b/test/built-ins/Object/create/15.2.3.5-4-142.js index 706c93be6c06afa325a04fce6f511cbb51fb4502..eac935f599b1425a069b04df17c0ebd632e51409 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-142.js +++ b/test/built-ins/Object/create/15.2.3.5-4-142.js @@ -8,17 +8,17 @@ description: > 'Properties' is the Math object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: Math - } - }); +var newObj = Object.create({}, { + prop: { + configurable: Math + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-143.js b/test/built-ins/Object/create/15.2.3.5-4-143.js index 2c13898bf883271ca699f5881c845c4e2bf71ba0..fd08e43a9c03591bece73a8fe484757d4fae9883 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-143.js +++ b/test/built-ins/Object/create/15.2.3.5-4-143.js @@ -8,17 +8,17 @@ description: > 'Properties' is a Date object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: new Date() - } - }); +var newObj = Object.create({}, { + prop: { + configurable: new Date() + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-144.js b/test/built-ins/Object/create/15.2.3.5-4-144.js index a77690f053def2a929f275f9d261511ce5bbb085..0a5e3ecc5abcd16598c1847bcab4df937469f2dd 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-144.js +++ b/test/built-ins/Object/create/15.2.3.5-4-144.js @@ -8,17 +8,17 @@ description: > 'Properties' is a RegExp object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: new RegExp() - } - }); +var newObj = Object.create({}, { + prop: { + configurable: new RegExp() + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-145.js b/test/built-ins/Object/create/15.2.3.5-4-145.js index 59b7607b23357ebde749c1e49feae78855a71f83..fa55b5b90aaf19f5b60e9e0bb6901206e2b4b470 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-145.js +++ b/test/built-ins/Object/create/15.2.3.5-4-145.js @@ -8,17 +8,17 @@ description: > 'Properties' is the JSON object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: JSON - } - }); +var newObj = Object.create({}, { + prop: { + configurable: JSON + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-146.js b/test/built-ins/Object/create/15.2.3.5-4-146.js index b187b2c7995edc02040390ec43ddb9fbe5990928..049de634b32424a06ee4f2c4618ed06350dec70c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-146.js +++ b/test/built-ins/Object/create/15.2.3.5-4-146.js @@ -8,17 +8,17 @@ description: > 'Properties' is an Error object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: new Error() - } - }); +var newObj = Object.create({}, { + prop: { + configurable: new Error() + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-147.js b/test/built-ins/Object/create/15.2.3.5-4-147.js index c5966f17c1858c51c45d9a47838494a7afd22461..014dd54d400124d2e7045e097dfabec9920dd4b9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-147.js +++ b/test/built-ins/Object/create/15.2.3.5-4-147.js @@ -8,19 +8,21 @@ description: > 'Properties' is an Arguments object (8.10.5 step 4.b) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var newObj = Object.create({}, { - prop: { - configurable: argObj - } - }); +var newObj = Object.create({}, { + prop: { + configurable: argObj + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-149.js b/test/built-ins/Object/create/15.2.3.5-4-149.js index d5b9cd92755c3c0c6efe98c745c4b063f5ecde2d..ac9616597de6a3ed15120f68b1bf45a509d4b99b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-149.js +++ b/test/built-ins/Object/create/15.2.3.5-4-149.js @@ -8,17 +8,17 @@ description: > 'Properties' is the global object (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: this - } - }); +var newObj = Object.create({}, { + prop: { + configurable: this + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-15.js b/test/built-ins/Object/create/15.2.3.5-4-15.js index 97856238daec7395e2045bba8eec3e1e70f5eee4..6497f51716d389f4bca9da33e506f9b803376458 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-15.js +++ b/test/built-ins/Object/create/15.2.3.5-4-15.js @@ -8,19 +8,21 @@ description: > (15.2.3.7 step 2) ---*/ - var result = false; +var result = false; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(argObj, "prop", { - get: function () { - result = ('[object Arguments]' === Object.prototype.toString.call(this)); - return {}; - }, - enumerable: true - }); +Object.defineProperty(argObj, "prop", { + get: function() { + result = ('[object Arguments]' === Object.prototype.toString.call(this)); + return {}; + }, + enumerable: true +}); - var newObj = Object.create({}, argObj); +var newObj = Object.create({}, argObj); assert(result, 'result !== true'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-150.js b/test/built-ins/Object/create/15.2.3.5-4-150.js index a39b6ec1a576734884c2b9aef6c70c7433be397d..9ed32d00d1b0d3e3f53d336ee3a7fb104cd64637 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-150.js +++ b/test/built-ins/Object/create/15.2.3.5-4-150.js @@ -9,17 +9,17 @@ description: > the value true (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: "false" - } - }); +var newObj = Object.create({}, { + prop: { + configurable: "false" + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-151.js b/test/built-ins/Object/create/15.2.3.5-4-151.js index 0652a29d96c5514bb8fd936ba4471bbf559a35ae..897b65106db690f088db8e5251850cdd92804760 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-151.js +++ b/test/built-ins/Object/create/15.2.3.5-4-151.js @@ -9,17 +9,17 @@ description: > true (8.10.5 step 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: new Boolean(false) - } - }); +var newObj = Object.create({}, { + prop: { + configurable: new Boolean(false) + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-152.js b/test/built-ins/Object/create/15.2.3.5-4-152.js index d10a654917cc677fc0b83315c796694afc99905e..df98987609d6bdfa0c6856215be1daf54a875e37 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-152.js +++ b/test/built-ins/Object/create/15.2.3.5-4-152.js @@ -8,10 +8,10 @@ description: > is present (8.10.5 step 5) ---*/ - var newObj = Object.create({}, { - prop: { - value: 100 - } - }); +var newObj = Object.create({}, { + prop: { + value: 100 + } +}); assert.sameValue(newObj.prop, 100, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-153.js b/test/built-ins/Object/create/15.2.3.5-4-153.js index 9e468d7d7205707aaa5766002615b2fa4cc870d3..87f943344660f3f05550e0ba2d3034731805b418 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-153.js +++ b/test/built-ins/Object/create/15.2.3.5-4-153.js @@ -8,9 +8,9 @@ description: > is not present (8.10.5 step 5) ---*/ - var newObj = Object.create({}, { - prop: {} - }); +var newObj = Object.create({}, { + prop: {} +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)'); +assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-154.js b/test/built-ins/Object/create/15.2.3.5-4-154.js index 6d173dedbdb0528a92028d73b4f1302eb81d6134..95975d00b5dac36d998ff294105ef96a2d0b1d26 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-154.js +++ b/test/built-ins/Object/create/15.2.3.5-4-154.js @@ -8,10 +8,10 @@ description: > is own data property (8.10.5 step 5.a) ---*/ - var newObj = Object.create({}, { - prop: { - value: "ownDataProperty" - } - }); +var newObj = Object.create({}, { + prop: { + value: "ownDataProperty" + } +}); assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-155.js b/test/built-ins/Object/create/15.2.3.5-4-155.js index 9da761bcb20666280d932252e117fc7c1875037c..37fa24eb3fe7740552c9545b4082838780431ab1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-155.js +++ b/test/built-ins/Object/create/15.2.3.5-4-155.js @@ -8,17 +8,17 @@ description: > is an inherited data property (8.10.5 step 5.a) ---*/ - var proto = { - value: "inheritedDataProperty" - }; +var proto = { + value: "inheritedDataProperty" +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "inheritedDataProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-156.js b/test/built-ins/Object/create/15.2.3.5-4-156.js index 7161dc784c88e5b3f398548c1bd636e03dc189b1..f3a2f4ce2b028ec0afaa789f3f832203d0efab1c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-156.js +++ b/test/built-ins/Object/create/15.2.3.5-4-156.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 5.a) ---*/ - var proto = { - value: "inheritedDataProperty" - }; +var proto = { + value: "inheritedDataProperty" +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - descObj.value = "ownDataProperty"; +descObj.value = "ownDataProperty"; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-157.js b/test/built-ins/Object/create/15.2.3.5-4-157.js index 4a8fb1a795ca6c51ea4d02b95dc11d0643a4d6a4..7c587f7a35f3058f547fdaa7347cb7f14cf65747 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-157.js +++ b/test/built-ins/Object/create/15.2.3.5-4-157.js @@ -9,27 +9,27 @@ description: > (8.10.5 step 5.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "value", { - get: function () { - return "ownDataProperty"; - } - }); +Object.defineProperty(descObj, "value", { + get: function() { + return "ownDataProperty"; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-158.js b/test/built-ins/Object/create/15.2.3.5-4-158.js index 1f31f645b840c2bcddc901f01ccf8615f2fa6978..de5d281091d2a70253de9c797b24f2d1ebf290f2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-158.js +++ b/test/built-ins/Object/create/15.2.3.5-4-158.js @@ -8,16 +8,16 @@ description: > is own accessor property (8.10.5 step 5.a) ---*/ - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +Object.defineProperty(descObj, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-159.js b/test/built-ins/Object/create/15.2.3.5-4-159.js index 4ed1f46a464f06ee50c05ec7a2fe7434d2efbdfc..c23265613952faa8375b72e4dc77c0b1f2f06d1f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-159.js +++ b/test/built-ins/Object/create/15.2.3.5-4-159.js @@ -8,21 +8,21 @@ description: > is an inherited accessor property (8.10.5 step 5.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "inheritedAccessorProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-16.js b/test/built-ins/Object/create/15.2.3.5-4-16.js index 7916c17fe547e9cebfbac5352051ff26ee55a064..73880fd3818ef47c219a210748c360bfd559e854 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-16.js +++ b/test/built-ins/Object/create/15.2.3.5-4-16.js @@ -8,8 +8,8 @@ description: > defined in 'obj' (15.2.3.7 step 3) ---*/ - var newObj = Object.create({}, { - prop: {} - }); +var newObj = Object.create({}, { + prop: {} +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-160.js b/test/built-ins/Object/create/15.2.3.5-4-160.js index 692a8589f25bc6afb5d7a4e3dc64819f987af95d..fae08097f4096dca7d27c1b726b6b79e18f80643 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-160.js +++ b/test/built-ins/Object/create/15.2.3.5-4-160.js @@ -9,23 +9,23 @@ description: > (8.10.5 step 5.a) ---*/ - var proto = { - value: "inheritedDataProperty" - }; +var proto = { + value: "inheritedDataProperty" +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +Object.defineProperty(descObj, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-161.js b/test/built-ins/Object/create/15.2.3.5-4-161.js index ad384083c3d57245303b7796eaadf10efbb323f2..637b2c0ea225e3c6e616a46ede3506cb8c0bfeb5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-161.js +++ b/test/built-ins/Object/create/15.2.3.5-4-161.js @@ -9,27 +9,27 @@ description: > property (8.10.5 step 5.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +Object.defineProperty(descObj, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-162.js b/test/built-ins/Object/create/15.2.3.5-4-162.js index ec528e311e952bf56cde2b9cad5a18ca2eb30721..70c676c9d60e51efb28a8e909ebd18491b2c9834 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-162.js +++ b/test/built-ins/Object/create/15.2.3.5-4-162.js @@ -8,15 +8,15 @@ description: > is own accessor property without a get function (8.10.5 step 5.a) ---*/ - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "value", { - set: function () { } - }); +Object.defineProperty(descObj, "value", { + set: function() {} +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)'); +assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-163.js b/test/built-ins/Object/create/15.2.3.5-4-163.js index 2f3d0e80fbf468f5a632665ee11bf4da4a68f05a..4dedb1f63559b721a89a053b97c4c0025c6998b0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-163.js +++ b/test/built-ins/Object/create/15.2.3.5-4-163.js @@ -9,26 +9,26 @@ description: > an inherited accessor property (8.10.5 step 5.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "value", { - set: function () { } - }); +Object.defineProperty(descObj, "value", { + set: function() {} +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)'); +assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-164.js b/test/built-ins/Object/create/15.2.3.5-4-164.js index d3a0f706b0dd8d8dd2c53cfc2f04cf18d4e21f31..a4d92bcbc64d4c539773acecf5c4e23000503f5b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-164.js +++ b/test/built-ins/Object/create/15.2.3.5-4-164.js @@ -9,20 +9,20 @@ description: > step 5.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - set: function () { } - }); +Object.defineProperty(proto, "value", { + set: function() {} +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)'); +assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-165.js b/test/built-ins/Object/create/15.2.3.5-4-165.js index df8cb009bc59868d9b86e7fd7fad05526e7f5a0f..f5342706b7b65b0df72ab2d4dd17202d2a667f81 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-165.js +++ b/test/built-ins/Object/create/15.2.3.5-4-165.js @@ -9,15 +9,15 @@ description: > property (8.10.5 step 5.a) ---*/ - var Func = function (a, b) { - return a + b; - }; +var Func = function(a, b) { + return a + b; +}; - var fun = new Func(); - fun.value = "FunValue"; +var fun = new Func(); +fun.value = "FunValue"; - var newObj = Object.create({}, { - prop: fun - }); +var newObj = Object.create({}, { + prop: fun +}); assert.sameValue(newObj.prop, "FunValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-166.js b/test/built-ins/Object/create/15.2.3.5-4-166.js index 0e844df158b06184b801045f5d307dfc745b56db..d5e05f8a80037644fd5d5c7ab01071656104a525 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-166.js +++ b/test/built-ins/Object/create/15.2.3.5-4-166.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 5.a) ---*/ - var arr = [1, 2, 3]; +var arr = [1, 2, 3]; - arr.value = "ArrValue"; +arr.value = "ArrValue"; - var newObj = Object.create({}, { - prop: arr - }); +var newObj = Object.create({}, { + prop: arr +}); assert.sameValue(newObj.prop, "ArrValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-167.js b/test/built-ins/Object/create/15.2.3.5-4-167.js index 2f4959e6cabf012102dc8d57b3aabc67cfe93bcc..84ce5be596102f7315a58f903b466e3c7a8d3c6e 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-167.js +++ b/test/built-ins/Object/create/15.2.3.5-4-167.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 5.a) ---*/ - var str = new String("abc"); +var str = new String("abc"); - str.value = "StrValue"; +str.value = "StrValue"; - var newObj = Object.create({}, { - prop: str - }); +var newObj = Object.create({}, { + prop: str +}); assert.sameValue(newObj.prop, "StrValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-168.js b/test/built-ins/Object/create/15.2.3.5-4-168.js index bb2fd7d998f0b380c7e6783f3406e560f3b82c11..67c5abeb82945200cb1af16bf674e3a8930aa800 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-168.js +++ b/test/built-ins/Object/create/15.2.3.5-4-168.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 5.a) ---*/ - var booleanObj = new Boolean(false); +var booleanObj = new Boolean(false); - booleanObj.value = "BooleanValue"; +booleanObj.value = "BooleanValue"; - var newObj = Object.create({}, { - prop: booleanObj - }); +var newObj = Object.create({}, { + prop: booleanObj +}); assert.sameValue(newObj.prop, "BooleanValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-169.js b/test/built-ins/Object/create/15.2.3.5-4-169.js index 529e7b3feefc25e86210dbca3401e75006300513..9f649ef3015c2d80e522491e958ff053f7cf42ae 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-169.js +++ b/test/built-ins/Object/create/15.2.3.5-4-169.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 5.a) ---*/ - var numObj = new Number(123); +var numObj = new Number(123); - numObj.value = "NumValue"; +numObj.value = "NumValue"; - var newObj = Object.create({}, { - prop: numObj - }); +var newObj = Object.create({}, { + prop: numObj +}); assert.sameValue(newObj.prop, "NumValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-17.js b/test/built-ins/Object/create/15.2.3.5-4-17.js index 8083d035f6f4c4bcb15a39da2326bd7575e171c9..e483b13a48acc29d4d019691f493e3fcf88189aa 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-17.js +++ b/test/built-ins/Object/create/15.2.3.5-4-17.js @@ -8,11 +8,11 @@ description: > enumerable is not defined in 'obj' (15.2.3.7 step 3) ---*/ - var props = {}; - Object.defineProperty(props, "prop", { - value: {}, - enumerable: false - }); - var newObj = Object.create({}, props); +var props = {}; +Object.defineProperty(props, "prop", { + value: {}, + enumerable: false +}); +var newObj = Object.create({}, props); assert.sameValue(newObj.hasOwnProperty("prop"), false, 'newObj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-170.js b/test/built-ins/Object/create/15.2.3.5-4-170.js index b3c6507920e5d618635bf9fd0b5071772efcdeae..308b568a24c84212ff94eb08d3ad763899528b77 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-170.js +++ b/test/built-ins/Object/create/15.2.3.5-4-170.js @@ -9,10 +9,10 @@ description: > (8.10.5 step 5.a) ---*/ - Math.value = "MathValue"; +Math.value = "MathValue"; - var newObj = Object.create({}, { - prop: Math - }); +var newObj = Object.create({}, { + prop: Math +}); assert.sameValue(newObj.prop, "MathValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-171.js b/test/built-ins/Object/create/15.2.3.5-4-171.js index 7dce49956450504e17b0345e1b6686663821a6d0..a603d0dff6b4aaddc886c6d6dee697e1a92debb7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-171.js +++ b/test/built-ins/Object/create/15.2.3.5-4-171.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 5.a) ---*/ - var dateObj = new Date(); +var dateObj = new Date(); - dateObj.value = "DateValue"; +dateObj.value = "DateValue"; - var newObj = Object.create({}, { - prop: dateObj - }); +var newObj = Object.create({}, { + prop: dateObj +}); assert.sameValue(newObj.prop, "DateValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-172.js b/test/built-ins/Object/create/15.2.3.5-4-172.js index 6b467c8b08f0080a0bfbd1f634b2a952c852224c..e2ec0f839634bdfde58020824d6a4676e0129e67 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-172.js +++ b/test/built-ins/Object/create/15.2.3.5-4-172.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 5.a) ---*/ - var regObj = new RegExp(); +var regObj = new RegExp(); - regObj.value = "RegExpValue"; +regObj.value = "RegExpValue"; - var newObj = Object.create({}, { - prop: regObj - }); +var newObj = Object.create({}, { + prop: regObj +}); assert.sameValue(newObj.prop, "RegExpValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-173.js b/test/built-ins/Object/create/15.2.3.5-4-173.js index 01a70416925b52a1597d64eb227b3683a118b366..d44156cc85bfc5ac56bb6f59a17bbe84861e5a9a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-173.js +++ b/test/built-ins/Object/create/15.2.3.5-4-173.js @@ -9,10 +9,10 @@ description: > (8.10.5 step 5.a) ---*/ - JSON.value = "JSONValue"; +JSON.value = "JSONValue"; - var newObj = Object.create({}, { - prop: JSON - }); +var newObj = Object.create({}, { + prop: JSON +}); assert.sameValue(newObj.prop, "JSONValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-174.js b/test/built-ins/Object/create/15.2.3.5-4-174.js index 49aabea5358f6a534694e4cb94b75757aa8c44e3..4ea8dd8f688782b03db92cd9db00a76fa46dbee1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-174.js +++ b/test/built-ins/Object/create/15.2.3.5-4-174.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 5.a) ---*/ - var errorObj = new Error(); +var errorObj = new Error(); - errorObj.value = "ErrorValue"; +errorObj.value = "ErrorValue"; - var newObj = Object.create({}, { - prop: errorObj - }); +var newObj = Object.create({}, { + prop: errorObj +}); assert.sameValue(newObj.prop, "ErrorValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-175.js b/test/built-ins/Object/create/15.2.3.5-4-175.js index ef17be9ef2febc9e690e271f6bf595fff1fc7326..e1adbd723dd35bf63b5063e19399f8fcc529d148 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-175.js +++ b/test/built-ins/Object/create/15.2.3.5-4-175.js @@ -9,12 +9,14 @@ description: > 'value' property (8.10.5 step 5.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.value = "ArgValue"; +argObj.value = "ArgValue"; - var newObj = Object.create({}, { - prop: argObj - }); +var newObj = Object.create({}, { + prop: argObj +}); assert.sameValue(newObj.prop, "ArgValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-177.js b/test/built-ins/Object/create/15.2.3.5-4-177.js index 58825c2a82e9ec1848bf049632ab7ca4f153a878..5b9d67cbe96a961feb824956f2a0582a661b5315 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-177.js +++ b/test/built-ins/Object/create/15.2.3.5-4-177.js @@ -9,10 +9,10 @@ description: > (8.10.5 step 5.a) ---*/ - this.value = "GlobalValue"; +this.value = "GlobalValue"; - var newObj = Object.create({}, { - prop: this - }); +var newObj = Object.create({}, { + prop: this +}); assert.sameValue(newObj.prop, "GlobalValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-178.js b/test/built-ins/Object/create/15.2.3.5-4-178.js index d07158967da625c44106e020f10aa8c30ffdd8a4..e2ce679db0edaebdd67f2b0f455b9f78cf9c3250 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-178.js +++ b/test/built-ins/Object/create/15.2.3.5-4-178.js @@ -8,17 +8,17 @@ description: > 'Properties' is true (8.10.5 step 6) ---*/ - var newObj = Object.create({}, { - prop: { - writable: true - } - }); +var newObj = Object.create({}, { + prop: { + writable: true + } +}); - var beforeWrite = ((newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined")); +var beforeWrite = ((newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined")); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-179.js b/test/built-ins/Object/create/15.2.3.5-4-179.js index cde7f79f252852183bb15349fcf7f7eb2e8db16c..1c71b6ebc8b777f73d701f07e8ce9f1bf7d52ee7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-179.js +++ b/test/built-ins/Object/create/15.2.3.5-4-179.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - value: 100 - } + prop: { + value: 100 + } }); assert.sameValue(newObj.prop, 100); diff --git a/test/built-ins/Object/create/15.2.3.5-4-18.js b/test/built-ins/Object/create/15.2.3.5-4-18.js index 4bd85b5c0cc4a6e92b38348f63cf0ec0cc8a4f9e..9096b53fdd38c694caa71e6f5cfcb1a1869af4eb 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-18.js +++ b/test/built-ins/Object/create/15.2.3.5-4-18.js @@ -8,14 +8,14 @@ description: > 'Properties' is not defined in 'obj' (15.2.3.7 step 3) ---*/ - var proto = {}; +var proto = {}; - proto.prop = {}; +proto.prop = {}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); - var newObj = Object.create({}, child); +var newObj = Object.create({}, child); assert.sameValue(newObj.hasOwnProperty("prop"), false, 'newObj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-180.js b/test/built-ins/Object/create/15.2.3.5-4-180.js index 3f335be922525b33fa5fe324a73e92957ad30b3d..ccc5f3940839fd980b55a0c8db5d99c11078bc00 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-180.js +++ b/test/built-ins/Object/create/15.2.3.5-4-180.js @@ -8,17 +8,17 @@ description: > 'Properties' is own data property (8.10.5 step 6.a) ---*/ - var newObj = Object.create({}, { - prop: { - writable: true - } - }); +var newObj = Object.create({}, { + prop: { + writable: true + } +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-181.js b/test/built-ins/Object/create/15.2.3.5-4-181.js index dd7c4798c565522332262446ca2476939b5f43b7..036f352af61a195a84773f477b52af3cb4dd0c72 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-181.js +++ b/test/built-ins/Object/create/15.2.3.5-4-181.js @@ -8,24 +8,24 @@ description: > 'Properties' is an inherited data property (8.10.5 step 6.a) ---*/ - var proto = { - writable: true - }; +var proto = { + writable: true +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-182.js b/test/built-ins/Object/create/15.2.3.5-4-182.js index aab02965aa0087ebde3d76f860bb8ac2c06fed0e..7421e6f51161332c253fb30ecf6c715955c3f2c7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-182.js +++ b/test/built-ins/Object/create/15.2.3.5-4-182.js @@ -9,26 +9,26 @@ description: > property (8.10.5 step 6.a) ---*/ - var proto = { - writable: false - }; +var proto = { + writable: false +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - descObj.writable = true; +descObj.writable = true; - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-183.js b/test/built-ins/Object/create/15.2.3.5-4-183.js index abd7e52bd076f30a75852a096f706df4af8c5312..5d35785a03cfaa7810b11715129152ebe13fbd3f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-183.js +++ b/test/built-ins/Object/create/15.2.3.5-4-183.js @@ -9,32 +9,32 @@ description: > accessor property (8.10.5 step 6.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "writable", { - get: function () { - return false; - } - }); +Object.defineProperty(proto, "writable", { + get: function() { + return false; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "writable", { - value: true - }); +Object.defineProperty(descObj, "writable", { + value: true +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-184.js b/test/built-ins/Object/create/15.2.3.5-4-184.js index fdc42d8e6f805ec2809169cbd424af21204095e9..c87b09d6e520477df8176a7bdfecdd28175ebdbd 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-184.js +++ b/test/built-ins/Object/create/15.2.3.5-4-184.js @@ -8,23 +8,23 @@ description: > 'Properties' is own accessor property (8.10.5 step 6.a) ---*/ - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "writable", { - get: function () { - return true; - } - }); +Object.defineProperty(descObj, "writable", { + get: function() { + return true; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-185.js b/test/built-ins/Object/create/15.2.3.5-4-185.js index e1152493bfe0067f705e8823473a6d580b0834fa..9798108c0ca55366357153e23a6b2d1f3b27aa0c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-185.js +++ b/test/built-ins/Object/create/15.2.3.5-4-185.js @@ -8,28 +8,28 @@ description: > 'Properties' is an inherited accessor property (8.10.5 step 6.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "writable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "writable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-186.js b/test/built-ins/Object/create/15.2.3.5-4-186.js index 38eafffccf47b5fcc4be87c0c0be0d56e9b49fc7..d72fadb912d5b3526b73a18a375751a9721b6811 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-186.js +++ b/test/built-ins/Object/create/15.2.3.5-4-186.js @@ -9,30 +9,30 @@ description: > data property (8.10.5 step 6.a) ---*/ - var proto = { - writable: false - }; +var proto = { + writable: false +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "writable", { - get: function () { - return true; - } - }); +Object.defineProperty(descObj, "writable", { + get: function() { + return true; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-187.js b/test/built-ins/Object/create/15.2.3.5-4-187.js index 4419c8873a38ebce6b7267a2414a7e69aab645cf..9410fedc03bf265457b27ea61c78771b78ca3cbf 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-187.js +++ b/test/built-ins/Object/create/15.2.3.5-4-187.js @@ -9,34 +9,34 @@ description: > accessor property (8.10.5 step 6.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "writable", { - get: function () { - return false; - } - }); +Object.defineProperty(proto, "writable", { + get: function() { + return false; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "writable", { - get: function () { - return true; - } - }); +Object.defineProperty(descObj, "writable", { + get: function() { + return true; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-188.js b/test/built-ins/Object/create/15.2.3.5-4-188.js index 46aef9df2814a14889204f2170d5b6c1958985a0..25ae2dfc3023f3175ec676f77b6753a4a182f7a0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-188.js +++ b/test/built-ins/Object/create/15.2.3.5-4-188.js @@ -10,14 +10,16 @@ description: > includes: [propertyHelper.js] ---*/ -var descObj = { value: 100 }; +var descObj = { + value: 100 +}; Object.defineProperty(descObj, "writable", { - set: function () { } + set: function() {} }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert.sameValue(newObj.prop, 100); diff --git a/test/built-ins/Object/create/15.2.3.5-4-189.js b/test/built-ins/Object/create/15.2.3.5-4-189.js index 0ff9668f972149ee8de513b4cd294b7e4d375362..1f4ef0c7879d2bff881f6c2844688180c87d86c0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-189.js +++ b/test/built-ins/Object/create/15.2.3.5-4-189.js @@ -13,24 +13,24 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "writable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); Object.defineProperty(descObj, "writable", { - set: function () { } + set: function() {} }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")) -assert.sameValue(typeof (newObj.prop), "undefined"); +assert.sameValue(typeof(newObj.prop), "undefined"); verifyNotWritable(newObj, "prop"); diff --git a/test/built-ins/Object/create/15.2.3.5-4-19.js b/test/built-ins/Object/create/15.2.3.5-4-19.js index dce154b89c06adb4b32f2793bc4da44baad5c286..b2d519292e82917112e944ba04f36403c09cccc7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-19.js +++ b/test/built-ins/Object/create/15.2.3.5-4-19.js @@ -8,15 +8,15 @@ description: > is defined in 'obj' (15.2.3.7 step 3) ---*/ - var props = {}; +var props = {}; - Object.defineProperty(props, "prop", { - get: function () { - return {}; - }, - enumerable: true - }); +Object.defineProperty(props, "prop", { + get: function() { + return {}; + }, + enumerable: true +}); - var newObj = Object.create({}, props); +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-190.js b/test/built-ins/Object/create/15.2.3.5-4-190.js index b58182e55823b2b410af06d7c2ceac1a9bf29bfd..a2d96068e9b31e9faa6dbedd08d21df79306347a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-190.js +++ b/test/built-ins/Object/create/15.2.3.5-4-190.js @@ -10,19 +10,21 @@ description: > includes: [propertyHelper.js] ---*/ -var proto = { value: 100 }; +var proto = { + value: 100 +}; Object.defineProperty(proto, "writable", { - set: function () { } + set: function() {} }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert.sameValue(newObj.prop, 100); diff --git a/test/built-ins/Object/create/15.2.3.5-4-191.js b/test/built-ins/Object/create/15.2.3.5-4-191.js index 974137f75ddc7ba11beaf0d70697bc4fde2b3d3d..ab546cbf01a548ebf4aa4b384ed345403b738daa 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-191.js +++ b/test/built-ins/Object/create/15.2.3.5-4-191.js @@ -9,22 +9,22 @@ description: > property (8.10.5 step 6.a) ---*/ - var Func = function (a, b) { - return a + b; - }; +var Func = function(a, b) { + return a + b; +}; - var fun = new Func(); - fun.writable = true; +var fun = new Func(); +fun.writable = true; - var newObj = Object.create({}, { - prop: fun - }); +var newObj = Object.create({}, { + prop: fun +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-192.js b/test/built-ins/Object/create/15.2.3.5-4-192.js index 6adc605917376cd3d23bec659576b1bd8219f27b..01ec48139159b5524b7a3ab4ca0a71c8248118cf 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-192.js +++ b/test/built-ins/Object/create/15.2.3.5-4-192.js @@ -9,19 +9,19 @@ description: > property (8.10.5 step 6.a) ---*/ - var array = [1, 2, 3]; +var array = [1, 2, 3]; - array.writable = true; +array.writable = true; - var newObj = Object.create({}, { - prop: array - }); +var newObj = Object.create({}, { + prop: array +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-193.js b/test/built-ins/Object/create/15.2.3.5-4-193.js index a4c1d21ba6e90ea6ddd08773e98becff179b2339..5736037e6b0ec76fb4723dd24017de0186de108d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-193.js +++ b/test/built-ins/Object/create/15.2.3.5-4-193.js @@ -9,19 +9,19 @@ description: > property (8.10.5 step 6.a) ---*/ - var str = new String("abc"); +var str = new String("abc"); - str.writable = true; +str.writable = true; - var newObj = Object.create({}, { - prop: str - }); +var newObj = Object.create({}, { + prop: str +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-194.js b/test/built-ins/Object/create/15.2.3.5-4-194.js index 55fb8cc628f7bea690aea29414183e33a8c0dc35..cd2347e58ae334e21d3499e6017edc57f8395a42 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-194.js +++ b/test/built-ins/Object/create/15.2.3.5-4-194.js @@ -9,19 +9,19 @@ description: > property (8.10.5 step 6.a) ---*/ - var booleanObj = new Boolean(false); +var booleanObj = new Boolean(false); - booleanObj.writable = true; +booleanObj.writable = true; - var newObj = Object.create({}, { - prop: booleanObj - }); +var newObj = Object.create({}, { + prop: booleanObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-195.js b/test/built-ins/Object/create/15.2.3.5-4-195.js index 75defcd96c89efdaa5cba188b4d2d2dbad9dcf9f..3995d3864d33f5add39f8ff3067a8e76120cf363 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-195.js +++ b/test/built-ins/Object/create/15.2.3.5-4-195.js @@ -9,19 +9,19 @@ description: > property (8.10.5 step 6.a) ---*/ - var numObj = new Number(123); +var numObj = new Number(123); - numObj.writable = true; +numObj.writable = true; - var newObj = Object.create({}, { - prop: numObj - }); +var newObj = Object.create({}, { + prop: numObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-196.js b/test/built-ins/Object/create/15.2.3.5-4-196.js index 4a10a2d35a3c5eb5c341efa322a35bfe8d20dea5..38ce45508fee1c0f2bea8565d8b856bbe2fd9675 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-196.js +++ b/test/built-ins/Object/create/15.2.3.5-4-196.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 6.a) ---*/ - Math.writable = true; +Math.writable = true; - var newObj = Object.create({}, { - prop: Math - }); +var newObj = Object.create({}, { + prop: Math +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-197.js b/test/built-ins/Object/create/15.2.3.5-4-197.js index 826b411eee421e870d2493273a37c67f3ebc14dc..fdf8704b59f2c70486f184b13a14a393cefab923 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-197.js +++ b/test/built-ins/Object/create/15.2.3.5-4-197.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 6.a) ---*/ - var dateObj = new Date(); +var dateObj = new Date(); - dateObj.writable = true; +dateObj.writable = true; - var newObj = Object.create({}, { - prop: dateObj - }); +var newObj = Object.create({}, { + prop: dateObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-198.js b/test/built-ins/Object/create/15.2.3.5-4-198.js index 549af5c863f5cb4c3ead301abba3fca66f685ed5..c1e428849c3f76cd9f9886d03188be5ec86557df 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-198.js +++ b/test/built-ins/Object/create/15.2.3.5-4-198.js @@ -9,19 +9,19 @@ description: > property (8.10.5 step 6.a) ---*/ - var regObj = new RegExp(); +var regObj = new RegExp(); - regObj.writable = true; +regObj.writable = true; - var newObj = Object.create({}, { - prop: regObj - }); +var newObj = Object.create({}, { + prop: regObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-199.js b/test/built-ins/Object/create/15.2.3.5-4-199.js index b0d11199274f139d071d11d99a383bcde7617ad8..2a9ed8b677fc93d42966657180e80de231d42b8f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-199.js +++ b/test/built-ins/Object/create/15.2.3.5-4-199.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 6.a) ---*/ - JSON.writable = true; +JSON.writable = true; - var newObj = Object.create({}, { - prop: JSON - }); +var newObj = Object.create({}, { + prop: JSON +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-2.js b/test/built-ins/Object/create/15.2.3.5-4-2.js index 773eec561de7566a83c1fd7e5d1e9a02f5a6420d..080865960375f8572c22cfa318afe68bbc30b58b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-2.js +++ b/test/built-ins/Object/create/15.2.3.5-4-2.js @@ -6,6 +6,6 @@ es5id: 15.2.3.5-4-2 description: Object.create - 'Properties' is undefined ---*/ - var newObj = Object.create({}, undefined); +var newObj = Object.create({}, undefined); assert((newObj instanceof Object), '(newObj instanceof Object) !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-20.js b/test/built-ins/Object/create/15.2.3.5-4-20.js index 5a158b32b4a848ece33cd0405b0aa37f39dd4c63..a0c5c354cc6ce5ea8ccd7b799da9f39dc293c8d7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-20.js +++ b/test/built-ins/Object/create/15.2.3.5-4-20.js @@ -8,15 +8,15 @@ description: > enumerable is not defined in 'obj' (15.2.3.7 step 3) ---*/ - var props = {}; +var props = {}; - Object.defineProperty(props, "prop", { - get: function () { - return {}; - }, - enumerable: false - }); +Object.defineProperty(props, "prop", { + get: function() { + return {}; + }, + enumerable: false +}); - var newObj = Object.create({}, props); +var newObj = Object.create({}, props); assert.sameValue(newObj.hasOwnProperty("prop"), false, 'newObj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-200.js b/test/built-ins/Object/create/15.2.3.5-4-200.js index f5583aafdfa2b408b8d7e3f87300edbb6f976489..2f5badee0ebe00a9f49ffa63cbd1d9f120076394 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-200.js +++ b/test/built-ins/Object/create/15.2.3.5-4-200.js @@ -9,19 +9,19 @@ description: > property (8.10.5 step 6.a) ---*/ - var errorObj = new Error(); +var errorObj = new Error(); - errorObj.writable = true; +errorObj.writable = true; - var newObj = Object.create({}, { - prop: errorObj - }); +var newObj = Object.create({}, { + prop: errorObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-201.js b/test/built-ins/Object/create/15.2.3.5-4-201.js index 205a6f616ac3d52a550adb9d82e5ed1062274128..55d89504a7834a1b09b2068a100f9c935a419656 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-201.js +++ b/test/built-ins/Object/create/15.2.3.5-4-201.js @@ -9,19 +9,21 @@ description: > 'writable' property (8.10.5 step 6.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.writable = true; +argObj.writable = true; - var newObj = Object.create({}, { - prop: argObj - }); +var newObj = Object.create({}, { + prop: argObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-203.js b/test/built-ins/Object/create/15.2.3.5-4-203.js index 2dd10362592751d70acd559411c9be3da1bb538a..02121c841c0b1b9c6444183cb94cde950eab3296 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-203.js +++ b/test/built-ins/Object/create/15.2.3.5-4-203.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 6.a) ---*/ - this.writable = true; +this.writable = true; - var newObj = Object.create({}, { - prop: this - }); +var newObj = Object.create({}, { + prop: this +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-204.js b/test/built-ins/Object/create/15.2.3.5-4-204.js index c887e94efff580e70ae63bf1ea200ffa733b8ed6..26bd33b2fc8e9d7afaa637052621b3261136f998 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-204.js +++ b/test/built-ins/Object/create/15.2.3.5-4-204.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - writable: undefined - } + prop: { + writable: undefined + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-205.js b/test/built-ins/Object/create/15.2.3.5-4-205.js index 64db1e0ee517f07d90abadd06663b198943b434f..62ef9311583a4d2f7b4a95d49cade942d03e1075 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-205.js +++ b/test/built-ins/Object/create/15.2.3.5-4-205.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - writable: null - } + prop: { + writable: null + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-206.js b/test/built-ins/Object/create/15.2.3.5-4-206.js index 4f42500687413702ff6fa278f907faf83ec6b584..aa4244002bb226dc2981b19c6aa6a03a3847f13b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-206.js +++ b/test/built-ins/Object/create/15.2.3.5-4-206.js @@ -8,14 +8,14 @@ description: > 'Properties' is true (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: true - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: true + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-207.js b/test/built-ins/Object/create/15.2.3.5-4-207.js index 96aec207160af3f2d8e6a60b0de3f87af1bb8d94..e7b26dcb0c90e7b4ca1bf3a135116ff2ef83ba64 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-207.js +++ b/test/built-ins/Object/create/15.2.3.5-4-207.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - writable: false - } + prop: { + writable: false + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-208.js b/test/built-ins/Object/create/15.2.3.5-4-208.js index 94ac43212d1cc133aa55094410a3c7419bafb6d3..3934339394d2987a4d03df7d3270fc518aea7eef 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-208.js +++ b/test/built-ins/Object/create/15.2.3.5-4-208.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - writable: 0 - } + prop: { + writable: 0 + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-209.js b/test/built-ins/Object/create/15.2.3.5-4-209.js index 1c256cfe26aefc27598e76cd1b0bd153c557b35d..c7f0534cccc547e6f89449417bd423a1d3edbfa1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-209.js +++ b/test/built-ins/Object/create/15.2.3.5-4-209.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - writable: +0 - } + prop: { + writable: +0 + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-21.js b/test/built-ins/Object/create/15.2.3.5-4-21.js index 178b2dcf67391e85835cc8dc92ca3187d27451db..727d04f5fefc61777a213613347c85854e568432 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-21.js +++ b/test/built-ins/Object/create/15.2.3.5-4-21.js @@ -8,19 +8,19 @@ description: > 'Properties' is not defined in 'obj' (15.2.3.7 step 3) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return {}; - }, - enumerable: true - }); +Object.defineProperty(proto, "prop", { + get: function() { + return {}; + }, + enumerable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); - var newObj = Object.create({}, child); +var newObj = Object.create({}, child); assert.sameValue(newObj.hasOwnProperty("prop"), false, 'newObj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-210.js b/test/built-ins/Object/create/15.2.3.5-4-210.js index 3fb67d9674468cc9e7d1e0333c12e0ab6ced649e..dd792fb5069b7c313967ea0d8902feaf1df2e9b4 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-210.js +++ b/test/built-ins/Object/create/15.2.3.5-4-210.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - writable: -0 - } + prop: { + writable: -0 + } }); assert(newObj.hasOwnProperty("prop")) diff --git a/test/built-ins/Object/create/15.2.3.5-4-211.js b/test/built-ins/Object/create/15.2.3.5-4-211.js index 72da9c9d0870fedfb07b5894445b510f13190015..859704cac29d254e00b4f51c741b95a9c11e2367 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-211.js +++ b/test/built-ins/Object/create/15.2.3.5-4-211.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - writable: NaN - } + prop: { + writable: NaN + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-212.js b/test/built-ins/Object/create/15.2.3.5-4-212.js index b68ad748c5720e6c75b704fc5426fa2285789511..8f2ec73fed3bc8710418b76266b72401d546b940 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-212.js +++ b/test/built-ins/Object/create/15.2.3.5-4-212.js @@ -8,14 +8,14 @@ description: > 'Properties' is a positive number primitive (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: 12 - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: 12 + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-213.js b/test/built-ins/Object/create/15.2.3.5-4-213.js index 69ee1f25bc07806772ecb0b18eae08235abb1890..4a6cedb23d815af9623e1ccec43d14b20111ceac 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-213.js +++ b/test/built-ins/Object/create/15.2.3.5-4-213.js @@ -8,14 +8,14 @@ description: > 'Properties' is a negative number primitive (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: -9 - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: -9 + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-214.js b/test/built-ins/Object/create/15.2.3.5-4-214.js index 9e82743a1535e05ca60532f2e46a745cb9b05f20..1e18925d27cc472ac6d2027b2fdb979afeea13d1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-214.js +++ b/test/built-ins/Object/create/15.2.3.5-4-214.js @@ -10,11 +10,11 @@ includes: [propertyHelper.js] ---*/ var descObj = { - writable: "" + writable: "" }; var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")) diff --git a/test/built-ins/Object/create/15.2.3.5-4-215.js b/test/built-ins/Object/create/15.2.3.5-4-215.js index 0a5b0e18725c256451252edd8acb77ba6e14b758..85825fb99921da8693162bc405e663e51dffaaed 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-215.js +++ b/test/built-ins/Object/create/15.2.3.5-4-215.js @@ -8,14 +8,14 @@ description: > 'Properties' is a non-empty string (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: "abc" - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: "abc" + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-216.js b/test/built-ins/Object/create/15.2.3.5-4-216.js index eb3b062e833ac7879a7b637e47d02c36826895a1..3388d3869bbab3c65264a6b320f46df418412324 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-216.js +++ b/test/built-ins/Object/create/15.2.3.5-4-216.js @@ -8,14 +8,14 @@ description: > 'Properties' is a Function object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: function () { } - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: function() {} + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-217.js b/test/built-ins/Object/create/15.2.3.5-4-217.js index 2bab6a18690010dc0c05786d539b71d3fced12d8..5aba7363a26002d4f5ae05db1559b93121f6ed0e 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-217.js +++ b/test/built-ins/Object/create/15.2.3.5-4-217.js @@ -8,14 +8,14 @@ description: > 'Properties' is an Array object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: [] - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: [] + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-218.js b/test/built-ins/Object/create/15.2.3.5-4-218.js index 64a7de9c3a679eca88b0099e3048110ff02ce131..96b7278473c62925257ba2ca793ecf89b1614a50 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-218.js +++ b/test/built-ins/Object/create/15.2.3.5-4-218.js @@ -8,14 +8,14 @@ description: > 'Properties' is a String object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: new String() - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: new String() + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-219.js b/test/built-ins/Object/create/15.2.3.5-4-219.js index 6965d7881d3353de8d1af9afd95e158abc047e64..13da7f70119617f99c31c33a9da9b45e8e43a9fe 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-219.js +++ b/test/built-ins/Object/create/15.2.3.5-4-219.js @@ -8,14 +8,14 @@ description: > 'Properties' is a Boolean object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: new Boolean() - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: new Boolean() + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-22.js b/test/built-ins/Object/create/15.2.3.5-4-22.js index 3ee831a5773dbadc3b985e541cb806b3b8d54dd1..0de4cee28ef5622021505c4962012d1dd6ad55aa 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-22.js +++ b/test/built-ins/Object/create/15.2.3.5-4-22.js @@ -9,19 +9,19 @@ description: > 'obj' (15.2.3.7 step 5.a) ---*/ - var proto = {}; - proto.prop = { - value: "abc" - }; +var proto = {}; +proto.prop = { + value: "abc" +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - child.prop = { - value: "bbq" - }; - var newObj = Object.create({}, child); +var child = new ConstructFun(); +child.prop = { + value: "bbq" +}; +var newObj = Object.create({}, child); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(newObj.prop, "bbq", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-220.js b/test/built-ins/Object/create/15.2.3.5-4-220.js index 7cf13ce5cc8c1a72eb937db3f4e6b210f84396cd..c26e1170b708e5d0d746154a578e6c7e65fa8d3c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-220.js +++ b/test/built-ins/Object/create/15.2.3.5-4-220.js @@ -8,14 +8,14 @@ description: > 'Properties' is a Number object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: new Number() - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: new Number() + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-221.js b/test/built-ins/Object/create/15.2.3.5-4-221.js index d380fc50cbef0ae6fa1af69e3575bc496126145d..80789555e4612547a69729a0fc17517c1c2dba72 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-221.js +++ b/test/built-ins/Object/create/15.2.3.5-4-221.js @@ -8,14 +8,14 @@ description: > 'Properties' is the Math object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: Math - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: Math + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-222.js b/test/built-ins/Object/create/15.2.3.5-4-222.js index 28e848af122048f75b7ea5f37c729191ae3971d5..2f03b51e3d0bf63141252dea5b335bfbcb356a01 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-222.js +++ b/test/built-ins/Object/create/15.2.3.5-4-222.js @@ -8,14 +8,14 @@ description: > 'Properties' is a Date object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: new Date() - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: new Date() + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-223.js b/test/built-ins/Object/create/15.2.3.5-4-223.js index 5a7b95b49d76e9faed44a89efb91ab8f64b0f418..7df7e01fd963a2f0d2aa40c142b2c71b1262a2ae 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-223.js +++ b/test/built-ins/Object/create/15.2.3.5-4-223.js @@ -8,14 +8,14 @@ description: > 'Properties' is a RegExp object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: new RegExp() - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: new RegExp() + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-224.js b/test/built-ins/Object/create/15.2.3.5-4-224.js index e5e392749072c7502056daea5dfe2043b5f174a9..21ec7f049fe3a2486e8c64ac29a48bebc367ec8f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-224.js +++ b/test/built-ins/Object/create/15.2.3.5-4-224.js @@ -8,13 +8,13 @@ description: > 'Properties' is the JSON object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: JSON - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +var newObj = Object.create({}, { + prop: { + writable: JSON + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-225.js b/test/built-ins/Object/create/15.2.3.5-4-225.js index 5c428978ef36b93570dffe694fdd0a15833e2381..65b98ccab62cbc4aa2dd07e25911b2383daf7556 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-225.js +++ b/test/built-ins/Object/create/15.2.3.5-4-225.js @@ -8,13 +8,13 @@ description: > 'Properties' is an Error object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: new Error() - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +var newObj = Object.create({}, { + prop: { + writable: new Error() + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-226.js b/test/built-ins/Object/create/15.2.3.5-4-226.js index 25f359e78a98a1a0f808eb342603491db203d0f4..5836e8c5ec3b5c2085baed2fdf1e5b4e10a631b0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-226.js +++ b/test/built-ins/Object/create/15.2.3.5-4-226.js @@ -8,16 +8,18 @@ description: > 'Properties' is an Arguments object (8.10.5 step 6.b) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var newObj = Object.create({}, { - prop: { - writable: argObj - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: argObj + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-228.js b/test/built-ins/Object/create/15.2.3.5-4-228.js index 6b8ffee240ea4b2d97f5fc56ff7de1a780fe9910..bbe28fcc2585b000dee179f76b39cd9fe03e8053 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-228.js +++ b/test/built-ins/Object/create/15.2.3.5-4-228.js @@ -8,14 +8,14 @@ description: > 'Properties' is the global object (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: this - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: this + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-229.js b/test/built-ins/Object/create/15.2.3.5-4-229.js index b4ed3b4acb4096d59c558803131e7d0ae54e1024..b3baf808b1a0c7f1984c04bd5b19aca76a63513c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-229.js +++ b/test/built-ins/Object/create/15.2.3.5-4-229.js @@ -9,14 +9,14 @@ description: > the value true (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: "false" - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: "false" + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-23.js b/test/built-ins/Object/create/15.2.3.5-4-23.js index f7ebf041f8985b98a9a6ed8709588e7a759be521..9dce4997c58df804b7716c1da6bf9d9bed7a7531 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-23.js +++ b/test/built-ins/Object/create/15.2.3.5-4-23.js @@ -9,25 +9,27 @@ description: > in 'obj' (15.2.3.7 step 5.a) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return { value: 9 }; - }, - enumerable: true - }); +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return { + value: 9 + }; + }, + enumerable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "prop", { - value: { - value: 12 - }, - enumerable: true - }); - var newObj = Object.create({}, child); +var child = new ConstructFun(); +Object.defineProperty(child, "prop", { + value: { + value: 12 + }, + enumerable: true +}); +var newObj = Object.create({}, child); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(newObj.prop, 12, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-230.js b/test/built-ins/Object/create/15.2.3.5-4-230.js index 392cacd8bcb8c1cf843b4f907e998fda680df702..7741e30f661fdbbf894f83f964692c359ab3e81a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-230.js +++ b/test/built-ins/Object/create/15.2.3.5-4-230.js @@ -9,14 +9,14 @@ description: > true (8.10.5 step 6.b) ---*/ - var newObj = Object.create({}, { - prop: { - writable: new Boolean(false) - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: new Boolean(false) + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-231.js b/test/built-ins/Object/create/15.2.3.5-4-231.js index d758b8a8d09f97777d144cb7d03cc8502eafbdb1..5228e544fdc451c8ed0f36610fec1520a226482b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-231.js +++ b/test/built-ins/Object/create/15.2.3.5-4-231.js @@ -8,12 +8,12 @@ description: > present (8.10.5 step 7) ---*/ - var newObj = Object.create({}, { - prop: { - get: function () { - return "present"; - } - } - }); +var newObj = Object.create({}, { + prop: { + get: function() { + return "present"; + } + } +}); assert.sameValue(newObj.prop, "present", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-232.js b/test/built-ins/Object/create/15.2.3.5-4-232.js index f7edbce48ffdaf95942ce9c4d7ad79704660443a..1c0eca86e9ddcb45ae308d29f1e844a2f39aa569 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-232.js +++ b/test/built-ins/Object/create/15.2.3.5-4-232.js @@ -8,8 +8,8 @@ description: > not present (8.10.5 step 7) ---*/ - var newObj = Object.create({}, { - prop: {} - }); +var newObj = Object.create({}, { + prop: {} +}); -assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)'); +assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-233.js b/test/built-ins/Object/create/15.2.3.5-4-233.js index d0f6b3979ac4d9e681abb00eb7375d41c3633461..f9b8addafa936b40f97a002f99f96e7befadc80b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-233.js +++ b/test/built-ins/Object/create/15.2.3.5-4-233.js @@ -8,12 +8,12 @@ description: > own data property (8.10.5 step 7.a) ---*/ - var newObj = Object.create({}, { - prop: { - get: function () { - return "ownDataProperty"; - } - } - }); +var newObj = Object.create({}, { + prop: { + get: function() { + return "ownDataProperty"; + } + } +}); assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-234.js b/test/built-ins/Object/create/15.2.3.5-4-234.js index 6d53c01f2f6e41b39437c66145b1de3be7470efc..84cbca96916071536abc6bf91eac05ced978278d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-234.js +++ b/test/built-ins/Object/create/15.2.3.5-4-234.js @@ -8,19 +8,19 @@ description: > an inherited data property (8.10.5 step 7.a) ---*/ - var proto = { - get: function () { - return "inheritedDataProperty"; - } - }; +var proto = { + get: function() { + return "inheritedDataProperty"; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "inheritedDataProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-235.js b/test/built-ins/Object/create/15.2.3.5-4-235.js index 67474ae09cb528b328810031bed1e51ed34b99a2..b900beba5ef3277c34e65038b4770ed7285b81fd 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-235.js +++ b/test/built-ins/Object/create/15.2.3.5-4-235.js @@ -9,25 +9,25 @@ description: > (8.10.5 step 7.a) ---*/ - var proto = { - get: function () { - return "inheritedDataProperty"; - } - }; +var proto = { + get: function() { + return "inheritedDataProperty"; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "get", { - value: function () { - return "ownDataProperty"; - } - }); +Object.defineProperty(descObj, "get", { + value: function() { + return "ownDataProperty"; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-236.js b/test/built-ins/Object/create/15.2.3.5-4-236.js index dd0bab3da92669845e09f6c1ab5cbd2d0793aedb..7a559dd09f9418653ea3ace1ce702d51b9aff60f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-236.js +++ b/test/built-ins/Object/create/15.2.3.5-4-236.js @@ -9,28 +9,28 @@ description: > (8.10.5 step 7.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "get", { - value: function () { - return "ownDataProperty"; - } - }); +Object.defineProperty(descObj, "get", { + value: function() { + return "ownDataProperty"; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-237.js b/test/built-ins/Object/create/15.2.3.5-4-237.js index 9ff6e5ec1926d596677ee2a7858c9d50a1991251..b0dae46f42e49df109506254a2b1c985dc496c37 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-237.js +++ b/test/built-ins/Object/create/15.2.3.5-4-237.js @@ -8,18 +8,18 @@ description: > own accessor property (8.10.5 step 7.a) ---*/ - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); +Object.defineProperty(descObj, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-238.js b/test/built-ins/Object/create/15.2.3.5-4-238.js index bd1d724273284995b0d341c98b2aa632272c4099..b9e656c9a3446492315f043cf9b5cbcfa3d3df36 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-238.js +++ b/test/built-ins/Object/create/15.2.3.5-4-238.js @@ -8,22 +8,22 @@ description: > an inherited accessor property (8.10.5 step 7.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "inheritedAccessorProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-239.js b/test/built-ins/Object/create/15.2.3.5-4-239.js index 33af127302af7f114e636884597847cd2e8af9f5..b15bd2eb09e9b93dea503902217c73d1d2c60e0a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-239.js +++ b/test/built-ins/Object/create/15.2.3.5-4-239.js @@ -9,26 +9,26 @@ description: > (8.10.5 step 7.a) ---*/ - var proto = { - get: function () { - return "inheritedDataProperty"; - } - }; +var proto = { + get: function() { + return "inheritedDataProperty"; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); +Object.defineProperty(descObj, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-24.js b/test/built-ins/Object/create/15.2.3.5-4-24.js index 3e9958961bea3ed0246c93941bcfbcd492ba6690..2388668b615792b9166a4a1047c1a991d21e4633 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-24.js +++ b/test/built-ins/Object/create/15.2.3.5-4-24.js @@ -9,25 +9,25 @@ description: > 'obj' (15.2.3.7 step 5.a) ---*/ - var proto = {}; - proto.prop = { - value: 12 - }; +var proto = {}; +proto.prop = { + value: 12 +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "prop", { - get: function () { - return { - value: 9 - }; - }, - enumerable: true - }); +var child = new ConstructFun(); +Object.defineProperty(child, "prop", { + get: function() { + return { + value: 9 + }; + }, + enumerable: true +}); - var newObj = Object.create({}, child); +var newObj = Object.create({}, child); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(newObj.prop, 9, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-240.js b/test/built-ins/Object/create/15.2.3.5-4-240.js index 82839e1df307d6f2bc09d213296c976bf72938a6..30e9186d0a86ad1c87d428139f404662cf221811 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-240.js +++ b/test/built-ins/Object/create/15.2.3.5-4-240.js @@ -9,30 +9,30 @@ description: > property (8.10.5 step 7.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); +Object.defineProperty(descObj, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert.sameValue(newObj.prop, "ownAccessorProperty", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-241.js b/test/built-ins/Object/create/15.2.3.5-4-241.js index a5621412b4cf79b68d3de1b2f95a39bd223fa635..b3bf67deda21d56b538883804d05374413d14a3c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-241.js +++ b/test/built-ins/Object/create/15.2.3.5-4-241.js @@ -8,15 +8,15 @@ description: > own accessor property without a get function (8.10.5 step 7.a) ---*/ - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "get", { - set: function () { } - }); +Object.defineProperty(descObj, "get", { + set: function() {} +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)'); +assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-242.js b/test/built-ins/Object/create/15.2.3.5-4-242.js index ceca51dcc12273384247df18ccbe05a0b1d17653..bad9246a9f43d50c27f436b274dbd4091200fef8 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-242.js +++ b/test/built-ins/Object/create/15.2.3.5-4-242.js @@ -9,27 +9,27 @@ description: > inherited accessor property (8.10.5 step 7.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "get", { - set: function () { } - }); +Object.defineProperty(descObj, "get", { + set: function() {} +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof newObj.prop, "undefined", 'typeof newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-243.js b/test/built-ins/Object/create/15.2.3.5-4-243.js index 05b2a20145d79a4b66e001ee72120df15cdf9d4e..f18c3865d142d0ae89964573730f3ef15be02777 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-243.js +++ b/test/built-ins/Object/create/15.2.3.5-4-243.js @@ -9,19 +9,19 @@ description: > 7.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - set: function () { } - }); +Object.defineProperty(proto, "get", { + set: function() {} +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (newObj.prop), "undefined", 'typeof (newObj.prop)'); +assert.sameValue(typeof(newObj.prop), "undefined", 'typeof (newObj.prop)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-244.js b/test/built-ins/Object/create/15.2.3.5-4-244.js index d1c448d76d2fb5372611b08da77d8dd654c3f628..cc43ee0b1af7fdf7c4871ccf0100fcc4019e7b04 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-244.js +++ b/test/built-ins/Object/create/15.2.3.5-4-244.js @@ -9,14 +9,14 @@ description: > property (8.10.5 step 7.a) ---*/ - var funObj = function () {}; +var funObj = function() {}; - funObj.get = function () { - return "VerifyFunctionObject"; - }; +funObj.get = function() { + return "VerifyFunctionObject"; +}; - var newObj = Object.create({}, { - prop: funObj - }); +var newObj = Object.create({}, { + prop: funObj +}); assert.sameValue(newObj.prop, "VerifyFunctionObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-245.js b/test/built-ins/Object/create/15.2.3.5-4-245.js index 98bdaae83502de8e00ce5f61fc21d633780191c8..0c3a7f11b35523f3ccd99a2cc9b936661fb33c33 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-245.js +++ b/test/built-ins/Object/create/15.2.3.5-4-245.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 7.a) ---*/ - var arrayObj = [1, 2, 3]; +var arrayObj = [1, 2, 3]; - arrayObj.get = function () { - return "VerifyArrayObject"; - }; +arrayObj.get = function() { + return "VerifyArrayObject"; +}; - var newObj = Object.create({}, { - prop: arrayObj - }); +var newObj = Object.create({}, { + prop: arrayObj +}); assert.sameValue(newObj.prop, "VerifyArrayObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-246.js b/test/built-ins/Object/create/15.2.3.5-4-246.js index 83543f250afa0996847641d6c776785490b76e31..bc93c97d2de3593c0a75c596c5f574054135be04 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-246.js +++ b/test/built-ins/Object/create/15.2.3.5-4-246.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 7.a) ---*/ - var strObj = new String("abc"); +var strObj = new String("abc"); - strObj.get = function () { - return "VerifyStringObject"; - }; +strObj.get = function() { + return "VerifyStringObject"; +}; - var newObj = Object.create({}, { - prop: strObj - }); +var newObj = Object.create({}, { + prop: strObj +}); assert.sameValue(newObj.prop, "VerifyStringObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-247.js b/test/built-ins/Object/create/15.2.3.5-4-247.js index 2307c1f41958ad557f56cb4a2696ac21a4ab9f62..a13afb818c178c42fe38056f68aa18670cbb3ca2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-247.js +++ b/test/built-ins/Object/create/15.2.3.5-4-247.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 7.a) ---*/ - var boolObj = new Boolean(true); +var boolObj = new Boolean(true); - boolObj.get = function () { - return "VerifyBooleanObject"; - }; +boolObj.get = function() { + return "VerifyBooleanObject"; +}; - var newObj = Object.create({}, { - prop: boolObj - }); +var newObj = Object.create({}, { + prop: boolObj +}); assert.sameValue(newObj.prop, "VerifyBooleanObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-248.js b/test/built-ins/Object/create/15.2.3.5-4-248.js index 441c41f6feb96688ec634f5d81caf255e0741476..a1ac6c835118c903148a7554e441519829b76fa1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-248.js +++ b/test/built-ins/Object/create/15.2.3.5-4-248.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 7.a) ---*/ - var numObj = new Number(5); +var numObj = new Number(5); - numObj.get = function () { - return "VerifyNumberObject"; - }; +numObj.get = function() { + return "VerifyNumberObject"; +}; - var newObj = Object.create({}, { - prop: numObj - }); +var newObj = Object.create({}, { + prop: numObj +}); assert.sameValue(newObj.prop, "VerifyNumberObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-249.js b/test/built-ins/Object/create/15.2.3.5-4-249.js index 5144160400bd5283f1523881f881d718278dad18..afbf4ec88eb87c4c7698027e61c2ef6935e1c681 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-249.js +++ b/test/built-ins/Object/create/15.2.3.5-4-249.js @@ -9,14 +9,14 @@ description: > step 7.a) ---*/ - var dateObj = new Date(); +var dateObj = new Date(); - dateObj.get = function () { - return "VerifyDateObject"; - }; +dateObj.get = function() { + return "VerifyDateObject"; +}; - var newObj = Object.create({}, { - prop: dateObj - }); +var newObj = Object.create({}, { + prop: dateObj +}); assert.sameValue(newObj.prop, "VerifyDateObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-25.js b/test/built-ins/Object/create/15.2.3.5-4-25.js index d4aa1a0791a30f1405cfe44184b95bda32b0a094..dd0d7abb4fcfe229ec25fb8e3e388f86cc033031 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-25.js +++ b/test/built-ins/Object/create/15.2.3.5-4-25.js @@ -9,29 +9,29 @@ description: > in 'obj' (15.2.3.7 step 5.a) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return { - value: 9 - }; - }, - enumerable: true - }); +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return { + value: 9 + }; + }, + enumerable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "prop", { - get: function () { - return { - value: 12 - }; - }, - enumerable: true - }); - var newObj = Object.create({}, child); +var child = new ConstructFun(); +Object.defineProperty(child, "prop", { + get: function() { + return { + value: 12 + }; + }, + enumerable: true +}); +var newObj = Object.create({}, child); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(newObj.prop, 12, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-250.js b/test/built-ins/Object/create/15.2.3.5-4-250.js index 861c07e15e13ed1d969b43f4ccd8ac62b07f559c..1d3ca0e74b90ce39b3f78db8dee1c25fc167675f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-250.js +++ b/test/built-ins/Object/create/15.2.3.5-4-250.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 7.a) ---*/ - var regObj = new RegExp(); +var regObj = new RegExp(); - regObj.get = function () { - return "VerifyRegExpObject"; - }; +regObj.get = function() { + return "VerifyRegExpObject"; +}; - var newObj = Object.create({}, { - prop: regObj - }); +var newObj = Object.create({}, { + prop: regObj +}); assert.sameValue(newObj.prop, "VerifyRegExpObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-251.js b/test/built-ins/Object/create/15.2.3.5-4-251.js index eceff600f5aaa6945a6ed1c5cdc6430959d459dd..a94cdb032b12012659ce67f0f15293f60b6d3458 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-251.js +++ b/test/built-ins/Object/create/15.2.3.5-4-251.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 7.a) ---*/ - Math.get = function () { - return "VerifyMathObject"; - }; +Math.get = function() { + return "VerifyMathObject"; +}; - var newObj = Object.create({}, { - prop: Math - }); +var newObj = Object.create({}, { + prop: Math +}); assert.sameValue(newObj.prop, "VerifyMathObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-252.js b/test/built-ins/Object/create/15.2.3.5-4-252.js index e5cd76b909cb4917d5fba21b48d075bc49ad2f29..96441ccf6379f74443e375951763f6880247f390 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-252.js +++ b/test/built-ins/Object/create/15.2.3.5-4-252.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 7.a) ---*/ - JSON.get = function () { - return "VerifyJSONObject"; - }; +JSON.get = function() { + return "VerifyJSONObject"; +}; - var newObj = Object.create({}, { - prop: JSON - }); +var newObj = Object.create({}, { + prop: JSON +}); assert.sameValue(newObj.prop, "VerifyJSONObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-253.js b/test/built-ins/Object/create/15.2.3.5-4-253.js index 06515f7f245ec8b2bce39018e755099ea81aa62d..1adfcf3559fb30d6099a4d168e6141a036fb66a6 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-253.js +++ b/test/built-ins/Object/create/15.2.3.5-4-253.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 7.a) ---*/ - var errObj = new Error("error"); +var errObj = new Error("error"); - errObj.get = function () { - return "VerifyErrorObject"; - }; +errObj.get = function() { + return "VerifyErrorObject"; +}; - var newObj = Object.create({}, { - prop: errObj - }); +var newObj = Object.create({}, { + prop: errObj +}); assert.sameValue(newObj.prop, "VerifyErrorObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-254.js b/test/built-ins/Object/create/15.2.3.5-4-254.js index e315a8ae4a6ea5156eb517a9fa4dccc089118d49..17708dec2a54e322fb4a5f7eef73caf030971755 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-254.js +++ b/test/built-ins/Object/create/15.2.3.5-4-254.js @@ -9,14 +9,16 @@ description: > property (8.10.5 step 7.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.get = function () { - return "VerifyArgumentsObject"; - }; +argObj.get = function() { + return "VerifyArgumentsObject"; +}; - var newObj = Object.create({}, { - prop: argObj - }); +var newObj = Object.create({}, { + prop: argObj +}); assert.sameValue(newObj.prop, "VerifyArgumentsObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-256.js b/test/built-ins/Object/create/15.2.3.5-4-256.js index 1fb8acfc8e330219e0fdc8c5f9cc7240e218ce89..6a008d56a72399824bd2e5886ebcc5640e7269ae 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-256.js +++ b/test/built-ins/Object/create/15.2.3.5-4-256.js @@ -9,12 +9,12 @@ description: > (8.10.5 step 7.a) ---*/ - this.get = function () { - return "VerifyGlobalObject"; - }; +this.get = function() { + return "VerifyGlobalObject"; +}; - var newObj = Object.create({}, { - prop: this - }); +var newObj = Object.create({}, { + prop: this +}); assert.sameValue(newObj.prop, "VerifyGlobalObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-257.js b/test/built-ins/Object/create/15.2.3.5-4-257.js index ca56dae002a965c09a60ada8fdb2f384823136a0..00e9fd1bf6e85c8286e585be59240c091a3be606 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-257.js +++ b/test/built-ins/Object/create/15.2.3.5-4-257.js @@ -8,11 +8,11 @@ description: > undefined (8.10.5 step 7.b) ---*/ - var newObj = Object.create({}, { - prop: { - get: undefined - } - }); +var newObj = Object.create({}, { + prop: { + get: undefined + } +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof newObj.prop, "undefined", 'typeof newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-258.js b/test/built-ins/Object/create/15.2.3.5-4-258.js index e20c4f14b11a22c1bae0660a0b3a2b523b2963dc..8adec71c74e8401257edea2e556f16cd9cc23e56 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-258.js +++ b/test/built-ins/Object/create/15.2.3.5-4-258.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - get: null - } - }); + Object.create({}, { + prop: { + get: null + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-259.js b/test/built-ins/Object/create/15.2.3.5-4-259.js index f4ae695fa8e4e87ca7d63bb5111052609a0e4a15..9546d55a5b9e6c1a1161bab54c1ad2517bc3f314 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-259.js +++ b/test/built-ins/Object/create/15.2.3.5-4-259.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - get: false - } - }); + Object.create({}, { + prop: { + get: false + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-26.js b/test/built-ins/Object/create/15.2.3.5-4-26.js index 90605aecef37c89df0adeb11545d28086265459c..d7f814f30a3550c19765a9c21112be08a8d2e35f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-26.js +++ b/test/built-ins/Object/create/15.2.3.5-4-26.js @@ -8,11 +8,11 @@ description: > property of 'Properties' without a get function (15.2.3.7 step 5.a) ---*/ - var props = {}; - Object.defineProperty(props, "prop", { - set: function () { }, - enumerable: true - }); +var props = {}; +Object.defineProperty(props, "prop", { + set: function() {}, + enumerable: true +}); assert.throws(TypeError, function() { - Object.create({}, props); + Object.create({}, props); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-260.js b/test/built-ins/Object/create/15.2.3.5-4-260.js index 031bdfd5672e8cf452df647def514e33b767aa9b..76d525ff0859bff8b244eb7954576021bd6cfa62 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-260.js +++ b/test/built-ins/Object/create/15.2.3.5-4-260.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - get: 123 - } - }); + Object.create({}, { + prop: { + get: 123 + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-261.js b/test/built-ins/Object/create/15.2.3.5-4-261.js index 8a7f3f955b1ed90e917c20f02a55d21a5fa857dd..987227bc3b7ef8d61f5b6c4fe5e1c62802603ea5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-261.js +++ b/test/built-ins/Object/create/15.2.3.5-4-261.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - get: "string" - } - }); + Object.create({}, { + prop: { + get: "string" + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-262.js b/test/built-ins/Object/create/15.2.3.5-4-262.js index f02da1a389243d52573254dd20516c53e4de3d91..2736a816d58c4d3bedb84b19babe356606415b82 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-262.js +++ b/test/built-ins/Object/create/15.2.3.5-4-262.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - get: [1, 2, 3] - } - }); + Object.create({}, { + prop: { + get: [1, 2, 3] + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-263.js b/test/built-ins/Object/create/15.2.3.5-4-263.js index 36e92fb03e15eaf0ae1618b82a8730c14b64bf03..eac85ecd00f08103c94c295b5a474ed90401b3a9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-263.js +++ b/test/built-ins/Object/create/15.2.3.5-4-263.js @@ -8,11 +8,11 @@ description: > a function (8.10.5 step 7.b) ---*/ - var newObj = Object.create({}, { - prop: { - get: function () { } - } - }); +var newObj = Object.create({}, { + prop: { + get: function() {} + } +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof newObj.prop, "undefined", 'typeof newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-266.js b/test/built-ins/Object/create/15.2.3.5-4-266.js index 7711341d24d729f3bb13817f3dcccd6680420f8f..a52a337ecba10fc5fce9d0eebcdfb7cd371b3c7b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-266.js +++ b/test/built-ins/Object/create/15.2.3.5-4-266.js @@ -8,19 +8,19 @@ description: > present (8.10.5 step 8) ---*/ - var data = "data"; +var data = "data"; - var newObj = Object.create({}, { - prop: { - set: function (value) { - data = value; - } - } - }); +var newObj = Object.create({}, { + prop: { + set: function(value) { + data = value; + } + } +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-267.js b/test/built-ins/Object/create/15.2.3.5-4-267.js index b631d8719e066c41666b540fa587d15c0fa74d7a..39336cdc3b5755d3764f17f099f9b2c3203d91b0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-267.js +++ b/test/built-ins/Object/create/15.2.3.5-4-267.js @@ -10,11 +10,11 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - get: function () { - return "data"; - } + prop: { + get: function() { + return "data"; } + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-268.js b/test/built-ins/Object/create/15.2.3.5-4-268.js index 60f58383e84feea3d3865d2757bfc1500c3a7e0d..16dcec95bb7b27c49b352344b7608ef428317322 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-268.js +++ b/test/built-ins/Object/create/15.2.3.5-4-268.js @@ -8,19 +8,19 @@ description: > own data property (8.10.5 step 8.a) ---*/ - var data = "data"; +var data = "data"; - var newObj = Object.create({}, { - prop: { - set: function (value) { - data = value; - } - } - }); +var newObj = Object.create({}, { + prop: { + set: function(value) { + data = value; + } + } +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-269.js b/test/built-ins/Object/create/15.2.3.5-4-269.js index d09f86e9874e115223b7c1322f3078ab0ee6ccae..b10039dc2279f6923e9dfd86a4e93a06d77a7291 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-269.js +++ b/test/built-ins/Object/create/15.2.3.5-4-269.js @@ -8,24 +8,24 @@ description: > an inherited data property (8.10.5 step 8.a) ---*/ - var data = "data"; - var proto = { - set: function (value) { - data = value; - } - }; +var data = "data"; +var proto = { + set: function(value) { + data = value; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); - var newObj = Object.create({}, { - prop: child - }); +var newObj = Object.create({}, { + prop: child +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-27.js b/test/built-ins/Object/create/15.2.3.5-4-27.js index 913f3b4e11837a64e63064401a0041e354fe86db..116c6961b23b39cd1355ff4ff25f332fe8acd419 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-27.js +++ b/test/built-ins/Object/create/15.2.3.5-4-27.js @@ -10,22 +10,22 @@ description: > step 5.a) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return {}; - }, - enumerable: true - }); +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return {}; + }, + enumerable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "prop", { - set: function () { }, - enumerable: true - }); +var child = new ConstructFun(); +Object.defineProperty(child, "prop", { + set: function() {}, + enumerable: true +}); assert.throws(TypeError, function() { - Object.create({}, child); + Object.create({}, child); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-270.js b/test/built-ins/Object/create/15.2.3.5-4-270.js index 229ab992865550bee3cd4b7a482a3d93395ba836..cbf40fba63e47c77c5d4b3f3385d65f2ded3594d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-270.js +++ b/test/built-ins/Object/create/15.2.3.5-4-270.js @@ -9,28 +9,28 @@ description: > (8.10.5 step 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - var proto = { - set: function (value) { - data2 = value; - } - }; +var data1 = "data"; +var data2 = "data"; +var proto = { + set: function(value) { + data2 = value; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); - child.set = function (value) { - data1 = value; - }; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); +child.set = function(value) { + data1 = value; +}; - var newObj = Object.create({}, { - prop: child - }); +var newObj = Object.create({}, { + prop: child +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data1, "overrideData", 'data1'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-271.js b/test/built-ins/Object/create/15.2.3.5-4-271.js index 81e2538bb7da31e0f46e493e852259b6e930e658..53a1362025c9708ae418c83dac77b6682e9fddfe 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-271.js +++ b/test/built-ins/Object/create/15.2.3.5-4-271.js @@ -9,34 +9,34 @@ description: > (8.10.5 step 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - - var proto = {}; - Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data2 = value; - }; - } - }); - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "set", { - value: function (value) { - data1 = value; - } - }); - - var newObj = Object.create({}, { - prop: child - }); - - var hasProperty = newObj.hasOwnProperty("prop"); - - newObj.prop = "overrideData"; +var data1 = "data"; +var data2 = "data"; + +var proto = {}; +Object.defineProperty(proto, "set", { + get: function() { + return function(value) { + data2 = value; + }; + } +}); + +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); +Object.defineProperty(child, "set", { + value: function(value) { + data1 = value; + } +}); + +var newObj = Object.create({}, { + prop: child +}); + +var hasProperty = newObj.hasOwnProperty("prop"); + +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data1, "overrideData", 'data1'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-272.js b/test/built-ins/Object/create/15.2.3.5-4-272.js index 210068b1b554b8b47a5217ead5eb7426ff2f0945..d26d4a51dbfab89f5eb4f762342787a0327077a8 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-272.js +++ b/test/built-ins/Object/create/15.2.3.5-4-272.js @@ -8,24 +8,24 @@ description: > own accessor property (8.10.5 step 8.a) ---*/ - var data = "data"; - var descObj = {}; +var data = "data"; +var descObj = {}; - Object.defineProperty(descObj, "set", { - get: function () { - return function (value) { - data = value; - }; - } - }); +Object.defineProperty(descObj, "set", { + get: function() { + return function(value) { + data = value; + }; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-273.js b/test/built-ins/Object/create/15.2.3.5-4-273.js index 4d274295a917abee13f93624ee61b0e183385d6b..110ab43e9c9a73d1a5aca994bab56593466621f3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-273.js +++ b/test/built-ins/Object/create/15.2.3.5-4-273.js @@ -8,28 +8,28 @@ description: > an inherited accessor property (8.10.5 step 8.a) ---*/ - var data = "data"; - var proto = {}; +var data = "data"; +var proto = {}; - Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data = value; - }; - } - }); +Object.defineProperty(proto, "set", { + get: function() { + return function(value) { + data = value; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); - var newObj = Object.create({}, { - prop: child - }); +var newObj = Object.create({}, { + prop: child +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-274.js b/test/built-ins/Object/create/15.2.3.5-4-274.js index 38d4b172abc011104f61f3c6cfe094c2327a5251..7172878c6e839bb5d60df5b3d62e7ea1cade057e 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-274.js +++ b/test/built-ins/Object/create/15.2.3.5-4-274.js @@ -9,32 +9,32 @@ description: > (8.10.5 step 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - - var proto = {}; - proto.set = function (value) { - data2 = value; - }; - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "set", { - get: function () { - return function (value) { - data1 = value; - }; - } - }); - - var newObj = Object.create({}, { - prop: child - }); - - var hasProperty = newObj.hasOwnProperty("prop"); - - newObj.prop = "overrideData"; +var data1 = "data"; +var data2 = "data"; + +var proto = {}; +proto.set = function(value) { + data2 = value; +}; + +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); +Object.defineProperty(child, "set", { + get: function() { + return function(value) { + data1 = value; + }; + } +}); + +var newObj = Object.create({}, { + prop: child +}); + +var hasProperty = newObj.hasOwnProperty("prop"); + +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data1, "overrideData", 'data1'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-275.js b/test/built-ins/Object/create/15.2.3.5-4-275.js index 3db96d6f070500e5247b307b145e87e18feda6bb..6a1ae3a2985175f0139bbbcb7943bd52ce8fb617 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-275.js +++ b/test/built-ins/Object/create/15.2.3.5-4-275.js @@ -9,36 +9,36 @@ description: > property (8.10.5 step 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - var proto = {}; - - Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data2 = value; - }; - } - }); - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "set", { - get: function () { - return function (value) { - data1 = value; - }; - } - }); - - var newObj = Object.create({}, { - prop: child - }); - - var hasProperty = newObj.hasOwnProperty("prop"); - - newObj.prop = "overrideData"; +var data1 = "data"; +var data2 = "data"; +var proto = {}; + +Object.defineProperty(proto, "set", { + get: function() { + return function(value) { + data2 = value; + }; + } +}); + +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); +Object.defineProperty(child, "set", { + get: function() { + return function(value) { + data1 = value; + }; + } +}); + +var newObj = Object.create({}, { + prop: child +}); + +var hasProperty = newObj.hasOwnProperty("prop"); + +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data1, "overrideData", 'data1'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-276.js b/test/built-ins/Object/create/15.2.3.5-4-276.js index da31aa0b685add2f189a45019fa4f1c43ac153e5..c4f80fded860fbbefa137b82031e39a6210126db 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-276.js +++ b/test/built-ins/Object/create/15.2.3.5-4-276.js @@ -8,18 +8,18 @@ description: > own accessor property without a get function (8.10.5 step 8.a) ---*/ - var descObj = {}; - Object.defineProperty(descObj, "set", { - set: function () { } - }); +var descObj = {}; +Object.defineProperty(descObj, "set", { + set: function() {} +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); +var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); assert(hasProperty, 'hasProperty !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-277.js b/test/built-ins/Object/create/15.2.3.5-4-277.js index 32768a89c2f4cd4a7a68fcf57b70c78ff293af34..d62abfeffb36908c6b0474ce62c2f48c89d6b1f1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-277.js +++ b/test/built-ins/Object/create/15.2.3.5-4-277.js @@ -9,25 +9,25 @@ description: > inherited accessor property (8.10.5 step 8.a) ---*/ - var proto = {}; - Object.defineProperty(proto, "set", { - get: function () { - return function () { }; - } - }); +var proto = {}; +Object.defineProperty(proto, "set", { + get: function() { + return function() {}; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "set", { - set: function () { } - }); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); +Object.defineProperty(child, "set", { + set: function() {} +}); - var newObj = Object.create({}, { - prop: child - }); +var newObj = Object.create({}, { + prop: child +}); - var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); +var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-278.js b/test/built-ins/Object/create/15.2.3.5-4-278.js index a90edec9a5510b9defee9a2ff7f86736f46242cf..feddd569f26ebd77ff9fe1b81798f5ace83597e9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-278.js +++ b/test/built-ins/Object/create/15.2.3.5-4-278.js @@ -9,20 +9,20 @@ description: > 8.a) ---*/ - var proto = {}; - Object.defineProperty(proto, "set", { - set: function () { } - }); +var proto = {}; +Object.defineProperty(proto, "set", { + set: function() {} +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); - var newObj = Object.create({}, { - prop: child - }); +var newObj = Object.create({}, { + prop: child +}); - var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); +var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-279.js b/test/built-ins/Object/create/15.2.3.5-4-279.js index 6dde3c53489e6839b84cb540ace0e6baa87b3dc5..cf8f314314b16dd737e1d0dab6ae705ac971c9f3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-279.js +++ b/test/built-ins/Object/create/15.2.3.5-4-279.js @@ -9,19 +9,19 @@ description: > property (8.10.5 step 8.a) ---*/ - var funObj = function () { }; - var data = "data"; - funObj.set = function (value) { - data = value; - }; +var funObj = function() {}; +var data = "data"; +funObj.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: funObj - }); +var newObj = Object.create({}, { + prop: funObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-28.js b/test/built-ins/Object/create/15.2.3.5-4-28.js index ad5b99f6f325e451ff234f39899ee9119b750916..447cbbc96f750bcc8d0793ea37f2a1de350fe1a8 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-28.js +++ b/test/built-ins/Object/create/15.2.3.5-4-28.js @@ -9,11 +9,11 @@ description: > step 5.a) ---*/ - var props = function () { }; - props.prop = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, props); +var props = function() {}; +props.prop = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-280.js b/test/built-ins/Object/create/15.2.3.5-4-280.js index 870f30857af4e8689f250ab641f46fd797da27c3..8d5d2621f47dd457dc0fdb47c586c5ebe8c085e0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-280.js +++ b/test/built-ins/Object/create/15.2.3.5-4-280.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 8.a) ---*/ - var arrObj = []; - var data = "data"; - arrObj.set = function (value) { - data = value; - }; +var arrObj = []; +var data = "data"; +arrObj.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: arrObj - }); +var newObj = Object.create({}, { + prop: arrObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-281.js b/test/built-ins/Object/create/15.2.3.5-4-281.js index e21b55dff826fbf3d9d779623bd977fc8cede8b0..1714c3d5860cc03aa9a3968c59e27e07765a6436 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-281.js +++ b/test/built-ins/Object/create/15.2.3.5-4-281.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 8.a) ---*/ - var strObj = new String(); - var data = "data"; - strObj.set = function (value) { - data = value; - }; +var strObj = new String(); +var data = "data"; +strObj.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: strObj - }); +var newObj = Object.create({}, { + prop: strObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-282.js b/test/built-ins/Object/create/15.2.3.5-4-282.js index 88805140c7f958c003de139019846a5afe7fb93c..ffc1d532fee674f34a6439842b2046633dc84758 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-282.js +++ b/test/built-ins/Object/create/15.2.3.5-4-282.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 8.a) ---*/ - var boolObj = new Boolean(true); - var data = "data"; - boolObj.set = function (value) { - data = value; - }; +var boolObj = new Boolean(true); +var data = "data"; +boolObj.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: boolObj - }); +var newObj = Object.create({}, { + prop: boolObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-283.js b/test/built-ins/Object/create/15.2.3.5-4-283.js index 16bbd2655cc6b0d908cc9bd3ff157514899e5646..17a6634c28609998f91fd69c9cf3e7453abfc54b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-283.js +++ b/test/built-ins/Object/create/15.2.3.5-4-283.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 8.a) ---*/ - var numObj = new Number(5); - var data = "data"; - numObj.set = function (value) { - data = value; - }; +var numObj = new Number(5); +var data = "data"; +numObj.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: numObj - }); +var newObj = Object.create({}, { + prop: numObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-284.js b/test/built-ins/Object/create/15.2.3.5-4-284.js index 58777acf28f4a0c8c20471923c0e7c7a932de8f2..c0581d99932aab7612dd07cc90b07a524b2aaa69 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-284.js +++ b/test/built-ins/Object/create/15.2.3.5-4-284.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 8.a) ---*/ - var data = "data"; +var data = "data"; - Math.set = function (value) { - data = value; - }; +Math.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: Math - }); +var newObj = Object.create({}, { + prop: Math +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-285.js b/test/built-ins/Object/create/15.2.3.5-4-285.js index 1bf31557bc9cb8dbf1c8aa8c55b890df915cc7b3..04a3b4b423ce64b15b341c45d4af2a539246cce5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-285.js +++ b/test/built-ins/Object/create/15.2.3.5-4-285.js @@ -9,19 +9,19 @@ description: > step 8.a) ---*/ - var dateObj = new Date(); - var data = "data"; - dateObj.set = function (value) { - data = value; - }; +var dateObj = new Date(); +var data = "data"; +dateObj.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: dateObj - }); +var newObj = Object.create({}, { + prop: dateObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-286.js b/test/built-ins/Object/create/15.2.3.5-4-286.js index 15e839baff862c9f0804829a04406cafa74a28df..faf579591b64fcf72e4ccc11373db645444eba31 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-286.js +++ b/test/built-ins/Object/create/15.2.3.5-4-286.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 8.a) ---*/ - var regObj = new RegExp(); - var data = "data"; - regObj.set = function (value) { - data = value; - }; +var regObj = new RegExp(); +var data = "data"; +regObj.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: regObj - }); +var newObj = Object.create({}, { + prop: regObj +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-287.js b/test/built-ins/Object/create/15.2.3.5-4-287.js index 6057e68fbb5bac8890d8c0c5b6edb31feb104591..6b86ddf6ac52e03da63ec4dbd00801c708dd8d1a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-287.js +++ b/test/built-ins/Object/create/15.2.3.5-4-287.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 8.a) ---*/ - var data = "data"; +var data = "data"; - JSON.set = function (value) { - data = value; - }; +JSON.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: JSON - }); +var newObj = Object.create({}, { + prop: JSON +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-288.js b/test/built-ins/Object/create/15.2.3.5-4-288.js index 1db623aa7e0722869d4e78d9f43867aaaa17689a..8e52a0aabb8189be46e1b72bc3adac46520d2832 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-288.js +++ b/test/built-ins/Object/create/15.2.3.5-4-288.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 8.a) ---*/ - var errObj = new Error("error"); - var data = "data"; +var errObj = new Error("error"); +var data = "data"; - errObj.set = function (value) { - data = value; - }; +errObj.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: errObj - }); +var newObj = Object.create({}, { + prop: errObj +}); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-289.js b/test/built-ins/Object/create/15.2.3.5-4-289.js index f14ebb66746ae40e5181a996328271cd76f46966..204be50725cfc537e33d40e8a62bbc0175fcce50 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-289.js +++ b/test/built-ins/Object/create/15.2.3.5-4-289.js @@ -9,21 +9,23 @@ description: > property (8.10.5 step 8.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var data = "data"; +var data = "data"; - argObj.set = function (value) { - data = value; - }; +argObj.set = function(value) { + data = value; +}; - var newobj = Object.create({}, { - prop: argObj - }); +var newobj = Object.create({}, { + prop: argObj +}); - var hasProperty = newobj.hasOwnProperty("prop"); +var hasProperty = newobj.hasOwnProperty("prop"); - newobj.prop = "overrideData"; +newobj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-29.js b/test/built-ins/Object/create/15.2.3.5-4-29.js index bcd6fdb5186a3acefa5606d6b0af46e1f3587e4b..b840b79a3b4e383c00c1bd294a29bb3674470527 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-29.js +++ b/test/built-ins/Object/create/15.2.3.5-4-29.js @@ -9,11 +9,11 @@ description: > 5.a) ---*/ - var props = []; - props.prop = { - value: {}, - enumerable: true - }; - var newObj = Object.create({}, props); +var props = []; +props.prop = { + value: {}, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-291.js b/test/built-ins/Object/create/15.2.3.5-4-291.js index b412aa9d0875156310ee78332f943fdee99887e5..33c423a27fd496cb9855bdf24df0016eaed36fdb 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-291.js +++ b/test/built-ins/Object/create/15.2.3.5-4-291.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 8.a) ---*/ - var data = "data"; +var data = "data"; - this.set = function (value) { - data = value; - }; +this.set = function(value) { + data = value; +}; - var newObj = Object.create({}, { - prop: this - }); +var newObj = Object.create({}, { + prop: this +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-292.js b/test/built-ins/Object/create/15.2.3.5-4-292.js index a13e18d5b86953db5aad59405210e3fe0fa998c5..5f18a390ef0c732164273b768fed13abb4ab114d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-292.js +++ b/test/built-ins/Object/create/15.2.3.5-4-292.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - set: undefined - } + prop: { + set: undefined + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-293.js b/test/built-ins/Object/create/15.2.3.5-4-293.js index b5141d316eb0fa8bc64cade9e13ac36e28153a41..ca1d2ed80dcfdce9f52da326f4478050e79e5c0a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-293.js +++ b/test/built-ins/Object/create/15.2.3.5-4-293.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - set: null - } - }); + Object.create({}, { + prop: { + set: null + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-294.js b/test/built-ins/Object/create/15.2.3.5-4-294.js index 0253d46f9b557c6502ee7d12b839961a65fabee2..e383baec941f8b0dd4292504381b20e0fe8307b3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-294.js +++ b/test/built-ins/Object/create/15.2.3.5-4-294.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - set: true - } - }); + Object.create({}, { + prop: { + set: true + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-295.js b/test/built-ins/Object/create/15.2.3.5-4-295.js index db9776e03704acba8dee2263745e50769bf7d8a7..5d27c9b840d7bf80f207bbb9606c33bc0cf08cfb 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-295.js +++ b/test/built-ins/Object/create/15.2.3.5-4-295.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - set: 123 - } - }); + Object.create({}, { + prop: { + set: 123 + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-296.js b/test/built-ins/Object/create/15.2.3.5-4-296.js index 9912d08063593b5a18ae5ae0e4d84c4d74f36658..dc615210a09ac7fca17f5a42c12a3705eed7a210 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-296.js +++ b/test/built-ins/Object/create/15.2.3.5-4-296.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - set: "abc" - } - }); + Object.create({}, { + prop: { + set: "abc" + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-297.js b/test/built-ins/Object/create/15.2.3.5-4-297.js index 0365a10f8be1652cb6eba532620b098e4b12cf21..36a3c9acbf7ffb485a0f712820e5242c75d158c0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-297.js +++ b/test/built-ins/Object/create/15.2.3.5-4-297.js @@ -10,9 +10,9 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - set: new Date() - } - }); + Object.create({}, { + prop: { + set: new Date() + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-298.js b/test/built-ins/Object/create/15.2.3.5-4-298.js index e47f6121d07f7f2be224a7ab7189ff93d4ef88cf..2b680d63e0b2ba8ca7589fc14756529413de242f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-298.js +++ b/test/built-ins/Object/create/15.2.3.5-4-298.js @@ -8,17 +8,17 @@ description: > a function (8.10.5 step 8.b) ---*/ - var data = "data"; +var data = "data"; - var newObj = Object.create({}, { - prop: { - set: function (value) { - data = value; - } - } - }); +var newObj = Object.create({}, { + prop: { + set: function(value) { + data = value; + } + } +}); - newObj.prop = "overrideData"; +newObj.prop = "overrideData"; assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-3.js b/test/built-ins/Object/create/15.2.3.5-4-3.js index 5d998fb973e2d5b1baa45fb19e133d3b0a613ce9..592654ea1c8a73a48653da2081bb1b7d03ccd50f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-3.js +++ b/test/built-ins/Object/create/15.2.3.5-4-3.js @@ -10,5 +10,5 @@ description: > assert.throws(TypeError, function() { - Object.create({}, null); + Object.create({}, null); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-30.js b/test/built-ins/Object/create/15.2.3.5-4-30.js index 13b59d8afbe244a8346cb5b2e22cba28097df52e..f8d67b7f9a3299db1a0ccf8219ad578be2aaaa2a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-30.js +++ b/test/built-ins/Object/create/15.2.3.5-4-30.js @@ -9,11 +9,11 @@ description: > 5.a) ---*/ - var props = new String(); - props.prop = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, props); +var props = new String(); +props.prop = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-300.js b/test/built-ins/Object/create/15.2.3.5-4-300.js index 4e350f9e77683125e3e18d61c6efaf06cad8f7d6..c261cbe1520efb9c3cef0559b71ffdfc2e899719 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-300.js +++ b/test/built-ins/Object/create/15.2.3.5-4-300.js @@ -11,9 +11,9 @@ description: > var global = this; assert.throws(TypeError, function() { - Object.create({}, { - prop: { - set: global - } - }); + Object.create({}, { + prop: { + set: global + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-301.js b/test/built-ins/Object/create/15.2.3.5-4-301.js index 41acad4d2bfa7b893a79996f65216e98baa4b24e..a7f9180cb814092b5928c5e4e73e60f68347751f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-301.js +++ b/test/built-ins/Object/create/15.2.3.5-4-301.js @@ -11,10 +11,10 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - set: function () { }, - value: 100 - } - }); + Object.create({}, { + prop: { + set: function() {}, + value: 100 + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-302.js b/test/built-ins/Object/create/15.2.3.5-4-302.js index 9d9b0dc596873c27f895b2a9b70517c6c529d7e9..8fbe8eda18c4ec34a1a272a99e2b442eae1931b5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-302.js +++ b/test/built-ins/Object/create/15.2.3.5-4-302.js @@ -11,10 +11,10 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - set: function () { }, - writable: true - } - }); + Object.create({}, { + prop: { + set: function() {}, + writable: true + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-303.js b/test/built-ins/Object/create/15.2.3.5-4-303.js index 459a8580e196459f90f0f1d9e681d25c9dea7b96..365fc271dfb1bc3cf565244bc4677db6b7531c1e 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-303.js +++ b/test/built-ins/Object/create/15.2.3.5-4-303.js @@ -11,10 +11,10 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - get: function () { }, - value: 100 - } - }); + Object.create({}, { + prop: { + get: function() {}, + value: 100 + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-304.js b/test/built-ins/Object/create/15.2.3.5-4-304.js index bae6d8dff509e4003007640589adb255bd68bb93..c0ae83d2ec1ae4053ad5e0ee97352347a3eabd07 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-304.js +++ b/test/built-ins/Object/create/15.2.3.5-4-304.js @@ -11,10 +11,10 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: { - get: function () { }, - writable: true - } - }); + Object.create({}, { + prop: { + get: function() {}, + writable: true + } + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-305.js b/test/built-ins/Object/create/15.2.3.5-4-305.js index 225047a59dc81893a040eae0c49870db59900b22..3608542658fa974f7582897abf7483943ddb8afe 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-305.js +++ b/test/built-ins/Object/create/15.2.3.5-4-305.js @@ -8,10 +8,10 @@ description: > 'Properties' is generic descriptor (8.12.9 step 4.a) ---*/ - var newObj = Object.create({}, { - prop: { - enumerable: true - } - }); +var newObj = Object.create({}, { + prop: { + enumerable: true + } +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-306.js b/test/built-ins/Object/create/15.2.3.5-4-306.js index 328c209d496ad3cc71c76a567e5a927223afbac3..a4fbb82362fcd6a35b5d08a1e295cd78ac44da97 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-306.js +++ b/test/built-ins/Object/create/15.2.3.5-4-306.js @@ -8,13 +8,13 @@ description: > data descriptor of one property in 'Properties' (8.12.9 step 4.a.i) ---*/ - var newObj = Object.create({}, { - prop: { - writable: true, - configurable: true, - enumerable: true - } - }); +var newObj = Object.create({}, { + prop: { + writable: true, + configurable: true, + enumerable: true + } +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(newObj.prop, undefined, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-307.js b/test/built-ins/Object/create/15.2.3.5-4-307.js index 3f9e40703bc7c23760aba5be9c8d1de6c22a24cc..fd79b1d4ada33c9f12f294c820d48cad9de963e0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-307.js +++ b/test/built-ins/Object/create/15.2.3.5-4-307.js @@ -10,11 +10,11 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - value: 1001, - configurable: true, - enumerable: true - } + prop: { + value: 1001, + configurable: true, + enumerable: true + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-308.js b/test/built-ins/Object/create/15.2.3.5-4-308.js index 07980d287890be5e6372c1e99d5a6522d3fce373..ef8c63a26f9d5c39b5dba12cb0e9f2fdc775a252 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-308.js +++ b/test/built-ins/Object/create/15.2.3.5-4-308.js @@ -8,23 +8,23 @@ description: > data descriptor of one property in 'Properties' (8.12.9 step 4.a.i) ---*/ - var isEnumerable = false; +var isEnumerable = false; - var newObj = Object.create({}, { - prop: { - value: 1001, - writable: true, - configurable: true - } - }); +var newObj = Object.create({}, { + prop: { + value: 1001, + writable: true, + configurable: true + } +}); - var hasProperty = newObj.hasOwnProperty("prop"); +var hasProperty = newObj.hasOwnProperty("prop"); - for (var p in newObj) { - if (p === "prop") { - isEnumerable = true; - } - } +for (var p in newObj) { + if (p === "prop") { + isEnumerable = true; + } +} assert(hasProperty, 'hasProperty !== true'); assert.sameValue(isEnumerable, false, 'isEnumerable'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-309.js b/test/built-ins/Object/create/15.2.3.5-4-309.js index 98930055a6cc3b59da8f950f1994f2204b3ceb8f..a9143455b042bd0bf782350c4c69264205f0ddb2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-309.js +++ b/test/built-ins/Object/create/15.2.3.5-4-309.js @@ -11,13 +11,12 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - value: 1001, - writable: true, - enumerable: true - } + prop: { + value: 1001, + writable: true, + enumerable: true + } }); assert(newObj.hasOwnProperty("prop")); verifyNotConfigurable(newObj, "prop"); - diff --git a/test/built-ins/Object/create/15.2.3.5-4-31.js b/test/built-ins/Object/create/15.2.3.5-4-31.js index 45044ed2f39d843216d84f7157d7c784740044ab..7bb081770e95d45a5ff4d938c5c1e03fd091be01 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-31.js +++ b/test/built-ins/Object/create/15.2.3.5-4-31.js @@ -9,11 +9,11 @@ description: > (15.2.3.7 step 5.a) ---*/ - var props = new Boolean(false); - props.prop = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, props); +var props = new Boolean(false); +props.prop = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-310.js b/test/built-ins/Object/create/15.2.3.5-4-310.js index e61fac09dfb7fc6df7f5984cd350a02d2ff09b62..33fb666127834ec4691930d94c24ab686bdfbf07 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-310.js +++ b/test/built-ins/Object/create/15.2.3.5-4-310.js @@ -9,13 +9,13 @@ description: > 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - set: function () { }, - enumerable: true, - configurable: true - } - }); +var newObj = Object.create({}, { + prop: { + set: function() {}, + enumerable: true, + configurable: true + } +}); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(newObj.prop, undefined, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-311.js b/test/built-ins/Object/create/15.2.3.5-4-311.js index c9e5b2cf44c62e9ea805bbb2637946a1fad91d09..fa6f42a1ed86188d52c88c92591e9dbeb9d4e254 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-311.js +++ b/test/built-ins/Object/create/15.2.3.5-4-311.js @@ -9,35 +9,35 @@ description: > 4.b) ---*/ - var newObj = Object.create({}, { - prop: { - get: function () { - return "verifyCreate"; - }, - enumerable: true, - configurable: true - } - }); +var newObj = Object.create({}, { + prop: { + get: function() { + return "verifyCreate"; + }, + enumerable: true, + configurable: true + } +}); - var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); - var verifySet = desc.hasOwnProperty("set") && typeof desc.set === "undefined"; +var desc = Object.getOwnPropertyDescriptor(newObj, "prop"); +var verifySet = desc.hasOwnProperty("set") && typeof desc.set === "undefined"; - var verifyGet = false; - if (newObj.prop === "verifyCreate") { - verifyGet = true; - } +var verifyGet = false; +if (newObj.prop === "verifyCreate") { + verifyGet = true; +} - var verifyEnumerable = false; - for (var p in newObj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in newObj) { + if (p === "prop") { + verifyEnumerable = true; + } +} - var verifyConfigurable = false; - var hasProperty = newObj.hasOwnProperty("prop"); - delete newObj.prop; - verifyConfigurable = !newObj.hasOwnProperty("prop") && hasProperty; +var verifyConfigurable = false; +var hasProperty = newObj.hasOwnProperty("prop"); +delete newObj.prop; +verifyConfigurable = !newObj.hasOwnProperty("prop") && hasProperty; assert(verifySet, 'verifySet !== true'); assert(verifyGet, 'verifyGet !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-312.js b/test/built-ins/Object/create/15.2.3.5-4-312.js index d6e54fa1754a374782b4224421f8db20842dae8e..12f4b4e57a17c932add64a466b865cbfbe4292e7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-312.js +++ b/test/built-ins/Object/create/15.2.3.5-4-312.js @@ -9,20 +9,20 @@ description: > 4.b) ---*/ - var isEnumerable = false; - var newObj = Object.create({}, { - prop: { - set: function () { }, - get: function () { }, - configurable: true - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); - for (var p in newObj) { - if (p === "prop") { - isEnumerable = true; - } - } +var isEnumerable = false; +var newObj = Object.create({}, { + prop: { + set: function() {}, + get: function() {}, + configurable: true + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); +for (var p in newObj) { + if (p === "prop") { + isEnumerable = true; + } +} assert(hasProperty, 'hasProperty !== true'); assert.sameValue(isEnumerable, false, 'isEnumerable'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-313.js b/test/built-ins/Object/create/15.2.3.5-4-313.js index 0a0d7f57e50594b3779312862582163a2796a88d..9ab55313b87d58d08860b8483169fa6581cb2b45 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-313.js +++ b/test/built-ins/Object/create/15.2.3.5-4-313.js @@ -11,11 +11,11 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - set: function () { }, - get: function () { }, - enumerable: true - } + prop: { + set: function() {}, + get: function() {}, + enumerable: true + } }); assert(newObj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/create/15.2.3.5-4-314.js b/test/built-ins/Object/create/15.2.3.5-4-314.js index 7fd8b2b126ac92b9104d6516799b7ce5ab28e1d5..d7e7c59641c0f4eba56c5b1efd95690b947fa616 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-314.js +++ b/test/built-ins/Object/create/15.2.3.5-4-314.js @@ -8,8 +8,8 @@ description: > empty object (15.2.3.7 step 7) ---*/ - var newObj = Object.create({}, { - foo: {} - }); +var newObj = Object.create({}, { + foo: {} +}); assert(newObj.hasOwnProperty("foo"), 'newObj.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-315.js b/test/built-ins/Object/create/15.2.3.5-4-315.js index 096ac14adb690d7a4ff69b6a26b24f71cbf30115..d4bfc58cf3455b1b36da4e981c903e338808ce03 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-315.js +++ b/test/built-ins/Object/create/15.2.3.5-4-315.js @@ -10,26 +10,28 @@ includes: [propertyHelper.js] ---*/ var newObj = {}; + function getFunc() { - return 10; + return 10; } + function setFunc(value) { - newObj.setVerifyHelpProp = value; + newObj.setVerifyHelpProp = value; } newObj = Object.create({}, { - foo1: { - value: 200, - enumerable: true, - writable: true, - configurable: true - }, - foo2: { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - } + foo1: { + value: 200, + enumerable: true, + writable: true, + configurable: true + }, + foo2: { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + } }); verifyEqualTo(newObj, "foo1", 200); diff --git a/test/built-ins/Object/create/15.2.3.5-4-316.js b/test/built-ins/Object/create/15.2.3.5-4-316.js index bc43715d498c463bc7b12d2e3e6689ec71d834dc..2f42172f415095738dfc20706ec19229ad8093a5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-316.js +++ b/test/built-ins/Object/create/15.2.3.5-4-316.js @@ -8,31 +8,32 @@ description: > numerical names (15.2.3.7 step 7) ---*/ - function getFunc() { - return 20; - } - function setFunc() { } +function getFunc() { + return 20; +} - var newObj = Object.create({}, { - 0: { - value: 100, - enumerable: true, - writable: true, - configurable: true - }, - 1: { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }, - 2: { - value: 200, - enumerable: true, - writable: true, - configurable: true - } - }); +function setFunc() {} + +var newObj = Object.create({}, { + 0: { + value: 100, + enumerable: true, + writable: true, + configurable: true + }, + 1: { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }, + 2: { + value: 200, + enumerable: true, + writable: true, + configurable: true + } +}); assert.sameValue(newObj[0], 100, 'newObj[0]'); assert.sameValue(newObj[1], 20, 'newObj[1]'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-32.js b/test/built-ins/Object/create/15.2.3.5-4-32.js index 2e4d7c43654d6e9adeb74d41b6fc03594ca06906..1f940b5e7e1df190c5160e23d4c47807d714abaf 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-32.js +++ b/test/built-ins/Object/create/15.2.3.5-4-32.js @@ -9,11 +9,11 @@ description: > 5.a) ---*/ - var props = new Number(-9); - props.prop = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, props); +var props = new Number(-9); +props.prop = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-33.js b/test/built-ins/Object/create/15.2.3.5-4-33.js index 28684d926b08a48510cd0832dfa8088efeda76db..3bc37eca73d3183227e6f5e20a083a4622b56fd9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-33.js +++ b/test/built-ins/Object/create/15.2.3.5-4-33.js @@ -9,10 +9,10 @@ description: > 5.a) ---*/ - Math.prop = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, Math); +Math.prop = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, Math); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-34.js b/test/built-ins/Object/create/15.2.3.5-4-34.js index 33bf19e07f21e9519ca59b00bb32f8f0e4930dc1..c2d007dea6f0fb79a5274197f88900167011a753 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-34.js +++ b/test/built-ins/Object/create/15.2.3.5-4-34.js @@ -9,11 +9,11 @@ description: > 5.a) ---*/ - var props = new Date(); - props.prop = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, props); +var props = new Date(); +props.prop = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-35.js b/test/built-ins/Object/create/15.2.3.5-4-35.js index effb3e92e786d584934873871f615e55f2c2832f..2a7a7664c46d2aac84eb56debeae23276b32bb8b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-35.js +++ b/test/built-ins/Object/create/15.2.3.5-4-35.js @@ -9,11 +9,11 @@ description: > 5.a) ---*/ - var props = new RegExp(); - props.prop = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, props); +var props = new RegExp(); +props.prop = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-36.js b/test/built-ins/Object/create/15.2.3.5-4-36.js index f11823460e1397496ac32528fc2424a17e389c3d..5e11b46b385ede1e7c91a4a143ea01abacec6cf7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-36.js +++ b/test/built-ins/Object/create/15.2.3.5-4-36.js @@ -9,10 +9,10 @@ description: > 5.a) ---*/ - JSON.prop = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, JSON); +JSON.prop = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, JSON); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-37.js b/test/built-ins/Object/create/15.2.3.5-4-37.js index dcef0aea44b24fa2bfbf0ad922beceb679aa594e..ba4098ae5b379debf81982d6c3f7fa1495d986e5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-37.js +++ b/test/built-ins/Object/create/15.2.3.5-4-37.js @@ -9,16 +9,19 @@ description: > 5.a) ---*/ - var props = new Error("test"); +var props = new Error("test"); - (Object.getOwnPropertyNames(props)).forEach(function(name){ - props[name] = {value:11, configurable:true} - }); +(Object.getOwnPropertyNames(props)).forEach(function(name) { + props[name] = { + value: 11, + configurable: true + } +}); - props.prop15_2_3_5_4_37 = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, props); +props.prop15_2_3_5_4_37 = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop15_2_3_5_4_37"), 'newObj.hasOwnProperty("prop15_2_3_5_4_37") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-38.js b/test/built-ins/Object/create/15.2.3.5-4-38.js index b0ffcabf089ea198fad6c9ea8b9bf5e137bc8f4b..50cd1a2ebb5478535fdee5e3d790ba34aa497678 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-38.js +++ b/test/built-ins/Object/create/15.2.3.5-4-38.js @@ -9,13 +9,15 @@ description: > property (15.2.3.7 step 5.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.prop = { - value: 12, - enumerable: true - }; +argObj.prop = { + value: 12, + enumerable: true +}; - var newObj = Object.create({}, argObj); +var newObj = Object.create({}, argObj); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-39.js b/test/built-ins/Object/create/15.2.3.5-4-39.js index 6bd0d2a9a0022eeef0fe72b1ca42accb7547c902..7b644636a2942fa998f387d46824b769ef8fa8ac 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-39.js +++ b/test/built-ins/Object/create/15.2.3.5-4-39.js @@ -9,19 +9,25 @@ description: > 5.a) ---*/ - var props = {}; - props.prop1 = { value: 12, enumerable: true }; - props.prop2 = { value: true, enumerable: true }; +var props = {}; +props.prop1 = { + value: 12, + enumerable: true +}; +props.prop2 = { + value: true, + enumerable: true +}; - var tempArray = []; - for (var p in props) { - if (props.hasOwnProperty(p)) { - tempArray.push(p); - } - } +var tempArray = []; +for (var p in props) { + if (props.hasOwnProperty(p)) { + tempArray.push(p); + } +} - var newObj = Object.create({}, props); - var index = 0; - for (var q in newObj) { - assert.sameValue(tempArray[index++] !== q && newObj.hasOwnProperty(q), false, 'tempArray[index++] !== q && newObj.hasOwnProperty(q)'); - } +var newObj = Object.create({}, props); +var index = 0; +for (var q in newObj) { + assert.sameValue(tempArray[index++] !== q && newObj.hasOwnProperty(q), false, 'tempArray[index++] !== q && newObj.hasOwnProperty(q)'); +} diff --git a/test/built-ins/Object/create/15.2.3.5-4-4.js b/test/built-ins/Object/create/15.2.3.5-4-4.js index 5cf42f78eca85aa3e18d2558351eb001ca997b82..852786420aa4a63df7a45dc78b377e2ebdaf54b2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-4.js +++ b/test/built-ins/Object/create/15.2.3.5-4-4.js @@ -8,16 +8,16 @@ description: > 2). ---*/ - var props = {}; - var result = false; +var props = {}; +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Object; - return {}; - }, - enumerable: true - }); - Object.create({}, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Object; + return {}; + }, + enumerable: true +}); +Object.create({}, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-40.js b/test/built-ins/Object/create/15.2.3.5-4-40.js index 91c14b190a9dd329a08b075ddadc367103fa7a72..2cc93673b8683ccb1cf5e1fa17ec59f166bb0e44 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-40.js +++ b/test/built-ins/Object/create/15.2.3.5-4-40.js @@ -9,30 +9,30 @@ description: > (15.2.3.7 step 5.a) ---*/ - var newObj = {}; - var props = {}; - var i = 0; +var newObj = {}; +var props = {}; +var i = 0; - Object.defineProperty(props, "prop1", { - get: function () { - i++; - return {}; - }, - enumerable: true - }); +Object.defineProperty(props, "prop1", { + get: function() { + i++; + return {}; + }, + enumerable: true +}); - Object.defineProperty(props, "prop2", { - get: function () { - if (1 === i++) { - throw new RangeError(); - } else { - return {}; - } - }, - enumerable: true - }); +Object.defineProperty(props, "prop2", { + get: function() { + if (1 === i++) { + throw new RangeError(); + } else { + return {}; + } + }, + enumerable: true +}); assert.throws(RangeError, function() { - newObj = Object.create({}, props); + newObj = Object.create({}, props); }); assert.sameValue(newObj.hasOwnProperty("prop1"), false, 'newObj.hasOwnProperty("prop1")'); assert.sameValue(i, 2, 'i'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-41.js b/test/built-ins/Object/create/15.2.3.5-4-41.js index d74dd58cde9b076933583a502e1a5cfc36deddeb..b7ecc928531c76fcaaf8f2e0ea0f72d3eab788ec 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-41.js +++ b/test/built-ins/Object/create/15.2.3.5-4-41.js @@ -10,7 +10,7 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: undefined - }); + Object.create({}, { + prop: undefined + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-42.js b/test/built-ins/Object/create/15.2.3.5-4-42.js index 424a2be6665233169c6346fb1caaaeebd3fb9b98..6facce654991a8dff92907f7802ab8ba12420960 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-42.js +++ b/test/built-ins/Object/create/15.2.3.5-4-42.js @@ -10,7 +10,7 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: null - }); + Object.create({}, { + prop: null + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-43.js b/test/built-ins/Object/create/15.2.3.5-4-43.js index f3ca54ea488c4da881a9678c4f47b62c196b1195..e8ea28ed642faa0729d059d5676e7c3cd281c28c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-43.js +++ b/test/built-ins/Object/create/15.2.3.5-4-43.js @@ -10,7 +10,7 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: false - }); + Object.create({}, { + prop: false + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-44.js b/test/built-ins/Object/create/15.2.3.5-4-44.js index 18073ec961af15eb72d6cd6939a1a17841491054..1f2f43ba98f4466ddd4201c9c5520eba8f81f8e6 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-44.js +++ b/test/built-ins/Object/create/15.2.3.5-4-44.js @@ -10,7 +10,7 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: 12 - }); + Object.create({}, { + prop: 12 + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-45.js b/test/built-ins/Object/create/15.2.3.5-4-45.js index 653c33ccb168b96b10dfda452e691f74324dc881..1c76337e74557ddd3b29bd2e1067369de9089766 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-45.js +++ b/test/built-ins/Object/create/15.2.3.5-4-45.js @@ -10,7 +10,7 @@ description: > assert.throws(TypeError, function() { - Object.create({}, { - prop: "abc" - }); + Object.create({}, { + prop: "abc" + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-4-46.js b/test/built-ins/Object/create/15.2.3.5-4-46.js index b0bc6c13be90ea7862b53e031b1b7b3a0af6909b..2e8c022ec49081159c8e31f687cc92d4c3400af5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-46.js +++ b/test/built-ins/Object/create/15.2.3.5-4-46.js @@ -8,16 +8,16 @@ description: > 'Properties' is true (8.10.5 step 3) ---*/ - var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: true - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var accessed = false; +var newObj = Object.create({}, { + prop: { + enumerable: true + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-47.js b/test/built-ins/Object/create/15.2.3.5-4-47.js index 1fc56ec9d646ecbf745240c8ee97a6cbe0b3309f..2fa4616785a456390fc58ced6f78d9bc21f81092 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-47.js +++ b/test/built-ins/Object/create/15.2.3.5-4-47.js @@ -8,15 +8,15 @@ description: > 'Properties' is not present (8.10.5 step 3) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: {} - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: {} +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-48.js b/test/built-ins/Object/create/15.2.3.5-4-48.js index 5c4b6e0b4b978b188385527dd0bbb24f6fa6c0bc..390d8f526ddfe515a050397c9b56628202ad34ce 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-48.js +++ b/test/built-ins/Object/create/15.2.3.5-4-48.js @@ -8,18 +8,18 @@ description: > 'Properties' is own data property (8.10.5 step 3.a) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: true - } - }); +var newObj = Object.create({}, { + prop: { + enumerable: true + } +}); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-49.js b/test/built-ins/Object/create/15.2.3.5-4-49.js index 77261ab2650fe814e6f3d3176c21cf356e411f42..a829bdbd92c717ac96111721f2ab25bc7166a1e7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-49.js +++ b/test/built-ins/Object/create/15.2.3.5-4-49.js @@ -8,23 +8,23 @@ description: > 'Properties' is an inherited data property (8.10.5 step 3.a) ---*/ - var accessed = false; +var accessed = false; - var proto = { - enumerable: true - }; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var proto = { + enumerable: true +}; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-5.js b/test/built-ins/Object/create/15.2.3.5-4-5.js index f348366e076e5e08b9909c597031c1f2399c5827..d599cb1162cfd775feb2f0d364630a9faf19e963 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-5.js +++ b/test/built-ins/Object/create/15.2.3.5-4-5.js @@ -8,16 +8,16 @@ description: > (15.2.3.7 step 2) ---*/ - var props = function () { }; - var result = false; +var props = function() {}; +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Function; - return {}; - }, - enumerable: true - }); - Object.create({}, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Function; + return {}; + }, + enumerable: true +}); +Object.create({}, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-50.js b/test/built-ins/Object/create/15.2.3.5-4-50.js index 72e4b5269fb1ab4acf1d6218db3dfaaa481570f8..eec68263f7f9e041fe800f77dbe49ccf3b1125a4 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-50.js +++ b/test/built-ins/Object/create/15.2.3.5-4-50.js @@ -9,27 +9,27 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; - var proto = { - enumerable: true - }; +var accessed = false; +var proto = { + enumerable: true +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "enumerable", { - value: false - }); +Object.defineProperty(descObj, "enumerable", { + value: false +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-51.js b/test/built-ins/Object/create/15.2.3.5-4-51.js index 88e7e277864c2fddf7c0a215edeec74fb02883df..593b35ab41ddec1d3322ea0eb54fa4b209b79c4c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-51.js +++ b/test/built-ins/Object/create/15.2.3.5-4-51.js @@ -9,31 +9,31 @@ description: > accessor property (8.10.5 step 3.a) ---*/ - var proto = {}; - var accessed = false; - - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); - - Object.defineProperty(descObj, "enumerable", { - value: false - }); - - var newObj = Object.create({}, { - prop: descObj - }); - - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var proto = {}; +var accessed = false; + +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); + +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); + +Object.defineProperty(descObj, "enumerable", { + value: false +}); + +var newObj = Object.create({}, { + prop: descObj +}); + +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-52.js b/test/built-ins/Object/create/15.2.3.5-4-52.js index 66d732240faf6cf464b965613286d852e6d733f0..91a8e862cbe823620d4b528b159a9eb88cf631b4 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-52.js +++ b/test/built-ins/Object/create/15.2.3.5-4-52.js @@ -8,23 +8,23 @@ description: > 'Properties' is own accessor property (8.10.5 step 3.a) ---*/ - var accessed = false; +var accessed = false; - var descObj = {}; - Object.defineProperty(descObj, "enumerable", { - get: function () { - return true; - } - }); +var descObj = {}; +Object.defineProperty(descObj, "enumerable", { + get: function() { + return true; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-53.js b/test/built-ins/Object/create/15.2.3.5-4-53.js index 46ae8e51bfbef0621f5f878bd26a5c072abb45a0..504ad406ed194e725620ae1942a3c64f83863455 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-53.js +++ b/test/built-ins/Object/create/15.2.3.5-4-53.js @@ -8,27 +8,27 @@ description: > 'Properties' is an inherited accessor property (8.10.5 step 3.a) ---*/ - var proto = {}; - var accessed = false; +var proto = {}; +var accessed = false; - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); +var newObj = Object.create({}, { + prop: descObj +}); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-54.js b/test/built-ins/Object/create/15.2.3.5-4-54.js index 1ca9d8db5f942a81abab5b74664e0cfec1e0580a..f04ce911a9458835e227c2ff669fcc90710c74d2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-54.js +++ b/test/built-ins/Object/create/15.2.3.5-4-54.js @@ -9,28 +9,28 @@ description: > data property (8.10.5 step 3.a) ---*/ - var accessed = false; - var proto = { - enumerable: true - }; +var accessed = false; +var proto = { + enumerable: true +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "enumerable", { - get: function () { - return false; - } - }); +Object.defineProperty(descObj, "enumerable", { + get: function() { + return false; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-55.js b/test/built-ins/Object/create/15.2.3.5-4-55.js index 3111507b4d88fa1c972d77c75ebfc3cc4f4dddc6..9c6e201cf3537f94adb3dc8b2217ee22b4a76b5b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-55.js +++ b/test/built-ins/Object/create/15.2.3.5-4-55.js @@ -9,31 +9,31 @@ description: > accessor property (8.10.5 step 3.a) ---*/ - var proto = {}; - var accessed = false; - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); +var proto = {}; +var accessed = false; +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "enumerable", { - get: function () { - return false; - } - }); +Object.defineProperty(descObj, "enumerable", { + get: function() { + return false; + } +}); - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-56.js b/test/built-ins/Object/create/15.2.3.5-4-56.js index 1d71a5d36ae87b2a246308f28391a5c85c73b45a..d0fb5995d350356d3842e1125646fa16d7888ade 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-56.js +++ b/test/built-ins/Object/create/15.2.3.5-4-56.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = {}; - Object.defineProperty(descObj, "enumerable", { - set: function () { } - }); +var accessed = false; +var descObj = {}; +Object.defineProperty(descObj, "enumerable", { + set: function() {} +}); - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-57.js b/test/built-ins/Object/create/15.2.3.5-4-57.js index d39fd50352d50621994c9591d2e879e04052f39b..217831b9c2be6a0f7659f5d5a2616f7a38def6db 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-57.js +++ b/test/built-ins/Object/create/15.2.3.5-4-57.js @@ -9,29 +9,29 @@ description: > which overrides an inherited accessor property (8.10.5 step 3.a) ---*/ - var proto = {}; - var accessed = false; - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); +var proto = {}; +var accessed = false; +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - Object.defineProperty(descObj, "enumerable", { - set: function () { } - }); +Object.defineProperty(descObj, "enumerable", { + set: function() {} +}); - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-58.js b/test/built-ins/Object/create/15.2.3.5-4-58.js index 2054d70d5de3ca4132b438363a27451a43aa0811..4e91fc6fadecb088501748390c6cb4836efd1dd1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-58.js +++ b/test/built-ins/Object/create/15.2.3.5-4-58.js @@ -9,24 +9,24 @@ description: > function (8.10.5 step 3.a) ---*/ - var proto = {}; - var accessed = false; +var proto = {}; +var accessed = false; - Object.defineProperty(proto, "enumerable", { - set: function () { } - }); +Object.defineProperty(proto, "enumerable", { + set: function() {} +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var descObj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var descObj = new ConstructFun(); - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-59.js b/test/built-ins/Object/create/15.2.3.5-4-59.js index 0c85eb4e60e6a64555f9ca1a40c2a42cfd56cfd1..00ea9000b3efa86398395f15b524d47dbd7d96b9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-59.js +++ b/test/built-ins/Object/create/15.2.3.5-4-59.js @@ -9,18 +9,18 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = function () { }; +var accessed = false; +var descObj = function() {}; - descObj.enumerable = true; +descObj.enumerable = true; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-6.js b/test/built-ins/Object/create/15.2.3.5-4-6.js index d216b379a3ad95c9f78961afab4388775f5b8f49..09df5f96cf9b95c39973a076ba7810c6b97f9ec7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-6.js +++ b/test/built-ins/Object/create/15.2.3.5-4-6.js @@ -8,16 +8,16 @@ description: > step 2). ---*/ - var props = []; - var result = false; +var props = []; +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Array; - return {}; - }, - enumerable: true - }); - Object.create({}, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Array; + return {}; + }, + enumerable: true +}); +Object.create({}, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-60.js b/test/built-ins/Object/create/15.2.3.5-4-60.js index 06cc1e97566138cc034b46829c2738aaaa8465e3..cd92635b7f6517b7f7360df52538bd021fcc12dc 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-60.js +++ b/test/built-ins/Object/create/15.2.3.5-4-60.js @@ -9,18 +9,18 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = []; +var accessed = false; +var descObj = []; - descObj.enumerable = true; +descObj.enumerable = true; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-61.js b/test/built-ins/Object/create/15.2.3.5-4-61.js index 5bdb0912fa8513f1471f3b2aac1fa77dcb5e05dd..293d2886d7f55ea53cc44a874d471a4ae16c5b85 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-61.js +++ b/test/built-ins/Object/create/15.2.3.5-4-61.js @@ -9,18 +9,18 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = new String(); +var accessed = false; +var descObj = new String(); - descObj.enumerable = true; +descObj.enumerable = true; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-62.js b/test/built-ins/Object/create/15.2.3.5-4-62.js index cd237f4bddede8dfb126d3d2726842b615237698..79b165669f1180390eedc67a93be38003cd02585 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-62.js +++ b/test/built-ins/Object/create/15.2.3.5-4-62.js @@ -9,18 +9,18 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = new Boolean(false); +var accessed = false; +var descObj = new Boolean(false); - descObj.enumerable = true; +descObj.enumerable = true; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-63.js b/test/built-ins/Object/create/15.2.3.5-4-63.js index 0af44b539bf03b4cc0fe002ecdc49441b84548da..3a4cd5862f1a8101d56bab8fde7fcbec97f0b766 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-63.js +++ b/test/built-ins/Object/create/15.2.3.5-4-63.js @@ -9,18 +9,18 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = new Number(-9); +var accessed = false; +var descObj = new Number(-9); - descObj.enumerable = true; +descObj.enumerable = true; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-64.js b/test/built-ins/Object/create/15.2.3.5-4-64.js index dcb8a6f233f9162c7e29f5d834c7863bbee55275..52b6a9b300e2a5877afe7b03527c04d2a4b1fad3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-64.js +++ b/test/built-ins/Object/create/15.2.3.5-4-64.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; +var accessed = false; - Math.enumerable = true; +Math.enumerable = true; - var newObj = Object.create({}, { - prop: Math - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: Math +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-65.js b/test/built-ins/Object/create/15.2.3.5-4-65.js index d4e700a4a330eea5f398ce7764748b5c860c44e9..d0761a6fd737c186d10ec28fa7f3177c68bee7b7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-65.js +++ b/test/built-ins/Object/create/15.2.3.5-4-65.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = new Date(); +var accessed = false; +var descObj = new Date(); - descObj.enumerable = true; +descObj.enumerable = true; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-66.js b/test/built-ins/Object/create/15.2.3.5-4-66.js index 3a893bfc2eaaa8e6e82a10f3d2c6e16eccbca2e2..66058d2139fac5a1f117bc98079564e34c754af9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-66.js +++ b/test/built-ins/Object/create/15.2.3.5-4-66.js @@ -9,18 +9,18 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = new RegExp(); +var accessed = false; +var descObj = new RegExp(); - descObj.enumerable = true; +descObj.enumerable = true; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-67.js b/test/built-ins/Object/create/15.2.3.5-4-67.js index c9daddf94bf2f5323e26239521ba4c7432554f47..d054525f7c246e81e5357d4cfb9adf72cdf727b4 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-67.js +++ b/test/built-ins/Object/create/15.2.3.5-4-67.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; +var accessed = false; - JSON.enumerable = true; +JSON.enumerable = true; - var newObj = Object.create({}, { - prop: JSON - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: JSON +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-68.js b/test/built-ins/Object/create/15.2.3.5-4-68.js index 6a1c26234af34137965011da83b194965019b3da..8c11147ab26c0f119f83e5f686171e1277bec87d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-68.js +++ b/test/built-ins/Object/create/15.2.3.5-4-68.js @@ -9,18 +9,18 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; - var descObj = new Error(); +var accessed = false; +var descObj = new Error(); - descObj.enumerable = true; +descObj.enumerable = true; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-69.js b/test/built-ins/Object/create/15.2.3.5-4-69.js index 59f4183229e622ad613f2c9ff4b5b55d04a3f77a..78b361b4dc34b8ab761092eb620e88e170d291b6 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-69.js +++ b/test/built-ins/Object/create/15.2.3.5-4-69.js @@ -9,18 +9,20 @@ description: > 'enumerable' property (8.10.5 step 3.a) ---*/ - var accessed = false; - var argObj = (function () { return arguments; })(); +var accessed = false; +var argObj = (function() { + return arguments; +})(); - argObj.enumerable = true; +argObj.enumerable = true; - var newObj = Object.create({}, { - prop: argObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: argObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-7.js b/test/built-ins/Object/create/15.2.3.5-4-7.js index daee331b97f2b382264834d3cf1e0462f8df794a..f6ae81d93fc85844fb0452946c8bd26b1d28aaff 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-7.js +++ b/test/built-ins/Object/create/15.2.3.5-4-7.js @@ -8,16 +8,16 @@ description: > step 2) ---*/ - var props = new String(); - var result = false; +var props = new String(); +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof String; - return {}; - }, - enumerable: true - }); - Object.create({}, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof String; + return {}; + }, + enumerable: true +}); +Object.create({}, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-71.js b/test/built-ins/Object/create/15.2.3.5-4-71.js index 2d6ecb8dd1fbd1d50b891c0ef8f4e9276b437c81..866b12b2bba84b0cd90323282c5370694e562952 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-71.js +++ b/test/built-ins/Object/create/15.2.3.5-4-71.js @@ -9,17 +9,17 @@ description: > property (8.10.5 step 3.a) ---*/ - var accessed = false; +var accessed = false; - this.enumerable = true; +this.enumerable = true; - var newObj = Object.create({}, { - prop: this - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: this +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-72.js b/test/built-ins/Object/create/15.2.3.5-4-72.js index 46c31574514f82ff8d5b5daac3ee3bcc8b57d51a..b7a5491d69a24bf52869b4d64c551b1c377d1121 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-72.js +++ b/test/built-ins/Object/create/15.2.3.5-4-72.js @@ -8,17 +8,17 @@ description: > 'Properties' is undefined (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: undefined - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: undefined + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-73.js b/test/built-ins/Object/create/15.2.3.5-4-73.js index b67405d353a536709813176367da1c5eaaa054de..0ed2539aaed60e6405df337766415c7b660d3e02 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-73.js +++ b/test/built-ins/Object/create/15.2.3.5-4-73.js @@ -8,17 +8,17 @@ description: > 'Properties' is null (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: null - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: null + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-74.js b/test/built-ins/Object/create/15.2.3.5-4-74.js index 6971654aceba5014f31cf72d0f7f2dac2022b546..8b0934415ed3e33aa526db1ffd5cc13313ea5451 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-74.js +++ b/test/built-ins/Object/create/15.2.3.5-4-74.js @@ -8,17 +8,17 @@ description: > 'Properties' is true (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: true - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: true + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-75.js b/test/built-ins/Object/create/15.2.3.5-4-75.js index 8c69638b0599ae5f3b70741ad05c42057a8700af..c3546aba78dac9bf38f20ece93dad98bf385d73d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-75.js +++ b/test/built-ins/Object/create/15.2.3.5-4-75.js @@ -8,19 +8,19 @@ description: > 'Properties' is false (8.10.5 step 3.b) ---*/ - var accessed = false; - var descObj = { - enumerable: false - }; +var accessed = false; +var descObj = { + enumerable: false +}; - var newObj = Object.create({}, { - prop: descObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: descObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-76.js b/test/built-ins/Object/create/15.2.3.5-4-76.js index 3924258d3a49c4498b7c8cda5124a842b8ad8fcb..269796c4bb667206c97f8bec74a4eaf9d2f7b7f5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-76.js +++ b/test/built-ins/Object/create/15.2.3.5-4-76.js @@ -8,18 +8,18 @@ description: > 'Properties' is 0 (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: 0 - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: 0 + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-77.js b/test/built-ins/Object/create/15.2.3.5-4-77.js index c3d8cb2900ef17888dcafc3df07d04e3f2dbe718..bad5567d789999c1d23b56b4cf9641353b2fb5f5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-77.js +++ b/test/built-ins/Object/create/15.2.3.5-4-77.js @@ -8,18 +8,18 @@ description: > 'Properties' is +0 (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: +0 - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: +0 + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-78.js b/test/built-ins/Object/create/15.2.3.5-4-78.js index 1b85d21f9d1e8c1beafc75567d7233fcac181675..34ba24c028739612e25a0ee25df846596dcdf7d3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-78.js +++ b/test/built-ins/Object/create/15.2.3.5-4-78.js @@ -8,18 +8,18 @@ description: > 'Properties' is -0 (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: -0 - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: -0 + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-79.js b/test/built-ins/Object/create/15.2.3.5-4-79.js index 472f164d24b5fb929c9ca51551f0f2bbf9390130..be16e900211a20b3c1482655954eb06176f381f2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-79.js +++ b/test/built-ins/Object/create/15.2.3.5-4-79.js @@ -8,18 +8,18 @@ description: > 'Properties' is NaN (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: NaN - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: NaN + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-8.js b/test/built-ins/Object/create/15.2.3.5-4-8.js index d87b1b6e3e27900155bef3feab66bd7f34d0e71a..4ef160b837e32cdf7419c57776e868277caffae9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-8.js +++ b/test/built-ins/Object/create/15.2.3.5-4-8.js @@ -8,16 +8,16 @@ description: > primitive value is true (15.2.3.7 step 2). ---*/ - var props = new Boolean(true); - var result = false; +var props = new Boolean(true); +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Boolean; - return {}; - }, - enumerable: true - }); - Object.create({}, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Boolean; + return {}; + }, + enumerable: true +}); +Object.create({}, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-80.js b/test/built-ins/Object/create/15.2.3.5-4-80.js index 84207e3825e82b1660532b91022ccf676b2f0664..d0bfc0567a5a1b4ad5dd885d16c2393c72e00ec3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-80.js +++ b/test/built-ins/Object/create/15.2.3.5-4-80.js @@ -8,17 +8,17 @@ description: > 'Properties' is a positive number primitive (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: 12 - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: 12 + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-81.js b/test/built-ins/Object/create/15.2.3.5-4-81.js index 27f1fde732f6abd151529e1d242e1fa7d913105a..2e0270763e6ceb4b7081a5d8bbfd8a8eaa52d8ab 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-81.js +++ b/test/built-ins/Object/create/15.2.3.5-4-81.js @@ -8,17 +8,17 @@ description: > 'Properties' is a negative number primitive (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: -9 - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: -9 + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-82.js b/test/built-ins/Object/create/15.2.3.5-4-82.js index c86ae44b3d561ee2a03a8e49fceda989f60117b4..d275e9bb44bba1d6dd3191a74f9c7af6901458eb 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-82.js +++ b/test/built-ins/Object/create/15.2.3.5-4-82.js @@ -8,18 +8,18 @@ description: > 'Properties' is an empty string (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: "" - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: "" + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-83.js b/test/built-ins/Object/create/15.2.3.5-4-83.js index d0a69d948b0ffd01adb759836a89bb715bfc8c2c..32c0cebc15ff21800ee1fbb3839ec54db5f06930 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-83.js +++ b/test/built-ins/Object/create/15.2.3.5-4-83.js @@ -8,17 +8,17 @@ description: > 'Properties' is a non-empty string (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: "AB\n\\cd" - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: "AB\n\\cd" + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-84.js b/test/built-ins/Object/create/15.2.3.5-4-84.js index c0721deedda6c659db311ff899694d7d45c42f4b..09f5f79f544f85be9d0158d7c7e908084347ef65 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-84.js +++ b/test/built-ins/Object/create/15.2.3.5-4-84.js @@ -8,17 +8,17 @@ description: > 'Properties' is a Function object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: function () { } - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: function() {} + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-85.js b/test/built-ins/Object/create/15.2.3.5-4-85.js index b7aa0da3a00b317e00128964f54ddec1a1cded26..7afe545876f7d1c24be4a95db2a63e797eb70f6d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-85.js +++ b/test/built-ins/Object/create/15.2.3.5-4-85.js @@ -8,18 +8,18 @@ description: > 'Properties' is an Array object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: [] - } - }); +var newObj = Object.create({}, { + prop: { + enumerable: [] + } +}); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-86.js b/test/built-ins/Object/create/15.2.3.5-4-86.js index d089bb6112855bc21244d0bfcac5535ea8228215..5c88021eb17a999814765a6f029bcf40fffc79cf 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-86.js +++ b/test/built-ins/Object/create/15.2.3.5-4-86.js @@ -8,17 +8,17 @@ description: > 'Properties' is a String object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: new String() - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: new String() + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-87.js b/test/built-ins/Object/create/15.2.3.5-4-87.js index d31f4e86a66ba1bc7415142fe8fc35174a086148..bb363c4c36a834f5ee0dffcb7ccd2bd49fcddb80 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-87.js +++ b/test/built-ins/Object/create/15.2.3.5-4-87.js @@ -8,17 +8,17 @@ description: > 'Properties' is a Boolean object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: new Boolean(true) - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: new Boolean(true) + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-88.js b/test/built-ins/Object/create/15.2.3.5-4-88.js index 83e38608fc77c3a257b1a967dc4e3f62274e4012..deb4b0d8bbaf9f66e6b208343d11be326fb162e6 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-88.js +++ b/test/built-ins/Object/create/15.2.3.5-4-88.js @@ -8,17 +8,17 @@ description: > 'Properties' is a Number object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: new Number(-9) - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: new Number(-9) + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-89.js b/test/built-ins/Object/create/15.2.3.5-4-89.js index b8c211e183a9fde93e496cb279c337cc1dc3fc25..2f17fa9d546611b2debd81395a7b597da9c85034 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-89.js +++ b/test/built-ins/Object/create/15.2.3.5-4-89.js @@ -8,17 +8,17 @@ description: > 'Properties' is the Math object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: Math - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: Math + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-9.js b/test/built-ins/Object/create/15.2.3.5-4-9.js index 564f8ac0cc07895c00fbd83ab4382fe6f0f830cd..36682e2eae69e3dd2a82cf503a8e11196ee23cea 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-9.js +++ b/test/built-ins/Object/create/15.2.3.5-4-9.js @@ -8,16 +8,16 @@ description: > primitive value is any interesting number (15.2.3.7 step 2). ---*/ - var props = new Number(12); - var result = false; +var props = new Number(12); +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Number; - return {}; - }, - enumerable: true - }); - Object.create({}, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Number; + return {}; + }, + enumerable: true +}); +Object.create({}, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-90.js b/test/built-ins/Object/create/15.2.3.5-4-90.js index 21fc225b81564b8b6a6cdfad73f7c1f19dc3dd1c..b953f2f2bc414a3d4122d19a0953cc37dbb88f31 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-90.js +++ b/test/built-ins/Object/create/15.2.3.5-4-90.js @@ -8,17 +8,17 @@ description: > 'Properties' is a Date object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: new Date() - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: new Date() + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-91.js b/test/built-ins/Object/create/15.2.3.5-4-91.js index c9ea3746e52639f62a394f3e73606868a7da1202..4d6e1ea42e1c906ee2086bbe9f98d2c2d007f24c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-91.js +++ b/test/built-ins/Object/create/15.2.3.5-4-91.js @@ -8,17 +8,17 @@ description: > 'Properties' is a RegExp object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: new RegExp() - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: new RegExp() + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-92.js b/test/built-ins/Object/create/15.2.3.5-4-92.js index 535b22ee19667d5098d699f4b0319742aed63f0b..3943f23536945dc548a94256625504c3f5f328f0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-92.js +++ b/test/built-ins/Object/create/15.2.3.5-4-92.js @@ -8,17 +8,17 @@ description: > 'Properties' is the JSON object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: JSON - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: JSON + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-93.js b/test/built-ins/Object/create/15.2.3.5-4-93.js index 1ac6ded11a72617703821d3c8bb03d27796a6e9a..b2713f7d08f69376f05901e78b1d4f924009ab3c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-93.js +++ b/test/built-ins/Object/create/15.2.3.5-4-93.js @@ -8,17 +8,17 @@ description: > 'Properties' is an Error object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: new Error() - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: new Error() + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-94.js b/test/built-ins/Object/create/15.2.3.5-4-94.js index 4f33838fce735c74221b9d77ed68046befeee327..8b53b8303ab592f60fe26b804611366673ca0070 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-94.js +++ b/test/built-ins/Object/create/15.2.3.5-4-94.js @@ -8,18 +8,20 @@ description: > 'Properties' is an Arguments object (8.10.5 step 3.b) ---*/ - var accessed = false; - var argObj = (function () { return arguments; })(); +var accessed = false; +var argObj = (function() { + return arguments; +})(); - var newObj = Object.create({}, { - prop: { - enumerable: argObj - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: argObj + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-96.js b/test/built-ins/Object/create/15.2.3.5-4-96.js index 8250c6f28ca1f961ba8419a3fc825143f378491b..c564ef7ae21d2609895f7f58de28de57e907c531 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-96.js +++ b/test/built-ins/Object/create/15.2.3.5-4-96.js @@ -8,17 +8,17 @@ description: > 'Properties' is the global object (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: this - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: this + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-97.js b/test/built-ins/Object/create/15.2.3.5-4-97.js index 86b471b8c02253d5fff98cb5a46f2f4abb088079..0acd1124b4155f6b087d54e1e1d6f8fa0700addf 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-97.js +++ b/test/built-ins/Object/create/15.2.3.5-4-97.js @@ -9,17 +9,17 @@ description: > the value true (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: "false" - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: "false" + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-98.js b/test/built-ins/Object/create/15.2.3.5-4-98.js index 49b6b8214f3237f7c920a1613c32bc614ecaeace..74b55f6351545ab1f27f6ddcd3a8926d6c876bf6 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-98.js +++ b/test/built-ins/Object/create/15.2.3.5-4-98.js @@ -9,17 +9,17 @@ description: > true (8.10.5 step 3.b) ---*/ - var accessed = false; +var accessed = false; - var newObj = Object.create({}, { - prop: { - enumerable: new Boolean(false) - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: new Boolean(false) + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-99.js b/test/built-ins/Object/create/15.2.3.5-4-99.js index cff852151e718de61a047a3b2ccd19dd5dcd93d0..59e1a18809c39b51479a26ae3b4873ea6dde57a9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-99.js +++ b/test/built-ins/Object/create/15.2.3.5-4-99.js @@ -8,15 +8,15 @@ description: > 'Properties' is true (8.10.5 step 4) ---*/ - var newObj = Object.create({}, { - prop: { - configurable: true - } - }); +var newObj = Object.create({}, { + prop: { + configurable: true + } +}); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-0-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-0-1.js index 9bb699700737be1391452478daee73a72bfdeadf..2768ba5550d286ac3ae39714ae89960fed79e7d3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-0-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.7-0-1 description: Object.defineProperties must exist as a function ---*/ - var f = Object.defineProperties; +var f = Object.defineProperties; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-1.js index 6bf9439eff406f60885adece268dd2e53b0b39d4..96e8293905b4d9506dc514da24d3455fda4b72b5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-1-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-1.js @@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'O' is undefined ---*/ assert.throws(TypeError, function() { - Object.defineProperties(undefined, {}); + Object.defineProperties(undefined, {}); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-2.js index b4eae1229a31305b80f50ea82ba036e2d352bb33..f18488819452508874329ea3bd40f0a011ac0b21 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-1-2.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-2.js @@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'O' is null ---*/ assert.throws(TypeError, function() { - Object.defineProperties(null, {}); + Object.defineProperties(null, {}); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js index 0974b1a06bf5b1e55423906d6b50273a1b98685b..211adc261ffe559445dab82270da0c620c3da553 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js @@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'O' is a boolean ---*/ assert.throws(TypeError, function() { - Object.defineProperties(true, {}); + Object.defineProperties(true, {}); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-4.js index 673f986086371d463605daa81146e4e75e417a86..06c6cc73cf1ec7527e3abe6b1bbeb9fda961c894 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-1-4.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-4.js @@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'O' is a string ---*/ assert.throws(TypeError, function() { - Object.defineProperties("abc", {}); + Object.defineProperties("abc", {}); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-1.js index c6b27773c9b8123d9e3e4d2c6b6390659852fb90..41a1e98e70603cd96570ff5b900bacc1d5528894 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-1.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(TypeError, function() { - Object.defineProperties(0, {}); + Object.defineProperties(0, {}); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-1.js index 4f8ca8d07d25c9e7bf3fa9a5afa08864b962c643..02a5807c205a6c8b611c8fc3bf5386482ae2a743 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-1.js @@ -7,5 +7,5 @@ description: Object.defineProperties throws TypeError if 'Properties' is null ---*/ assert.throws(TypeError, function() { - Object.defineProperties({}, null); + Object.defineProperties({}, null); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js index 87ca4be7763282f462ff704ee780d7ad5200ae1f..a9e6b3cdb1696dd6a3f79175eb9e297ddf522a7c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js @@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-10 description: Object.defineProperties - argument 'Properties' is an Array object ---*/ - var obj = {}; - var props = []; - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Array; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = []; +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Array; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js index 49e5f420847b14f74fd31140ed3eabad0c0513c7..6ac6227e871bff55fdb352bababfbde4dacb81f8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js @@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-11 description: Object.defineProperties - argument 'Properties' is the Math object ---*/ - var obj = {}; - var result = false; +var obj = {}; +var result = false; - Object.defineProperty(Math, "prop", { - get: function () { - result = (this === Math); - return {}; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(Math, "prop", { + get: function() { + result = (this === Math); + return {}; + }, + enumerable: true, + configurable: true +}); - Object.defineProperties(obj, Math); +Object.defineProperties(obj, Math); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js index 83f08893852d0c42f329b2730364c083ccddec25..103a8ea8d135da6ab915752c0f6e7e4c0f78ce76 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js @@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-12 description: Object.defineProperties - argument 'Properties' is a Date object ---*/ - var obj = {}; - var props = new Date(); - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Date; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = new Date(); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Date; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js index bea1c4158a7869c1eaeba2623c339d018be29781..35ad5d75d22e15c9cc4b1e0b33d00cdb01b2b46d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js @@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-13 description: Object.defineProperties - argument 'Properties' is a RegExp object ---*/ - var obj = {}; - var props = new RegExp(); - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof RegExp; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = new RegExp(); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof RegExp; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js index 4cb5a056a8872f56f320c1dddb39cd23e7e6ca49..0196e74061ebb4b28282458c3a7f6f3f5314d957 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js @@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-14 description: Object.defineProperties - argument 'Properties' is the JSON object ---*/ - var obj = {}; - var result = false; +var obj = {}; +var result = false; - Object.defineProperty(JSON, "prop", { - get: function () { - result = (this === JSON); - return {}; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(JSON, "prop", { + get: function() { + result = (this === JSON); + return {}; + }, + enumerable: true, + configurable: true +}); - Object.defineProperties(obj, JSON); +Object.defineProperties(obj, JSON); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js index 9a69dc5c20216fc869a9dc120be5ebfcc1921ada..974c0a97326fdcba0c42f18081d9c8ef36d5d21d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js @@ -6,25 +6,25 @@ es5id: 15.2.3.7-2-15 description: Object.defineProperties - argument 'Properties' is an Error object ---*/ - var obj = {}; - var props = new Error("test"); - var obj1 = { - value: 11 - }; - props.description = obj1; - props.message = obj1; - props.name = obj1; +var obj = {}; +var props = new Error("test"); +var obj1 = { + value: 11 +}; +props.description = obj1; +props.message = obj1; +props.name = obj1; - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Error; - return {}; - }, - enumerable: true - }); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Error; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js index 702db6f173558f4d23c04067412581ee8c558370..2d2138c990221d785f0fb3ae1091ff14175e0194 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js @@ -8,22 +8,22 @@ description: > object ---*/ - var obj = {}; - var result = false; +var obj = {}; +var result = false; - var Fun = function () { - return arguments; - }; - var props = new Fun(); +var Fun = function() { + return arguments; +}; +var props = new Fun(); - Object.defineProperty(props, "prop", { - get: function () { - result = ('[object Arguments]' === Object.prototype.toString.call(this)); - return {}; - }, - enumerable: true - }); +Object.defineProperty(props, "prop", { + get: function() { + result = ('[object Arguments]' === Object.prototype.toString.call(this)); + return {}; + }, + enumerable: true +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-18.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-18.js index e36e3f666687469c20e0a7aaba1723f43d08a166..b95a3e23543960e5f0c47ca4daa8078044b05fe7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-18.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-18.js @@ -9,25 +9,25 @@ description: > ---*/ var global = this; - var obj = {}; - var result = false; +var obj = {}; +var result = false; - try { - Object.defineProperty(this, "prop", { - get: function () { - result = (this === global); - return {}; - }, - enumerable: true, - configurable:true - }); +try { + Object.defineProperty(this, "prop", { + get: function() { + result = (this === global); + return {}; + }, + enumerable: true, + configurable: true + }); - Object.defineProperties(obj, this); - } catch (e) { - if (!(e instanceof TypeError)) throw e; - result = true; - } finally { - delete this.prop; - } + Object.defineProperties(obj, this); +} catch (e) { + if (!(e instanceof TypeError)) throw e; + result = true; +} finally { + delete this.prop; +} assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-2.js index 5366c8b9ac1edadae786f0228840eb3bc1e55cb0..0d3dea7b0c32638eaf7d3b4243f3393c3e4bc201 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-2.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-2.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(TypeError, function() { - Object.defineProperties({}, undefined); + Object.defineProperties({}, undefined); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-3.js index 828a76bdb4c23e0e25d3c89155f1e2b5e755829d..ca7acb7fafb231c4bca7d4c663afd3a2c27f698e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-3.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-3.js @@ -8,7 +8,7 @@ description: > value is false ---*/ - var obj = {}; - var obj1 = Object.defineProperties(obj, false); +var obj = {}; +var obj1 = Object.defineProperties(obj, false); assert.sameValue(obj, obj1, 'obj'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-4.js index 6b5e9f202f6517422b0e0449da2803b8a6a6b85b..3c3a45bdcd0dec92bc0f9fc23ed81e0dee2b60c6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-4.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-4.js @@ -8,18 +8,18 @@ description: > object whose primitive value is true ---*/ - var obj = {}; - var props = new Boolean(true); - var result = false; +var obj = {}; +var props = new Boolean(true); +var result = false; - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Boolean; - return {}; - }, - enumerable: true - }); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Boolean; + return {}; + }, + enumerable: true +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js index ba0c4c8ce61be8e4a5f2da33137bef14382fef11..c5de3201284d32202e17155c91ff860b6a4c12de 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js @@ -8,7 +8,9 @@ description: > number ---*/ - var obj = { "123": 100 }; - var obj1 = Object.defineProperties(obj, -12); +var obj = { + "123": 100 +}; +var obj1 = Object.defineProperties(obj, -12); assert.sameValue(obj, obj1, 'obj'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js index c18fee56f93b86c6314638877ccf41e987e755f9..a27b7f4b388e9941407a8017771616ec2dbd0d6d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js @@ -8,18 +8,18 @@ description: > whose primitive value is any interesting number ---*/ - var obj = {}; - var props = new Number(-12); - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Number; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = new Number(-12); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Number; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js index 169fbe9069836c49e25494b615c5b085c316b7c5..fcd9bc7213f47a40df1cbb95907b0cdc6e72bb34 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js @@ -8,7 +8,9 @@ description: > value is any interesting string ---*/ - var obj = { "123": 100 }; - var obj1 = Object.defineProperties(obj, ""); +var obj = { + "123": 100 +}; +var obj1 = Object.defineProperties(obj, ""); assert.sameValue(obj, obj1, 'obj'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js index f880ec47a1a4b2337f9bfce61ce8cfe087cb3bfa..62e50e5b92943d5053052d8993363560148688aa 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js @@ -8,18 +8,18 @@ description: > whose primitive value is any interesting string ---*/ - var obj = {}; - var props = new String(); - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof String; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = new String(); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof String; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js index 16acd8a061ef81af0bb077b8310ae3be94285483..0d4cd7b7cfd76abf77c92574bc536266f49cbd87 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js @@ -8,18 +8,18 @@ description: > object ---*/ - var obj = {}; - var props = function () { }; - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Function; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = function() {}; +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Function; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js index c6d7775e2a7f22ea4285f908c52d3fdae8709605..482305d7437a7bfdb5cee610a3011acef8e626b2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js @@ -8,13 +8,13 @@ description: > 'Properties' is defined in 'O' ---*/ - var obj = {}; - var props = {}; - Object.defineProperty(props, "prop", { - value: {}, - enumerable: true - }); +var obj = {}; +var props = {}; +Object.defineProperty(props, "prop", { + value: {}, + enumerable: true +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-2.js index 3b32199bf53e1ec733e4eab33dc1f19ac5416bac..56ec632a6677ea278c27da881985744d2113a3ff 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-3-2.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-2.js @@ -8,14 +8,14 @@ description: > is not enumerable is not defined in 'O' ---*/ - var obj = {}; - var props = {}; +var obj = {}; +var props = {}; - Object.defineProperty(props, "prop", { - value: {}, - enumerable: false - }); +Object.defineProperty(props, "prop", { + value: {}, + enumerable: false +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-3.js index d4dc3cafc48fac97067b9c81556e27c5ed9e5e2a..26cb92f2bda86d9a26e170b04b64859e8027c46e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-3-3.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-3.js @@ -8,19 +8,19 @@ description: > 'Properties' is not defined in 'O' ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "prop", { - value: {}, - enumerable: true - }); +Object.defineProperty(proto, "prop", { + value: {}, + enumerable: true +}); - var Con = function () { }; - Con.prototype = proto; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; +var child = new Con(); - Object.defineProperties(obj, child); +Object.defineProperties(obj, child); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-4.js index bbafb06c9c2ada392565924f24f45a8fe5d3d7ea..a7f5b3fcbeb4b1dd8866fb5d38ed61c7d5297786 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-3-4.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-4.js @@ -8,17 +8,17 @@ description: > 'Properties' is defined in 'O' ---*/ - var obj = {}; +var obj = {}; - var props = {}; +var props = {}; - Object.defineProperty(props, "prop", { - get: function () { - return {}; - }, - enumerable: true - }); +Object.defineProperty(props, "prop", { + get: function() { + return {}; + }, + enumerable: true +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-5.js index 40efb3be2795af39983fd604f0e5f043fb09d0ad..eba9a4daaf758a2efa4b738689db678ed628a3ff 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-3-5.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-5.js @@ -8,17 +8,17 @@ description: > which is not enumerable is not defined in 'O' ---*/ - var obj = {}; +var obj = {}; - var props = {}; +var props = {}; - Object.defineProperty(props, "prop", { - get: function () { - return {}; - }, - enumerable: false - }); +Object.defineProperty(props, "prop", { + get: function() { + return {}; + }, + enumerable: false +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-6.js index 7efb02f66c5a3e2b3b32b301b645cbe4efefe13a..d2ad59b0d20a755f8bc9d2b5d45b2c554727f171 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-3-6.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-6.js @@ -8,20 +8,20 @@ description: > of 'Properties' is not defined in 'O' ---*/ - var obj = {}; - var proto = {}; +var obj = {}; +var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return {}; - }, - enumerable: true - }); +Object.defineProperty(proto, "prop", { + get: function() { + return {}; + }, + enumerable: true +}); - var Con = function () { }; - Con.prototype = proto; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; +var child = new Con(); - Object.defineProperties(obj, child); +Object.defineProperties(obj, child); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-7.js index 828fd9d14b25ff1f25e4ddf7c18048af0cd397f4..65c83d741b19fd2a83cb845e0b4b2a9173efa2dc 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-3-7.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-7.js @@ -8,23 +8,23 @@ description: > when 'Properties' doesn't contain enumerable own property ---*/ - var obj = {}; +var obj = {}; - var props = {}; +var props = {}; - Object.defineProperty(props, "prop1", { - value: {}, - enumerable: false - }); +Object.defineProperty(props, "prop1", { + value: {}, + enumerable: false +}); - Object.defineProperty(props, "prop2", { - get: function () { - return {}; - }, - enumerable: false - }); +Object.defineProperty(props, "prop2", { + get: function() { + return {}; + }, + enumerable: false +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert.sameValue(obj.hasOwnProperty("prop1"), false, 'obj.hasOwnProperty("prop1")'); assert.sameValue(obj.hasOwnProperty("prop2"), false, 'obj.hasOwnProperty("prop2")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-8.js index 33d3a9f851af1415c1e764673cafe2cf62847b52..64808eae677fa244697a1accfd9e84d1ac15e72e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-3-8.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-3-8.js @@ -8,23 +8,23 @@ description: > when 'Properties' doesn't contain enumerable own property ---*/ - var obj = {}; +var obj = {}; - var props = {}; +var props = {}; - Object.defineProperty(props, "prop1", { - value: {}, - enumerable: false - }); +Object.defineProperty(props, "prop1", { + value: {}, + enumerable: false +}); - Object.defineProperty(props, "prop2", { - get: function () { - return {}; - }, - enumerable: true - }); +Object.defineProperty(props, "prop2", { + get: function() { + return {}; + }, + enumerable: true +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert.sameValue(obj.hasOwnProperty("prop1"), false, 'obj.hasOwnProperty("prop1")'); assert(obj.hasOwnProperty("prop2"), 'obj.hasOwnProperty("prop2") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js index eb800c8e113ad77228caed55af22b5f914e4898c..1df310470110cde8f7c2867082bf472ed364fbf8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-1.js @@ -9,29 +9,29 @@ description: > 'O' ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "prop", { - value: { - value: 9 - }, - enumerable: true - }); +Object.defineProperty(proto, "prop", { + value: { + value: 9 + }, + enumerable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "prop", { - value: { - value: 12 - }, - enumerable: true - }); +var child = new Con(); +Object.defineProperty(child, "prop", { + value: { + value: 12 + }, + enumerable: true +}); - Object.defineProperties(obj, child); +Object.defineProperties(obj, child); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js index a1bfc9a681905f12364247ea2c55ef95eb58c48e..7c64562aea341c48e96f445b0ee8c9952cbd51fa 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-10.js @@ -8,16 +8,16 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; - var props = new Boolean(false); +var obj = {}; +var props = new Boolean(false); - Object.defineProperty(props, "prop", { - value: { - value: 10 - }, - enumerable: true - }); - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + value: { + value: 10 + }, + enumerable: true +}); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 10, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js index 8a7abc5e99f5b9b46c6140fad60c174c8ee8e353..1b73ab286cc03da10e1786fb9d44712019ffd05a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-11.js @@ -8,16 +8,16 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; - var props = new Number(-9); +var obj = {}; +var props = new Number(-9); - Object.defineProperty(props, "prop", { - value: { - value: 12 - }, - enumerable: true - }); - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + value: { + value: 12 + }, + enumerable: true +}); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js index f13acf2b5da5a633d5ac058119c94630527f519c..014b19296071198dfe9672e3fe5bb5ccdbbaf4f3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-12.js @@ -8,12 +8,12 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; +var obj = {}; - Math.prop = { - value: 12 - }; - Object.defineProperties(obj, Math); +Math.prop = { + value: 12 +}; +Object.defineProperties(obj, Math); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js index 22ea0f97fbf72a02ca4562f4fe9458ece5d309d6..bf4aaa78f413afdaf94eff51d1919b73df0d02df 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-13.js @@ -8,16 +8,16 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; - var props = new Date(); +var obj = {}; +var props = new Date(); - Object.defineProperty(props, "prop", { - value: { - value: 13 - }, - enumerable: true - }); - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + value: { + value: 13 + }, + enumerable: true +}); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 13, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js index a5c31d9bb239b74277b2ac4412dbefc696666899..5d91d58404fa316bdb406c02ca20d9efbbdcad3a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-14.js @@ -8,16 +8,16 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; - var props = new RegExp(); +var obj = {}; +var props = new RegExp(); - Object.defineProperty(props, "prop", { - value: { - value: 14 - }, - enumerable: true - }); - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + value: { + value: 14 + }, + enumerable: true +}); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 14, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js index 07dc678c47d25ebb3c0c36f9cd06836d5e2f8ffa..53496479011d8c01295c7240754c53fd87657eb4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-15.js @@ -8,12 +8,12 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; +var obj = {}; - JSON.prop = { - value: 15 - }; - Object.defineProperties(obj, JSON); +JSON.prop = { + value: 15 +}; +Object.defineProperties(obj, JSON); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 15, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js index 2363f678563dd96a58a8fba6184fc792f38076a9..1a3215844ec378a8127737ee541f52f8e615aad6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-16.js @@ -8,19 +8,19 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; - var props = new Error("test"); - var obj1 = { - value: 11 - }; - props.message = obj1; - props.name = obj1; - props.description = obj1; +var obj = {}; +var props = new Error("test"); +var obj1 = { + value: 11 +}; +props.message = obj1; +props.name = obj1; +props.description = obj1; - props.prop = { - value: 16 - }; - Object.defineProperties(obj, props); +props.prop = { + value: 16 +}; +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 16, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js index 5d2cba017806e68311e7d1abd38a419af9fb038f..a6022defe2163b2dd19d7d21868e5dfe65810984 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-17.js @@ -9,21 +9,21 @@ description: > property ---*/ - var obj = {}; - var arg; +var obj = {}; +var arg; - (function fun() { - arg = arguments; - }()); +(function fun() { + arg = arguments; +}()); - Object.defineProperty(arg, "prop", { - value: { - value: 17 - }, - enumerable: true - }); +Object.defineProperty(arg, "prop", { + value: { + value: 17 + }, + enumerable: true +}); - Object.defineProperties(obj, arg); +Object.defineProperties(obj, arg); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 17, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js index 9cbd29821821d10cd9f7953ba8d7b092dc19da5d..0e709cf85fbd63a94fbf3b51f6c55d177d8e6c45 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-2.js @@ -9,29 +9,29 @@ description: > in 'O' ---*/ - var obj = {}; - var proto = {}; +var obj = {}; +var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return { - value: 9 - }; - }, - enumerable: true - }); +Object.defineProperty(proto, "prop", { + get: function() { + return { + value: 9 + }; + }, + enumerable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "prop", { - value: { - value: 12 - }, - enumerable: true - }); - Object.defineProperties(obj, child); +var child = new Con(); +Object.defineProperty(child, "prop", { + value: { + value: 12 + }, + enumerable: true +}); +Object.defineProperties(obj, child); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js index ce3cae1f6dd85f9adfbcf39dde48da19e25acba1..b1d39d8e8f90a847f5d42fdee3440a49946f12eb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-3.js @@ -9,30 +9,30 @@ description: > 'Properties' is defined in 'O' ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "prop", { - value: { - value: 9 - }, - enumerable: true - }); +Object.defineProperty(proto, "prop", { + value: { + value: 9 + }, + enumerable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "prop", { - get: function () { - return { - value: 12 - }; - }, - enumerable: true - }); - Object.defineProperties(obj, child); +var child = new Con(); +Object.defineProperty(child, "prop", { + get: function() { + return { + value: 12 + }; + }, + enumerable: true +}); +Object.defineProperties(obj, child); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js index 79180ee5f7c3301083cdf5253b634d6f2751bb97..df6c63c759a28dd11c628901077d70376cb0b2d6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-4.js @@ -9,32 +9,32 @@ description: > of 'Properties' is defined in 'O' ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return { - value: 9 - }; - }, - enumerable: false - }); +Object.defineProperty(proto, "prop", { + get: function() { + return { + value: 9 + }; + }, + enumerable: false +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "prop", { - get: function () { - return { - value: 12 - }; - }, - enumerable: true - }); - Object.defineProperties(obj, child); +var child = new Con(); +Object.defineProperty(child, "prop", { + get: function() { + return { + value: 12 + }; + }, + enumerable: true +}); +Object.defineProperties(obj, child); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js index f25ba775bb6633faf0e8314c0ae56fd4f8e4c425..eac8f218b07a2dd62b2408e83e1059f217c7f3c7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-5.js @@ -8,19 +8,19 @@ description: > 'Properties' without a get function is defined in 'O' ---*/ - var obj = {}; +var obj = {}; - var props = {}; - Object.defineProperty(props, "prop", { - get: function () { - return { - set: function () { } - }; - }, - enumerable: true - }); +var props = {}; +Object.defineProperty(props, "prop", { + get: function() { + return { + set: function() {} + }; + }, + enumerable: true +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof obj.prop, "undefined", 'typeof obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js index 9516041f8ab008584597bc52bad17051adeb1b0a..2ca106448c4f1b44089ac14c5098f3147870c6f5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-6.js @@ -9,30 +9,30 @@ description: > inherited accessor property of 'Properties' is defined in 'O' ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return 12; - }, - enumerable: true - }); +Object.defineProperty(proto, "prop", { + get: function() { + return 12; + }, + enumerable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "prop", { - get: function () { - return { - set: function () { } - }; - }, - enumerable: true - }); - Object.defineProperties(obj, child); +var child = new Con(); +Object.defineProperty(child, "prop", { + get: function() { + return { + set: function() {} + }; + }, + enumerable: true +}); +Object.defineProperties(obj, child); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof obj.prop, "undefined", 'typeof obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js index a08c7d71bb1e174ad85d84a529b5f1d6c13e2767..8cb526c351bbe41c5be0b5dc3dbd7c0cb0362d51 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-7.js @@ -8,17 +8,17 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; - var props = function () { }; +var obj = {}; +var props = function() {}; - Object.defineProperty(props, "prop", { - value: { - value: 7 - }, - enumerable: true - }); +Object.defineProperty(props, "prop", { + value: { + value: 7 + }, + enumerable: true +}); - Object.defineProperties(obj, props); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 7, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js index 76d2a34a6f669e90cbb07092bc18ba8a2171d646..4172d63b7864f5d001e1391b3a76dbba9979f947 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-8.js @@ -8,17 +8,17 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; - var props = []; - var descObj = { - value: 8 - }; +var obj = {}; +var props = []; +var descObj = { + value: 8 +}; - Object.defineProperty(props, "prop", { - value: descObj, - enumerable: true - }); - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + value: descObj, + enumerable: true +}); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 8, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js index 679a4acafbbb8157abce9a35234b8a9aad01d8a0..c394944d8dde5421573f5768932b49ff1b825a85 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-a-9.js @@ -8,16 +8,16 @@ description: > implements its own [[Get]] method to get enumerable own property ---*/ - var obj = {}; - var props = new String(); +var obj = {}; +var props = new String(); - Object.defineProperty(props, "prop", { - value: { - value: 9 - }, - enumerable: true - }); - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + value: { + value: 9 + }, + enumerable: true +}); +Object.defineProperties(obj, props); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 9, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js index 7eaf6bd16a4cfec0d5ff65c3901a024772553bf6..0717a78ad05d9bd00926632249548f8b3a944ed5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-1.js @@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-1 description: Object.defineProperties - 'descObj' is undefined (8.10.5 step 1) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: undefined - }); + Object.defineProperties(obj, { + prop: undefined + }); }); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js index 2161abbeb01bf00b8c64f58e545efd43950b7cfa..92b92c34e4c00ee522ea7e53dff180a530f3d566 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-10.js @@ -9,28 +9,28 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var proto = { - enumerable: true - }; +var proto = { + enumerable: true +}; - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperty(descObj, "enumerable", { - value: false - }); +Object.defineProperty(descObj, "enumerable", { + value: false +}); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js index 931dbcfff7d91dee2eab71b076468346e2ef92e1..1c7424996a0d47f88c25af3e17e02df6932a9e18 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-100.js @@ -8,16 +8,16 @@ description: > 'descObj' is Boolean object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: new Boolean(true) - } - }); +Object.defineProperties(obj, { + property: { + configurable: new Boolean(true) + } +}); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js index 8fb9548c089daa848b371332474aebd45a67c7b3..0696cef2103eee224b411e43dae83af4d1d5f3a2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-101.js @@ -8,15 +8,15 @@ description: > 'descObj' is Number object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: new Number(-123) - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: new Number(-123) + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js index 74577f6894f2efcf0560f3010cc402e0fdbdb83c..db821542261f3c42a94fa46a1f7d2cc21899ec30 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-102.js @@ -8,15 +8,15 @@ description: > 'descObj' is the Math object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: Math - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: Math + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js index dce33a54cffb6dffcadcd6c40c31702cca27aae0..4a1ab03d5b59622f059cb87229acb89b9aa6b209 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-103.js @@ -8,15 +8,15 @@ description: > 'descObj' is Date object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: new Date() - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: new Date() + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js index 7b2464f4e43ea51324e2d0717d3a70deeb5c42bc..509aa4d1de277320004ab2fd7a0d2395957e9321 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-104.js @@ -8,15 +8,15 @@ description: > 'descObj' is RegExp object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: new RegExp() - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: new RegExp() + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js index a45f0203973d7f25b2da3d267d93a62db4d79ac7..54061c8ad5d79893ffc9f164e39cc086e0a8cf24 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-105.js @@ -8,15 +8,15 @@ description: > 'descObj' is the JSON object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: JSON - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: JSON + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js index 2d45404102d9c5c40a45c5944b09b42ba6b9ae06..d02aa0cfbf0108eee3446b0c33790cca821e209e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-106.js @@ -8,15 +8,15 @@ description: > 'descObj' is Error object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: new SyntaxError() - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: new SyntaxError() + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js index 68bd1992d0bfb228bee98fde8dc1552d49fee970..d9f5f2436f7c0a43012d56be1db021895cffff3e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-107.js @@ -8,21 +8,21 @@ description: > 'descObj' is the Argument object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - var func = function (a, b, c) { - return arguments; - }; +var func = function(a, b, c) { + return arguments; +}; - var args = func(1, true, "a"); +var args = func(1, true, "a"); - Object.defineProperties(obj, { - property: { - configurable: args - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: args + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js index 4a99de9025be8148d3e9eed30d377688743c2ae5..2100bf806c2c27fd7bc46034a03f3e72ded005fd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-109.js @@ -8,15 +8,15 @@ description: > 'descObj' is the global object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: this - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: this + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js index c7fe924612b5a2e66d400af0dff474e5863ad8ba..3204be99824c335e2ca6802adf821b2075fb194f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-11.js @@ -9,32 +9,32 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var proto = {}; - var accessed = false; - - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); - - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); - - Object.defineProperty(descObj, "enumerable", { - value: false - }); - - Object.defineProperties(obj, { - prop: descObj - }); - - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +var obj = {}; +var proto = {}; +var accessed = false; + +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); + +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); + +Object.defineProperty(descObj, "enumerable", { + value: false +}); + +Object.defineProperties(obj, { + prop: descObj +}); + +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js index bd73817283a7d42545ddccd1a69dfc236fb705e5..4f7e5976903e7ac19a14a1ff7c6c78b0a3571827 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-110.js @@ -9,15 +9,15 @@ description: > value (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: "false" - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: "false" + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js index 60cd9d5f096e453e611e0057410b482368909c35..f80e6667db0adf70630bf8acd454687f545aa0de 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-111.js @@ -9,15 +9,15 @@ description: > (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: new Boolean(false) - } - }); - var preCheck = obj.hasOwnProperty("property"); - delete obj.property; +Object.defineProperties(obj, { + property: { + configurable: new Boolean(false) + } +}); +var preCheck = obj.hasOwnProperty("property"); +delete obj.property; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js index 900faf15c0cd9e0e0fa971dd1d3029d1f00c547b..63076a9321bd34e31e7752ec58d70c0991c9f8b1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-112.js @@ -8,12 +8,12 @@ description: > (8.10.5 step 5) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - value: 300 - } - }); +Object.defineProperties(obj, { + property: { + value: 300 + } +}); assert.sameValue(obj.property, 300, 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js index 91a7cd1e9ea7479ab9d5764f43c71fd089b67513..86c1b279d389638e27903eafa0327a1f0a8435c1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-113.js @@ -8,13 +8,13 @@ description: > present (8.10.5 step 5) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: true - } - }); +Object.defineProperties(obj, { + property: { + writable: true + } +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js index f053943dccd56ec7a5ccff3b9c6d50789d608a72..a4350ff1a17cec1d3b03ee209b9fc523f692538f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-114.js @@ -8,12 +8,12 @@ description: > data property (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - value: "ownDataProperty" - } - }); +Object.defineProperties(obj, { + property: { + value: "ownDataProperty" + } +}); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js index a1d384f968c31f935bc1b22a214d3ce888b4ed1a..05a4bbeb286122429c9aa630d641202ab5aaf448 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-115.js @@ -8,19 +8,19 @@ description: > inherited data property (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { - value: "inheritedDataProperty" - }; +var proto = { + value: "inheritedDataProperty" +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js index 57270ab35362199df6d328f20b12bbb7693e5642..543d649bd0477f895e7a762fa0fe7f3eab513744 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-116.js @@ -9,21 +9,21 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { - value: "inheritedDataProperty" - }; +var proto = { + value: "inheritedDataProperty" +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - descObj.value = "ownDataProperty"; +descObj.value = "ownDataProperty"; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js index 56c96530fd3b49ce07041b1d991cf69ed4fd5430..d3e3f1df432bc4e36a5465eb985b7c4981ad5642 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-117.js @@ -9,27 +9,27 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperty(descObj, "value", { - value: "ownDataProperty" - }); +Object.defineProperty(descObj, "value", { + value: "ownDataProperty" +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js index 9818417288ac60e9fcba2b0d7c5fbc9ecd38590c..9128a4dac2d4279e114bdd1ef4a5d918955092f0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-118.js @@ -8,18 +8,18 @@ description: > accessor property (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +Object.defineProperty(descObj, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js index 3bb8efb11666b0d0639745ed7dbb27acc5a8eea9..b3f4d6e7d32c2b1549cd140a9944833d0ef89b67 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-119.js @@ -8,23 +8,23 @@ description: > inherited accessor property (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js index d093f3e5e853a54b676a76f921ede45ebe3f93b8..377de2f5520274b4e5faefa228d82bf82c4ed37e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-12.js @@ -8,23 +8,23 @@ description: > own accessor property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; - var descObj = {}; +var obj = {}; +var accessed = false; +var descObj = {}; - Object.defineProperty(descObj, "enumerable", { - get: function () { - return true; - } - }); +Object.defineProperty(descObj, "enumerable", { + get: function() { + return true; + } +}); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js index 0bbec160b8ad883e68a6a3196929746a50a9f91d..9e5d68fbd1cd9c62d19dbdb525d489c96d5008e5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-120.js @@ -9,26 +9,26 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { - value: "inheritedDataProperty" - }; +var proto = { + value: "inheritedDataProperty" +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperty(descObj, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +Object.defineProperty(descObj, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js index 3862ad1c24b0e3ccfe099bb70edd3bfa28fd9154..119815eb0e260ed8b9ea3b811d1031c15bcc8d89 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-121.js @@ -9,29 +9,29 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperty(descObj, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +Object.defineProperty(descObj, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js index 2092ebed229af1fa61b16acae65e9463ff385258..a03009b315043195785778255fe8aac9f38161a3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-122.js @@ -8,17 +8,17 @@ description: > accessor property without a get function (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "value", { - set: function () { } - }); +Object.defineProperty(descObj, "value", { + set: function() {} +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js index 983674eced26f150680f4fd30b8f0f7cc6dd18d8..9fb173c87ed133234c0ee5ef671c7e2d2e2790ad 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-123.js @@ -9,28 +9,28 @@ description: > inherited accessor property (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperty(descObj, "value", { - set: function () { } - }); +Object.defineProperty(descObj, "value", { + set: function() {} +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js index 0a4c48f91bb21044e7e52cb7b2ecb662bcd75970..b861fbaac1a1808d7dd7329a650c4be30ac0ccec 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-124.js @@ -9,22 +9,22 @@ description: > 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - set: function () { } - }); +Object.defineProperty(proto, "value", { + set: function() {} +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js index 7912b1555610ec6908e0f90a4e4db8512b52c792..065846ce0075bec6ff5a3308f5e74f90028f8dd7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-125.js @@ -9,16 +9,16 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var func = function (a, b) { - return a + b; - }; +var func = function(a, b) { + return a + b; +}; - func.value = "Function"; +func.value = "Function"; - Object.defineProperties(obj, { - property: func - }); +Object.defineProperties(obj, { + property: func +}); assert.sameValue(obj.property, "Function", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js index 6089482067745e7872c562f65da79890afd754fd..bdfc29b45027a1121dc89ce2864b18cc98825763 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-126.js @@ -9,14 +9,14 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var arr = [1, 2, 3]; +var arr = [1, 2, 3]; - arr.value = "Array"; +arr.value = "Array"; - Object.defineProperties(obj, { - property: arr - }); +Object.defineProperties(obj, { + property: arr +}); assert.sameValue(obj.property, "Array", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js index a46b6f6e009af8dd144721fe163c2a6a27430dcc..4ef78bad9c805153039c43ea804772f485d58af2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-127.js @@ -9,14 +9,14 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var str = new String("abc"); +var str = new String("abc"); - str.value = "String"; +str.value = "String"; - Object.defineProperties(obj, { - property: str - }); +Object.defineProperties(obj, { + property: str +}); assert.sameValue(obj.property, "String", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js index 0d7d1b807e23cc344eb88f4b7c5ba3545ccece3a..3ea1c53be2d33dbf6d98eae0fdc9522fea19fb3f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-128.js @@ -9,14 +9,14 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Boolean(false); +var descObj = new Boolean(false); - descObj.value = "Boolean"; +descObj.value = "Boolean"; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "Boolean", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js index fd46216dc3cd4144b137bf7aeea109893861346c..d567ff22a4fab3178e56f60fb46fc79dccdac4ce 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-129.js @@ -9,14 +9,14 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Number(-9); +var descObj = new Number(-9); - descObj.value = "Number"; +descObj.value = "Number"; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "Number", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js index e841730bee46b3f1cf7cb16eadbc5ac13c26447d..455e6ecc53e8e503290cbb10859bbbf94e7cf7af 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-13.js @@ -8,27 +8,27 @@ description: > inherited accessor property (8.10.5 step 3.a) ---*/ - var obj = {}; - var proto = {}; - var accessed = false; +var obj = {}; +var proto = {}; +var accessed = false; - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js index 75eb5a7de6144199c0522534372293426ee1ae06..14edec2a9dee0d8c686e594e0e9d76d8aa8af7f9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-130.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - Math.value = "Math"; +Math.value = "Math"; - Object.defineProperties(obj, { - property: Math - }); +Object.defineProperties(obj, { + property: Math +}); assert.sameValue(obj.property, "Math", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js index edfd9426f432515a63fe2b47bbf0e80f42e21203..a10e3a907b97b10d8e653cc9ee009f9ce4d1328f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-131.js @@ -9,14 +9,14 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Date(); +var descObj = new Date(); - descObj.value = "Date"; +descObj.value = "Date"; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "Date", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js index 61e00df1880b3e79c8e977c39c6d53f73cf6e549..cb7be142807d3a80d8919df8793fe2bdbf583ec3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-132.js @@ -9,14 +9,14 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new RegExp(); +var descObj = new RegExp(); - descObj.value = "RegExp"; +descObj.value = "RegExp"; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "RegExp", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js index 75d124af0d79d5029d4a421bac8f066862348428..48f2701b83b661eddf6766315f7ada38757731da 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-133.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - JSON.value = "JSON"; +JSON.value = "JSON"; - Object.defineProperties(obj, { - property: JSON - }); +Object.defineProperties(obj, { + property: JSON +}); assert.sameValue(obj.property, "JSON", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js index 1030ea5b6001926398e5784d026a21936eefcf21..bf16fc4de31be93afd28be0f07c4d1aa1ccfd45e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-134.js @@ -9,14 +9,14 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Error(); +var descObj = new Error(); - descObj.value = "Error"; +descObj.value = "Error"; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "Error", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js index 13b2ce71fc45d273da7da061273b9e705d9ca7b7..5e16d72e4f3bca730d920821528ed1f64afed673 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-135.js @@ -9,16 +9,16 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var func = function (a, b) { - arguments.value = "arguments"; +var func = function(a, b) { + arguments.value = "arguments"; - Object.defineProperties(obj, { - property: arguments - }); + Object.defineProperties(obj, { + property: arguments + }); - return obj.property === "arguments"; - }; + return obj.property === "arguments"; +}; assert(func(), 'func() !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js index db7177f090b0dc73a473b279fb968943c955b13b..211d5b2001529c14d05eebf22f331ff079ba563e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-137.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - this.value = "global"; +this.value = "global"; - Object.defineProperties(obj, { - property: this - }); +Object.defineProperties(obj, { + property: this +}); assert.sameValue(obj.property, "global", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js index 3f8ddb587c0d87f4e195e0e83af3dee64cac894b..38655acf6e1ae9164fa2bae45cf20de10e722fe3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-138.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: false - } + property: { + writable: false + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js index c7f832119606bd463ef7bfd467cd6b33fed179a3..f7f187621634dd55432ce336f885b74a95e133c4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js @@ -12,10 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - value: "abc" - } + property: { + value: "abc" + } }); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js index 01f7c17373e43f64edd0ae09c7c72f0d457804c4..c5817704c030505f81056347b8cdb463dbe2e729 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js @@ -9,29 +9,29 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; - var proto = { - enumerable: true - }; +var obj = {}; +var accessed = false; +var proto = { + enumerable: true +}; - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperty(descObj, "enumerable", { - get: function () { - return false; - } - }); +Object.defineProperty(descObj, "enumerable", { + get: function() { + return false; + } +}); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js index da4ca839d393895a225c788dcaa030c502c1aba5..73ef83af8d3bfebbb1056569c70ca4a1aba8bbe4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: false - } + property: { + writable: false + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js index 05f254dfb5daed1f30e36b125eee7a245b86a8ad..203fa255125f5b3e26d2b1aae434f570248c4940 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js @@ -12,16 +12,16 @@ includes: [propertyHelper.js] var obj = {}; var proto = { - writable: false + writable: false }; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js index 3d319e4bb1dd1e2d23f3c4e2b2fe5c194c06ca29..43065040e48761cda7beed5d1025b58631fed47d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-142.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var obj = {}; var proto = { - writable: true + writable: true }; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); @@ -24,7 +24,7 @@ var descObj = new Con(); descObj.writable = false; Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js index 64da944b96fca052a42479a3899015cd5951f9b1..7c4bd1ade8cef382dc3ce7878bc6de0888f0b10d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js @@ -12,27 +12,28 @@ includes: [propertyHelper.js] var obj = {}; -var proto = { value: 120 }; +var proto = { + value: 120 +}; Object.defineProperty(proto, "writable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "writable", { - value: false + value: false }); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js index 80575a3dd69096567a27256f0e68640a15a92d1d..7342ee90c319bcc6c9d9c8d5288c778ae396f035 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js @@ -14,13 +14,13 @@ var obj = {}; var descObj = {}; Object.defineProperty(descObj, "writable", { - get: function () { - return false; - } + get: function() { + return false; + } }); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js index 0f311be2bfb0e8139101978a6777a603c681f1a2..39364f00de4c39ee53a55fb936ca228920d63bab 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-145.js @@ -8,26 +8,26 @@ description: > inherited accessor property (8.10.5 step 6.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "writable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "writable", { + get: function() { + return true; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js index 86aba4c5fde602374e5ca408e818fc1b10233ccd..a3cf7d943bc0c0f4952e44d6a81a1a660f331593 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-146.js @@ -13,22 +13,22 @@ includes: [propertyHelper.js] var obj = {}; var proto = { - writable: true + writable: true }; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "writable", { - get: function () { - return false; - } + get: function() { + return false; + } }); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js index 302bf7a6f184a33d6b3fac7424e936737979f3f0..3e3142136068f34b0903f8f42704788945a6c20a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-147.js @@ -15,24 +15,24 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "writable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "writable", { - get: function () { - return false; - } + get: function() { + return false; + } }); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js index 45e785054f5a67f0d0b7e5e0df2cd2bf5980a93f..5dcb1f2641ad55c0f36b20f849e771b5341eb227 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-148.js @@ -14,11 +14,11 @@ var obj = {}; var descObj = {}; Object.defineProperty(descObj, "writable", { - set: function () { } + set: function() {} }); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js index 94501045111bd8f5a09f8819a9d3c0d3da50d3bd..c872639525882641c70a014d108eff93bcb51e2b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-149.js @@ -15,22 +15,22 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "writable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "writable", { - set: function () { } + set: function() {} }); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js index 7acb69ba80f56777b7de8eaedfbe9e8b3f3418d0..3371b60a89e8c230ddba67a2e931c1b52f4b5d27 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-15.js @@ -9,32 +9,32 @@ description: > property (8.10.5 step 3.a) ---*/ - var obj = {}; - var proto = {}; - var accessed = false; - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); +var obj = {}; +var proto = {}; +var accessed = false; +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperty(descObj, "enumerable", { - get: function () { - return false; - } - }); +Object.defineProperty(descObj, "enumerable", { + get: function() { + return false; + } +}); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js index 882c0e8522cbccb7033ddef03dafd53215542379..63ca7a0365a6f2e8f062ba00c60669baefae8b60 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-150.js @@ -15,16 +15,16 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "writable", { - set: function () { } + set: function() {} }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js index 0fd11782ee4859674938ab66c100687e7a8653b1..1a3d1598e1e08b81973699a59ede96e0f0b9b48d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-151.js @@ -12,14 +12,14 @@ includes: [propertyHelper.js] var obj = {}; -var func = function (a, b) { - return a + b; +var func = function(a, b) { + return a + b; }; func.writable = false; Object.defineProperties(obj, { - property: func + property: func }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js index 1f2af9b85602d7d19063c5a35f2a58f44e936761..bf2af05394ba7a16c7e1e3c984363ebc853dc7cd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-152.js @@ -17,7 +17,7 @@ var arr = [1, 2, 3]; arr.writable = false; Object.defineProperties(obj, { - property: arr + property: arr }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js index f6d920c94ca7f35ec8786802473c39a157204346..950abea99990f3ef0be21e96ea00e0ef709105d1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-153.js @@ -17,7 +17,7 @@ var str = new String("abc"); str.writable = false; Object.defineProperties(obj, { - property: str + property: str }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js index fdcedefc102906f96d5e346183172f49099bb221..028fcbee14b3387a2ecee924e32cc833e4ac02a6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-154.js @@ -17,7 +17,7 @@ var descObj = new Boolean(false); descObj.writable = false; Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js index 31758d4e3319727bf190fc923cbd1361f599557e..a51c6f1f45f63b9a54fe5e9bd4266127e9abaf0c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-155.js @@ -17,7 +17,7 @@ var descObj = new Number(-9); descObj.writable = false; Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js index c578ae4f7bf0f19cee404123ae3711771f51c778..deceb19f8837bfaf359926a8baf5663c5ee95dcb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-156.js @@ -13,11 +13,11 @@ includes: [propertyHelper.js] var obj = {}; - Math.writable = false; +Math.writable = false; - Object.defineProperties(obj, { - property: Math - }); +Object.defineProperties(obj, { + property: Math +}); - assert(obj.hasOwnProperty("property")); - verifyNotWritable(obj, "property"); +assert(obj.hasOwnProperty("property")); +verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js index d8c78aab4c8069e67ede9a13bdcfd4f01e0e1698..7e4ab1f8fa14430efbf3d3b0dfa80cc199c41b9b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-157.js @@ -17,7 +17,7 @@ var descObj = new Date(); descObj.writable = false; Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js index 76b0daa555f352bc4f8c233df77a5c6ec2679b87..c586bddf26104a460397ad6a6e470e796143feed 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js @@ -17,9 +17,8 @@ var descObj = new RegExp(); descObj.writable = false; Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js index 9bd06f4ef25bb91fad2f58db653a9591e86adde7..d13ecf6fbb8eb7ef3701d3c56c06920951fd0771 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js @@ -12,11 +12,11 @@ includes: [propertyHelper.js] var obj = {}; - JSON.writable = false; +JSON.writable = false; - Object.defineProperties(obj, { - property: JSON - }); +Object.defineProperties(obj, { + property: JSON +}); - assert(obj.hasOwnProperty("property")); - verifyNotWritable(obj, "property"); +assert(obj.hasOwnProperty("property")); +verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js index b7a6286d65b110b1494c915a7058d3d32f698f5b..0bfdb3473d7f46e5e1a026364d8565e79d2bc360 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-16.js @@ -8,21 +8,21 @@ description: > own accessor property without a get function (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; - var descObj = {}; +var obj = {}; +var accessed = false; +var descObj = {}; - Object.defineProperty(descObj, "enumerable", { - set: function () { } - }); +Object.defineProperty(descObj, "enumerable", { + set: function() {} +}); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js index 800d53d650bb518c7e9b3f47f4a2fc394ca5c069..517ad0fbe8ee060e5a264f6bd5e16810ba10dfec 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-160.js @@ -17,7 +17,7 @@ var descObj = new Error(); descObj.writable = false; Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js index cb796044891f8110c7b5abc701d85a6e8a4a2967..a3048ac305e495c94a5cb8a0ea86e2fca09e2850 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js @@ -12,16 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var func = function (a, b) { - arguments.writable = false; +var func = function(a, b) { + arguments.writable = false; - Object.defineProperties(obj, { - property: arguments - }); + Object.defineProperties(obj, { + property: arguments + }); - assert(obj.hasOwnProperty("property")); - verifyNotWritable(obj, "property"); + assert(obj.hasOwnProperty("property")); + verifyNotWritable(obj, "property"); }; func(); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js index 0cf594b05fabd5fa035be2267cb61dd5b6804e02..c029c8c73f33bc7f66a2972bb70096857c8b7b60 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js @@ -13,11 +13,11 @@ includes: [propertyHelper.js] var obj = {}; - this.writable = false; +this.writable = false; - Object.defineProperties(obj, { - property: this - }); +Object.defineProperties(obj, { + property: this +}); - assert(obj.hasOwnProperty("property")); - verifyNotWritable(obj, "property"); +assert(obj.hasOwnProperty("property")); +verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js index 7d93f439ee7f3801650fa39fb9ae6a378e13c400..8d99816a04bb1d583571a3cdae915699871e0a9b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-164.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: undefined - } + property: { + writable: undefined + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js index bd1610aa763bc771af080ed93e952f340f33b042..84d38c866349d50c933d305b660b57e03ede4bf4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-165.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: null - } + property: { + writable: null + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js index 1dfa84151219c1b0a770caecf02476fdc5cadae0..e3a0e968a9659b272d3cbcee6c5fcbdd8bbff119 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-166.js @@ -8,14 +8,14 @@ description: > 'descObj' is true (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: true - } - }); +Object.defineProperties(obj, { + property: { + writable: true + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js index bf9e5ac37c3b5d6f6f4fc95ff54ef6689d7682b4..e3361c080450f5549619392a16b2a4ef6a1128e5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: false - } + property: { + writable: false + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js index 90488b0124eba05288d15c1b2a016d8b46eb91c3..f1fb979e82150f32d1e5c3e6e9444a5c0fea455e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: 0 - } + property: { + writable: 0 + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js index 3b33e4782ce652483ac1c41ec04e261a494bccd5..9d1e031ab5a8e843edc7fa60fa06d19c52344de9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: +0 - } + property: { + writable: +0 + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js index 10aeb93763ab337b6cf2b4a82e4c7b50466307c6..67df372e769f72a90ca23744316fe5f68d63dbf4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js @@ -9,30 +9,30 @@ description: > inherited accessor property (8.10.5 step 3.a) ---*/ - var obj = {}; - var proto = {}; - var accessed = false; - Object.defineProperty(proto, "enumerable", { - get: function () { - return false; - } - }); +var obj = {}; +var proto = {}; +var accessed = false; +Object.defineProperty(proto, "enumerable", { + get: function() { + return false; + } +}); - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperty(descObj, "enumerable", { - set: function () { } - }); +Object.defineProperty(descObj, "enumerable", { + set: function() {} +}); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js index b7a2cf5a5096df2c659b3c0e6d891791d6634e88..0f0e05fe22ef47ccb9dc4d26cf1ffd20b6f520dd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: -0 - } + property: { + writable: -0 + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js index c828a02ac0d41409e875204ad7fe74d1cec71760..a61ec4f20f91626d39cc066f499243381b35ecd9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: NaN - } + property: { + writable: NaN + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js index adbe19cbc30d6f8cbce688a30035f30f03afe1a7..ad3898e77ca94508ab4e238b19c665ff6359938a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js @@ -8,14 +8,14 @@ description: > 'descObj' is positive number (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: 123 - } - }); +Object.defineProperties(obj, { + property: { + writable: 123 + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js index 019ce3f2067ee291555e93cfa8fc8f3d5d5507ed..0c6728b25000d0d98d11177d9e07c0b610b4fc63 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-173.js @@ -8,14 +8,14 @@ description: > 'descObj' is negative number (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: -123 - } - }); +Object.defineProperties(obj, { + property: { + writable: -123 + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js index 259a2948b3d3c4f687388d86ab23a508732940b2..a67609ccaa6631b9699b9ed435912d9a9a5832c2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: "" - } + property: { + writable: "" + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js index 6d3ee51c0d7d047e1acc8bc8c3b0e8e47015ff7f..cb4a16a2947ba8dcb913f40cca7853d130455b17 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js @@ -8,14 +8,14 @@ description: > 'descObj' is non-empty string (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: "abc" - } - }); +Object.defineProperties(obj, { + property: { + writable: "abc" + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js index 23b0377fdc4f35acc036d6b57fbdd8dd7da29e6e..d188cb9a1e9eefc4667c2465b2d9dc9990a64707 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-176.js @@ -8,14 +8,14 @@ description: > 'descObj' is Function object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: function () { } - } - }); +Object.defineProperties(obj, { + property: { + writable: function() {} + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js index 6434bd5e6745829217ee192fb1ed025b71ec6ef3..619619a446e968b7dce858210325e1c00e931397 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-177.js @@ -8,14 +8,14 @@ description: > 'descObj' is Array object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: [] - } - }); +Object.defineProperties(obj, { + property: { + writable: [] + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js index 952b57cd8363721e51383ef20b2c087975cafc92..9d9adb525523b726aebcb17ee620c08ef102478a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-178.js @@ -8,14 +8,14 @@ description: > 'descObj' is String object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: new String("abc") - } - }); +Object.defineProperties(obj, { + property: { + writable: new String("abc") + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js index ddeb6b920269bfd3fd8f4a6272cc55c5d912583f..4fc2e2eded1db5cd4c4c4e01f9aca36c20d704eb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-179.js @@ -8,14 +8,14 @@ description: > 'descObj' is Boolean object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: new Boolean(true) - } - }); +Object.defineProperties(obj, { + property: { + writable: new Boolean(true) + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js index 44323283ab4c3d6f781ba7a88b2b590af198f2dd..78fcee2886fdd29e6d7f2c8dd51f729cff1a1b43 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-18.js @@ -9,25 +9,25 @@ description: > 3.a) ---*/ - var obj = {}; - var proto = {}; - var accessed = false; +var obj = {}; +var proto = {}; +var accessed = false; - Object.defineProperty(proto, "enumerable", { - set: function () { } - }); +Object.defineProperty(proto, "enumerable", { + set: function() {} +}); - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js index 8812433df609b68ce114cf62fc5bed8411e28741..525c8ae3c3f3402e6fc06d6459628e614763975e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-180.js @@ -8,14 +8,14 @@ description: > 'descObj' is Number object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: new Number(123) - } - }); +Object.defineProperties(obj, { + property: { + writable: new Number(123) + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js index d3611a3357b8a15c5ec7c7365e231716628b9ccc..94b32d4ae9bf0abbb9ff486ea1803019dea07ac6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-181.js @@ -8,14 +8,14 @@ description: > 'descObj' is the Math object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: Math - } - }); +Object.defineProperties(obj, { + property: { + writable: Math + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js index 4d8cb3ec9baf9dbe4bcaac61949fd7de84511f02..8563d4f3b02428afb7a237635c59c52aaf3954bd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-182.js @@ -8,14 +8,14 @@ description: > 'descObj' is Date object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: new Date() - } - }); +Object.defineProperties(obj, { + property: { + writable: new Date() + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js index 0127529dfaed43c56b7da7496d9b89b39e97ae76..223af3f1104a64b86b8e095761e520044dcc6113 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-183.js @@ -8,14 +8,14 @@ description: > 'descObj' is RegExp object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: new RegExp() - } - }); +Object.defineProperties(obj, { + property: { + writable: new RegExp() + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js index c7d1069d0e2a5297bc0188e86599f300b29748ca..013fe4fdefbd7d8258b4c75b960c34778a21d922 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-184.js @@ -8,14 +8,14 @@ description: > 'descObj' is the JSON object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: JSON - } - }); +Object.defineProperties(obj, { + property: { + writable: JSON + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js index 5f69925d0d59929271eb76a40adcb8b60265abbb..1dadf7f4b0c323d39ec1486509f85745eeba3252 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-185.js @@ -8,14 +8,14 @@ description: > 'descObj' is Error object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: new SyntaxError() - } - }); +Object.defineProperties(obj, { + property: { + writable: new SyntaxError() + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js index 5b9d21e6a74f5b316778c759be40d34df7a08aa3..3ce2a2cd93c8cf5d1ac53523cecb2019b6134d37 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-186.js @@ -8,18 +8,18 @@ description: > 'descObj' is the Argument object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - var func = function (a, b, c) { - return arguments; - }; +var func = function(a, b, c) { + return arguments; +}; - Object.defineProperties(obj, { - property: { - writable: func(1, true, "a") - } - }); +Object.defineProperties(obj, { + property: { + writable: func(1, true, "a") + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js index 93da155d894c4ae3bd509e0c45adca9e8c1e1a30..7c21d0311544bae53baeae51e3dc8652e9fa67ab 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-188.js @@ -8,14 +8,14 @@ description: > 'descObj' is the global object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: this - } - }); +Object.defineProperties(obj, { + property: { + writable: this + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js index 3cce6915649ae14d2e7b4937d8f90c9888dbf9cf..14aeec5dd28eca1ff8a942d8aa3bd7c30bf5233f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-189.js @@ -9,14 +9,14 @@ description: > value (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: "false" - } - }); +Object.defineProperties(obj, { + property: { + writable: "false" + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js index 8d08b9bf3b7ec2c6d358ab19c3c02600bf4423fa..f35df834de0ddbac0a41b2aec5c13cdef8f290d7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-19.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var descObj = function () { }; - var accessed = false; +var obj = {}; +var descObj = function() {}; +var accessed = false; - descObj.enumerable = true; +descObj.enumerable = true; - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js index 693beb4115dddd1e1925f93da780518bfc4330cb..95170617ce8eadca6ba0b49b50f73a8b96b68fba 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-190.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - writable: new Boolean(false) - } - }); +Object.defineProperties(obj, { + property: { + writable: new Boolean(false) + } +}); - obj.property = "isWritable"; +obj.property = "isWritable"; assert.sameValue(obj.property, "isWritable", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js index 623b6e11194d22ef70dc74735dc3c5c31eaec0b5..d502222b035283dedc415d444e9c513ff196886a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-191.js @@ -8,16 +8,16 @@ description: > (8.10.5 step 7) ---*/ - var obj = {}; +var obj = {}; - var getter = function () { - return "present"; - }; +var getter = function() { + return "present"; +}; - Object.defineProperties(obj, { - property: { - get: getter - } - }); +Object.defineProperties(obj, { + property: { + get: getter + } +}); assert.sameValue(obj.property, "present", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js index 0b5ac282cb2bb242ecc61e392bccf90089f3c30f..0f5a1c6ab8889aec263ef8a00bec18b8a4783b86 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-192.js @@ -8,15 +8,15 @@ description: > present (8.10.5 step 7) ---*/ - var obj = {}; +var obj = {}; - var setter = function () { }; +var setter = function() {}; - Object.defineProperties(obj, { - property: { - set: setter - } - }); +Object.defineProperties(obj, { + property: { + set: setter + } +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js index e6910e88d7c01998979435d9dc32c8e1fc8d9744..140bed0637e7fe95ce134faef13766a3f7cf71d3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-193.js @@ -8,16 +8,16 @@ description: > property (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var getter = function () { - return "ownDataProperty"; - }; +var getter = function() { + return "ownDataProperty"; +}; - Object.defineProperties(obj, { - property: { - get: getter - } - }); +Object.defineProperties(obj, { + property: { + get: getter + } +}); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js index d38ac2dcecb7c16273242d12f4341339f908eea4..99531a4b0d6fdfc7a8f14ffa24942db71191e992 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-194.js @@ -8,23 +8,23 @@ description: > data property (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var getter = function () { - return "inheritedDataProperty"; - }; +var getter = function() { + return "inheritedDataProperty"; +}; - var proto = { - get: getter - }; +var proto = { + get: getter +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js index 6931583a6c92b3220a323995e5061f74d44038be..586acb78dba4e3381cb7530b37214d7a7ed9a9f7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-195.js @@ -9,27 +9,27 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - var getter = function () { - return "inheritedDataProperty"; - }; +var getter = function() { + return "inheritedDataProperty"; +}; - var proto = { - get: getter - }; +var proto = { + get: getter +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - descObj.get = function () { - return "ownDataProperty"; - }; +descObj.get = function() { + return "ownDataProperty"; +}; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js index 25abe43bbbbc12979beeed7745a0c5e9d9bbecb8..bd562d76c5defc4ac527f15597dd8c99c81634c0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-196.js @@ -9,31 +9,31 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperty(descObj, "get", { - value: function () { - return "ownDataProperty"; - } - }); +Object.defineProperty(descObj, "get", { + value: function() { + return "ownDataProperty"; + } +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js index e75e2a810336d36ef9d27e652ce72752cf2463f8..6828cb641c6a963e8fb845b37125c1a2408c4b7a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-197.js @@ -8,20 +8,20 @@ description: > accessor property (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); +Object.defineProperty(descObj, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js index ad065ec41dce04646c672fdf2a631ed5201b42aa..18ef102f5756914d625cfc79181aae469b452fa0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-198.js @@ -8,25 +8,25 @@ description: > accessor property (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js index 3cced970301c45f6d658dd8ea1998d697680c41c..2c3cf0a1dd2e8821732773f3cceb1835625dd363 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-199.js @@ -9,29 +9,29 @@ description: > (8.10.5 step 7.a) ---*/ - var obj = {}; - - var proto = { - get: function () { - return "inheritedDataProperty"; - } - }; - - var Con = function () { }; - Con.prototype = proto; - - var descObj = new Con(); - - Object.defineProperty(descObj, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); - - Object.defineProperties(obj, { - property: descObj - }); +var obj = {}; + +var proto = { + get: function() { + return "inheritedDataProperty"; + } +}; + +var Con = function() {}; +Con.prototype = proto; + +var descObj = new Con(); + +Object.defineProperty(descObj, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); + +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js index c7fa6e5ead6a4e70d776e6356f390c602811be1d..156e9cebd9ece6be5d263a956fe5b33b56a8f09c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-2.js @@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-2 description: Object.defineProperties - 'descObj' is null (8.10.5 step 1) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: null - }); + Object.defineProperties(obj, { + prop: null + }); }); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js index 77fa9fd9798c578564ab3d8767245cb65f1c2acc..9b0f3d3aa2bfa2ffcd9cb256f396c262bca6922e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-20.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; - var descObj = []; +var obj = {}; +var accessed = false; +var descObj = []; - descObj.enumerable = true; +descObj.enumerable = true; - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js index 683fe441a0e192345912993cdf66a1296d26e179..34d8e72e77519d34752dd25436c81d5c590478cb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-200.js @@ -9,33 +9,33 @@ description: > (8.10.5 step 7.a) ---*/ - var obj = {}; - - var proto = {}; - - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); - - var Con = function () { }; - Con.prototype = proto; - - var descObj = new Con(); - - Object.defineProperty(descObj, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); - - Object.defineProperties(obj, { - property: descObj - }); +var obj = {}; + +var proto = {}; + +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); + +var Con = function() {}; +Con.prototype = proto; + +var descObj = new Con(); + +Object.defineProperty(descObj, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); + +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js index b3cff0d0a59b473335cb607afde6e724e386151a..5777b8c2a019b95827d923e1087a9ad9c1a71630 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-201.js @@ -8,16 +8,16 @@ description: > accessor property without a get function (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = {}; +var descObj = {}; - Object.defineProperty(descObj, "get", { - set: function () { } - }); +Object.defineProperty(descObj, "get", { + set: function() {} +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js index 1615f7be3a213361c812ebce72f9ca8029555b89..2a80a4665ff64c0ed9b383297ddafc234761f248 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-202.js @@ -9,29 +9,29 @@ description: > inherited accessor property (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperty(descObj, "get", { - set: function () { } - }); +Object.defineProperty(descObj, "get", { + set: function() {} +}); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js index 2cd46064ccf0bfb929e7d45f2510d67ea3aa2143..ee493da54b6734be2bdf9fb2fa374a747cf273df 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-203.js @@ -8,21 +8,21 @@ description: > accessor property without a get function (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "get", { - set: function () { } - }); +Object.defineProperty(proto, "get", { + set: function() {} +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); +var descObj = new Con(); - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js index c92704618e026f043bbb0984d2a6ad814aa2bcb7..b8cbce77f5ac49941058ea52e141e85d21df632e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-204.js @@ -9,18 +9,18 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var func = function (a, b) { - return a + b; - }; +var func = function(a, b) { + return a + b; +}; - func.get = function () { - return "Function"; - }; +func.get = function() { + return "Function"; +}; - Object.defineProperties(obj, { - property: func - }); +Object.defineProperties(obj, { + property: func +}); assert.sameValue(obj.property, "Function", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js index 5c24680646208efc7c227dbf72c4f42052c965e9..eba777f189ffebcc155f26a981ff5f5e2ad2fb95 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-205.js @@ -9,16 +9,16 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var arr = []; +var arr = []; - arr.get = function () { - return "Array"; - }; +arr.get = function() { + return "Array"; +}; - Object.defineProperties(obj, { - property: arr - }); +Object.defineProperties(obj, { + property: arr +}); assert.sameValue(obj.property, "Array", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js index 2f1bceec8fe8b3f756c561581bd268176a95748c..53fbe1f63c92be569d305c555c3f7555d5738424 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-206.js @@ -9,16 +9,16 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var str = new String("abc"); +var str = new String("abc"); - str.get = function () { - return "string Object"; - }; +str.get = function() { + return "string Object"; +}; - Object.defineProperties(obj, { - property: str - }); +Object.defineProperties(obj, { + property: str +}); assert.sameValue(obj.property, "string Object", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js index d0914e4ce6442bca086710ff03f010758aa06770..8e22fc44e43e52bae1f862ee97e68c7e064056b4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-207.js @@ -9,16 +9,16 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Boolean(false); +var descObj = new Boolean(false); - descObj.get = function () { - return "Boolean"; - }; +descObj.get = function() { + return "Boolean"; +}; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "Boolean", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js index 687a062c89f8f79cb8d71951f09e9ab2f3c37f46..c49f295f5b67e058a655106b26246f1430cd497f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-208.js @@ -9,16 +9,16 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Number(-9); +var descObj = new Number(-9); - descObj.get = function () { - return "Number"; - }; +descObj.get = function() { + return "Number"; +}; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "Number", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js index a4dec6de0946d689d5f6d99a66150bd19051c120..88cb8ea1e3043ef78b6499cdc6543431bbc6d0bf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-209.js @@ -9,14 +9,14 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - Math.get = function () { - return "Math"; - }; +Math.get = function() { + return "Math"; +}; - Object.defineProperties(obj, { - property: Math - }); +Object.defineProperties(obj, { + property: Math +}); assert.sameValue(obj.property, "Math", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js index bc0dcad7a8de490e649e67f4539ef78a1ce5ca21..f103f0d999882d137f90b48817ff68ca575c4077 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-21.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var descObj = new String(); - var accessed = false; - descObj.enumerable = true; +var obj = {}; +var descObj = new String(); +var accessed = false; +descObj.enumerable = true; - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js index 6a7ff611f099cee04b9cc66cd3c1dc6cec94fa06..f49214a03405f8107467f3a00fb2501c103e5b7d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-210.js @@ -9,16 +9,16 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Date(); +var descObj = new Date(); - descObj.get = function () { - return "Date"; - }; +descObj.get = function() { + return "Date"; +}; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "Date", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js index 2ae4481c8ce2ae9271cb4c37b5361098369e9a08..7630822e2ee70b633201f8764ef40864905a1133 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-211.js @@ -9,16 +9,16 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new RegExp(); +var descObj = new RegExp(); - descObj.get = function () { - return "RegExp"; - }; +descObj.get = function() { + return "RegExp"; +}; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "RegExp", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js index 75f7d4a4917ba1680025e14b88f776142e57748b..34af6cc3e17fcc702322b0919b970660da6c35c3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-212.js @@ -9,14 +9,14 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - JSON.get = function () { - return "JSON"; - }; +JSON.get = function() { + return "JSON"; +}; - Object.defineProperties(obj, { - property: JSON - }); +Object.defineProperties(obj, { + property: JSON +}); assert.sameValue(obj.property, "JSON", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js index add8aeee1afb16e398e2022a54d9a289ea2dc378..40fc4c607956670b8f95f836666e0a4cb63921f2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-213.js @@ -9,16 +9,16 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Error(); +var descObj = new Error(); - descObj.get = function () { - return "Error"; - }; +descObj.get = function() { + return "Error"; +}; - Object.defineProperties(obj, { - property: descObj - }); +Object.defineProperties(obj, { + property: descObj +}); assert.sameValue(obj.property, "Error", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js index 862bac61146bb8215cddf035a9c666861409c5d0..63d81384a9b6141968553c65cc45f37d346efbaa 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-214.js @@ -9,18 +9,18 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - var func = function (a, b) { - arguments.get = function () { - return "arguments"; - }; +var func = function(a, b) { + arguments.get = function() { + return "arguments"; + }; - Object.defineProperties(obj, { - property: arguments - }); + Object.defineProperties(obj, { + property: arguments + }); - return obj.property === "arguments"; - }; + return obj.property === "arguments"; +}; assert(func(), 'func() !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js index 26f4eeb5b61322520f6ec9045888c979d351c01d..25363284baea595b7d18290e9869b1fa987d0cfb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-216.js @@ -9,14 +9,14 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - this.get = function () { - return "global"; - }; +this.get = function() { + return "global"; +}; - Object.defineProperties(obj, { - property: this - }); +Object.defineProperties(obj, { + property: this +}); assert.sameValue(obj.property, "global", 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js index 06f9e3e493b1d5eb105351175c64245f8c4f18fe..8fa141a7ef7c5d7570e862df0baec728bb7285c9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-217.js @@ -8,13 +8,13 @@ description: > undefined (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - get: undefined - } - }); +Object.defineProperties(obj, { + property: { + get: undefined + } +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js index 391538ddb42e4c9d161cbcd78ab987885ae12d29..5af8d027518b2e2af0bba6d1f80ae9aef4e3307f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-218.js @@ -8,11 +8,11 @@ description: > primitive values( value is null) (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - property: { - get: null - } - }); + Object.defineProperties(obj, { + property: { + get: null + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js index adb34766fdaee1d930f6dadeff858b53ba2f13e1..b74681d94b2b7d210dc7538e615a4e20996be5cf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-219.js @@ -8,11 +8,11 @@ description: > primitive values( value is boolean) (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - property: { - get: false - } - }); + Object.defineProperties(obj, { + property: { + get: false + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js index 84dd886f14d3f67a9a85e6a5ffa72ce7a1779716..2806a23d74115548989641431a4679f68e4c5f03 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-22.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var descObj = new Boolean(false); - var accessed = false; +var obj = {}; +var descObj = new Boolean(false); +var accessed = false; - descObj.enumerable = true; +descObj.enumerable = true; - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js index d684f624dbff4a3751f0f2f1aab1bf6671ca29fd..f508b146538ef2784c21016f7653bc5363ee286f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-220.js @@ -8,11 +8,11 @@ description: > primitive values( value is number) (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - property: { - get: 123 - } - }); + Object.defineProperties(obj, { + property: { + get: 123 + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js index 982cddb9bdc8807085506a34af3c80394d1ca5a2..7ca189288fb2d3d62a7c89c313a9411c60fe045e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-221.js @@ -8,11 +8,11 @@ description: > primitive values( value is string) (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - property: { - get: "string" - } - }); + Object.defineProperties(obj, { + property: { + get: "string" + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js index 57e21ef35a91cfbc6a01c530d3d3609810381023..6905d2d7d1e94ff1bc76eda7a8bafd8ef35f8703 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-222.js @@ -8,11 +8,11 @@ description: > applied to Array object (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - property: { - get: [] - } - }); + Object.defineProperties(obj, { + property: { + get: [] + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js index 74e72ca9befba2ab29bf4885dae6525848038f84..7fc6d9c5a0d2b29f8ce9a0f7120cc3e1de6ed2fc 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-223.js @@ -8,16 +8,16 @@ description: > a function (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; - var getter = function () { - return 100; - }; +var getter = function() { + return 100; +}; - Object.defineProperties(obj, { - property: { - get: getter - } - }); +Object.defineProperties(obj, { + property: { + get: getter + } +}); assert.sameValue(obj.property, 100, 'obj.property'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js index da6e91356bfb7cde8e6b2341fa29ec4c5e2b5639..86b207273f913ee50f48e646173cd20332e9f1dd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-226.js @@ -8,18 +8,18 @@ description: > (8.10.5 step 8) ---*/ - var data = "data"; - var obj = {}; +var data = "data"; +var obj = {}; - Object.defineProperties(obj, { - "prop": { - set: function (value) { - data = value; - } - } - }); +Object.defineProperties(obj, { + "prop": { + set: function(value) { + data = value; + } + } +}); - obj.prop = "overrideData"; +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js index c7f08514bc6b75526b8122f37520bd9c633d8b33..4100de61179c3aa7d3c49b1b09fbeb137803b6c9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js @@ -13,11 +13,11 @@ var data = "data"; var obj = {}; Object.defineProperties(obj, { - descObj: { - get: function () { - return data; - } + descObj: { + get: function() { + return data; } + } }); @@ -25,5 +25,4 @@ assert(obj.hasOwnProperty("descObj")); verifyNotWritable(obj, "descObj"); var desc = Object.getOwnPropertyDescriptor(obj, "descObj"); -assert.sameValue(typeof (desc.set), "undefined") - +assert.sameValue(typeof(desc.set), "undefined") diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js index 28010e240c81af3d9389cbaa34236f94ff9ee913..ac5080da92d9ce3dff9ffdb18d8d52bf8b1e9bf4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js @@ -8,18 +8,18 @@ description: > property (8.10.5 step 8.a) ---*/ - var data = "data"; - var obj = {}; +var data = "data"; +var obj = {}; - Object.defineProperties(obj, { - descObj: { - set: function (value) { - data = value; - } - } - }); +Object.defineProperties(obj, { + descObj: { + set: function(value) { + data = value; + } + } +}); - obj.descObj = "overrideData"; +obj.descObj = "overrideData"; assert(obj.hasOwnProperty("descObj"), 'obj.hasOwnProperty("descObj") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js index 5554bdbc386486dedd7fc55c579a83c3a46e7482..46e1b3bd3a11584b1ea9aa3357a623bc2740baa0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-229.js @@ -8,24 +8,24 @@ description: > data property (8.10.5 step 8.a) ---*/ - var data = "data"; - var proto = { - set: function (value) { - data = value; - } - }; +var data = "data"; +var proto = { + set: function(value) { + data = value; + } +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - var obj = {}; +var child = new Con(); +var obj = {}; - Object.defineProperties(obj, { - prop: child - }); +Object.defineProperties(obj, { + prop: child +}); - obj.prop = "overrideData"; +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js index 57d4230ba880f31f4038c9186bdbec5c0b0d9bbf..1dac44959e17537416c982bc18aae82c1efdfea2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-23.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var descObj = new Number(-9); - var accessed = false; +var obj = {}; +var descObj = new Number(-9); +var accessed = false; - descObj.enumerable = true; +descObj.enumerable = true; - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js index b15fbd6ec1acd619222d7da596ddcb37409a437e..892b35b12ce780d6cb062a5edef4dfb25cd5cff9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-230.js @@ -9,29 +9,29 @@ description: > 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - var proto = { - set: function (value) { - data2 = value; - } - }; +var data1 = "data"; +var data2 = "data"; +var proto = { + set: function(value) { + data2 = value; + } +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.set = function (value) { - data1 = value; - }; +var child = new Con(); +child.set = function(value) { + data1 = value; +}; - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: child - }); +Object.defineProperties(obj, { + prop: child +}); - obj.prop = "overrideData"; +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data1, "overrideData", 'data1'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js index 082f642f7ca1c71b86bb393d440d006c67c67b0e..248fa97ad8c96abc4e3ce67a3ac24c0b685911c4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-231.js @@ -9,36 +9,36 @@ description: > step 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - var fun = function (value) { - data2 = value; - }; - var proto = {}; - Object.defineProperty(proto, "set", { - get: function () { - return fun; - }, - set: function (value) { - fun = value; - } - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.set = function (value) { - data1 = value; - }; - - var obj = {}; - - Object.defineProperties(obj, { - prop: child - }); - - obj.prop = "overrideData"; +var data1 = "data"; +var data2 = "data"; +var fun = function(value) { + data2 = value; +}; +var proto = {}; +Object.defineProperty(proto, "set", { + get: function() { + return fun; + }, + set: function(value) { + fun = value; + } +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.set = function(value) { + data1 = value; +}; + +var obj = {}; + +Object.defineProperties(obj, { + prop: child +}); + +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data1, "overrideData", 'data1'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js index 74230afae6fc50b78b21fb20db89d16102a9e3fd..fd72ee008d2a7e7522c66e4b6a3ed914a2705e9c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-232.js @@ -8,24 +8,24 @@ description: > accessor property (8.10.5 step 8.a) ---*/ - var data = "data"; - var setFun = function (value) { - data = value; - }; - var descObj = {}; - Object.defineProperty(descObj, "set", { - get: function () { - return setFun; - } - }); +var data = "data"; +var setFun = function(value) { + data = value; +}; +var descObj = {}; +Object.defineProperty(descObj, "set", { + get: function() { + return setFun; + } +}); - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - obj.prop = "overrideData"; +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js index 613cd5dec8e57914eba6a628df866f504a752c80..ba3faea4055332e0809cf249047e0c73fe763063 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-233.js @@ -8,27 +8,27 @@ description: > accessor property (8.10.5 step 8.a) ---*/ - var data = "data"; - var setFun = function (value) { - data = value; - }; - var proto = {}; - Object.defineProperty(proto, "set", { - get: function () { - return setFun; - } - }); +var data = "data"; +var setFun = function(value) { + data = value; +}; +var proto = {}; +Object.defineProperty(proto, "set", { + get: function() { + return setFun; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - var obj = {}; +var child = new Con(); +var obj = {}; - Object.defineProperties(obj, { - prop: child - }); - obj.prop = "overrideData"; +Object.defineProperties(obj, { + prop: child +}); +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js index 323f7f972a276437d2482dc73c2ea537fa44a390..9d6d288b3712491e578bcf6fc8055fca8a7c680b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-234.js @@ -9,32 +9,32 @@ description: > (8.10.5 step 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - - var proto = {}; - proto.set = function (value) { - data1 = value; - }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - Object.defineProperty(child, "set", { - get: function () { - return function (value) { - data2 = value; - }; - } - }); - - var obj = {}; - - Object.defineProperties(obj, { - prop: child - }); - obj.prop = "overrideData"; +var data1 = "data"; +var data2 = "data"; + +var proto = {}; +proto.set = function(value) { + data1 = value; +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +Object.defineProperty(child, "set", { + get: function() { + return function(value) { + data2 = value; + }; + } +}); + +var obj = {}; + +Object.defineProperties(obj, { + prop: child +}); +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data2, "overrideData", 'data2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js index e98a8856edd7e306cc3b1f5be4af93610e76c216..72caa72430de0fd18c51302ca0d6be0c5a77bd64 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-235.js @@ -9,37 +9,37 @@ description: > (8.10.5 step 8.a) ---*/ - var data1 = "data"; - var data2 = "data"; - - var proto = {}; - Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data1 = value; - }; - } - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - Object.defineProperty(child, "set", { - get: function () { - return function (value) { - data2 = value; - }; - } - }); - - var obj = {}; - - Object.defineProperties(obj, { - prop: child - }); - - obj.prop = "overrideData"; +var data1 = "data"; +var data2 = "data"; + +var proto = {}; +Object.defineProperty(proto, "set", { + get: function() { + return function(value) { + data1 = value; + }; + } +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +Object.defineProperty(child, "set", { + get: function() { + return function(value) { + data2 = value; + }; + } +}); + +var obj = {}; + +Object.defineProperties(obj, { + prop: child +}); + +obj.prop = "overrideData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data2, "overrideData", 'data2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js index 3c5f3888aef9cc478eb2686288db3d57a1b9310d..e0632b5e7f35ecee1186f17b7160483c4031eaa8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-236.js @@ -8,23 +8,23 @@ description: > accessor property without a get function (8.10.5 step 8.a) ---*/ - var fun = function () { - return 10; - }; - var descObj = { - get: fun - }; - Object.defineProperty(descObj, "set", { - set: function () { } - }); +var fun = function() { + return 10; +}; +var descObj = { + get: fun +}; +Object.defineProperty(descObj, "set", { + set: function() {} +}); - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js index cd17ab0b9639506561d7db24f79ea239d985fcfc..5ef60526ce1edd33793b7ae949e5820f859f5895 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-237.js @@ -9,36 +9,36 @@ description: > inherited accessor property (8.10.5 step 8.a) ---*/ - var fun = function () { - return 10; - }; - var proto = {}; - Object.defineProperty(proto, "set", { - get: function () { - return function () { - return arguments; - }; - } - }); +var fun = function() { + return 10; +}; +var proto = {}; +Object.defineProperty(proto, "set", { + get: function() { + return function() { + return arguments; + }; + } +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); - Object.defineProperty(descObj, "set", { - set: function () { } - }); +var descObj = new Con(); +Object.defineProperty(descObj, "set", { + set: function() {} +}); - descObj.get = fun; +descObj.get = fun; - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)'); +assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)'); assert.sameValue(obj.prop, 10, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js index 0446941631241e1d021d509f6c2d2bdb11e299c9..9d10628a1a132c28dc624bb2286d2e2ec7854103 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-238.js @@ -8,28 +8,28 @@ description: > accessor property without a get function (8.10.5 step 8.a) ---*/ - var fun = function () { - return 10; - }; - var proto = {}; - Object.defineProperty(proto, "set", { - set: function () { } - }); +var fun = function() { + return 10; +}; +var proto = {}; +Object.defineProperty(proto, "set", { + set: function() {} +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var descObj = new Con(); - descObj.get = fun; +var descObj = new Con(); +descObj.get = fun; - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)'); +assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)'); assert.sameValue(obj.prop, 10, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js index fbdd5fe229c17b16e245f4e8f3a0fe3efb63a655..118cc7af0e36b69d7b07c8abff540f901a7c6580 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-239.js @@ -9,19 +9,19 @@ description: > step 8.a) ---*/ - var data = "data"; - var descFun = function () { }; - var setFun = function (value) { - data = value; - }; +var data = "data"; +var descFun = function() {}; +var setFun = function(value) { + data = value; +}; - descFun.prop = { - set: setFun - }; +descFun.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descFun); - obj.prop = "funData"; +var obj = {}; +Object.defineProperties(obj, descFun); +obj.prop = "funData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "funData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js index bab103cc60a3be117506b835ffafa91c8f903d7b..9495abc63aeea8c387c37fd36ca153be16e9f11c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Math.enumerable = true; +Math.enumerable = true; - Object.defineProperties(obj, { - prop: Math - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: Math +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js index 62895cd66d1f0c8585b66a3c6a0e2157b250bab1..d1ac8ed464269a57c0d4b329ed2825e3748112af 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-240.js @@ -9,18 +9,18 @@ description: > step 8.a) ---*/ - var data = "data"; - var arr = []; - var setFun = function (value) { - data = value; - }; - arr.prop = { - set: setFun - }; +var data = "data"; +var arr = []; +var setFun = function(value) { + data = value; +}; +arr.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, arr); - obj.prop = "arrData"; +var obj = {}; +Object.defineProperties(obj, arr); +obj.prop = "arrData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "arrData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js index d8df00083f56418e0c571c435939b543ba78098d..bc61c54f364a29352e941b6dc22b1b8af2f03d30 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-241.js @@ -9,19 +9,19 @@ description: > step 8.a) ---*/ - var data = "data"; - var descStr = new String(); - var setFun = function (value) { - data = value; - }; +var data = "data"; +var descStr = new String(); +var setFun = function(value) { + data = value; +}; - descStr.prop = { - set: setFun - }; +descStr.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descStr); - obj.prop = "strData"; +var obj = {}; +Object.defineProperties(obj, descStr); +obj.prop = "strData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "strData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js index 10187cbb82c102ade880feb25405fac8bd3c8a69..3e4d4117f25b0cad57af3ae567bdad3c3d3dc7e0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-242.js @@ -9,18 +9,18 @@ description: > step 8.a) ---*/ - var data = "data"; - var descObj = new Boolean(false); - var setFun = function (value) { - data = value; - }; - descObj.prop = { - set: setFun - }; +var data = "data"; +var descObj = new Boolean(false); +var setFun = function(value) { + data = value; +}; +descObj.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descObj); - obj.prop = "booleanData"; +var obj = {}; +Object.defineProperties(obj, descObj); +obj.prop = "booleanData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "booleanData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js index 56bc919033a4c0bf659bd3f80da5094e910e0b16..6ef7c239d544e6e1be49f77cd2eb2e4bd87a6593 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-243.js @@ -9,18 +9,18 @@ description: > step 8.a) ---*/ - var data = "data"; - var descObj = new Number(-9); - var setFun = function (value) { - data = value; - }; - descObj.prop = { - set: setFun - }; +var data = "data"; +var descObj = new Number(-9); +var setFun = function(value) { + data = value; +}; +descObj.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descObj); - obj.prop = "numberData"; +var obj = {}; +Object.defineProperties(obj, descObj); +obj.prop = "numberData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "numberData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js index 5324d033487f34e902836079979681c0ba16a231..bacb037e6b5ea3b969b62dafb1498342489aef7c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-244.js @@ -9,18 +9,18 @@ description: > step 8.a) ---*/ - var data = "data"; - var setFun = function (value) { - data = value; - }; +var data = "data"; +var setFun = function(value) { + data = value; +}; - Math.prop = { - set: setFun - }; +Math.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, Math); - obj.prop = "mathData"; +var obj = {}; +Object.defineProperties(obj, Math); +obj.prop = "mathData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "mathData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js index b6c0da717ecb23a93cf805f7b40eab35c5e805e4..a8d8f226e59158de9a2c4c7b0b6a1e478a3cc977 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-245.js @@ -9,18 +9,18 @@ description: > step 8.a) ---*/ - var data = "data"; - var descObj = new Date(); - var setFun = function (value) { - data = value; - }; - descObj.prop = { - set: setFun - }; +var data = "data"; +var descObj = new Date(); +var setFun = function(value) { + data = value; +}; +descObj.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descObj); - obj.prop = "dateData"; +var obj = {}; +Object.defineProperties(obj, descObj); +obj.prop = "dateData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "dateData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js index 3e0f737a2734ef136cdb95788218add6a6b369a5..af68740f0b7d089679abaf5d56b0a7972be2cc3d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-246.js @@ -9,18 +9,18 @@ description: > step 8.a) ---*/ - var data = "data"; - var descObj = new RegExp(); - var setFun = function (value) { - data = value; - }; - descObj.prop = { - set: setFun - }; +var data = "data"; +var descObj = new RegExp(); +var setFun = function(value) { + data = value; +}; +descObj.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descObj); - obj.prop = "regExpData"; +var obj = {}; +Object.defineProperties(obj, descObj); +obj.prop = "regExpData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "regExpData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js index c0815c7b0449ade5c576a5fe04b74d0192390f47..ba64235fb7266e175303d002d8b8b2cdd7e84503 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-247.js @@ -9,18 +9,18 @@ description: > step 8.a) ---*/ - var data = "data"; - var setFun = function (value) { - data = value; - }; +var data = "data"; +var setFun = function(value) { + data = value; +}; - JSON.prop = { - set: setFun - }; +JSON.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, JSON); - obj.prop = "JSONData"; +var obj = {}; +Object.defineProperties(obj, JSON); +obj.prop = "JSONData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "JSONData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js index 20779fb24d495cafa4434be9995d4fa773b5afd5..62eacf536e819ea6c5b33e6b39caaa845d4b2fac 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js @@ -9,22 +9,28 @@ description: > step 8.a) ---*/ - var data = "data"; - var descObj = new Error("test"); - descObj.description = { value: 11 }; - descObj.message = { value: 11 }; - descObj.name = { value: 11 }; +var data = "data"; +var descObj = new Error("test"); +descObj.description = { + value: 11 +}; +descObj.message = { + value: 11 +}; +descObj.name = { + value: 11 +}; - var setFun = function (value) { - data = value; - }; - descObj.prop = { - set: setFun - }; +var setFun = function(value) { + data = value; +}; +descObj.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descObj); - obj.prop = "errorData"; +var obj = {}; +Object.defineProperties(obj, descObj); +obj.prop = "errorData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "errorData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js index f09421051d4a4b65becf450e04122fe915ec6325..8f4872780cfe19f5c7ad2c72de01ed42c8af1ac6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js @@ -9,22 +9,22 @@ description: > step 8.a) ---*/ - var data = "data"; - var fun = function () { - return arguments; - }; - var arg = fun(); - var setFun = function (value) { - data = value; - }; +var data = "data"; +var fun = function() { + return arguments; +}; +var arg = fun(); +var setFun = function(value) { + data = value; +}; - arg.prop = { - set: setFun - }; +arg.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, arg); - obj.prop = "argData"; +var obj = {}; +Object.defineProperties(obj, arg); +obj.prop = "argData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "argData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js index 01e17e58bad87f8383675099a4e5828cbe960489..2492ea6eb8963dfe2f75be954452b2e7393e264e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-25.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var descObj = new Date(); - var accessed = false; +var obj = {}; +var descObj = new Date(); +var accessed = false; - descObj.enumerable = true; +descObj.enumerable = true; - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js index 5003f3e48562f268980c8adf78ecafd7c2b30eb6..bfbc5cba072ca6defac153dccf066ef3c15dfaed 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-252.js @@ -8,19 +8,19 @@ description: > undefined (8.10.5 step 8.b) ---*/ - var getFun = function () { - return 11; - }; +var getFun = function() { + return 11; +}; - var obj = {}; - Object.defineProperties(obj, { - prop: { - get: getFun, - set: undefined - } - }); +var obj = {}; +Object.defineProperties(obj, { + prop: { + get: getFun, + set: undefined + } +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)'); +assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js index e35a948b5dba53e200ce2800fc9fe550a2b47897..1859b0d61f62971b568e9df706a658ce9b33fbba 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-253.js @@ -8,11 +8,11 @@ description: > primitive values null (8.10.5 step 8.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - set: null - } - }); + Object.defineProperties(obj, { + prop: { + set: null + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js index 11d390a2bd7d1c6be01782204efe7e8e14116c92..45c770645b043e7d513fe8645eac73586449f155 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-254.js @@ -8,11 +8,11 @@ description: > primitive values boolean (8.10.5 step 8.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - set: true - } - }); + Object.defineProperties(obj, { + prop: { + set: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js index acbcc7ed2750afe1a9afe89d60b1298b17f7484a..f9854b10a25f24a7aada97264b596c8124396f58 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-255.js @@ -8,11 +8,11 @@ description: > primitive values number (8.10.5 step 8.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - set: 100 - } - }); + Object.defineProperties(obj, { + prop: { + set: 100 + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js index 85e6c6b88cb5ec27a3b6520659b879a3db43f1cc..30610bf59ebc0e37e9187e308966ce5e2ecd2694 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-256.js @@ -8,11 +8,11 @@ description: > primitive values string (8.10.5 step 8.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - set: "abcdef" - } - }); + Object.defineProperties(obj, { + prop: { + set: "abcdef" + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js index 848af07304172b10eb5a4f5e6f80187b21ead64a..716a52957eb11690208277658cf873ca9939eb02 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-257.js @@ -8,11 +8,11 @@ description: > an interesting object other than a function (8.10.5 step 8.b) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - set: [] - } - }); + Object.defineProperties(obj, { + prop: { + set: [] + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js index cdf054713fdaa2cf3650de73f0bda5325a135cbe..adf18c55d7da333d918813054caf052690a4a8cf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-258.js @@ -8,19 +8,19 @@ description: > a function (8.10.5 step 8.b) ---*/ - var data = "data"; - var setFun = function (value) { - data = value; - }; - var obj = {}; +var data = "data"; +var setFun = function(value) { + data = value; +}; +var obj = {}; - Object.defineProperties(obj, { - prop: { - set: setFun - } - }); - obj.prop = "funData"; +Object.defineProperties(obj, { + prop: { + set: setFun + } +}); +obj.prop = "funData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "funData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js index 3b9c9f2a67e4f19051038826de21b1ce21745cc0..48eef742916d3dfb5bf72d8445a7cfe0ee9acc0e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-26.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var descObj = new RegExp(); - var accessed = false; +var obj = {}; +var descObj = new RegExp(); +var accessed = false; - descObj.enumerable = true; +descObj.enumerable = true; - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js index f0fed05eb198e8e7a7208cd85a31337f4689f4a3..e1eb3ad6f0a7acdb7a3d09e7fe5a691b2759638a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-261.js @@ -9,13 +9,13 @@ description: > step 9.a) ---*/ - var setFun = function () {}; - var obj = {}; +var setFun = function() {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 12, - set: setFun - } - }); + Object.defineProperties(obj, { + prop: { + value: 12, + set: setFun + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js index 5587e17654abafba976d7a202b7bc8ddf32143c6..5813bf1bf4addc046fa9ed8e609d74f1fbb2f579 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-262.js @@ -9,13 +9,13 @@ description: > step 9.a) ---*/ - var setFun = function () { }; - var obj = {}; +var setFun = function() {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - writable: true, - set: setFun - } - }); + Object.defineProperties(obj, { + prop: { + writable: true, + set: setFun + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js index 1587c5de2ca0a390cdd06a39dfe1b98d0f58bad6..04908eec03674565d87347c11944d7c1ed73c514 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-263.js @@ -9,13 +9,13 @@ description: > step 9.a) ---*/ - var getFun = function () {}; - var obj = {}; +var getFun = function() {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 12, - get: getFun - } - }); + Object.defineProperties(obj, { + prop: { + value: 12, + get: getFun + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js index 945e4a276d3fce94db97efae9ccd23ba7e7ac1f9..6fdda0cbfdbbbf0d8af679466f9791b85f531cfb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-264.js @@ -9,14 +9,14 @@ description: > step 9.a) ---*/ - var getFun = function () {}; +var getFun = function() {}; - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - "prop": { - writable: true, - get: getFun - } - }); + Object.defineProperties(obj, { + "prop": { + writable: true, + get: getFun + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js index 900b3b09037b17844ca4f916675306a0233fbc72..da7fd39159bedd5ef980527c9601678314151f3e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-27.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - JSON.enumerable = true; +JSON.enumerable = true; - Object.defineProperties(obj, { - prop: JSON - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: JSON +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js index ab347d29b0e635d5fc97bae1ed9bdceff0031bfc..855fdb9eeda592dfd794220568d3ca383fafbba8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-28.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var descObj = new Error(); - var accessed = false; +var obj = {}; +var descObj = new Error(); +var accessed = false; - descObj.enumerable = true; +descObj.enumerable = true; - Object.defineProperties(obj, { - prop: descObj - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: descObj +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js index 473f0ef0000a8574d38471b4a0f33c888a958cd8..a0c0da3e511c6ab7f6f5f465d6a56bce1cd4fd06 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-29.js @@ -9,23 +9,23 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var arg; - var accessed = false; +var obj = {}; +var arg; +var accessed = false; - (function fun() { - arg = arguments; - }()); +(function fun() { + arg = arguments; +}()); - arg.enumerable = true; +arg.enumerable = true; - Object.defineProperties(obj, { - prop: arg - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: arg +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js index cba662cf528e491cbd32ec62f865677eaac8fcec..5a685d85e327ad4a556cf48985c5e60fceee706a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-3.js @@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-3 description: Object.defineProperties - 'descObj' is a boolean (8.10.5 step 1) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: true - }); + Object.defineProperties(obj, { + prop: true + }); }); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js index 6fa274f40ca8f1bcfc2574d483ea3e252a703a7f..d6b5a3eda58f45064b80d800b4a76ffd2444db11 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-31.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - this.enumerable = true; +this.enumerable = true; - Object.defineProperties(obj, { - prop: this - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: this +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js index 4d8a3392820e20ea627b638ede33fdee96e2ca28..b7056d743d695fd7c468fb1393dc2d29281906f7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-32.js @@ -8,18 +8,18 @@ description: > 'descObj' is undefined (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: undefined - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: undefined + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js index 919b4258e91840ad5bb3bf64f724fa5935ab45c6..a1e75b53093f430a30aa1579a20c24a44701a54e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-33.js @@ -8,18 +8,18 @@ description: > 'descObj' is null (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: null - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: null + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js index 8a8d9568a586c95433e779f891f6e70da5dd203b..d66f3e09eb4bdea8aca5e300c3e5b3affa5cc78d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-34.js @@ -8,18 +8,18 @@ description: > 'descObj' is true (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: true - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: true + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js index 5ca9aaee0b51a81ea9ed64fe7d50052b085fcd90..e4b76b595051dd7bf0014af523e87ecee55e7763 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-35.js @@ -8,18 +8,18 @@ description: > 'descObj' is false (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: false - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: false + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js index b5804ca84ce5e21cf175bfcb7508cfb9cdd49c20..e5714b54d35463913bf5b2584c72d1dbe80bd93b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-36.js @@ -8,18 +8,18 @@ description: > 'descObj' is 0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: 0 - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: 0 + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js index 4768009aa580deb40e2160fb57277a0c944d2c72..b8e53420ae5ca2bc2970a469588a3b11706d7498 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-37.js @@ -8,18 +8,18 @@ description: > 'descObj' is +0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: +0 - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: +0 + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js index 1429ef4121ba82f0e587f1199e747af670fe8c7f..ce9a349717db87f9611286263268a215e5af6ace 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-38.js @@ -8,18 +8,18 @@ description: > 'descObj' is -0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: -0 - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: -0 + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js index 451a7794d3cb94a166eae1eccb816fdcb32a257a..762fd8ec3d7a42147ebde56512a0952446762c69 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-39.js @@ -8,18 +8,18 @@ description: > 'descObj' is NaN (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: NaN - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: NaN + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js index ee430f83cee799707cab633919e3cc2b6fd5f41f..8c764e415b70c54f383ad8fac55a20aad411aba7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-4.js @@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-4 description: Object.defineProperties - 'descObj' is a number (8.10.5 step 1) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: 12 - }); + Object.defineProperties(obj, { + prop: 12 + }); }); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js index 9a9c3a557da0834a1c83f2172e285d75c92f407a..8e25fa5a7d1c57b943b8be86bf4d2d1c3f599177 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-40.js @@ -8,18 +8,18 @@ description: > 'descObj' is positive number (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: 12 - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: 12 + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js index f5986377a1f00bcc19c9a2b4c71d28fc9595a0f7..798a60df06fb7ee582f62d775b8d603a3589ed1d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-41.js @@ -8,18 +8,18 @@ description: > 'descObj' is negative number (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: -9 - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: -9 + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js index b36a0fa727dce679b560405209136bcc520865a7..9a74d14f4ea5b75f279f47f4cbde012073dbc16b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-42.js @@ -8,18 +8,18 @@ description: > 'descObj' is empty string (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: "" - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: "" + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js index 7b79f6d81cc707ca5b6d0b25881120ce34777e4d..176abbb6e3f62fbf54b7021b06d357665e15c185 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-43.js @@ -8,18 +8,18 @@ description: > 'descObj' is non-empty string (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: "AB\n\\cd" - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: "AB\n\\cd" + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js index d76bdf16d07d6a5ee1fa748e96a9388868240026..507b5c814b373c58487afd28b55391141e937de9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-44.js @@ -8,18 +8,18 @@ description: > 'descObj' is a Function object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: function () { } - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: function() {} + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js index 952f524d0cc6aa29df00e74ddeaf9fec80c0eb1f..1195c7e9e04e74ac46d035438b11f93ec775790e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-45.js @@ -8,18 +8,18 @@ description: > 'descObj' is an Array object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: [] - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: [] + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js index df7e53b1ceee54fee44d3415db2f3056d1a847e7..ac8eb96f1c172336f4b83bd37c20c08c4f1283c8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-46.js @@ -8,18 +8,18 @@ description: > 'descObj' is a String object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: new String() - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: new String() + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js index fdca287d0e465c84bd642a0749a4ff0daa8073cf..7075fa2fb59044bbe1e911bde9ee407ac7152b1f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-47.js @@ -8,18 +8,18 @@ description: > 'descObj' is a Boolean object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: new Boolean(true) - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: new Boolean(true) + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js index a79b3cd31dc88fa969489e218f07e37befa7ef54..7c70e64b36bd7502bae85f445ae93c5c6f69ecd1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-48.js @@ -8,18 +8,18 @@ description: > 'descObj' is a Number object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: new Number(-9) - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: new Number(-9) + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js index cbf2194ed8d07ea54d919dd90f234e14abb42811..48c40d9bd33b66e5c106f23f139620171c29bbb9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-49.js @@ -8,18 +8,18 @@ description: > 'descObj' is the Math object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: Math - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: Math + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js index 27a60e51de4602d65c21a504a7e17555ac4926cf..43bbef15003c06225d003d32f693ac81e757fb2f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-5.js @@ -6,10 +6,10 @@ es5id: 15.2.3.7-5-b-5 description: Object.defineProperties - 'descObj' is a string (8.10.5 step 1) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: "abc" - }); + Object.defineProperties(obj, { + prop: "abc" + }); }); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js index 0a9d418882957e8c54d3c82a49085de608a5685e..7f99adc4af315fcfa83eb938aa28eea2f2f99161 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-50.js @@ -8,18 +8,18 @@ description: > 'descObj' is a Date object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: new Date() - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: new Date() + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js index 6ad0a15cd22f21bafc2646b6839281567b50a3fe..228b1d019d571a040fd64fab3694832639b4ddc6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-51.js @@ -8,18 +8,18 @@ description: > 'descObj' is a RegExp object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: new RegExp() - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: new RegExp() + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js index b2c580c1b43e7391866403a39111e141182e48c7..49c8219685078305c2b0dafd15f60b88253415e3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-52.js @@ -8,18 +8,18 @@ description: > 'descObj' is the JSON object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: JSON - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: JSON + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js index 9136dc45d08a75acb50c99259a83fc3815a2de08..2914a728b8b122e12b30a55e9a4529bd29d0a7de 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-53.js @@ -8,18 +8,18 @@ description: > 'descObj' is an Error object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: new Error() - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: new Error() + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js index 8ef7474cb191147a1718c4e62575a938773fbee3..5362f99a76444c60ab6a83a31046667e65956f2c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js @@ -8,23 +8,23 @@ description: > 'descObj' is the Arguments object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; - var arg; - - (function fun() { - arg = arguments; - }(1, 2, 3)); +var obj = {}; +var accessed = false; +var arg; - Object.defineProperties(obj, { - prop: { - enumerable: arg - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +(function fun() { + arg = arguments; +}(1, 2, 3)); + +Object.defineProperties(obj, { + prop: { + enumerable: arg + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js index aae77824ab4e724053ad009db226d062f342da91..131d8b40cdf63b1e3c9f03895d90a19d9944aa77 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js @@ -8,18 +8,18 @@ description: > 'descObj' is the global object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: this - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: this + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js index 4c796095ab7a042e0780032c2363ad6050cf6a65..5861410d17bb0da8f64bcf4cc263688cd2cffa13 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-57.js @@ -9,18 +9,18 @@ description: > value (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: "false" - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: "false" + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js index 7f3278392fdc6d9a98eed120f52a40eca76448fe..0f01710554611c7ef48a0d4f66aba2d81bfc0576 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-58.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: new Boolean(false) - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +Object.defineProperties(obj, { + prop: { + enumerable: new Boolean(false) + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js index cc8495057e3f11444aebf1485f97205b1a9ac829..864ca29daa39b7da5b8e648ffe91cab833831e3a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-59.js @@ -8,17 +8,17 @@ description: > present (8.10.5 step 4) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: { - configurable: true - } - }); +Object.defineProperties(obj, { + prop: { + configurable: true + } +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js index 147b520d0c259f49b43173c86e38dfa2c380aabb..0183f941293d578c4c9508aedcc472852f928943 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-6.js @@ -8,19 +8,19 @@ description: > present (8.10.5 step 3) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: { - enumerable: true - } - }); +Object.defineProperties(obj, { + prop: { + enumerable: true + } +}); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js index 80c2a5db1ecfdac9441e271eb0759564c4c4cbf8..f8bba39187c9cdfa7e9bea7efbd1d700e7221b04 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-60.js @@ -13,7 +13,7 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - prop: {} + prop: {} }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js index 3db823b9dde9763f9ca7ad75ff335d4d25e012c7..f2fd420cf0272816a8cf711018190fd5796a53b6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-61.js @@ -8,17 +8,17 @@ description: > own data property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: { - configurable: true - } - }); +Object.defineProperties(obj, { + prop: { + configurable: true + } +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js index ba84be285d095e604de8da2bfd8b01f905235f73..f21405565973225983657919c287b544993d594d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-62.js @@ -8,21 +8,21 @@ description: > inherited data property (8.10.5 step 4.a) ---*/ - var obj = {}; - var proto = { - configurable: true - }; - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var obj = {}; +var proto = { + configurable: true +}; +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js index 2978706b4b3b9f5787f1fcadc930ea3db4154766..a369fcef1d130403bf1d5268ad4ed698e3c6c170 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-63.js @@ -13,19 +13,19 @@ includes: [propertyHelper.js] var obj = {}; var proto = { - configurable: true + configurable: true }; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "configurable", { - value: false + value: false }); Object.defineProperties(obj, { - prop: descObj + prop: descObj }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js index b5257eddc1c86500c10fb7e730a2ce40e9dc4107..f7c555bbac4535a389c371fec4ec082b7c9bedf2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-64.js @@ -14,21 +14,21 @@ includes: [propertyHelper.js] var obj = {}; var proto = {}; Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "configurable", { - value: false + value: false }); Object.defineProperties(obj, { - prop: descObj + prop: descObj }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js index ed481bf7c38305d2c190b47f4f62f72d5c5f3171..cc9a8c9df5f16e673bd6b2a41f6c52a683b47a98 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-65.js @@ -8,21 +8,21 @@ description: > own accessor property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = {}; - Object.defineProperty(descObj, "configurable", { - get: function () { - return true; - } - }); +var descObj = {}; +Object.defineProperty(descObj, "configurable", { + get: function() { + return true; + } +}); - Object.defineProperties(obj, { - prop: descObj - }); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +Object.defineProperties(obj, { + prop: descObj +}); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js index fe72722409521459b47538640c91a1e876dd94f5..cca4ddea32a3fdbf6b73d6b7420909bf756d9b0d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-66.js @@ -8,26 +8,26 @@ description: > inherited accessor property (8.10.5 step 4.a) ---*/ - var obj = {}; - var proto = {}; +var obj = {}; +var proto = {}; - Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "configurable", { + get: function() { + return true; + } +}); - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js index 77278e6cdac23881e7f5f281803e63aba510c24a..2b6557a0aa558b77613ad7ca736ff352e4035801 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-67.js @@ -13,21 +13,21 @@ includes: [propertyHelper.js] var obj = {}; var proto = { - configurable: true + configurable: true }; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "configurable", { - get: function () { - return false; - } + get: function() { + return false; + } }); Object.defineProperties(obj, { - prop: descObj + prop: descObj }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js index 9001883d4cf70a0168d523a365bc31ee0ab7b8bc..45739752caa0799ae99e83a7c19ff2c663786f33 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-68.js @@ -14,23 +14,23 @@ includes: [propertyHelper.js] var obj = {}; var proto = {}; Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "configurable", { - get: function () { - return false; - } + get: function() { + return false; + } }); Object.defineProperties(obj, { - prop: descObj + prop: descObj }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js index 00e4a9820e587cff0a080933af10acccc01295b3..3b5a9ec0315c6d8d76ecf4e89e861e09f2835875 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-69.js @@ -13,11 +13,11 @@ var obj = {}; var descObj = {}; Object.defineProperty(descObj, "configurable", { - set: function () { } + set: function() {} }); Object.defineProperties(obj, { - prop: descObj + prop: descObj }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js index afbd90c14b2c8f1ce07f8c737527c2647e7e1dd3..f5f2bdc5f6e5009c898641958de4637fe9323afe 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-7.js @@ -8,17 +8,17 @@ description: > not present (8.10.5 step 3) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperties(obj, { - prop: {} - }); +Object.defineProperties(obj, { + prop: {} +}); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js index 148454b1f7dc9f800b7c0156d2215fa1411be8dd..2d12bf1c49b7fa526a9398b061e3f308b2599b4f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-70.js @@ -14,21 +14,21 @@ includes: [propertyHelper.js] var obj = {}; var proto = {}; Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "configurable", { - set: function () { } + set: function() {} }); Object.defineProperties(obj, { - prop: descObj + prop: descObj }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js index 47b64cb9346bc022097e43836591a4c42b7bace3..58905fa9ee1f597587cedf7cc2af89cf6bbfff25 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-71.js @@ -14,15 +14,15 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "configurable", { - set: function () { } + set: function() {} }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperties(obj, { - prop: descObj + prop: descObj }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js index ad903b294bfbe197f95fda65c2b00ebcacc33d1a..35d7545caa1a970c2353567ea56e634d6188f92c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-72.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = function () { }; - descObj.configurable = true; +var descObj = function() {}; +descObj.configurable = true; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js index 3687f44160c50a754e1a51e430876eeae48a1218..923d90277e8da93c5ac71768054b9cae95d7518d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-73.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = []; - descObj.configurable = true; +var descObj = []; +descObj.configurable = true; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js index 03d2e2f88a6ea9bd820548e5e5ad46ecbc0815d8..b891e55f0e4f4f50321f57dc73491f094cfd6642 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-74.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new String(); - descObj.configurable = true; +var descObj = new String(); +descObj.configurable = true; - Object.defineProperties(obj, { - prop: descObj - }); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +Object.defineProperties(obj, { + prop: descObj +}); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js index 8b20c3bbfffce9092dc5d50963a127ecc2d324ff..3052a4e47408e8e413a8d8ca85c922df4d46f371 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-75.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Boolean(false); - descObj.configurable = true; +var descObj = new Boolean(false); +descObj.configurable = true; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js index 05bd0876a1aabf0d0a67ed7a52c4ed355f23cddd..d158fcb8ae13422869841d02773a733b3e441990 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-76.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Number(-9); - descObj.configurable = true; +var descObj = new Number(-9); +descObj.configurable = true; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js index 44f4984253da287177689594776fce81f1169afc..c498f4d9b49924ad569b4a86869e79bb1e17fdde 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-77.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Math.configurable = true; +Math.configurable = true; - Object.defineProperties(obj, { - prop: Math - }); +Object.defineProperties(obj, { + prop: Math +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js index 9b966b7c2c7156023c69de4d8dcdd4d799ac4bf4..6fe2d9e0b71b4171c282e47a077f152ce1efa36a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-78.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Date(); - descObj.configurable = true; +var descObj = new Date(); +descObj.configurable = true; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js index 47be8aae9bdbed5b35b5c27a914d6b75c6fda31f..f7566c1b02d0125d62a813c1569c1ec28da91017 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-79.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new RegExp(); - descObj.configurable = true; +var descObj = new RegExp(); +descObj.configurable = true; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js index 3c4d2415fbeecacaf7aaba74d26bebeb9661ecb2..b5945f326906df8b22227dae77637bc79cb81777 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js @@ -8,19 +8,21 @@ description: > own data property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var descObj = { enumerable: true }; +var descObj = { + enumerable: true +}; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js index 99ab9c52547ed306ec779d8a62e90140fdc4b22b..6f7747efc6756e0562e2faf990c3898c95bb9342 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - JSON.configurable = true; +JSON.configurable = true; - Object.defineProperties(obj, { - prop: JSON - }); +Object.defineProperties(obj, { + prop: JSON +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js index 08b5b03fcb3f32449bc93e772069a874fb388fad..848aa0a4730b1ed7ddb40529b47eec0f32321d35 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-81.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var descObj = new Error(); - descObj.configurable = true; +var descObj = new Error(); +descObj.configurable = true; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js index eea14bf0183cc5b739ba39774858b84077d3b119..21acc1eeca9b069c8e428424118680eae91dbe25 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-82.js @@ -9,22 +9,22 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var arg; - (function fun() { - arg = arguments; - }()); +var arg; +(function fun() { + arg = arguments; +}()); - arg.configurable = true; +arg.configurable = true; - Object.defineProperties(obj, { - prop: arg - }); +Object.defineProperties(obj, { + prop: arg +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js index a662240fea335863714cbf7aca99a6c61174e9e1..818aa68c7ecbf45ed9ca124d2f62a26b75c01c6a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-84.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - this.configurable = true; +this.configurable = true; - Object.defineProperties(obj, { - prop: this - }); +Object.defineProperties(obj, { + prop: this +}); - var result1 = obj.hasOwnProperty("prop"); - delete obj.prop; - var result2 = obj.hasOwnProperty("prop"); +var result1 = obj.hasOwnProperty("prop"); +delete obj.prop; +var result2 = obj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js index 5e1dada7bc6068753b710e9a1aafbd317a900acf..7a474b608e367ca517dd18445e27a41f601945be 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-85.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - configurable: undefined - } + property: { + configurable: undefined + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js index c183338e0f9c6ae3e14c91a75bcef9c4f08dbc84..29ba52b31a841a5ce7d2cabfe141af89bfd1a8dc 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-86.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - configurable: null - } + property: { + configurable: null + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js index 968960c5e5d1377bac5d2c10697e24c809a959c4..b60113a8e2d4c71e68a960fd6bbccded27935057 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-87.js @@ -8,17 +8,17 @@ description: > 'descObj' is true (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: true - } - }); +Object.defineProperties(obj, { + property: { + configurable: true + } +}); - var hadOwnProperty = obj.hasOwnProperty("property"); +var hadOwnProperty = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); assert(hadOwnProperty, 'hadOwnProperty !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js index a0a3e9f9fc8b9b750d4f3852cd374e1ee17d5f46..e6517a31e1338c506832e2413be0b59bd3d543f4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-88.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - configurable: false - } + property: { + configurable: false + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js index 7a6bf9f158b55c5dec858d4636626e491d612e8a..e4641b79f05a45cb553308fbbc09618de21fb3b7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-89.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - configurable: 0 - } + property: { + configurable: 0 + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js index 7aa7a3acebb98cbbd3b6c1f8ab6148165b82168e..c05d12bd6598fad95135726c7a8693095d17eb53 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-9.js @@ -8,24 +8,24 @@ description: > inherited data property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var proto = { - enumerable: true - }; - var Con = function () { }; - Con.prototype = proto; - var descObj = new Con(); +var proto = { + enumerable: true +}; +var Con = function() {}; +Con.prototype = proto; +var descObj = new Con(); - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js index 29c4381b0d20f61436d1a1d19d3c399dc76dc37f..0a79e78704bd641af0084524c94c5f3daf4b2ba9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-90.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - configurable: +0 - } + property: { + configurable: +0 + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js index ee8de8ca54c498c7dd4bce9ba6927520fc346f3e..d7eedac45b26057e3cb0579bad219906f4c80f92 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-91.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - configurable: -0 - } + property: { + configurable: -0 + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js index 740063a78fbe56d4cec15e1b157f0720e175306c..bba7b70651ea752941925d8ee3052471db8fedb0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-92.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - configurable: NaN - } + property: { + configurable: NaN + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js index 7eeee70d4d22e44645588461669a6bd70c817b24..5e611f0afaa957aab25e85389c150f03a3bcddf5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-93.js @@ -8,17 +8,17 @@ description: > 'descObj' is positive number (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: 123 - } - }); +Object.defineProperties(obj, { + property: { + configurable: 123 + } +}); - var hadOwnProperty = obj.hasOwnProperty("property"); +var hadOwnProperty = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); assert(hadOwnProperty, 'hadOwnProperty !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js index 384aaca350a01ad02ef0627209bbc9b8861b203c..5fe27e730e86de32f6136a584e0580b9d9651bf3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-94.js @@ -8,17 +8,17 @@ description: > 'descObj' is negative number (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: -123 - } - }); +Object.defineProperties(obj, { + property: { + configurable: -123 + } +}); - var hadOwnProperty = obj.hasOwnProperty("property"); +var hadOwnProperty = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); assert(hadOwnProperty, 'hadOwnProperty !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js index 484c74cef74587216bb44adbb7bab2fdc731cc51..1afd1a5985d6afc86027e424d2fb8a43778ff851 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-95.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - configurable: "" - } + property: { + configurable: "" + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js index 991dbb9d8e066c56223911c83bae94c5fc24b339..8b3d12915cff11c8d5247f4d41ab0d2bd2ba4a12 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-96.js @@ -8,17 +8,17 @@ description: > 'descObj' is non-empty string (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: "abc" - } - }); +Object.defineProperties(obj, { + property: { + configurable: "abc" + } +}); - var hadOwnProperty = obj.hasOwnProperty("property"); +var hadOwnProperty = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); assert(hadOwnProperty, 'hadOwnProperty !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js index 1a96f98e6720cf4fcdcbe9ab67308f7a7f985972..ccda98869006e1f7a141174dbfa4bce5d34fa962 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-97.js @@ -8,17 +8,17 @@ description: > 'descObj' is Function object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: function () { } - } - }); +Object.defineProperties(obj, { + property: { + configurable: function() {} + } +}); - var hadOwnProperty = obj.hasOwnProperty("property"); +var hadOwnProperty = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); assert(hadOwnProperty, 'hadOwnProperty !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js index 63ccc0d774f1f9cfdac83214999c9310c8b19018..87e2578e33968b982668dab41a9d9c5d71990a64 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-98.js @@ -8,17 +8,17 @@ description: > 'descObj' is Array object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: [1, 2, 3] - } - }); +Object.defineProperties(obj, { + property: { + configurable: [1, 2, 3] + } +}); - var hadOwnProperty = obj.hasOwnProperty("property"); +var hadOwnProperty = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); assert(hadOwnProperty, 'hadOwnProperty !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js index 105d97478022ca498e8b737f0f3e3c08537a539d..836db8a7dd96ef71a59d7ac74bd4bf5d0d849cfb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-99.js @@ -8,17 +8,17 @@ description: > 'descObj' is String object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - property: { - configurable: new String("abc") - } - }); +Object.defineProperties(obj, { + property: { + configurable: new String("abc") + } +}); - var hadOwnProperty = obj.hasOwnProperty("property"); +var hadOwnProperty = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; assert.sameValue(obj.hasOwnProperty("property"), false, 'obj.hasOwnProperty("property")'); assert(hadOwnProperty, 'hadOwnProperty !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js index e282f560758f13266376db40fa77c4db1f24f3a7..6cb3dfbdb3affbeed9abb3dd54e9ec2a0a4e07c4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-1.js @@ -8,16 +8,16 @@ description: > (8.12.9 step 1 ) ---*/ - var obj = {}; - Object.defineProperty(obj, "prop", { - value: 11, - configurable: false - }); +var obj = {}; +Object.defineProperty(obj, "prop", { + value: 11, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js index ed64214cf9a3660fb1a625ba86d38813641fe1eb..c514065435b9251b9d35ef74318b1d5c5455465a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-10.js @@ -9,27 +9,27 @@ description: > step 1 ) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return 11; - }, - set: function () { }, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return 11; + }, + set: function() {}, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - set: function () { }, - configurable: false - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + set: function() {}, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js index 2b9e962db4c7a243690aeb3d189694afdb5e0784..550966238626d8acfd9b39025d602f0ea4bd7c94 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-100.js @@ -12,18 +12,18 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 100, - writable: true, - configurable: true +Object.defineProperty(obj, "foo", { + value: 100, + writable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - value: 200, - writable: false, - configurable: false - } + foo: { + value: 200, + writable: false, + configurable: false + } }); verifyEqualTo(obj, "foo", 200); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js index 3dc962b7da98859ad78131775670e8e61676bb59..78710b6c15392b3301d2359b89cbb675ce58a518 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js @@ -14,27 +14,28 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); function get_func2() { - return 20; + return 20; } Object.defineProperties(obj, { - foo: { - get: get_func2 - } + foo: { + get: get_func2 + } }); verifyEqualTo(obj, "foo", get_func2()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js index 6380660b8da5ab4861b5c6ca4dbac86a99720c6a..b1a52361c532d984bba3059153a91b7ee6f5f9df 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js @@ -13,23 +13,24 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - get: undefined - } + foo: { + get: undefined + } }); verifyWritable(obj, "foo", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js index bc9eb4e89c072f612ff8a866d060cb95c7de6ee9..7636e1ed31ad3cefb6f17b4adb3c7221d8450a25 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js @@ -13,24 +13,24 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: undefined, - set: set_func, - enumerable: true, - configurable: true + get: undefined, + set: set_func, + enumerable: true, + configurable: true }); function get_func() { - return 10; + return 10; } Object.defineProperties(obj, { - foo: { - get: get_func - } + foo: { + get: get_func + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js index 1492ad4ab9fef33df3376f7870cd58c9a703cc14..ee6c4afaf85e0522e2cac32e95973b5d95458063 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-104.js @@ -14,28 +14,28 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } function set_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); function set_func2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperties(obj, { - foo: { - set: set_func2 - } + foo: { + set: set_func2 + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js index 54713ca36a12cbcace510140516cbb262772ca18..334206b66e5b0552bf25b30600880ec4c026bad0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js @@ -8,45 +8,47 @@ description: > present and properties.[[Set]] is undefined (8.12.9 step 12) ---*/ - var obj = {}; - function get_func() { - return 10; - } - function set_func() { - return 10; - } - - Object.defineProperty(obj, "property", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - }); - - Object.defineProperties(obj, { - property: { - set: undefined - } - }); - - var hasProperty = obj.hasOwnProperty("property"); - var verifyGet = false; - verifyGet = (obj.property === 10); - - var verifySet = false; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - verifySet = (typeof desc.set === 'undefined'); - - var verifyEnumerable = false; - for (var p in obj) { - if (p === "property") { - verifyEnumerable = true; - } - } - - var verifyConfigurable = false; - delete obj.property; - verifyConfigurable = obj.hasOwnProperty("property"); +var obj = {}; + +function get_func() { + return 10; +} + +function set_func() { + return 10; +} + +Object.defineProperty(obj, "property", { + get: get_func, + set: set_func, + enumerable: true, + configurable: true +}); + +Object.defineProperties(obj, { + property: { + set: undefined + } +}); + +var hasProperty = obj.hasOwnProperty("property"); +var verifyGet = false; +verifyGet = (obj.property === 10); + +var verifySet = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +verifySet = (typeof desc.set === 'undefined'); + +var verifyEnumerable = false; +for (var p in obj) { + if (p === "property") { + verifyEnumerable = true; + } +} + +var verifyConfigurable = false; +delete obj.property; +verifyConfigurable = obj.hasOwnProperty("property"); assert(hasProperty, 'hasProperty !== true'); assert(verifyGet, 'verifyGet !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js index 325c9d5ed86c7138b6c7b32baa63cef742d5728b..7f7efb05afbdc9269d3c1490d0b4a818217f4acf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js @@ -13,24 +13,24 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_func, - set: undefined, - enumerable: true, - configurable: true + get: get_func, + set: undefined, + enumerable: true, + configurable: true }); function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperties(obj, { - foo: { - set: set_func - } + foo: { + set: set_func + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js index e87e8bbe037880281637c171345325fe1ea0974b..36387ff35d7950eb0ba4e2712e156574c85189cc 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js @@ -13,23 +13,24 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - enumerable: false - } + foo: { + enumerable: false + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js index a848f6f98fae9ca96caf2436667636b67c3300e0..5f19489b07985e8d94828ab7488b8a5b6f2114bd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js @@ -13,23 +13,24 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - configurable: false - } + foo: { + configurable: false + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js index 73cafcb44fdcd08257c0b2c06ce9b5a7c027648f..1eb1ff3420f52706babcf61276f610932ea2ba43 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js @@ -14,29 +14,31 @@ includes: [propertyHelper.js] var obj = {}; function get_func1() { - return 10; + return 10; } -function set_func1() { } + +function set_func1() {} Object.defineProperty(obj, "foo", { - get: get_func1, - set: set_func1, - configurable: true + get: get_func1, + set: set_func1, + configurable: true }); function get_func2() { - return 20; + return 20; } + function set_func2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperties(obj, { - foo: { - get: get_func2, - set: set_func2, - configurable: false - } + foo: { + get: get_func2, + set: set_func2, + configurable: false + } }); verifyEqualTo(obj, "foo", get_func2()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js index 2909b6d86c0a01ef72e091d6ca7e925216f6fe38..fc8f60d3a8c23ea8a25402f53c339fd53eea07f6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js @@ -8,24 +8,24 @@ description: > without a get function (8.12.9 step 1 ) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - set: function () { }, - configurable: false - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + set: function() {}, + configurable: false +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); +var obj = new Con(); - Object.defineProperties(obj, { - prop: { - get: function () { - return 12; - }, - configurable: true - } - }); +Object.defineProperties(obj, { + prop: { + get: function() { + return 12; + }, + configurable: true + } +}); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js index 2d6dd716aaa1adb8628be9e9aee5ac75c80246a9..70616a1a9c72188f03574ffe8b87d19c187f26bd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js @@ -13,25 +13,26 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } var properties = { - foo1: { - value: 200, - enumerable: true, - writable: true, - configurable: true - }, - foo2: { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - } + foo1: { + value: 200, + enumerable: true, + writable: true, + configurable: true + }, + foo2: { + get: get_func, + set: set_func, + enumerable: true, + configurable: true + } }; Object.defineProperties(obj, properties); @@ -49,4 +50,3 @@ verifyWritable(obj, "foo2", "setVerifyHelpProp"); verifyEnumerable(obj, "foo2"); verifyConfigurable(obj, "foo2"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js index 41a28895a372404f8ef404f2c207c341a9b77814..6f25f50410e3281ce88fdc0e5487c90cb3a386fd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js @@ -6,36 +6,36 @@ es5id: 15.2.3.7-6-a-111 description: Object.defineProperties - each properties are in list order ---*/ - var obj = {}; +var obj = {}; - function get_func() { - return 20; - } +function get_func() { + return 20; +} - function set_func() { } +function set_func() {} - var properties = { - a: { - value: 100, - enumerable: true, - writable: true, - configurable: true - }, - b: { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - }, - c: { - value: 200, - enumerable: true, - writable: true, - configurable: true - } - }; +var properties = { + a: { + value: 100, + enumerable: true, + writable: true, + configurable: true + }, + b: { + get: get_func, + set: set_func, + enumerable: true, + configurable: true + }, + c: { + value: 200, + enumerable: true, + writable: true, + configurable: true + } +}; - Object.defineProperties(obj, properties); +Object.defineProperties(obj, properties); assert.sameValue(obj["a"], 100, 'obj["a"]'); assert.sameValue(obj["b"], 20, 'obj["b"]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js index e22b9a9ead6fde5761d5230cd4852e556b9834d7..04e0961d84c4c95edb08035c86dc8a89ba038efa 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js @@ -8,17 +8,19 @@ description: > property of 'O' is own data property (15.4.5.1 step 1) ---*/ - var arr = [0, 1]; - Object.defineProperty(arr, "1", { - value: 1, - configurable: false - }); +var arr = [0, 1]; +Object.defineProperty(arr, "1", { + value: 1, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { value: 1 } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); - var desc = Object.getOwnPropertyDescriptor(arr, "length"); +var desc = Object.getOwnPropertyDescriptor(arr, "length"); assert.sameValue(desc.value, 2, 'desc.value'); assert(desc.writable, 'desc.writable !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js index e9286e341257da3543c685783c0f3e6dd6dfa825..108151ec26d9f28573922164a6d1eb29827c1db6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js @@ -9,20 +9,22 @@ description: > data property (15.4.5.1 step 1) ---*/ - var arrProtoLen; - var arr = [0, 1, 2]; +var arrProtoLen; +var arr = [0, 1, 2]; assert.throws(TypeError, function() { - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; + arrProtoLen = Array.prototype.length; + Array.prototype.length = 0; - Object.defineProperty(arr, "2", { - configurable: false - }); + Object.defineProperty(arr, "2", { + configurable: false + }); - Object.defineProperties(arr, { - length: { value: 1 } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); var desc = Object.getOwnPropertyDescriptor(arr, "length"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js index e89046cadde4a0cd522cc99a74a9f16343938c9e..3d5a76ff0acf8775ce78e40f1e05b976030efd09 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js @@ -12,10 +12,12 @@ includes: [propertyHelper.js] var arr = []; -Object.defineProperties(arr, { length: {} }); +Object.defineProperties(arr, { + length: {} +}); if (arr.length !== 0) { - $ERROR("Expected arr.length to be 0, actually " + arr.length); + $ERROR("Expected arr.length to be 0, actually " + arr.length); } verifyEqualTo(arr, "length", 0); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js index 33e474f2f3497c5e118c21237591d3426cf47d0d..f696eab0999967ded38c096c21df55fd3f80f17a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js @@ -12,10 +12,12 @@ includes: [propertyHelper.js] var arr = []; -Object.defineProperties(arr, { length: {} }); +Object.defineProperties(arr, { + length: {} +}); if (arr.length !== 0) { - $ERROR("Expected arr.length to be 0, actually " + arr.length); + $ERROR("Expected arr.length to be 0, actually " + arr.length); } arr.length = 2; diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js index 75bde091cefb321902de24c4bfe6b0c073701302..e5b5367272586db53b1be6f347501b2eaf1e2006 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js @@ -14,11 +14,11 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperties(arr, { - length: { - writable: true, - enumerable: false, - configurable: false - } + length: { + writable: true, + enumerable: false, + configurable: false + } }); assert.sameValue(arr.length, 0); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js index 4c300f6d74375b17dd733343363f29b25c9b9171..8a9aeec7bbe264a9d66ac8a2110b3072accd6577 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js @@ -10,9 +10,11 @@ description: > of the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arr = []; +var arr = []; assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { configurable: true } - }); + Object.defineProperties(arr, { + length: { + configurable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js index ab0fecce740ad1b6a021e7aa317fd25ec1063e65..2af457048950c18c8d35e2cdb97433ffe6e18e94 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js @@ -10,9 +10,11 @@ description: > the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arr = []; +var arr = []; assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { enumerable: true } - }); + Object.defineProperties(arr, { + length: { + enumerable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js index 95ab99ed5880f88a49cea76f844b45318cffd436..7276c22bc426ea764f6d4b2e79cbc60408299707 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js @@ -10,14 +10,14 @@ description: > step 3.a.i) ---*/ - var arr = []; +var arr = []; assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { - get: function () { - return 2; - } - } - }); + Object.defineProperties(arr, { + length: { + get: function() { + return 2; + } + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js index e249d698ac578241d06da09d6627b99c0f93bd23..8e50d51d03e7e31e16b209ca1e7aa74e3b22251e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js @@ -10,13 +10,15 @@ description: > the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arr = []; +var arr = []; - Object.defineProperty(arr, "length", { - writable: false - }); +Object.defineProperty(arr, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { writable: true } - }); + Object.defineProperties(arr, { + length: { + writable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js index c6c089f33873161c1a480d1fe9b448c5b75b2262..62e92a46bc027dcbc73393ab436d05b10ba27f36 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js @@ -10,32 +10,32 @@ description: > includes: [propertyHelper.js] ---*/ -var fun = function () { }; +var fun = function() {}; Object.defineProperty(fun, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); try { - Object.defineProperties(fun, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(fun, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(fun, "prop", 11); + verifyEqualTo(fun, "prop", 11); - verifyNotWritable(fun, "prop"); + verifyNotWritable(fun, "prop"); - verifyNotEnumerable(fun, "prop"); + verifyNotEnumerable(fun, "prop"); - verifyNotConfigurable(fun, "prop"); + verifyNotConfigurable(fun, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js index f5d279022859cd0efcab54d8100a17fed0b460e3..6c5edbb409663b729cd888df5a1f4a2f5717d06e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js @@ -14,7 +14,9 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperties(arr, { - length: { writable: false } + length: { + writable: false + } }); verifyEqualTo(arr, "length", 0); @@ -24,4 +26,3 @@ verifyNotWritable(arr, "length"); verifyNotEnumerable(arr, "length"); verifyNotConfigurable(arr, "length"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js index 2c62ae0e9474fc451d694cc964b2b9ce831f9c72..0ddd7d8ac98e9beec597974c2b80e546badc3a74 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js @@ -9,10 +9,12 @@ description: > [[Value]] field of 'desc' to undefined (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { value: undefined } - }); + Object.defineProperties(arr, { + length: { + value: undefined + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js index ff7a58b01cdd323a6d70e924e036fab289b0da06..537afaa85f61d78e302013dc161de6c27228dd0d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js @@ -9,10 +9,12 @@ description: > null actuall is set to 0 (15.4.5.1 step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: null } - }); +Object.defineProperties(arr, { + length: { + value: null + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js index f91cf3bb38e24bdf5b7b622193ff5b225e9be298..1ac2b4e768e6b98121fb49fae617ac6244db64cf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js @@ -9,10 +9,12 @@ description: > with value false (15.4.5.1 step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: false } - }); +Object.defineProperties(arr, { + length: { + value: false + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js index 50abc60411b1b2654bf1c8d32c823257a7c0c399..dc155dba6197fb89103d730c267891a84ffffb44 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js @@ -9,10 +9,12 @@ description: > with value true (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { value: true } - }); +Object.defineProperties(arr, { + length: { + value: true + } +}); assert.sameValue(arr.length, 1, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js index d3f8838af823875c530375b9eec753b83a8ad8ea..20c7a54b76d3b6c0dcefc13d7f329689e3816cdb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js @@ -9,10 +9,12 @@ description: > step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: 0 } - }); +Object.defineProperties(arr, { + length: { + value: 0 + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js index a6d959af081805e563ddf44906171d7206f5cb9d..cd96fbb77b3a9435a0cdc42aef56186b9545a824 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js @@ -9,10 +9,12 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: +0 } - }); +Object.defineProperties(arr, { + length: { + value: +0 + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js index 23a8af3c3abf257957324d94447fd4846dfb044b..153b3e836ecbd63f220f095d2b1437c171dbabaa 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js @@ -9,10 +9,12 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: -0 } - }); +Object.defineProperties(arr, { + length: { + value: -0 + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js index 23a5a1f6eba38377b825d85673e92ca3830905ed..ccf5343c89f34ecbc255d9556bd1a5d42276dd20 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js @@ -9,10 +9,12 @@ description: > number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { value: 12 } - }); +Object.defineProperties(arr, { + length: { + value: 12 + } +}); assert.sameValue(arr.length, 12, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js index e432de73f510f9f0ada6b9c18085bf174fa6ee20..b1b51dd59e0d26dab98ad4275c3cd6745a4318a2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js @@ -9,12 +9,12 @@ description: > number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: -9 - } - }); + Object.defineProperties(arr, { + length: { + value: -9 + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js index 072e438a7c4757452db25f0bfb37b79e904c17e3..ea15dcbf4ec4a98ec0c40c5b1186852dd6af2611 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-13.js @@ -12,29 +12,29 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); try { - Object.defineProperties(arr, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "prop", 11); + verifyEqualTo(arr, "prop", 11); - verifyNotWritable(arr, "prop"); + verifyNotWritable(arr, "prop"); - verifyNotEnumerable(arr, "prop"); + verifyNotEnumerable(arr, "prop"); - verifyNotConfigurable(arr, "prop"); + verifyNotConfigurable(arr, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js index ff246ba3241edc9a9dfcc139362343813350fd44..c1323e470eddd6ad1c8e09b01dd6ab0beb14f06c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-130.js @@ -9,12 +9,12 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: +Infinity - } - }); + Object.defineProperties(arr, { + length: { + value: +Infinity + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js index ada55d4a51adbd58b67134d72530dc8f61a24726..4e8941b574b009cdc263ec07f9c23d23b71b3997 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-131.js @@ -9,12 +9,12 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: -Infinity - } - }); + Object.defineProperties(arr, { + length: { + value: -Infinity + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js index 16015d3bb0b10d29ecd2e7f5fb0d3e30d3c9868c..456ca93d30587ff8951188357540e28d297d4f02 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-132.js @@ -9,12 +9,12 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: NaN - } - }); + Object.defineProperties(arr, { + length: { + value: NaN + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js index c5c56bf55eb98e14e5a28d63496caa8e49f74185..a6dc04cf2087acfd4821fc07f603f6e6ed40b131 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-133.js @@ -9,12 +9,12 @@ description: > containing a positive number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { - value: "2" - } - }); +Object.defineProperties(arr, { + length: { + value: "2" + } +}); assert.sameValue(arr.length, 2, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js index c9b787f8d90b57c63124394b398d827b13cc49e9..7ff543c69c2c97f88abd322d432a1a1ed208f2c0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-134.js @@ -9,12 +9,12 @@ description: > containing a negative number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: "-42" - } - }); + Object.defineProperties(arr, { + length: { + value: "-42" + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js index 5f9b707fdebceb51742d79e2179d9736e907bab8..87d7bf6923d83ff70e0add721ce82d8882df5f8f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-135.js @@ -9,12 +9,12 @@ description: > containing a decimal number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: "200.59" - } - }); + Object.defineProperties(arr, { + length: { + value: "200.59" + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js index 1613213e8679cc12ac8d87467d8eb34b50c0d63c..2654f5126d4dac4e2dd98b6d25db8e5b9deb5cee 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-136.js @@ -9,12 +9,12 @@ description: > containing +Infinity (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: "+Infinity" - } - }); + Object.defineProperties(arr, { + length: { + value: "+Infinity" + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js index ebc116b2dff70bc11ea9926820117f91872d48c7..ac8e062b8f9ae50c00eb91ce320fb6d31ddf6ee0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-137.js @@ -9,12 +9,12 @@ description: > containing -Infinity (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: "-Infinity" - } - }); + Object.defineProperties(arr, { + length: { + value: "-Infinity" + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js index 26485cc646b2d072bd9dc88ce507d4e9abc90863..c3e14cc13315c34d76711d665fdacfb54c060315 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-138.js @@ -9,12 +9,12 @@ description: > containing an exponential number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { - value: "2E3" - } - }); +Object.defineProperties(arr, { + length: { + value: "2E3" + } +}); assert.sameValue(arr.length, 2E3, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js index 1239e6adf1f3e787e0a1169b2c208931c76f2ede..60f77a8d1cd3e9b2c454cb6bc0e319a20161bbba 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-139.js @@ -9,12 +9,12 @@ description: > containing an hex number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { - value: "0x00B" - } - }); +Object.defineProperties(arr, { + length: { + value: "0x00B" + } +}); assert.sameValue(arr.length, 0x00B, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js index fe0134274bb71808de16e9bed5e8a39a9b15e288..a07faad5477df8671f31b6539d211edad0cfd9a9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-14.js @@ -12,29 +12,29 @@ includes: [propertyHelper.js] var str = new String(); Object.defineProperty(str, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); try { - Object.defineProperties(str, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(str, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(str, "prop", 11); + verifyEqualTo(str, "prop", 11); - verifyNotWritable(str, "prop"); + verifyNotWritable(str, "prop"); - verifyNotEnumerable(str, "prop"); + verifyNotEnumerable(str, "prop"); - verifyNotConfigurable(str, "prop"); + verifyNotConfigurable(str, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js index ba7093b93c409077917c9718e28e11421fe5ca01..81bb4fec3c0c90afd108619e699bdf8c4d0f09b7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-140.js @@ -9,12 +9,12 @@ description: > containing an leading zero number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { - value: "0002.0" - } - }); +Object.defineProperties(arr, { + length: { + value: "0002.0" + } +}); assert.sameValue(arr.length, 2, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js index ae2debbf94fcb5cce777eb2dd7b72ff7c2438e37..d65aac4f4c7f11418c18f07c2fa79acc52754757 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-141.js @@ -9,12 +9,12 @@ description: > which doesn't convert to a number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: "two" - } - }); + Object.defineProperties(arr, { + length: { + value: "two" + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js index be1c55b0b80d84d498b633d637094115abd69b57..27400336053561a54ec8788e6c2803c9f760b11d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-142.js @@ -9,16 +9,16 @@ description: > which has an own toString method (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { - value: { - toString: function () { - return '2'; - } - } - } - }); +Object.defineProperties(arr, { + length: { + value: { + toString: function() { + return '2'; + } + } + } +}); assert.sameValue(arr.length, 2, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js index 0e13bf117aa9457342b7b1a6320ab334f876d94d..b159518aec593e293a618fe0fd2d1c32ae485b33 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-143.js @@ -9,16 +9,16 @@ description: > which has an own valueOf method (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { - value: { - valueOf: function () { - return 2; - } - } - } - }); +Object.defineProperties(arr, { + length: { + value: { + valueOf: function() { + return 2; + } + } + } +}); assert.sameValue(arr.length, 2, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js index d724d2d0f5176cd74cf5a3895a61f87c73c32de3..92cf9003441ebbee58b1edbe8afa1bfa64c22763 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-144.js @@ -10,25 +10,25 @@ description: > toString method that returns a string (15.4.5.1 step 3.c) ---*/ - var arr = []; - var toStringAccessed = false; - var valueOfAccessed = false; +var arr = []; +var toStringAccessed = false; +var valueOfAccessed = false; - Object.defineProperties(arr, { - length: { - value: { - toString: function () { - toStringAccessed = true; - return '2'; - }, +Object.defineProperties(arr, { + length: { + value: { + toString: function() { + toStringAccessed = true; + return '2'; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - } - }); + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } + } +}); assert.sameValue(arr.length, 2, 'arr.length'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js index d63b5611abcd87c9f4ab9e5e30941754020ebb90..bfaa2ff1ad55ce976e93f3188e8a90c3987a4991 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-145.js @@ -9,25 +9,25 @@ description: > which has an own toString and valueOf method (15.4.5.1 step 3.c) ---*/ - var arr = []; - var toStringAccessed = false; - var valueOfAccessed = false; +var arr = []; +var toStringAccessed = false; +var valueOfAccessed = false; - Object.defineProperties(arr, { - length: { - value: { - toString: function () { - toStringAccessed = true; - return '2'; - }, +Object.defineProperties(arr, { + length: { + value: { + toString: function() { + toStringAccessed = true; + return '2'; + }, - valueOf: function () { - valueOfAccessed = true; - return 3; - } - } - } - }); + valueOf: function() { + valueOfAccessed = true; + return 3; + } + } + } +}); assert.sameValue(arr.length, 3, 'arr.length'); assert.sameValue(toStringAccessed, false, 'toStringAccessed'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js index 96214d41de6a5e04c383d2aa9b2c4b61c4a7c500..a4e2b52b881323cadf1627dfaf3fb84427f5ee8d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-146.js @@ -10,25 +10,25 @@ description: > return primitive value (15.4.5.1 step 3.c) ---*/ - var arr = []; - var toStringAccessed = false; - var valueOfAccessed = false; +var arr = []; +var toStringAccessed = false; +var valueOfAccessed = false; assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { - value: { - toString: function () { - toStringAccessed = true; - return {}; - }, + Object.defineProperties(arr, { + length: { + value: { + toString: function() { + toStringAccessed = true; + return {}; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - } - }); + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } + } + }); }); assert(toStringAccessed, 'toStringAccessed !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js index 0e9d72a6a9fd9888de5f74e97b0412bb75538323..ab4cf6864434747b556d23c3a03cf73f7fc13cff 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-147.js @@ -10,35 +10,35 @@ description: > inherited valueOf methods (15.4.5.1 step 3.c) ---*/ - var arr = []; - var toStringAccessed = false; - var valueOfAccessed = false; +var arr = []; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - value: { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - } - }; +var proto = { + value: { + valueOf: function() { + valueOfAccessed = true; + return 2; + } + } +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.defineProperty(child, "value", { - value: { - toString: function () { - toStringAccessed = true; - return 3; - } - } - }); +var child = new Con(); +Object.defineProperty(child, "value", { + value: { + toString: function() { + toStringAccessed = true; + return 3; + } + } +}); - Object.defineProperties(arr, { - length: child - }); +Object.defineProperties(arr, { + length: child +}); assert.sameValue(arr.length, 3, 'arr.length'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js index d70d2214f558991af99c4f8e93b23b98ccc4aade..5b092a84b018dfc1261448d1bea6fe94db8cbeb0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-148.js @@ -9,12 +9,12 @@ description: > field of 'desc' is positive non-integer values (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: 123.5 - } - }); + Object.defineProperties(arr, { + length: { + value: 123.5 + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js index c509c53052d3e3aeecdab68e2ad4bd01b5ae0b08..e06e22eda3e91f657dc6d3e7c11214a09871f320 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-149.js @@ -9,12 +9,12 @@ description: > field of 'desc' is negative non-integer values (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: -4294967294.5 - } - }); + Object.defineProperties(arr, { + length: { + value: -4294967294.5 + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js index 8a899c662286fbbfb6efcfb877875e34e7350709..510ef8b41a1dd4353a0a84af1a587e7ba4fddfb2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-15.js @@ -13,29 +13,29 @@ includes: [propertyHelper.js] var obj = new Boolean(false); Object.defineProperty(obj, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); try { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "prop", 11); + verifyEqualTo(obj, "prop", 11); - verifyNotWritable(obj, "prop"); + verifyNotWritable(obj, "prop"); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js index 7f6dc113604b1e3590ad3b03d68d1ee2f4937d01..7fd3d267c0a86191a277a5fdeaba2aa7f27350e7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-150.js @@ -9,12 +9,12 @@ description: > value 2^32 - 2 (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { - value: 4294967294 - } - }); +Object.defineProperties(arr, { + length: { + value: 4294967294 + } +}); assert.sameValue(arr.length, 4294967294, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js index 090d2e6503e73d76838a5dbb1eff7782ab908c96..c9ca3eb2415a0149377d19d989c6a32ef9e5adff 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-151.js @@ -9,12 +9,12 @@ description: > value 2^32 - 1 (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { - value: 4294967295 - } - }); +Object.defineProperties(arr, { + length: { + value: 4294967295 + } +}); assert.sameValue(arr.length, 4294967295, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js index bf9c3b8d1eac60472f7e0f668e885027b4e13ecb..30326c0b76b4ea6642b99e2b90747aa6dcea156e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-152.js @@ -9,12 +9,12 @@ description: > field of 'desc' is boundary value 2^32 (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: 4294967296 - } - }); + Object.defineProperties(arr, { + length: { + value: 4294967296 + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js index fddc31217ba3e3a33eaf725d559d7e1e22a4c75c..ff368c41cc0978d0ed96f8031322697c847900a5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-153.js @@ -9,12 +9,12 @@ description: > field of 'desc' is boundary value 2^32 + 1 (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { - value: 4294967297 - } - }); + Object.defineProperties(arr, { + length: { + value: 4294967297 + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js index b765653ef11a6b8e2856a74622ab4118b4f8cdc3..b31bcc2af126ac2c49ae4ef368a017f813f74351 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-155.js @@ -11,13 +11,13 @@ description: > step 3.f) ---*/ - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperties(arr, { - length: { - value: 5 - } - }); +Object.defineProperties(arr, { + length: { + value: 5 + } +}); assert.sameValue(arr.length, 5, 'arr.length'); assert.sameValue(arr[0], 0, 'arr[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js index f2bd0349c10261458da4d359e1f744f5fae3aa08..fd2f959966703fb5234d1b7e14c1199e5a1df03d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-156.js @@ -10,13 +10,13 @@ description: > deleting any property with large index named (15.4.5.1 step 3.f) ---*/ - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperties(arr, { - length: { - value: 3 - } - }); +Object.defineProperties(arr, { + length: { + value: 3 + } +}); assert.sameValue(arr.length, 3, 'arr.length'); assert.sameValue(arr[0], 0, 'arr[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js index c3fece46afbcd25b3919d855579271d2a7ffa4c8..4e26d7c43b9ae968ff7352de3c52bb7d706a6fa3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-157.js @@ -10,13 +10,13 @@ description: > deleting properties with large index named (15.4.5.1 step 3.f) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { - value: 1 - } - }); +Object.defineProperties(arr, { + length: { + value: 1 + } +}); assert.sameValue(arr.length, 1, 'arr.length'); assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js index c98990822be300ed36a5fca44413fa06114c3ea7..1ac667a0a5d7bce9684852a89411b67c1d61a464 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-158.js @@ -10,16 +10,16 @@ description: > length property is not writable (15.4.5.1 step 3.f.i) ---*/ - var arr = []; +var arr = []; - Object.defineProperty(arr, "length", { - writable: false - }); +Object.defineProperty(arr, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { - value: 12 - } - }); + Object.defineProperties(arr, { + length: { + value: 12 + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js index 51e462ce425924ed4090619f4c613f21a3479310..21fbeacb8a2ee2901034f27031fa330c8183d944 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-159.js @@ -10,16 +10,16 @@ description: > length property is not writable (15.4.5.1 step 3.f.i) ---*/ - var arr = []; +var arr = []; - Object.defineProperty(arr, "length", { - writable: false - }); +Object.defineProperty(arr, "length", { + writable: false +}); - Object.defineProperties(arr, { - length: { - value: 0 - } - }); +Object.defineProperties(arr, { + length: { + value: 0 + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js index 450bba1f29056b91998d1ae0f2ad253ff5ed041e..61769efc52820a51f3dce364ead7932440130943 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-16.js @@ -13,29 +13,29 @@ includes: [propertyHelper.js] var obj = new Number(-9); Object.defineProperty(obj, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); try { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "prop", 11); + verifyEqualTo(obj, "prop", 11); - verifyNotWritable(obj, "prop"); + verifyNotWritable(obj, "prop"); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js index a3eb0b4b6c423d905b9cfaac29d6ae55e9fb1cd3..2d54c78ac010403bba3a52bd50df5c9c09852119 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-160.js @@ -11,17 +11,17 @@ description: > step 3.g) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperty(arr, "length", { - writable: false - }); +Object.defineProperty(arr, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { - value: 0 - } - }); + Object.defineProperties(arr, { + length: { + value: 0 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert.sameValue(arr[0], 0, 'arr[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js index 94801d36315027996937de3e23555ef5332693a5..88a9d623bb842427e73f09abe56bf9e874931eed 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-161.js @@ -12,15 +12,15 @@ description: > absent (15.4.5.1 step 3.h) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { - value: 1 - } - }); +Object.defineProperties(arr, { + length: { + value: 1 + } +}); - arr.length = 10; //try to overwrite length value of arr +arr.length = 10; //try to overwrite length value of arr assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")'); assert.sameValue(arr.length, 10, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js index 264929a73054d3c4a705c6bb9393bf1f3c01654a..5b53ce3f7ffcbfb4d8b1dc22809f7b6998811621 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-162.js @@ -12,16 +12,16 @@ description: > (15.4.5.1 step 3.h) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { - value: 1, - writable: true - } - }); +Object.defineProperties(arr, { + length: { + value: 1, + writable: true + } +}); - arr.length = 10; //try to overwrite length value of arr +arr.length = 10; //try to overwrite length value of arr assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")'); assert.sameValue(arr.length, 10, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js index 40756f8da9d7d52940056633ed41beeb29d0c6b0..c84659c61937d75a44f679b81a68580d7eed5d53 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-163.js @@ -13,14 +13,14 @@ description: > includes: [propertyHelper.js] ---*/ - + var arr = [0, 1]; Object.defineProperties(arr, { - length: { - value: 1, - writable: false - } + length: { + value: 1, + writable: false + } }); //try to overwrite length value of arr diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js index ea479bad044744f0a49b6cd0db75b3347f514245..af2cbd543ba376f4392f3b86491396dd8637ecaf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js @@ -17,21 +17,20 @@ var arr = [0, 1, 2]; var result = 0; try { - Object.defineProperty(arr, "1", { - configurable: false - }); + Object.defineProperty(arr, "1", { + configurable: false + }); - Object.defineProperties(arr, { - length: { - value: 0, - writable: false - } - }); + Object.defineProperties(arr, { + length: { + value: 0, + writable: false + } + }); - $ERROR("expected to throw TypeError") + $ERROR("expected to throw TypeError") } catch (e) { - assert(e instanceof TypeError); - assert.sameValue(arr.length, 2); - verifyNotWritable(arr, "length"); + assert(e instanceof TypeError); + assert.sameValue(arr.length, 2); + verifyNotWritable(arr, "length"); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js index 6d83613b9acdec831f2a738ecc4e5f7e9b12be80..2234686cee8a926d33e7c03b1f1761add3b821d8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js @@ -10,21 +10,21 @@ description: > 1 (15.4.5.1 step 3.l.i) ---*/ - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(arr, "1", { - configurable: false - }); +Object.defineProperty(arr, "1", { + configurable: false +}); - Object.defineProperty(arr, "2", { - configurable: true - }); +Object.defineProperty(arr, "2", { + configurable: true +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert.sameValue(arr.hasOwnProperty("2"), false, 'arr.hasOwnProperty("2")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js index a6bd8e38c2f38af0b34675aa01200ca798c1d83c..2c08f8a3f04031c3554c5f59c01397c39b008775 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-166.js @@ -11,17 +11,17 @@ description: > index named properties (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arr, "1", { - configurable: false - }); + Object.defineProperty(arr, "1", { + configurable: false + }); - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js index ac2bf44178e32286652c4a68ea07211b94486ffc..5a5d0423529323f33cf7a7817a795d96eee4105b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-167.js @@ -11,15 +11,15 @@ description: > deleting index named properties (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Array.prototype[1] = 2; //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable +Array.prototype[1] = 2; //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable - Object.defineProperties(arr, { - length: { - value: 1 - } - }); +Object.defineProperties(arr, { + length: { + value: 1 + } +}); assert.sameValue(arr.length, 1, 'arr.length'); assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js index c93f4a78e679cc66584bdd1fe52bc39e523a784e..0692d34d7486358e674034e7290e44c955fcd6eb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-168.js @@ -12,20 +12,20 @@ description: > (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arr, "1", { - configurable: false - }); + Object.defineProperty(arr, "1", { + configurable: false + }); - Array.prototype[1] = 2; + Array.prototype[1] = 2; - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js index 0b72ac3d66773d8aca4ea83c8005b5207986a27f..0fc11411b3ac7acb26111de0be8b83197e28b115 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js @@ -12,25 +12,25 @@ description: > properties (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arr, "1", { - configurable: false - }); + Object.defineProperty(arr, "1", { + configurable: false + }); - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 2; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 2; + }, + configurable: true + }); - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js index 43bc0511bf8c3c2f530c056dcf51fc170164a16a..e3ece34fbfcb671f257ceed1caccf12b419eb23e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-17.js @@ -8,18 +8,18 @@ description: > its own [[GetOwnProperty]] method to get 'P' (8.12.9 step 1 ) ---*/ - Object.defineProperty(Math, "prop", { - value: 11, - writable: true, - configurable: true - }); - var hasProperty = Math.hasOwnProperty("prop") && Math.prop === 11; +Object.defineProperty(Math, "prop", { + value: 11, + writable: true, + configurable: true +}); +var hasProperty = Math.hasOwnProperty("prop") && Math.prop === 11; - Object.defineProperties(Math, { - prop: { - value: 12 - } - }); +Object.defineProperties(Math, { + prop: { + value: 12 + } +}); assert(hasProperty, 'hasProperty !== true'); assert.sameValue(Math.prop, 12, 'Math.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js index bb54504641353545b080253f968f5791a98c81a5..108d5e28e4772402165485add34481bc57453e69 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-170.js @@ -11,20 +11,20 @@ description: > deleting index named properties (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: false - }); + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: false + }); - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js index ca3db2cb9314f6622edc235b323f1622af8d6f51..8907e2757bdbc5d2af9a3de31811b862f2c268ef 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js @@ -11,20 +11,20 @@ description: > stop deleting index named properties (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 1; - }, - configurable: true //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable - }); +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 1; + }, + configurable: true //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable +}); - Object.defineProperties(arr, { - length: { - value: 1 - } - }); +Object.defineProperties(arr, { + length: { + value: 1 + } +}); assert.sameValue(arr.length, 1, 'arr.length'); assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js index 9386995591e0b0ed7048580a582296034dfdafb3..a2c8370746b192b811738a6b9e39b79de72d9a19 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-172.js @@ -12,23 +12,23 @@ description: > (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arr, "1", { - get: function () { - return 2; - }, - configurable: false - }); + Object.defineProperty(arr, "1", { + get: function() { + return 2; + }, + configurable: false + }); - Array.prototype[1] = 3; + Array.prototype[1] = 3; - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js index 0664450db6c87d58667543b4f4ebda6aafc7988a..de0b12fe0fe3795f0e3040096bec2f5ceee50e8f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-173.js @@ -12,28 +12,28 @@ description: > properties (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: false - }); + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: false + }); - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 2; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 2; + }, + configurable: true + }); - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js index 569dc35df6a0d5dea6cc5a886f75eb3154d49b21..80c672016bcc5dda398f3ae8a102f91176307a3b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-174.js @@ -10,12 +10,12 @@ description: > property of 'O' can be deleted (15.4.5.1 step 3.l.ii) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { - value: 1 - } - }); +Object.defineProperties(arr, { + length: { + value: 1 + } +}); assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js index c4a266ad4f4eff8cbdf718d3bc57d486c6dd6534..970f0e6b20e5fe5602450d99bfc8e4b8cc1414e1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-175.js @@ -11,16 +11,16 @@ description: > (15.4.5.1 step 3.l.iii.1) ---*/ - var arr = [0, 1, 2, 3]; +var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "1", { - configurable: false - }); +Object.defineProperty(arr, "1", { + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js index e5c0147077db3f2d4094a3e62b833bf5aae06f8c..228c529c104e5ed5b7acda0a71cdc8b35244429f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js @@ -17,24 +17,23 @@ includes: [propertyHelper.js] var arr = [0, 1]; try { - Object.defineProperty(arr, "1", { - configurable: false - }); + Object.defineProperty(arr, "1", { + configurable: false + }); - Object.defineProperties(arr, { - length: { - value: 1, - writable: false - } - }); + Object.defineProperties(arr, { + length: { + value: 1, + writable: false + } + }); - $ERROR("Expected to throw TypeError"); + $ERROR("Expected to throw TypeError"); } catch (e) { - assert(e instanceof TypeError); - assert(arr.hasOwnProperty("1")); - verifyNotWritable(arr, "length"); - assert.sameValue(arr[0], 0); - assert.sameValue(arr[1], 1); - assert.sameValue(arr.length, 2) + assert(e instanceof TypeError); + assert(arr.hasOwnProperty("1")); + verifyNotWritable(arr, "length"); + assert.sameValue(arr[0], 0); + assert.sameValue(arr[1], 1); + assert.sameValue(arr.length, 2) } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js index 57fb6e284dddf0fc0cb8be2f4442c481f9122d9c..6af47443214a1b64140a4b8ac6fe4749016de43e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js @@ -13,14 +13,14 @@ description: > includes: [propertyHelper.js] ---*/ - + var arr = [0, 1]; Object.defineProperties(arr, { - length: { - value: 0, - writable: false - } + length: { + value: 0, + writable: false + } }); assert(!arr.hasOwnProperty("1")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js index 3beabc6fa1010f97e0e88055c24efc2ac8849932..3b4dae0d0f2c3945b688316c96bce272dafa92ce 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-178.js @@ -9,12 +9,12 @@ description: > numbers (15.4.5.1 step 4.a) ---*/ - var arr = [0]; +var arr = [0]; - Object.defineProperties(arr, { - "0": { - value: 12 - } - }); +Object.defineProperties(arr, { + "0": { + value: 12 + } +}); assert.sameValue(arr[0], 12, 'arr[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js index 7fa434696f8d48fc4d72f42903db6e3b3842c8cc..4da0d9d1f465e6a8268f158e1edc6d8c0b44566f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.js @@ -8,13 +8,13 @@ description: > named property, 'P' is boundary value 2^32 - 2 (15.4.5.1 step 4.a) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "4294967294": { - value: 100 - } - }); +Object.defineProperties(arr, { + "4294967294": { + value: 100 + } +}); assert(arr.hasOwnProperty("4294967294"), 'arr.hasOwnProperty("4294967294") !== true'); assert.sameValue(arr.length, 4294967295, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js index 57026dbdf37132c2ee832b54c1b4dc462d8ff831..fdba2202b2d418527edb41146cebb1af4d578992 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-18.js @@ -13,29 +13,29 @@ includes: [propertyHelper.js] var obj = new Date(); Object.defineProperty(obj, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); try { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "prop", 11); + verifyEqualTo(obj, "prop", 11); - verifyNotWritable(obj, "prop"); + verifyNotWritable(obj, "prop"); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js index 1e2c4de0ddb49d5674ad2085129201b975f3715c..85f89a62a14c874c604b7701848673e9f600d097 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-180.js @@ -8,13 +8,13 @@ description: > named property, 'P' is boundary value 2^32 - 1 (15.4.5.1 step 4.a) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "4294967295": { - value: 100 - } - }); +Object.defineProperties(arr, { + "4294967295": { + value: 100 + } +}); assert(arr.hasOwnProperty("4294967295"), 'arr.hasOwnProperty("4294967295") !== true'); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js index a04bc26f87071e6720242ada70b93ea1e74bc26e..061fcc2416917598270a908a0f619172d45bf3d3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-181.js @@ -8,13 +8,13 @@ description: > named property, 'P' is boundary value 2^32 (15.4.5.1 step 4.a) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "4294967296": { - value: 100 - } - }); +Object.defineProperties(arr, { + "4294967296": { + value: 100 + } +}); assert(arr.hasOwnProperty("4294967296"), 'arr.hasOwnProperty("4294967296") !== true'); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js index 53f1964221085c62e6708ddab3f4c7b0348bafd7..8b785e35881cb9ea85ea9c674faca64a2a7698e5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-182.js @@ -8,13 +8,13 @@ description: > named property, 'P' is boundary value 2^32 + 1 (15.4.5.1 step 4.a) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "4294967297": { - value: 100 - } - }); +Object.defineProperties(arr, { + "4294967297": { + value: 100 + } +}); assert(arr.hasOwnProperty("4294967297"), 'arr.hasOwnProperty("4294967297") !== true'); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js index fc8c6fa113657532829bc5a1a1b1a03a55d548ad..618a11bb082c81786ec772cb60b4a92495ae8b32 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-183.js @@ -10,17 +10,17 @@ description: > less than value of the length property in'O' (15.4.5.1 step 4.b) ---*/ - var arr = [1, 2, 3]; +var arr = [1, 2, 3]; - Object.defineProperty(arr, "length", { - writable: false - }); +Object.defineProperty(arr, "length", { + writable: false +}); - Object.defineProperties(arr, { - "1": { - value: "abc" - } - }); +Object.defineProperties(arr, { + "1": { + value: "abc" + } +}); assert.sameValue(arr[0], 1, 'arr[0]'); assert.sameValue(arr[1], "abc", 'arr[1]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js index 3fe016ff42a2afe0f0458dc72f6e9997e9062d8a..05c864486e21dc88eadffde465150d8de99be7fd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-184.js @@ -10,17 +10,17 @@ description: > the length property in 'O' (15.4.5.1 step 4.b) ---*/ - var arr = [1, 2, 3]; +var arr = [1, 2, 3]; - Object.defineProperty(arr, "length", { - writable: false - }); +Object.defineProperty(arr, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - "3": { - value: "abc" - } - }); + Object.defineProperties(arr, { + "3": { + value: "abc" + } + }); }); assert.sameValue(arr[0], 1, 'arr[0]'); assert.sameValue(arr[1], 2, 'arr[1]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js index 3698753c54db0f40f09d45ff827a09e83fb8174d..04268e171588713054fa45b559fc455d024ddbe0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-185.js @@ -10,17 +10,17 @@ description: > of the length property in 'O' (15.4.5.1 step 4.b) ---*/ - var arr = [1, 2, 3]; +var arr = [1, 2, 3]; - Object.defineProperty(arr, "length", { - writable: false - }); +Object.defineProperty(arr, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - "4": { - value: "abc" - } - }); + Object.defineProperties(arr, { + "4": { + value: "abc" + } + }); }); assert.sameValue(arr[0], 1, 'arr[0]'); assert.sameValue(arr[1], 2, 'arr[1]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js index e5f5943f622d59c355a047d9e6738a2de48d491f..1421ccc1335d82b26222e9eeb49db783c6d87797 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-186.js @@ -8,17 +8,17 @@ description: > named property, 'P' is own data property (15.4.5.1 step 4.c) ---*/ - var arr = []; - Object.defineProperty(arr, 0, { - value: "ownDataProperty", - configurable: false - }); +var arr = []; +Object.defineProperty(arr, 0, { + value: "ownDataProperty", + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - "0": { - value: "abc", - configurable: true - } - }); + Object.defineProperties(arr, { + "0": { + value: "abc", + configurable: true + } + }); }); assert.sameValue(arr[0], "ownDataProperty", 'arr[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js index 239da3b32ad283406e09c18371661e50b9b0abae..b19e15195badb128dfdbf7d381b11cc34ad29bf7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-187.js @@ -8,18 +8,18 @@ description: > named property, 'P' is inherited data property (15.4.5.1 step 4.c) ---*/ - Object.defineProperty(Array.prototype, "0", { - value: 11, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + value: 11, + configurable: true +}); - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "0": { - configurable: false - } - }); +Object.defineProperties(arr, { + "0": { + configurable: false + } +}); assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true'); assert.sameValue(typeof arr[0], "undefined", 'typeof arr[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js index a5895c270a53f6e023179e97e73b207f8c10a724..0d7c7939f9c1b7b1733021adf1050095cb3afbdf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-188.js @@ -12,21 +12,21 @@ description: > var arr = []; assert.throws(TypeError, function() { - Object.defineProperty(Array.prototype, "0", { - value: 11, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + value: 11, + configurable: true + }); - Object.defineProperty(arr, "0", { - value: 12, - configurable: false - }); + Object.defineProperty(arr, "0", { + value: 12, + configurable: false + }); - Object.defineProperties(arr, { - "0": { - configurable: true - } - }); + Object.defineProperties(arr, { + "0": { + configurable: true + } + }); }); assert.sameValue(arr[0], 12, 'arr[0]'); assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js index 43dcd499165e2c5a7fa72bbde1e92528f94d0d8f..b9daf11b0d021b0bece89ec277903e83ea7c66ea 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-189.js @@ -12,23 +12,23 @@ description: > var arr = []; assert.throws(TypeError, function() { - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true + }); - Object.defineProperty(arr, "0", { - value: 12, - configurable: false - }); + Object.defineProperty(arr, "0", { + value: 12, + configurable: false + }); - Object.defineProperties(arr, { - "0": { - configurable: true - } - }); + Object.defineProperties(arr, { + "0": { + configurable: true + } + }); }); assert.sameValue(arr[0], 12, 'arr[0]'); assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js index 255d3fdc685b581248a806d585cf4ab88b522219..262f370b7730bf5f747478ea7555e2f551ce5869 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-19.js @@ -13,29 +13,29 @@ includes: [propertyHelper.js] var obj = new RegExp(); Object.defineProperty(obj, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); try { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "prop", 11); + verifyEqualTo(obj, "prop", 11); - verifyNotWritable(obj, "prop"); + verifyNotWritable(obj, "prop"); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js index 7ecdc01b2d0c1c99836bc793cd8e90037eca79d3..7d18bc59140c8982fd52633f3b31d467cde2b8c5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-190.js @@ -8,22 +8,22 @@ description: > named property, 'P' is own accessor property (15.4.5.1 step 4.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperty(arr, "0", { - get: function () { - return 11; - }, - configurable: false - }); +Object.defineProperty(arr, "0", { + get: function() { + return 11; + }, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - "0": { - get: function () { - return 12; - }, - configurable: true - } - }); + Object.defineProperties(arr, { + "0": { + get: function() { + return 12; + }, + configurable: true + } + }); }); assert.sameValue(arr[0], 11, 'arr[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js index c074029e578a766c1ed162d03e89697d10e54991..e084173ff4d8a6257a1433229ee2bd8b8c5477c1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-191.js @@ -8,23 +8,23 @@ description: > property, 'P' is inherited accessor property (15.4.5.1 step 4.c) ---*/ - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true +}); - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "0": { - get: function () { - return 12; - }, - configurable: false - } - }); +Object.defineProperties(arr, { + "0": { + get: function() { + return 12; + }, + configurable: false + } +}); assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true'); assert.sameValue(arr[0], 12, 'arr[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js index 5c064cd643c5c72230c5e68fb4aafcad834125e9..e561d95d06ff8c33e544052d5818f291d3903050 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-192.js @@ -12,23 +12,23 @@ description: > var arr = []; assert.throws(TypeError, function() { - Object.defineProperty(Array.prototype, "0", { - value: 11, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + value: 11, + configurable: true + }); - Object.defineProperty(arr, "0", { - get: function () { - return 12; - }, - configurable: false - }); + Object.defineProperty(arr, "0", { + get: function() { + return 12; + }, + configurable: false + }); - Object.defineProperties(arr, { - "0": { - configurable: true - } - }); + Object.defineProperties(arr, { + "0": { + configurable: true + } + }); }); assert.sameValue(arr[0], 12, 'arr[0]'); assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js index 1f6f9216124e4d84ad9ec185e530f51039de352d..cfa67482c1079901f9ee7a14bac5e9ea7599f6ac 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-193.js @@ -12,25 +12,25 @@ description: > var arr = []; assert.throws(TypeError, function() { - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true + }); - Object.defineProperty(arr, "0", { - get: function () { - return 12; - }, - configurable: false - }); + Object.defineProperty(arr, "0", { + get: function() { + return 12; + }, + configurable: false + }); - Object.defineProperties(arr, { - "0": { - configurable: true - } - }); + Object.defineProperties(arr, { + "0": { + configurable: true + } + }); }); assert.sameValue(arr[0], 12, 'arr[0]'); assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js index 7241a38ef747ee88a86e2d8db41e4239f2b5748d..e52aa66a3bc891d91d2e8077c131432815577770 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-194.js @@ -9,13 +9,13 @@ description: > is thrown when 'O' is not extensible (15.4.5.1 step 4.c) ---*/ - var arr = []; - Object.preventExtensions(arr); +var arr = []; +Object.preventExtensions(arr); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - "0": { - value: 1 - } - }); + Object.defineProperties(arr, { + "0": { + value: 1 + } + }); }); assert.sameValue(arr.hasOwnProperty("0"), false, 'arr.hasOwnProperty("0")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js index f787b9c7ed5a54e1467dc8e307adbeadbc71b090..13ef4b2a9520d3bc177456847d6f40d74fea52dc 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-195.js @@ -14,9 +14,9 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperties(arr, { - "0": { - enumerable: true - } + "0": { + enumerable: true + } }); verifyEqualTo(arr, "0", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js index 4d826caeda80b567730d79d2a4b493cd4104f9eb..bd8358cec0d10088b3b31e87edb637edae7a3ce6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-196.js @@ -10,15 +10,15 @@ description: > [[Value]] is absent in data descriptor 'desc' (15.4.5.1 step 4.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "0": { - writable: true, - enumerable: true, - configurable: false - } - }); +Object.defineProperties(arr, { + "0": { + writable: true, + enumerable: true, + configurable: false + } +}); assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true'); -assert.sameValue(typeof (arr[0]), "undefined", 'typeof (arr[0])'); +assert.sameValue(typeof(arr[0]), "undefined", 'typeof (arr[0])'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js index 20bdac36070b42dfdb3a1920b1f8eef2b974e414..d2a90405abe31cffee73858c65d26b2c3fc3004b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-197.js @@ -17,11 +17,11 @@ var isOwnProperty = false; var canWritable = false; Object.defineProperties(arr, { - "0": { - value: 1001, - enumerable: true, - configurable: false - } + "0": { + value: 1001, + enumerable: true, + configurable: false + } }); assert(arr.hasOwnProperty("0")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js index 2d19fa185b97dd875cc4687f1f91284ea118093c..e6ee904170e1ada11fac5001faf6dfa8ab2d1504 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-198.js @@ -11,24 +11,24 @@ description: > (15.4.5.1 step 4.c) ---*/ - var arr = []; - var isOwnProperty = false; - var canEnumerable = false; +var arr = []; +var isOwnProperty = false; +var canEnumerable = false; - Object.defineProperties(arr, { - "0": { - value: 1001, - writable: true, - configurable: true - } - }); +Object.defineProperties(arr, { + "0": { + value: 1001, + writable: true, + configurable: true + } +}); - isOwnProperty = arr.hasOwnProperty("0"); - for (var i in arr) { - if (i === "0") { - canEnumerable = true; - } - } +isOwnProperty = arr.hasOwnProperty("0"); +for (var i in arr) { + if (i === "0") { + canEnumerable = true; + } +} assert(isOwnProperty, 'isOwnProperty !== true'); assert.sameValue(canEnumerable, false, 'canEnumerable'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js index 3be40ccde8146c8d7fa1b2395c1620e62a4a95c8..2800e7da78b778b3f3e271c9a1c76f59cef2144d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-199.js @@ -17,11 +17,11 @@ var beforeDeleted = false; var afterDeleted = false; Object.defineProperties(arr, { - "0": { - value: 1001, - writable: true, - enumerable: true - } + "0": { + value: 1001, + writable: true, + enumerable: true + } }); assert(arr.hasOwnProperty("0")); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js index 4565c67a7108b580b64d84adf38c7f1d8cd75e0d..037a2eba390f2dd1c35ae367d4805886f03d80ad 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js @@ -11,19 +11,19 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var obj = new Con(); Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } + prop: { + value: 12, + configurable: true + } }); verifyEqualTo(obj, "prop", 12); @@ -33,4 +33,3 @@ verifyNotWritable(obj, "prop"); verifyNotEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js index c6256b2e26355442ab41ec3cda8ae80428fc2c91..2a6a08acd68e669f5d536389da7d1120d7583f05 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js @@ -8,17 +8,17 @@ description: > its own [[GetOwnProperty]] method to get 'P' (8.12.9 step 1 ) ---*/ - Object.defineProperty(JSON, "prop", { - value: 11, - writable: true, - configurable: true - }); - var hasProperty = JSON.hasOwnProperty("prop") && JSON.prop === 11; - Object.defineProperties(JSON, { - prop: { - value: 12 - } - }); +Object.defineProperty(JSON, "prop", { + value: 11, + writable: true, + configurable: true +}); +var hasProperty = JSON.hasOwnProperty("prop") && JSON.prop === 11; +Object.defineProperties(JSON, { + prop: { + value: 12 + } +}); assert(hasProperty, 'hasProperty !== true'); assert.sameValue(JSON.prop, 12, 'JSON.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js index cc35be1c1aea80c8b903451deeab256e587182a3..5a26d73f9cc01b6c7db83995d4bc1d9d7407330a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js @@ -13,12 +13,12 @@ includes: [propertyHelper.js] var arr = [1]; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(arr, { - "0": { - value: 1001, - writable: false, - enumerable: false, - configurable: false - } + "0": { + value: 1001, + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(arr, "0", 1001); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js index 999c5ba757234b7a630ae83aa466e7cc720148d2..b4b0a7c721ee6742aea999abfe1823e8c9bbad24 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js @@ -10,15 +10,15 @@ description: > is absent in accessor descriptor 'desc' (15.4.5.1 step 4.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "0": { - set: function () { }, - enumerable: true, - configurable: true - } - }); +Object.defineProperties(arr, { + "0": { + set: function() {}, + enumerable: true, + configurable: true + } +}); assert(arr.hasOwnProperty("0"), 'arr.hasOwnProperty("0") !== true'); -assert.sameValue(typeof (arr[0]), "undefined", 'typeof (arr[0])'); +assert.sameValue(typeof(arr[0]), "undefined", 'typeof (arr[0])'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js index b9c049421297bc57dff107815574976d2602f6fa..febd6c62a3097033d04e06587349ca782e0bb65a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-202.js @@ -10,32 +10,32 @@ description: > is absent in accessor descriptor 'desc' (15.4.5.1 step 4.c) ---*/ - var arr = []; - var getFunc = function () { - return 11; - }; +var arr = []; +var getFunc = function() { + return 11; +}; - Object.defineProperties(arr, { - "0": { - get: getFunc, - enumerable: true, - configurable: true - } - }); +Object.defineProperties(arr, { + "0": { + get: getFunc, + enumerable: true, + configurable: true + } +}); - var verifyEnumerable = false; - for (var i in arr) { - if (i === "0" && arr.hasOwnProperty("0")) { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var i in arr) { + if (i === "0" && arr.hasOwnProperty("0")) { + verifyEnumerable = true; + } +} - var desc = Object.getOwnPropertyDescriptor(arr, "0"); - var propertyDefineCorrect = arr.hasOwnProperty("0"); +var desc = Object.getOwnPropertyDescriptor(arr, "0"); +var propertyDefineCorrect = arr.hasOwnProperty("0"); - var verifyConfigurable = false; - delete arr[0]; - verifyConfigurable = arr.hasOwnProperty("0"); +var verifyConfigurable = false; +delete arr[0]; +verifyConfigurable = arr.hasOwnProperty("0"); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js index 39d5ee0a638c311d4b92b591319c12aa12555443..e5bb72fba48c2118fd389ee71a5289c9dcb62e12 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-203.js @@ -11,16 +11,16 @@ description: > (15.4.5.1 step 4.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "0": { - set: function () { }, - get: function () { }, - configurable: true - } - }); +Object.defineProperties(arr, { + "0": { + set: function() {}, + get: function() {}, + configurable: true + } +}); - for (var i in arr) { - assert.sameValue(i === "0" && arr.hasOwnProperty("0"), false, 'i === "0" && arr.hasOwnProperty("0")'); - } +for (var i in arr) { + assert.sameValue(i === "0" && arr.hasOwnProperty("0"), false, 'i === "0" && arr.hasOwnProperty("0")'); +} diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js index 806e428be7eaac10f16260deeb18f18d8a9c6d68..c120b0c91629f96f59408c942006e3ad9e7164af 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-204.js @@ -16,19 +16,19 @@ var arr = []; arr.verifySetter = 100; Object.defineProperties(arr, { - "0": { - set: function (value) { - arr.verifySetter = value; - }, - get: function () { - return arr.verifySetter; - }, - enumerable: true - } + "0": { + set: function(value) { + arr.verifySetter = value; + }, + get: function() { + return arr.verifySetter; + }, + enumerable: true + } }); if (!Object.prototype.hasOwnProperty.call(arr, "0")) { - $ERROR("Expected hasOwnProperty to return true."); + $ERROR("Expected hasOwnProperty to return true."); } arr[0] = 101; @@ -36,7 +36,7 @@ arr[0] = 101; verifyEqualTo(arr, 0, 101); if (arr.verifySetter !== 101) { - $ERROR('Expected arr.verifySetter === 101, actually ' + arr.verifySetter); + $ERROR('Expected arr.verifySetter === 101, actually ' + arr.verifySetter); } verifyNotConfigurable(arr, 0); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js index 08243fb84207d5fda495f0847c86c1cd36026059..e1ebc8eac20f136837657c1199a4be8538465280 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-205.js @@ -13,29 +13,29 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperties(arr, { - "0": { - get: function () { - return 11; - }, - set: function () { }, - configurable: true, - enumerable: true - } + "0": { + get: function() { + return 11; + }, + set: function() {}, + configurable: true, + enumerable: true + } }); -var setFun = function (value) { - arr.setVerifyHelpProp = value; +var setFun = function(value) { + arr.setVerifyHelpProp = value; }; -var getFun = function () { - return 14; +var getFun = function() { + return 14; }; Object.defineProperties(arr, { - "0": { - get: getFun, - set: setFun, - configurable: false, - enumerable: false - } + "0": { + get: getFun, + set: setFun, + configurable: false, + enumerable: false + } }); verifyEqualTo(arr, "0", getFun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js index 850cffa949d9781c2934694852fba57145e8a7c7..510fbad6e942ae6db8da3fdff8ea3bf8626fd100 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-206.js @@ -16,7 +16,7 @@ arr[0] = 101; // default value of attributes: writable: true, configurable: true Object.defineProperties(arr, { - "0": {} + "0": {} }); verifyEqualTo(arr, "0", 101); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js index a70e5e30add71df6fb87cdd4fdadc63e48b107fd..9aefa195cf7e4dc09b3d508abcee2e695107631d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js @@ -13,21 +13,22 @@ includes: [propertyHelper.js] var arr = []; function get_func() { - return 11; + return 11; } + function set_func(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "0": {} + "0": {} }); verifyEqualTo(arr, "0", get_func()); @@ -36,4 +37,3 @@ verifyWritable(arr, "0", "setVerifyHelpProp"); verifyEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js index e20e6869762a297a1a85ac7e13602fad91ef7dfe..79607b34a4375d4dcce8276c65cd266fa7c0e9d3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js @@ -16,12 +16,12 @@ var arr = []; arr[0] = 100; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(arr, { - "0": { - value: 100, - writable: true, - enumerable: true, - configurable: true - } + "0": { + value: 100, + writable: true, + enumerable: true, + configurable: true + } }); verifyEqualTo(arr, "0", 100); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js index a7186caa04fa96656783c85c5308d3dccf359c55..2620f9b4f72c73c6dbdd60a5166f2f7ca5362113 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-209.js @@ -12,22 +12,22 @@ includes: [propertyHelper.js] ---*/ var arr = []; -var get_func = function () { - return "100"; +var get_func = function() { + return "100"; }; -var set_func = function (value) { - arr.setVerifyHelpProp = value; +var set_func = function(value) { + arr.setVerifyHelpProp = value; }; var descObj = { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }; var properties = { - "0": descObj + "0": descObj }; Object.defineProperty(arr, "0", descObj); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js index 242d0abfa8cfac0435a7e2c8648e2a2d8412ac3c..f516ad3d0554efefa70037b3db37760d24a9a987 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-21.js @@ -13,29 +13,29 @@ includes: [propertyHelper.js] var obj = new Error(); Object.defineProperty(obj, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); try { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "prop", 11); + verifyEqualTo(obj, "prop", 11); - verifyNotWritable(obj, "prop"); + verifyNotWritable(obj, "prop"); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js index ae4eae8af77174139262fda2bbd0167918c3678e..8eb9e5d412839a9653534d5d195762392c0a8040 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-210.js @@ -14,13 +14,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: undefined + value: undefined }); Object.defineProperties(arr, { - "0": { - value: undefined - } + "0": { + value: undefined + } }); verifyEqualTo(arr, "0", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js index 5264f7457f5a8811b3d0c265497c719bf904555f..f282f7cb3b0197d54779fe89bb5c88428e1ca8e7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-211.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: null + value: null }); Object.defineProperties(arr, { - "0": { - value: null - } + "0": { + value: null + } }); verifyEqualTo(arr, "0", null); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js index 7d734171fe8c451ed0a0f3494bb4eebe33459d7e..6414e5e35a339fd4af82a4a4191c24693a0a1f6b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-212.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: NaN + value: NaN }); Object.defineProperties(arr, { - "0": { - value: NaN - } + "0": { + value: NaN + } }); verifyEqualTo(arr, "0", NaN); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js index 29609ef25f306fd646c88a3f6e42f7b127fc07f4..20508229627abc84c9103f525eee7bce0ae5633e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-213.js @@ -13,27 +13,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: -0 + value: -0 }); try { - Object.defineProperties(arr, { - "0": { - value: +0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "0": { + value: +0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "0", -0); + verifyEqualTo(arr, "0", -0); - verifyNotWritable(arr, "0"); + verifyNotWritable(arr, "0"); - verifyNotEnumerable(arr, "0"); + verifyNotEnumerable(arr, "0"); - verifyNotConfigurable(arr, "0"); + verifyNotConfigurable(arr, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js index 3efb7835506fb8834a2b7a0eac1a4c6d8092de06..0492fc9891c2683615dd184ed64ba5479a020a87 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-214.js @@ -13,27 +13,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: +0 + value: +0 }); try { - Object.defineProperties(arr, { - "0": { - value: -0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "0": { + value: -0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "0", +0); + verifyEqualTo(arr, "0", +0); - verifyNotWritable(arr, "0"); + verifyNotWritable(arr, "0"); - verifyNotEnumerable(arr, "0"); + verifyNotEnumerable(arr, "0"); - verifyNotConfigurable(arr, "0"); + verifyNotConfigurable(arr, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js index 311a412c6350b82cf07134ccef2b0aace970cdfa..98155875e405d24a9919a883ae7453068d83529e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-215.js @@ -14,13 +14,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: 101 + value: 101 }); Object.defineProperties(arr, { - "0": { - value: 101 - } + "0": { + value: 101 + } }); verifyEqualTo(arr, "0", 101); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js index 85185125e8afe654e799a445424faf6f361cd737..543f09d23302be936d85ed7c3d78af129d871846 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js @@ -14,13 +14,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: "abcd" + value: "abcd" }); Object.defineProperties(arr, { - "0": { - value: "abcd" - } + "0": { + value: "abcd" + } }); verifyEqualTo(arr, "0", "abcd"); @@ -29,4 +29,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js index 1e4cbc9c4fdab837eb4447d50f889978dba64d62..a518691b62417082ddc21b18ac1d68de1998715a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js @@ -14,13 +14,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: true + value: true }); Object.defineProperties(arr, { - "0": { - value: true - } + "0": { + value: true + } }); verifyEqualTo(arr, "0", true); @@ -29,4 +29,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js index b0f97e9f3f5f1f2e4089a6c9861756cf9f602568..5d44c383418dfa98c13fa9fc4e864ee21a578cfe 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js @@ -13,15 +13,17 @@ includes: [propertyHelper.js] var arr = []; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(arr, "0", { - value: obj1 + value: obj1 }); var properties = { - "0": { - value: obj1 - } + "0": { + value: obj1 + } }; Object.defineProperties(arr, properties); @@ -32,4 +34,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js index 8ad990d37b9c5e9d40cd010f091431e576f88979..35ac3a739fd7294421b168de64252a49b5a22bb8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - writable: true + writable: true }); Object.defineProperties(arr, { - "0": { - writable: true - } + "0": { + writable: true + } }); verifyEqualTo(arr, "0", undefined); @@ -28,4 +28,3 @@ verifyWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js index 03026ecbe3bb7a16db2ba679d1b9630d3f867f97..eb5f1748173696bd09c428408f4b89a4a92b0c8e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js @@ -9,19 +9,19 @@ description: > step 1 ) ---*/ - var arg = function () { - return arguments; - }(); +var arg = function() { + return arguments; +}(); - Object.defineProperty(arg, "prop", { - value: 11, - configurable: false - }); +Object.defineProperty(arg, "prop", { + value: 11, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arg, { - prop: { - value: 12, - configurable: true - } - }); + Object.defineProperties(arg, { + prop: { + value: 12, + configurable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js index 748ce948fffc95cc128ed42a20d5b9104122c248..4f86b5e1372d623b6930a51ec8937bccc1ef8dd9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - writable: true, - configurable: true + writable: true, + configurable: true }); Object.defineProperties(arr, { - "0": { - writable: false - } + "0": { + writable: false + } }); verifyEqualTo(arr, "0", undefined); @@ -29,4 +29,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js index debb4e15ad34082b3f6fddae54d7661472906674..7644225b81f956b36f1f1fdc3bd74e1fb2d96611 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js @@ -14,17 +14,17 @@ includes: [propertyHelper.js] var arr = []; function get_func() { - return 10; + return 10; } Object.defineProperty(arr, "0", { - get: get_func + get: get_func }); Object.defineProperties(arr, { - "0": { - get: get_func - } + "0": { + get: get_func + } }); verifyEqualTo(arr, "0", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js index 7d8f78cf7878e6151765252cd6e4d99cbb342edf..6e26cc00418f498d0a85f40af81cbd40f0833795 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-222.js @@ -14,17 +14,17 @@ includes: [propertyHelper.js] var arr = []; function set_func(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - set: set_func + set: set_func }); Object.defineProperties(arr, { - "0": { - set: set_func - } + "0": { + set: set_func + } }); verifyWritable(arr, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js index da7a0bac90620e3ced7164b443721427a73bf99d..6bcd5d2b8e3b70307ecacaa1daa6413b81b59381 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - enumerable: true + enumerable: true }); Object.defineProperties(arr, { - "0": { - enumerable: true - } + "0": { + enumerable: true + } }); verifyEqualTo(arr, "0", undefined); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js index 70563553ebe6e682e57b95d3ed7b9dd44c920f7a..1392677bcbc1f5e16ad08d8f8e9519efd9bab7fd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - enumerable: true, - configurable: true + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "0": { - enumerable: false - } + "0": { + enumerable: false + } }); verifyEqualTo(arr, "0", undefined); @@ -29,4 +29,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js index 7c33a656608a2e8069606bddb1712c41eab3e44c..05a09c6c6ca6b0d382006385a82f914a8cc903e9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - configurable: true + configurable: true }); Object.defineProperties(arr, { - "0": { - configurable: true - } + "0": { + configurable: true + } }); verifyEqualTo(arr, "0", undefined); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js index 70706f009a5f38e07f78d067c39f33331e745f95..dae3f933e69067221145dd7e91f09e2085358967 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - configurable: true + configurable: true }); Object.defineProperties(arr, { - "0": { - configurable: false - } + "0": { + configurable: false + } }); verifyEqualTo(arr, "0", undefined); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js index 58bdad71459b8c100ca32cc01d4dade86b360d99..653550a213b48181685f0e118090d6c9e1540436 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js @@ -15,28 +15,28 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: 3, - configurable: false + value: 3, + configurable: false }); try { - Object.defineProperties(arr, { - "1": { - value: 13, - configurable: true - } - }); + Object.defineProperties(arr, { + "1": { + value: 13, + configurable: true + } + }); } catch (e) { - verifyEqualTo(arr, "1", 3); + verifyEqualTo(arr, "1", 3); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js index 7eaededb838b5a7c9978c9c3a40fb6d594d369ac..a250ae9d821ee4902cc18e56f19c275e0b023770 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-228.js @@ -16,31 +16,31 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: 3, - configurable: false, - enumerable: false + value: 3, + configurable: false, + enumerable: false }); try { - Object.defineProperties(arr, { - "1": { - value: 13, - enumerable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + value: 13, + enumerable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", 3); + verifyEqualTo(arr, "1", 3); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js index 07f79fba30a4b33bb980b3171b756f4510426114..af726bb472c131ff1d81d353908325224b68a3f2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-229.js @@ -15,32 +15,32 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "1", { - set: set_fun, - configurable: false + set: set_fun, + configurable: false }); try { - Object.defineProperties(arr, { - "1": { - value: 13 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + value: 13 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arr, "1", "setVerifyHelpProp"); + verifyWritable(arr, "1", "setVerifyHelpProp"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js index 77e9b5712325449eb31ae3255c5c91c159abb4f2..f7368908640322b00a4b83337cb93c1e085508a5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-230.js @@ -15,28 +15,28 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: 3, - configurable: false + value: 3, + configurable: false }); try { - Object.defineProperties(arr, { - "1": { - set: function () { } - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + set: function() {} + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", 3); + verifyEqualTo(arr, "1", 3); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js index 5211ef4041fbbc35cc85e6f5a426d4c40a60f104..65eab1859c18b35199ebf5258b65c1470755a766 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-231.js @@ -16,13 +16,13 @@ var arr = []; arr[1] = 3; // default value of attributes: writable: true, configurable: true, enumerable: true function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperties(arr, { - "1": { - set: set_fun - } + "1": { + set: set_fun + } }); verifyWritable(arr, "1", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js index 8010987b006acce652a1253baee8500f44bb56db..03d8e1cfd469a13dac3ff67a0f90266570dfbdc7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-232.js @@ -15,17 +15,17 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - get: function () { - return 3; - }, - configurable: true + get: function() { + return 3; + }, + configurable: true }); Object.defineProperties(arr, { - "1": { - value: 12 - } + "1": { + value: 12 + } }); verifyEqualTo(arr, "1", 12); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js index 3bceb0c4d44f0f53dcd0a8d7c9254e5b69bee445..3980d3d2681273e81d2f80ae93843b712921acc3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-233.js @@ -17,29 +17,29 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - configurable: false, - writable: false + configurable: false, + writable: false }); try { - Object.defineProperties(arr, { - "1": { - writable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + writable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", undefined); + verifyEqualTo(arr, "1", undefined); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js index b7e595b56a21f97e9c8f2ce54bd883e6f57359c4..a9e97ed6419b0e2ff087e7849e7ca6941ce91e22 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-234.js @@ -18,30 +18,30 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: 3, - configurable: false, - writable: false + value: 3, + configurable: false, + writable: false }); try { - Object.defineProperties(arr, { - "1": { - value: "abc" - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + value: "abc" + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", 3); + verifyEqualTo(arr, "1", 3); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js index 1d32ba931ccb251fc699883af970b4b05457e2d5..6b05968e0d3174035a6e85c730711efe938fe1ee 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-235.js @@ -15,27 +15,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: +0 + value: +0 }); try { - Object.defineProperties(arr, { - "1": { - value: -0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + value: -0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", +0); + verifyEqualTo(arr, "1", +0); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js index 9cd2f3b62b27722d2a64dad3eb302b8f3f3814c9..d8a49387c8ce0be118350631bc9841f4d25fe187 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-236.js @@ -15,28 +15,28 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: -0 + value: -0 }); try { - Object.defineProperties(arr, { - "1": { - value: +0 - } - }); + Object.defineProperties(arr, { + "1": { + value: +0 + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", -0); + verifyEqualTo(arr, "1", -0); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js index ee9913799548e8d85761311830425d3f31e8a4d0..b0d4a4ca9b5984a1642a001882f7e2c4817c1077 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-237.js @@ -17,27 +17,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: 12 + value: 12 }); try { - Object.defineProperties(arr, { - "1": { - value: 36 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + value: 36 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", 12); + verifyEqualTo(arr, "1", 12); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js index 12f1bdf6bba6a9e773473be80e7aa863210f8bea..2874c575ffc2fef68b05acd63d9ecaa45552f564 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js @@ -16,27 +16,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: "abcd" + value: "abcd" }); try { - Object.defineProperties(arr, { - "1": { - value: "efgh" - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + value: "efgh" + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", "abcd"); + verifyEqualTo(arr, "1", "abcd"); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js index f80453b6b92e28d6bfa25440e9ee38efcd578e3b..491f525f5571f04c2cd1e4517a69fba510ef4e70 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-239.js @@ -16,28 +16,28 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: true + value: true }); try { - Object.defineProperties(arr, { - "1": { - value: false - } - }); + Object.defineProperties(arr, { + "1": { + value: false + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", true); + verifyEqualTo(arr, "1", true); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js index 1bf7cfbe7d0d8f4e136247510f07726f9db14e9d..47298404e79a0da3c3706c9bed6f5fe24d689ce0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-24.js @@ -12,16 +12,16 @@ includes: [propertyHelper.js] Object.defineProperty(this, "prop", { -value: 11, -writable: true, -enumerable: true, -configurable: true + value: 11, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperties(this, { - prop: { - value: 12 - } + prop: { + value: 12 + } }); verifyEqualTo(this, "prop", 12); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js index 602c6232eb6296211c5f8ceba755cb0786e08967..36c03a76895dbc52b6df14acacb7395a3455d6c1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js @@ -14,32 +14,36 @@ includes: [propertyHelper.js] ---*/ var arr = []; -var obj1 = { value: 12 }; -var obj2 = { value: 36 }; +var obj1 = { + value: 12 +}; +var obj2 = { + value: 36 +}; Object.defineProperty(arr, "1", { - value: obj1 + value: obj1 }); try { - Object.defineProperties(arr, { - "1": { - value: obj2 - } - }); + Object.defineProperties(arr, { + "1": { + value: obj2 + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", obj1); + verifyEqualTo(arr, "1", obj1); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js index 79a4db019aadd672006566983cf597f469944960..74406da4a013820e21c41708ce39c9ddd1df8e19 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js @@ -17,29 +17,29 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "1", { - set: set_fun + set: set_fun }); try { - Object.defineProperties(arr, { - "1": { - set: function () { } - } - }); + Object.defineProperties(arr, { + "1": { + set: function() {} + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arr, "1", "setVerifyHelpProp"); + verifyWritable(arr, "1", "setVerifyHelpProp"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js index 68874dde0722afcbdd44cf72782bd53111d8ccfd..814abc3ece116d721a772424a00bf9a808ea0e68 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-242.js @@ -16,29 +16,29 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "1", { - set: set_fun + set: set_fun }); try { - Object.defineProperties(arr, { - "1": { - set: undefined - } - }); + Object.defineProperties(arr, { + "1": { + set: undefined + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arr, "1", "setVerifyHelpProp"); + verifyWritable(arr, "1", "setVerifyHelpProp"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js index 7077984f7b4653852a28c2ccc7a0cddffad3d190..e9e5140eb419fe3859af9e287d1e3a6b1abaf6a3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.js @@ -16,13 +16,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - set: undefined + set: undefined }); Object.defineProperties(arr, { - "1": { - set: undefined - } + "1": { + set: undefined + } }); verifyNotEnumerable(arr, "1"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js index bdc27f3ecdc23852367b4b54b6620eb37416f13c..7d465cd8a03bdb5db51c3571cd90a3b46579a3f2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-244.js @@ -17,31 +17,31 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 36; + return 36; } Object.defineProperty(arr, "1", { - get: get_fun + get: get_fun }); try { - Object.defineProperties(arr, { - "1": { - get: function () { - return 12; - } - } - }); - - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + get: function() { + return 12; + } + } + }); + + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", get_fun()); + verifyEqualTo(arr, "1", get_fun()); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js index f18c954ae1a47e2f6194b3bdbeaac2fcb3f94e37..c4037f25de9e14d9ce2cd61d84ac8beb912aa448 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-245.js @@ -16,28 +16,28 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 36; + return 36; } Object.defineProperty(arr, "1", { - get: get_fun + get: get_fun }); try { - Object.defineProperties(arr, { - "1": { - get: undefined - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + get: undefined + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", get_fun()); + verifyEqualTo(arr, "1", get_fun()); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js index 254a77b654ea3bbc2768823de6b576b1bf83235c..a4f6b477ded667f870d12d63210e2e6e1a549299 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js @@ -17,16 +17,15 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - get: undefined + get: undefined }); Object.defineProperties(arr, { - "1": { - get: undefined - } + "1": { + get: undefined + } }); verifyNotEnumerable(arr, "1"); verifyNotConfigurable(arr, "1"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js index dde8f16936b9ea39365352907a81ffa44f262edf..e80d3aae01916ee9a915310560181292f1b79788 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [12]; Object.defineProperties(arr, { - "0": { - value: 36 - } + "0": { + value: 36 + } }); verifyEqualTo(arr, "0", 36); @@ -26,4 +26,3 @@ verifyWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js index 8dc6f3b24eae6c2246b24eb62d2fcb827ae4a6ea..5d0431684c260e813bf99ae5bbc834909075f7f6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [12]; Object.defineProperties(arr, { - "0": { - value: undefined - } + "0": { + value: undefined + } }); verifyEqualTo(arr, "0", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js index 1af6dc8477f1c2fe7d6b6b51b14185c7bd7bc0b3..25b2ca47fcba7378d6dde9062811df6dd6f8f8d2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [undefined]; Object.defineProperties(arr, { - "0": { - value: 12 - } + "0": { + value: 12 + } }); verifyEqualTo(arr, "0", 12); @@ -26,4 +26,3 @@ verifyWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js index 3597664afaafb6b16e9b79081588365acd48e51c..f6549a4331d383e5a5a4877aed936f4eccbe40e8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js @@ -8,14 +8,14 @@ description: > is thrown when 'O' is not extensible (8.12.9 step 3) ---*/ - var obj = {}; - Object.preventExtensions(obj); +var obj = {}; +Object.preventExtensions(obj); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); }); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js index b9e5ace9ad4a46c3f63107693c725df4e44c99c1..0cfd563b5537cd222c8a969ae7310788be210fd6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [100]; Object.defineProperties(arr, { - "0": { - writable: false - } + "0": { + writable: false + } }); verifyEqualTo(arr, "0", 100); @@ -26,4 +26,3 @@ verifyNotWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js index a4f6abd723fef8afc8e99be372756ade851aad04..bc07d4e5259d75e8069b901c57ae81f4260fadda 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [12]; Object.defineProperties(arr, { - "0": { - enumerable: false - } + "0": { + enumerable: false + } }); verifyEqualTo(arr, "0", 12); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js index e9d04518ace11d12ccdfe4b6c421694ae02bb273..5d462269c3ab0b17da3aa1f68bf57582555f76ce 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [12]; Object.defineProperties(arr, { - "0": { - configurable: false - } + "0": { + configurable: false + } }); verifyEqualTo(arr, "0", 12); @@ -26,4 +26,3 @@ verifyWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js index 3d8a8044cf0e85c60a5677374cfdf24a7c830119..34fafda67f7518f94057ab456299559e50714c2d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js @@ -15,11 +15,11 @@ includes: [propertyHelper.js] var arr = [12]; Object.defineProperties(arr, { - "0": { - value: 36, - writable: false, - configurable: false - } + "0": { + value: 36, + writable: false, + configurable: false + } }); verifyEqualTo(arr, "0", 36); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js index d97250fe6b6f7d0bfd16fb44c1385b9c6e34b4fa..930ca2baaf7d0ca891d4754690d3163027b9af6e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js @@ -15,20 +15,20 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 36; + return 36; } Object.defineProperty(arr, "0", { - get: function () { - return 12; - }, - configurable: true + get: function() { + return 12; + }, + configurable: true }); Object.defineProperties(arr, { - "0": { - get: get_fun - } + "0": { + get: get_fun + } }); verifyEqualTo(arr, "0", get_fun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js index 8321e0c54fc378495c4911ab127a427ddabe439a..10d56858528dff9a16116d5b90bb95fa58d22351 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-255.js @@ -15,16 +15,16 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - get: function () { - return 12; - }, - configurable: true + get: function() { + return 12; + }, + configurable: true }); Object.defineProperties(arr, { - "0": { - get: undefined - } + "0": { + get: undefined + } }); verifyNotEnumerable(arr, "0"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js index 202953c7192b5bb94a7dbf243c8063d2d525bcab..c71b8b28c301aa8298f3cab490add9067d814526 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-256.js @@ -15,18 +15,18 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 36; + return 36; } Object.defineProperty(arr, "0", { - get: undefined, - configurable: true + get: undefined, + configurable: true }); Object.defineProperties(arr, { - "0": { - get: get_fun - } + "0": { + get: get_fun + } }); verifyEqualTo(arr, "0", get_fun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js index 21f3d4fa1cfcb4eb0c69981dd5c8b24d495867ca..7ef40227699282c0303959d841e42b158aac1cff 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js @@ -15,22 +15,21 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true + set: function() {}, + configurable: true }); Object.defineProperties(arr, { - "0": { - set: set_fun - } + "0": { + set: set_fun + } }); verifyWritable(arr, "0", "setVerifyHelpProp"); verifyNotEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js index be6f9065e6fb16902aa6a26621b09e9bd607f585..ebe68bdd9f7160753f814096a87d0deabd601f79 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js @@ -15,14 +15,14 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true + set: function() {}, + configurable: true }); Object.defineProperties(arr, { - "0": { - set: undefined - } + "0": { + set: undefined + } }); verifyNotEnumerable(arr, "0"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js index 5c9552d4d80de1f97de1bb7110eddf524bef40d7..bfc6e92ee1e4c668fb454963718b35f533e37ab8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-259.js @@ -15,17 +15,17 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - set: undefined, - configurable: true + set: undefined, + configurable: true }); Object.defineProperties(arr, { - "0": { - set: set_fun - } + "0": { + set: set_fun + } }); verifyWritable(arr, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js index 507a1c24986cf371c17a5d7838106ae03cd0386a..6aaeef9a90de2deccd8e5548c514cd85e3141a72 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-26.js @@ -9,15 +9,15 @@ description: > step 4.a) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: { - configurable: true, - enumerable: true - } - }); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperties(obj, { + prop: { + configurable: true, + enumerable: true + } +}); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true'); assert.sameValue(typeof desc.value, "undefined", 'typeof desc.value'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js index 2afcae34b67d7a8b0199718ce424490fb834a445..cef2a2c89b98220d41e0dda2e611ffb10472b103 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-260.js @@ -15,18 +15,18 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - set: set_fun, - enumerable: true, - configurable: true + set: set_fun, + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "0": { - enumerable: false - } + "0": { + enumerable: false + } }); verifyWritable(arr, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js index f00373abdc8d1b0f6e1ebb9c18154e2191fa4066..95d0592bf2f98a76b73543c43b856b7866d6a534 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js @@ -15,21 +15,20 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - set: set_fun, - configurable: true + set: set_fun, + configurable: true }); Object.defineProperties(arr, { - "0": { - configurable: false - } + "0": { + configurable: false + } }); verifyWritable(arr, "0", "setVerifyHelpProp"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js index c0b2e56007009e2b3db387b4658df63af0b59382..89c37c33c279a01dc3613563469ca64323007e33 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js @@ -15,26 +15,27 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 36; + return 36; } + function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - get: function () { - return 12; - }, - set: set_fun, - enumerable: true, - configurable: true + get: function() { + return 12; + }, + set: set_fun, + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "0": { - get: get_fun, - enumerable: false, - configurable: false - } + "0": { + get: get_fun, + enumerable: false, + configurable: false + } }); verifyEqualTo(arr, "0", get_fun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js index d0dbf4145938aa9dd423987b6d95455e4758d76a..aab9995f92449b6c4284e4a2593ab45a83f63bef 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js @@ -10,15 +10,15 @@ description: > (15.4.5.1 step 4.e) ---*/ - var arr = []; +var arr = []; - arr.length = 3; // default value of length: writable: true, configurable: false, enumerable: false +arr.length = 3; // default value of length: writable: true, configurable: false, enumerable: false - Object.defineProperties(arr, { - "1": { - value: 26 - } - }); +Object.defineProperties(arr, { + "1": { + value: 26 + } +}); assert.sameValue(arr.length, 3, 'arr.length'); assert.sameValue(arr[1], 26, 'arr[1]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js index 5fa17de2b4d744229070cc1889070c7cfc88f9d3..03833d7c42ae0ad64528d48087f97754660ca8a9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-264.js @@ -10,15 +10,15 @@ description: > property in 'O' (15.4.5.1 step 4.e.ii) ---*/ - var arr = []; +var arr = []; - arr.length = 3; // default value of length: writable: true, configurable: false, enumerable: false +arr.length = 3; // default value of length: writable: true, configurable: false, enumerable: false - Object.defineProperties(arr, { - "3": { - value: 26 - } - }); +Object.defineProperties(arr, { + "3": { + value: 26 + } +}); assert.sameValue(arr.length, 4, 'arr.length'); assert.sameValue(arr[3], 26, 'arr[3]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js index 66cc2afd9c222f230d44e30c4ab01f8acc7bff99..c20b84c7f399e1edd1ad993fdbddf4af0b203642 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-265.js @@ -10,13 +10,13 @@ description: > length property in 'O' (15.4.5.1 step 4.e.ii) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - "5": { - value: 26 - } - }); +Object.defineProperties(arr, { + "5": { + value: 26 + } +}); assert.sameValue(arr.length, 6, 'arr.length'); assert.sameValue(arr[5], 26, 'arr[5]'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js index 8183fd327714ad81492901a04d5f437aa06256f6..886cbecff952623c2a1f38355c80bcc9c4aa9041 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js @@ -15,12 +15,12 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperties(arr, { - "property": { - value: 12, - writable: true, - enumerable: true, - configurable: true - } + "property": { + value: 12, + writable: true, + enumerable: true, + configurable: true + } }); verifyEqualTo(arr, "property", 12); @@ -31,6 +31,5 @@ verifyEnumerable(arr, "property"); verifyConfigurable(arr, "property"); if (arr.length !== 0) { - $ERROR('Expected arr.length === 0, actually ' + arr.length); + $ERROR('Expected arr.length === 0, actually ' + arr.length); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js index 504bb0dd082a457a36052d641bb92553773ab1cf..3a2ac372d44ac31e8e953bc2fb656838f22eced2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js @@ -14,19 +14,20 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 12; + return 12; } + function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperties(arr, { - "property": { - get: get_fun, - set: set_fun, - enumerable: true, - configurable: true - } + "property": { + get: get_fun, + set: set_fun, + enumerable: true, + configurable: true + } }); verifyEqualTo(arr, "property", get_fun()); @@ -37,6 +38,5 @@ verifyEnumerable(arr, "property"); verifyConfigurable(arr, "property"); if (arr.length !== 0) { - $ERROR('Expected arr.length === 0, actually ' + arr.length); + $ERROR('Expected arr.length === 0, actually ' + arr.length); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js index 442ce615a3c79075e73386386bcc284d76a6035f..7c9b38e2a8ddd00c6602ef9059cfd9a529be0d55 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js @@ -11,26 +11,28 @@ includes: [propertyHelper.js] ---*/ var arr = []; + function get_fun() { - return 12; + return 12; } + function set_fun(value) { - arr.verifySetFun = value; + arr.verifySetFun = value; } Object.defineProperty(arr, "property", { - get: function () { - return 36; - }, - enumerable: true, - configurable: true + get: function() { + return 36; + }, + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "property": { - get: get_fun, - set: set_fun, - enumerable: false - } + "property": { + get: get_fun, + set: set_fun, + enumerable: false + } }); verifyEqualTo(arr, "property", get_fun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js index fbd5296bc89e38f47f02c160be0391d897a6bae0..5a5f33fbb90aa27ec2b0d1447eb0ba593dc3dc18 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js @@ -15,11 +15,11 @@ var arr = []; arr.property = 12; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(arr, { - "property": { - writable: false, - enumerable: false, - configurable: false - } + "property": { + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(arr, "property", 12); @@ -30,6 +30,5 @@ verifyNotEnumerable(arr, "property"); verifyNotConfigurable(arr, "property"); if (arr.length !== 0) { - $ERROR('Expected arr.length === 0, actually ' + arr.length); + $ERROR('Expected arr.length === 0, actually ' + arr.length); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js index a2b9355952bf0f7ce9cc5256d14bbe48f123f479..6e5601ac3347f9fc6e132462eeac04b55aab37bb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js @@ -9,15 +9,15 @@ description: > 'desc' (8.12.9 step 4.a.i) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: { - writable: true - } - }); +Object.defineProperties(obj, { + prop: { + writable: true + } +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true'); assert.sameValue(typeof desc.value, "undefined", 'typeof desc.value'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js index 3d82d94571d53c03ba8109eca0118afb6e35b671..128bdf8be0f46a1a8b4c0a3d98f168cee7d8b770 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-270.js @@ -15,27 +15,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "property", { - value: 12 + value: 12 }); try { - Object.defineProperties(arr, { - "property": { - value: 36 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "property": { + value: 36 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "property", 12); + verifyEqualTo(arr, "property", 12); - verifyNotWritable(arr, "property"); + verifyNotWritable(arr, "property"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js index a305f8b0e405bebe75fa00258f3ba60bb79272e4..00e6605b9eb7a10f9132f2fa99eb1d90f4aeaa95 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-271.js @@ -15,27 +15,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "property", { - writable: false + writable: false }); try { - Object.defineProperties(arr, { - "property": { - writable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "property": { + writable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "property", undefined); + verifyEqualTo(arr, "property", undefined); - verifyNotWritable(arr, "property"); + verifyNotWritable(arr, "property"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js index b6a732615dab0ebb360d022fc56b7046c9bf662a..deacff500766254f732c0aaa748f3564032f38b5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-272.js @@ -15,28 +15,28 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "property", { - value: 12, - enumerable: false + value: 12, + enumerable: false }); try { - Object.defineProperties(arr, { - "property": { - enumerable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "property": { + enumerable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "property", 12); + verifyEqualTo(arr, "property", 12); - verifyNotWritable(arr, "property"); + verifyNotWritable(arr, "property"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js index 5a403be99a1f594c41e7939b363d8898eaf383f9..c300e411d3e2bc5955375632ff378d51b142a486 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-273.js @@ -15,27 +15,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "property", { - value: 12 + value: 12 }); try { - Object.defineProperties(arr, { - "property": { - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "property": { + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "property", 12); + verifyEqualTo(arr, "property", 12); - verifyNotWritable(arr, "property"); + verifyNotWritable(arr, "property"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js index 8154599e0e737864b3a0d56bead389bf4d3d6eab..8d1baaab9631196363ba377e59eee5a2ad528afb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js @@ -14,36 +14,37 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 37; + return 37; } + function set_fun(value) { - arr.verifySetFun = value; + arr.verifySetFun = value; } Object.defineProperty(arr, "property", { - get: get_fun, - set: set_fun + get: get_fun, + set: set_fun }); try { - Object.defineProperties(arr, { - "property": { - get: function () { - return 36; - } - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "property": { + get: function() { + return 36; + } + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "property", get_fun()); + verifyEqualTo(arr, "property", get_fun()); - verifyWritable(arr, "property", "verifySetFun"); + verifyWritable(arr, "property", "verifySetFun"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js index 8a1dfa710e5a061ea99ccc52230fb9ad17f64b02..1dbc7bb0f44b9dabbab9fe44db47ba2f15409821 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js @@ -15,27 +15,27 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "property", { - set: set_fun + set: set_fun }); try { - Object.defineProperties(arr, { - "property": { - set: function () { } - } - }); + Object.defineProperties(arr, { + "property": { + set: function() {} + } + }); } catch (e) { - verifyWritable(arr, "property", "setVerifyHelpProp"); + verifyWritable(arr, "property", "setVerifyHelpProp"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js index a185104aae7cbdeaa0406b4a0c95c6519ccbf375..5da3d5c05ec75082504d021644d6ec4f51de2bcf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-276.js @@ -15,29 +15,29 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "property", { - set: set_fun, - enumerable: false + set: set_fun, + enumerable: false }); try { - Object.defineProperties(arr, { - "property": { - enumerable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "property": { + enumerable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arr, "property", "setVerifyHelpProp"); + verifyWritable(arr, "property", "setVerifyHelpProp"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js index 13c7086f333872506efed93c8f8f3029affdad79..c77ec6b4778d3af20c4ebebdf59d02aff4f86649 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-277.js @@ -15,29 +15,29 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "property", { - set: set_fun, - configurable: false + set: set_fun, + configurable: false }); try { - Object.defineProperties(arr, { - "property": { - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "property": { + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arr, "property", "setVerifyHelpProp"); + verifyWritable(arr, "property", "setVerifyHelpProp"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js index b2acfa15aa15ed1a049de55f34ec26c426223ff2..b8bcd8b2e9c82e00d1b8aee2e6792261f217eba4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-278.js @@ -16,18 +16,18 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); delete arg[0]; Object.defineProperties(arg, { - "0": { - value: 10, - writable: true, - enumerable: true, - configurable: true - } + "0": { + value: 10, + writable: true, + enumerable: true, + configurable: true + } }); verifyEqualTo(arg, "0", 10); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js index d2df5266b8fd96d082b51789d2fae0bfaa50b3c2..17f8a4a9aaad90a10084bf220e7ec24197987e6c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js @@ -16,25 +16,26 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); delete arg[0]; function get_func() { - return 10; + return 10; } + function set_func(value) { - arg.setVerifyHelpProp = value; + arg.setVerifyHelpProp = value; } Object.defineProperties(arg, { - "0": { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - } + "0": { + get: get_func, + set: set_func, + enumerable: true, + configurable: true + } }); verifyEqualTo(arg, "0", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js index 9b31ad36e0ccd8293f6a35da3876f685d710b67d..5e6dff816a2f3fdea8441fcdc9b0998b0efe0a01 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js @@ -13,19 +13,19 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - prop: { - value: 1001 - } + prop: { + value: 1001 + } }); if (isWritable(obj, "prop")) { - $ERROR('Expected obj["prop"] not to be writable.'); + $ERROR('Expected obj["prop"] not to be writable.'); } if (!obj.hasOwnProperty("prop")) { - $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop")); + $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop")); } if (obj.prop !== 1001) { - $ERROR('Expected obj.prop === 1001, actually ' + obj.prop); + $ERROR('Expected obj.prop === 1001, actually ' + obj.prop); } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js index 4f4d8ef5725f4a98cb043f901548c6ec60654272..4e90dcae8e06c04d715df9b84c2fe37631663d98 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-280.js @@ -10,35 +10,35 @@ description: > attribute values of 'P' (10.6 [[DefineOwnProperty]] step 3) ---*/ - var arg; - - (function fun(a, b, c) { - arg = arguments; - } (0, 1, 2)); - - function get_func1() { - return 10; - } - - Object.defineProperty(arg, "0", { - get: get_func1, - enumerable: true, - configurable: true - }); - - function get_func2() { - return 20; - } - - Object.defineProperties(arg, { - "0": { - get: get_func2, - enumerable: false, - configurable: false - } - }); - - var desc = Object.getOwnPropertyDescriptor(arg, "0"); +var arg; + +(function fun(a, b, c) { + arg = arguments; +}(0, 1, 2)); + +function get_func1() { + return 10; +} + +Object.defineProperty(arg, "0", { + get: get_func1, + enumerable: true, + configurable: true +}); + +function get_func2() { + return 20; +} + +Object.defineProperties(arg, { + "0": { + get: get_func2, + enumerable: false, + configurable: false + } +}); + +var desc = Object.getOwnPropertyDescriptor(arg, "0"); assert.sameValue(desc.get, get_func2, 'desc.get'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js index 45585e97c5c295d977ddfd682226a3a839de21c6..9254d3da3ea6b80820d236d34e77d877ff360f1e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-281.js @@ -15,16 +15,16 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); Object.defineProperties(arg, { - "0": { - value: 20, - writable: false, - enumerable: false, - configurable: false - } + "0": { + value: 20, + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "0", 20); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js index ab2c2848802e337f5b284cd16d8ed814d2715fdd..01c1bdf287fad1df7144dba90623dc7b6530d60c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-282.js @@ -16,34 +16,34 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); Object.defineProperty(arg, "0", { - value: 0, - writable: false, - configurable: false + value: 0, + writable: false, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - value: 10 - } - }); + Object.defineProperties(arg, { + "0": { + value: 10 + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", 0); + verifyEqualTo(arg, "0", 0); - verifyNotWritable(arg, "0"); + verifyNotWritable(arg, "0"); - verifyEnumerable(arg, "0"); + verifyEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js index 151852c146f68bfed4e7ba01286c2d1f33d91852..a00a24558fa3ffe20710e67a29f4f839581f876e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-283.js @@ -16,35 +16,35 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); Object.defineProperty(arg, "0", { - value: 0, - writable: false, - enumerable: false, - configurable: false + value: 0, + writable: false, + enumerable: false, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - writable: true - } - }); + Object.defineProperties(arg, { + "0": { + writable: true + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", 0); + verifyEqualTo(arg, "0", 0); - verifyNotWritable(arg, "0"); + verifyNotWritable(arg, "0"); - verifyNotEnumerable(arg, "0"); + verifyNotEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js index dbe08b59f971ab2f73e11a38b1e4928597f5c8cb..b7401b4e2e2b8990a7c3ad827a17597219c991b6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-284.js @@ -16,35 +16,35 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); Object.defineProperty(arg, "0", { - value: 0, - writable: false, - enumerable: true, - configurable: false + value: 0, + writable: false, + enumerable: true, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - enumerable: false - } - }); + Object.defineProperties(arg, { + "0": { + enumerable: false + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", 0); + verifyEqualTo(arg, "0", 0); - verifyNotWritable(arg, "0"); + verifyNotWritable(arg, "0"); - verifyEnumerable(arg, "0"); + verifyEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js index 362cc2dfbeeff4b28daf2f1de82c453cc63d3380..80f05bf0fc2949dd10f360425b204171d8f81504 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-285.js @@ -16,35 +16,35 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); Object.defineProperty(arg, "0", { - value: 0, - writable: false, - enumerable: false, - configurable: false + value: 0, + writable: false, + enumerable: false, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - configurable: true - } - }); + Object.defineProperties(arg, { + "0": { + configurable: true + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", 0); + verifyEqualTo(arg, "0", 0); - verifyNotWritable(arg, "0"); + verifyNotWritable(arg, "0"); - verifyNotEnumerable(arg, "0"); + verifyNotEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js index c65a852dc123c00b964a07712e3a2ec65afa3c29..3b7581a9cf8948ab36ed50fd1bfbc1760fbde2af 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-286.js @@ -11,33 +11,33 @@ description: > [[DefineOwnProperty]] step 4) ---*/ - var arg; +var arg; - (function fun(a, b, c) { - arg = arguments; - } (0, 1, 2)); +(function fun(a, b, c) { + arg = arguments; +}(0, 1, 2)); - function get_func1() { - return 0; - } +function get_func1() { + return 0; +} - Object.defineProperty(arg, "0", { - get: get_func1, - enumerable: false, - configurable: false - }); +Object.defineProperty(arg, "0", { + get: get_func1, + enumerable: false, + configurable: false +}); - function get_func2() { - return 10; - } +function get_func2() { + return 10; +} assert.throws(TypeError, function() { - Object.defineProperties(arg, { - "0": { - get: get_func2 - } - }); + Object.defineProperties(arg, { + "0": { + get: get_func2 + } + }); }); - var desc = Object.getOwnPropertyDescriptor(arg, "0"); +var desc = Object.getOwnPropertyDescriptor(arg, "0"); assert.sameValue(desc.get, get_func1, 'desc.get'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js index 798298cf88ebc623793b3d2178daf076003a71b5..df2778efb78103aa6503491173f0663bc787acaf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-287.js @@ -11,34 +11,34 @@ description: > [[DefineOwnProperty]] step 4) ---*/ - var arg; +var arg; - (function fun(a, b, c) { - arg = arguments; - }(0, 1, 2)); +(function fun(a, b, c) { + arg = arguments; +}(0, 1, 2)); - function get_func() { - return 0; - } +function get_func() { + return 0; +} - Object.defineProperty(arg, "0", { - get: get_func, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(arg, "0", { + get: get_func, + set: undefined, + enumerable: false, + configurable: false +}); - function set_func(value) { - arg.setVerifyHelpProp = value; - } +function set_func(value) { + arg.setVerifyHelpProp = value; +} assert.throws(TypeError, function() { - Object.defineProperties(arg, { - "0": { - set: set_func - } - }); + Object.defineProperties(arg, { + "0": { + set: set_func + } + }); }); - var desc = Object.getOwnPropertyDescriptor(arg, "0"); +var desc = Object.getOwnPropertyDescriptor(arg, "0"); assert.sameValue(desc.get, get_func, 'desc.get'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js index b2ed708b420e90658306b66222931318f5125813..0bcc9bc3e2352794b12f375e7e5b4dd374da3a59 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js @@ -16,36 +16,36 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); function get_func() { - return 0; + return 0; } Object.defineProperty(arg, "0", { - get: get_func, - enumerable: true, - configurable: false + get: get_func, + enumerable: true, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - enumerable: false - } - }); + Object.defineProperties(arg, { + "0": { + enumerable: false + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", get_func()); + verifyEqualTo(arg, "0", get_func()); - verifyEnumerable(arg, "0"); + verifyEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js index 223497d044eb53ae2654960701ea685dc8bc25cd..42169d9c87be8a522fe2496940f9bd8e4ca1ae1f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-289.js @@ -16,36 +16,36 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); function get_func() { - return 0; + return 0; } Object.defineProperty(arg, "0", { - get: get_func, - enumerable: true, - configurable: false + get: get_func, + enumerable: true, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - configurable: true - } - }); + Object.defineProperties(arg, { + "0": { + configurable: true + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", get_func()); + verifyEqualTo(arg, "0", get_func()); - verifyEnumerable(arg, "0"); + verifyEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js index 3080c1615e129b424072bed01eea48285b31e9bc..fb45a1a6fb2dfc957f32b0c91c813180db09927f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js @@ -9,14 +9,16 @@ description: > descriptor 'desc' (8.12.9 step 4.a.i) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: { value: 1001} - }); +Object.defineProperties(obj, { + prop: { + value: 1001 + } +}); - for (var prop in obj) { - if (obj.hasOwnProperty(prop)) { - assert.notSameValue(prop, "prop", 'prop'); - } - } +for (var prop in obj) { + if (obj.hasOwnProperty(prop)) { + assert.notSameValue(prop, "prop", 'prop'); + } +} diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js index 3c8440c16774875a162f9aeb13473ee20017ec4b..8fb59187a6c7e972d2679dfc40f49b94495f20c8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js @@ -16,18 +16,18 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }(0, 1, 2)); delete arg[0]; Object.defineProperties(arg, { - "0": { - value: 10, - writable: false, - enumerable: false, - configurable: false - } + "0": { + value: 10, + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "0", 10); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js index eb1a968f7ce84f32f89cf45636a2793e3e19fce0..c885c76ceeba47306086307325443be1ec404bcf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js @@ -16,25 +16,26 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }(0, 1, 2)); delete arg[0]; function get_func() { - return 10; + return 10; } + function set_func(value) { - arg.setVerifyHelpProp = value; + arg.setVerifyHelpProp = value; } Object.defineProperties(arg, { - "0": { - get: get_func, - set: set_func, - enumerable: false, - configurable: false - } + "0": { + get: get_func, + set: set_func, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "0", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js index be6a0ea58c3b73a74e0f178e6f111caa1bde1b17..da3cc57d180c02991c99cf304baad1563e96726f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js @@ -16,29 +16,29 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }(0, 1, 2)); function get_func1() { - return 10; + return 10; } Object.defineProperty(arg, "0", { - get: get_func1, - enumerable: true, - configurable: true + get: get_func1, + enumerable: true, + configurable: true }); function get_func2() { - return 20; + return 20; } Object.defineProperties(arg, { - "0": { - get: get_func2, - enumerable: false, - configurable: false - } + "0": { + get: get_func2, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "0", get_func2()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js index d0f9cc9f8a8408d8c200f4a8d01305117f0944c3..6a9c048528f2fbc5b2d2563b8f268c0fb012d3cd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-293.js @@ -16,16 +16,16 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }(0, 1, 2)); Object.defineProperties(arg, { - "0": { - value: 20, - writable: false, - enumerable: false, - configurable: false - } + "0": { + value: 20, + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "0", 20); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js index ef8834ed3b289304ced94ff11543abd2d48c95e0..13b0269da1c8afd92907efa4f02f5ba3cd824c0b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-294.js @@ -16,34 +16,34 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }()); Object.defineProperty(arg, "0", { - value: 0, - writable: false, - configurable: false + value: 0, + writable: false, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - value: 10 - } - }); + Object.defineProperties(arg, { + "0": { + value: 10 + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", 0); + verifyEqualTo(arg, "0", 0); - verifyNotWritable(arg, "0"); + verifyNotWritable(arg, "0"); - verifyNotEnumerable(arg, "0"); + verifyNotEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js index 6b23dcafae7c1ca0560e7680187ab2f4d4571e4b..42dc477b560c244334c5dab88ba8b3fbcda0f8ae 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-295.js @@ -16,35 +16,35 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }()); Object.defineProperty(arg, "0", { - value: 0, - writable: false, - enumerable: false, - configurable: false + value: 0, + writable: false, + enumerable: false, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - writable: true - } - }); + Object.defineProperties(arg, { + "0": { + writable: true + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", 0); + verifyEqualTo(arg, "0", 0); - verifyNotWritable(arg, "0"); + verifyNotWritable(arg, "0"); - verifyNotEnumerable(arg, "0"); + verifyNotEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js index 569a0618aaf1485266b907ef027f76d6a4ee319a..7be2e646eefe44fa018ecc5bbbe5ea633abc3615 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-296.js @@ -16,35 +16,35 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }()); Object.defineProperty(arg, "0", { - value: 0, - writable: false, - enumerable: true, - configurable: false + value: 0, + writable: false, + enumerable: true, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - enumerable: false - } - }); + Object.defineProperties(arg, { + "0": { + enumerable: false + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", 0); + verifyEqualTo(arg, "0", 0); - verifyNotWritable(arg, "0"); + verifyNotWritable(arg, "0"); - verifyEnumerable(arg, "0"); + verifyEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js index c481b0d2740e82b1cf42bdec2a6c361f9c7f6268..e59a4f51bc413b2f9e94a21c58023ff97a218228 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-297.js @@ -16,35 +16,35 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }()); Object.defineProperty(arg, "0", { - value: 0, - writable: false, - enumerable: false, - configurable: false + value: 0, + writable: false, + enumerable: false, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - configurable: true - } - }); + Object.defineProperties(arg, { + "0": { + configurable: true + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", 0); + verifyEqualTo(arg, "0", 0); - verifyNotWritable(arg, "0"); + verifyNotWritable(arg, "0"); - verifyNotEnumerable(arg, "0"); + verifyNotEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js index 82d464a7fc884f601ac8b2777625eef5c98255a5..5247a1c023734c4a640b01db6d83e9bc3bee9f50 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-298.js @@ -16,38 +16,38 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }()); function get_func1() { - return 0; + return 0; } Object.defineProperty(arg, "0", { - get: get_func1, - enumerable: false, - configurable: false + get: get_func1, + enumerable: false, + configurable: false }); function get_func2() { - return 10; + return 10; } try { - Object.defineProperties(arg, { - "0": { - get: get_func2 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arg, { + "0": { + get: get_func2 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", get_func1()); + verifyEqualTo(arg, "0", get_func1()); - verifyNotEnumerable(arg, "0"); + verifyNotEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js index 409ca275b778ad604cac3eaf1dc78c013697d38f..f8483571d37bc388ba997649057cda0e68f7d81c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-299.js @@ -16,39 +16,39 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }()); function get_func() { - return 0; + return 0; } Object.defineProperty(arg, "0", { - get: get_func, - set: undefined, - enumerable: false, - configurable: false + get: get_func, + set: undefined, + enumerable: false, + configurable: false }); function set_func(value) { - arg.setVerifyHelpProp = value; + arg.setVerifyHelpProp = value; } try { - Object.defineProperties(arg, { - "0": { - set: set_func - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arg, { + "0": { + set: set_func + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", get_func()); + verifyEqualTo(arg, "0", get_func()); - verifyNotEnumerable(arg, "0"); + verifyNotEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js index aa93f1f028a9e9065fae265a64bfa8c27edd6de5..44393b0041d43fc59bd963cd6b2af9ef3de4574e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-3.js @@ -8,24 +8,24 @@ description: > an inherited data property (8.12.9 step 1 ) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - value: 11, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + value: 11, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - value: 12, - configurable: false - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 13, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + value: 13, + configurable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js index 2811ce85e0a43401cc53a7da62672cf6b0ff1485..56f43b86f601d786c8ccaf9e9df670aa4d2123cf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js @@ -14,16 +14,17 @@ var obj = {}; Object.defineProperties(obj, { - prop: { value: 1001 } + prop: { + value: 1001 + } }); verifyNotConfigurable(obj, "prop"); if (!obj.hasOwnProperty("prop")) { - $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop")); + $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop")); } if (obj.prop !== 1001) { - $ERROR('Expected obj.prop === 1001, actually ' + obj.prop); + $ERROR('Expected obj.prop === 1001, actually ' + obj.prop); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js index d49318a5c8ac89a3797f46d2fbb49d7c350f5ff3..1042edc13beda261d7272796253b8383cfe5f2d7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js @@ -16,35 +16,35 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }()); function get_func() { - return 0; + return 0; } Object.defineProperty(arg, "0", { - get: get_func, - enumerable: true, - configurable: false + get: get_func, + enumerable: true, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - enumerable: false - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arg, { + "0": { + enumerable: false + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", get_func()); + verifyEqualTo(arg, "0", get_func()); - verifyEnumerable(arg, "0"); + verifyEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js index 0a4d2f11712e5627b6006c2577c2578ea3ce5d01..686311e13ca69dfcb49912ee3e38df42127431be 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-301.js @@ -16,35 +16,35 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }()); function get_func() { - return 0; + return 0; } Object.defineProperty(arg, "0", { - get: get_func, - enumerable: true, - configurable: false + get: get_func, + enumerable: true, + configurable: false }); try { - Object.defineProperties(arg, { - "0": { - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arg, { + "0": { + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "0", get_func()); + verifyEqualTo(arg, "0", get_func()); - verifyEnumerable(arg, "0"); + verifyEnumerable(arg, "0"); - verifyNotConfigurable(arg, "0"); + verifyNotConfigurable(arg, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js index f327628acbeb867f77fa1df5e7131663474f4a04..616737e3fb1158680d74e1bce6b8ffd7645a5685 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.js @@ -11,17 +11,17 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); Object.defineProperties(arg, { - "genericProperty": { - value: 1001, - writable: true, - enumerable: true, - configurable: true - } + "genericProperty": { + value: 1001, + writable: true, + enumerable: true, + configurable: true + } }); verifyEqualTo(arg, "genericProperty", 1001); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js index 162369ec91d536382df5e6490396e576ec8429fc..f9fa042ffe077873d69d70ef3bf3cff49bde12e1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js @@ -11,23 +11,24 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); function getFun() { - return "getFunctionString"; + return "getFunctionString"; } + function setFun(value) { - arg.testGetFunction = value; + arg.testGetFunction = value; } Object.defineProperties(arg, { - "genericProperty": { - get: getFun, - set: setFun, - enumerable: true, - configurable: true - } + "genericProperty": { + get: getFun, + set: setFun, + enumerable: true, + configurable: true + } }); verifyEqualTo(arg, "genericProperty", getFun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js index 6de139ec5d97f0d6f4929f774a5bee92624d9299..8c3d0a57f8e5c4f3e0554e646e24875e9f967fe6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js @@ -11,34 +11,35 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); Object.defineProperty(arg, "genericProperty", { - get: function () { - return 1001; - }, - set: function (value) { - arg.testGetFunction1 = value; - }, - enumerable: true, - configurable: true + get: function() { + return 1001; + }, + set: function(value) { + arg.testGetFunction1 = value; + }, + enumerable: true, + configurable: true }); function getFun() { - return "getFunctionString"; + return "getFunctionString"; } + function setFun(value) { - arg.testGetFunction = value; + arg.testGetFunction = value; } Object.defineProperties(arg, { - "genericProperty": { - get: getFun, - set: setFun, - enumerable: false, - configurable: false - } + "genericProperty": { + get: getFun, + set: setFun, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "genericProperty", getFun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js index a066ade12c4282786809236aab59deb9bec2e368..111feb5bc1f3a07111cf13d14402e4c89415afca 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js @@ -11,23 +11,23 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); Object.defineProperty(arg, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperties(arg, { - "genericProperty": { - value: 1002, - enumerable: false, - configurable: false - } + "genericProperty": { + value: 1002, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "genericProperty", 1002); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js index e1ae25ad5688e8258c3aa45f4fa1c3d4993fcb78..14968edc0a0e30ef1fb0217de815a3e1788e2005 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js @@ -11,35 +11,35 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); Object.defineProperty(arg, "genericProperty", { - value: 1001, - writable: false, - configurable: false + value: 1001, + writable: false, + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - value: 1002 - } - }); + Object.defineProperties(arg, { + "genericProperty": { + value: 1002 + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "genericProperty", 1001); + verifyEqualTo(arg, "genericProperty", 1001); - verifyNotWritable(arg, "genericProperty"); + verifyNotWritable(arg, "genericProperty"); - verifyNotEnumerable(arg, "genericProperty"); + verifyNotEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js index 34fafef04e9e53d4bbc4988c73aaf88b592da255..f4309ee3ad70f433152d2b5d16264c335173acbf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-307.js @@ -11,34 +11,34 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); Object.defineProperty(arg, "genericProperty", { - writable: false, - configurable: false + writable: false, + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - writable: true - } - }); + Object.defineProperties(arg, { + "genericProperty": { + writable: true + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "genericProperty", undefined); + verifyEqualTo(arg, "genericProperty", undefined); - verifyNotWritable(arg, "genericProperty"); + verifyNotWritable(arg, "genericProperty"); - verifyNotEnumerable(arg, "genericProperty"); + verifyNotEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js index 8e014dbf0d82480134326ca74d5a0b4e0160801c..6052175b1a654b6a6ab0803c636272fe6fdbff79 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-308.js @@ -11,34 +11,34 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); Object.defineProperty(arg, "genericProperty", { - enumerable: true, - configurable: false + enumerable: true, + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - enumerable: false - } - }); + Object.defineProperties(arg, { + "genericProperty": { + enumerable: false + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "genericProperty", undefined); + verifyEqualTo(arg, "genericProperty", undefined); - verifyNotWritable(arg, "genericProperty"); + verifyNotWritable(arg, "genericProperty"); - verifyEnumerable(arg, "genericProperty"); + verifyEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js index 81d10db5a3025f28b8079bbb52b055a11d045d4a..2ec2e38b73f34ffa6b71a44b39d743a5346e9947 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-309.js @@ -11,33 +11,33 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); Object.defineProperty(arg, "genericProperty", { - configurable: false + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - configurable: true - } - }); + Object.defineProperties(arg, { + "genericProperty": { + configurable: true + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "genericProperty", undefined); + verifyEqualTo(arg, "genericProperty", undefined); - verifyNotWritable(arg, "genericProperty"); + verifyNotWritable(arg, "genericProperty"); - verifyNotEnumerable(arg, "genericProperty"); + verifyNotEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js index 9666304b4c5dac6ff104ba9c74de24655991a9f7..034c2820bc5b09e599f31a7cfad582421fd4169d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js @@ -12,12 +12,12 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - prop: { - value: 1002, - writable: false, - enumerable: false, - configurable: false - } + prop: { + value: 1002, + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(obj, "prop", 1002); @@ -26,4 +26,3 @@ verifyNotWritable(obj, "prop"); verifyNotEnumerable(obj, "prop"); verifyNotConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js index 923709023a5b771344cf3db827d0fbc729e3f8dd..6c252eac4410aaba3e366ffd1a92c5e7de840197 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js @@ -11,43 +11,44 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; -} (1, 2, 3)); +var arg = (function() { + return arguments; +}(1, 2, 3)); function getFun() { - return "genericPropertyString"; + return "genericPropertyString"; } + function setFun(value) { - arg.verifySetFun = value; + arg.verifySetFun = value; } Object.defineProperty(arg, "genericProperty", { - get: getFun, - set: setFun, - configurable: false + get: getFun, + set: setFun, + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - get: function () { - return "overideGenericPropertyString"; - } - } - }); - - $ERROR("Expected an exception."); + Object.defineProperties(arg, { + "genericProperty": { + get: function() { + return "overideGenericPropertyString"; + } + } + }); + + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "genericProperty", getFun()); + verifyEqualTo(arg, "genericProperty", getFun()); - verifyWritable(arg, "genericProperty", "verifySetFun"); + verifyWritable(arg, "genericProperty", "verifySetFun"); - verifyNotEnumerable(arg, "genericProperty"); + verifyNotEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js index e01e0c624fef80fa03aa19ae632b0a3633f53e27..eacfb495e10b2f3a8e15ad0c7cf7802ab77d54b2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js @@ -11,37 +11,37 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); function setFun(value) { - arg.genericPropertyString = value; + arg.genericPropertyString = value; } Object.defineProperty(arg, "genericProperty", { - set: setFun, - configurable: false + set: setFun, + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - set: function (value) { - arg.genericPropertyString1 = value; - } - } - }); - - $ERROR("Expected an exception."); + Object.defineProperties(arg, { + "genericProperty": { + set: function(value) { + arg.genericPropertyString1 = value; + } + } + }); + + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arg, "genericProperty", "genericPropertyString"); + verifyWritable(arg, "genericProperty", "genericPropertyString"); - verifyNotEnumerable(arg, "genericProperty"); + verifyNotEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js index 5195da8d4dfd4fa0247360d510a7db3e7fb2b59c..331f6565f2c3da5bd7a96b838cd02b7c85aef473 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-312.js @@ -11,36 +11,36 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); function setFun(value) { - arg.genericPropertyString = value; + arg.genericPropertyString = value; } Object.defineProperty(arg, "genericProperty", { - set: setFun, - enumerable: true, - configurable: false + set: setFun, + enumerable: true, + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - enumerable: false - } - }); + Object.defineProperties(arg, { + "genericProperty": { + enumerable: false + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arg, "genericProperty", "genericPropertyString"); + verifyWritable(arg, "genericProperty", "genericPropertyString"); - verifyEnumerable(arg, "genericProperty"); + verifyEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js index 5e2bbfb0ea868580185f496e06e742bf16e833f8..17291265a783f1d737d27f70ea4b708277f87e95 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-313.js @@ -11,35 +11,35 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); function setFun(value) { - arg.genericPropertyString = value; + arg.genericPropertyString = value; } Object.defineProperty(arg, "genericProperty", { - set: setFun, - configurable: false + set: setFun, + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - configurable: true - } - }); + Object.defineProperties(arg, { + "genericProperty": { + configurable: true + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arg, "genericProperty", "genericPropertyString"); + verifyWritable(arg, "genericProperty", "genericPropertyString"); - verifyNotEnumerable(arg, "genericProperty"); + verifyNotEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js index 97f3e79dd9a525f63443e128362d8b497c95d2c6..e1dd0c862fb015d2737fb79f649d120ed9433439 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-314.js @@ -10,19 +10,19 @@ description: > [[DefineOwnProperty]] step 5.a.i) ---*/ - var arg = (function () { - return arguments; - }(1, 2, 3)); - var accessed = false; +var arg = (function() { + return arguments; +}(1, 2, 3)); +var accessed = false; - Object.defineProperties(arg, { - "0": { - get: function () { - accessed = true; - return 12; - } - } - }); +Object.defineProperties(arg, { + "0": { + get: function() { + accessed = true; + return 12; + } + } +}); assert.sameValue(arg[0], 12, 'arg[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js index db3c9ed054bbeca98ee57d6c176e6cdf80551622..c92629f0472bedf5fda245c9ec6ed1bd127f8c54 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js @@ -9,11 +9,13 @@ description: > values (8.12.9 step 4.a.i) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { prop: {} }); +Object.defineProperties(obj, { + prop: {} +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true'); assert.sameValue(typeof desc.value, "undefined", 'typeof desc.value'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js index bc699d003fbef73f0921247f20266765d1cde925..8df808343e9336c1fa5b4982338d9d916c6b2468 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js @@ -11,20 +11,19 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var setFun = function (value) { - obj.setVerifyHelpProp = value; +var setFun = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperties(obj, { - prop: { - set: setFun, - enumerable: true, - configurable: true - } + prop: { + set: setFun, + enumerable: true, + configurable: true + } }); verifyWritable(obj, "prop", "setVerifyHelpProp"); verifyEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js index 3c3d69ebc9b21c74d977fba653798859892d6dba..4e928915bbdff682fb82b8b2c0a524515b12304b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js @@ -9,20 +9,20 @@ description: > 'desc' (8.12.9 step 4.b.i) ---*/ - var obj = {}; - var getFunc = function () { - return 10; - }; +var obj = {}; +var getFunc = function() { + return 10; +}; - Object.defineProperties(obj, { - prop: { - get: getFunc, - enumerable: true, - configurable: true - } - }); +Object.defineProperties(obj, { + prop: { + get: getFunc, + enumerable: true, + configurable: true + } +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); -assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)'); +assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js index 49e2d514b83cb170d05bce2a416cd8ae570b8970..9f6e931c1f0ddc201571eb457e5b9d8d8147b814 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js @@ -11,19 +11,19 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var getFun = function () { - return 10; +var getFun = function() { + return 10; }; -var setFun = function (value) { - obj.setVerifyHelpProp = value; +var setFun = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperties(obj, { - prop: { - set: setFun, - get: getFun, - configurable: true - } + prop: { + set: setFun, + get: getFun, + configurable: true + } }); verifyEqualTo(obj, "prop", getFun()); @@ -32,4 +32,3 @@ verifyWritable(obj, "prop", "setVerifyHelpProp"); verifyNotEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js index 172e71d514ebc71fadf4dcd835c624877fd79783..424240fd071c1e81c3db72004f18b815f3ef31c4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js @@ -12,19 +12,19 @@ includes: ---*/ var obj = {}; -var getFun = function () { - return 10; +var getFun = function() { + return 10; }; -var setFun = function (value) { - obj.setVerifyHelpProp = value; +var setFun = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperties(obj, { - prop: { - set: setFun, - get: getFun, - enumerable: true - } + prop: { + set: setFun, + get: getFun, + enumerable: true + } }); verifyEqualTo(obj, "prop", 10); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js index 6670ea99c8e8b4bec6c1ab80ab47d25679accd4b..3ec607f8100e6c9e687680345b6b2f0da3329f43 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js @@ -10,20 +10,20 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var getFun = function () { - return 10; +var getFun = function() { + return 10; }; -var setFun = function (value) { - obj.setVerifyHelpProp = value; +var setFun = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperties(obj, { - prop: { - get: getFun, - set: setFun, - enumerable: false, - configurable: false - } + prop: { + get: getFun, + set: setFun, + enumerable: false, + configurable: false + } }); verifyEqualTo(obj, "prop", getFun()); @@ -32,4 +32,3 @@ verifyWritable(obj, "prop", "setVerifyHelpProp"); verifyNotEnumerable(obj, "prop"); verifyNotConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js index 9cdf31fce5e82e883c20b9cd7f7875aaaf1511cd..1f8a55196966fc15155a2dabeb9e05361ad10498 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js @@ -12,18 +12,20 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 12; +var getFunc = function() { + return 12; }; Object.defineProperties(obj, { - foo: { - get: getFunc, - enumerable: true, - configurable: true - } + foo: { + get: getFunc, + enumerable: true, + configurable: true + } }); -Object.defineProperties(obj, { foo: {} }); +Object.defineProperties(obj, { + foo: {} +}); verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js index 2ab69a8e83d75e88a8932403a57e674a000858c2..b984b2fb139deac97429516f32ca0608e9874490 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js @@ -14,7 +14,9 @@ includes: [propertyHelper.js] var obj = {}; obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperties(obj, { foo: {} }); +Object.defineProperties(obj, { + foo: {} +}); verifyEqualTo(obj, "foo", 100); verifyWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js index e3659e52d195c5d4e1bd28711708cc7bbb57f31b..a1532cb67f68351d0f4f6cea98713b367f706f53 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js @@ -15,12 +15,12 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(obj, { - foo: { - value: 101, - enumerable: true, - writable: true, - configurable: true - } + foo: { + value: 101, + enumerable: true, + writable: true, + configurable: true + } }); verifyEqualTo(obj, "foo", 101); @@ -29,4 +29,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js index e1c624b55104154071bbc660f3ac7235aa758eae..861d548cb82707431e96af588a34484276c87b6a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js @@ -8,26 +8,26 @@ description: > an inherited accessor property (8.12.9 step 1 ) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return 11; - }, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return 11; + }, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - value: 12, - configurable: false - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 13, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + value: 13, + configurable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js index 688821a5336055fdeaa84c89cd2fb0d3cab465de..cde59dc5e2efafb3461611d077921e8a46edf322 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js @@ -13,27 +13,28 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 0; + return 0; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } var desc = { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - } + foo: { + get: get_func, + set: set_func, + enumerable: true, + configurable: true + } }); verifyEqualTo(obj, "foo", get_func()); @@ -42,4 +43,3 @@ verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js index de330744d9dde4ecb518262841d808d3b13ef9d2..4151bdaaffb01fee23374a2a585f1f7b0c89412e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js @@ -15,9 +15,9 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(obj, { - foo: { - value: "102" - } + foo: { + value: "102" + } }); verifyEqualTo(obj, "foo", "102"); @@ -26,4 +26,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js index 0c8907b689ec5da31e4c77baedf3311bda6b0fcb..a61da8f00bd90ecb11449bf63972123c7997cccd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: undefined }; +var desc = { + value: undefined +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: undefined - } + foo: { + value: undefined + } }); verifyEqualTo(obj, "foo", undefined); @@ -27,4 +29,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js index 51c96244c792c7f96bd987af8b58837a410e640a..39f1d83f8f9c1cc4b9f70f2ed35ec2b201f6057c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: null }; +var desc = { + value: null +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: null - } + foo: { + value: null + } }); verifyEqualTo(obj, "foo", null); @@ -27,4 +29,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js index 9ff1d5befd406634a9c0225e22a1f1c9ac84d760..3eff2913379b2eed010c358f40cb96c72cad9773 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js @@ -12,16 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: NaN }; +var desc = { + value: NaN +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: NaN - } + foo: { + value: NaN + } }); verifyNotEnumerable(obj, "foo"); verifyNotWritable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js index 33d369c4acf8320c5c6975b2bcc2764025905b8a..bda21bfe23ebabc94e4ebbbb59de1899c14a5a3d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js @@ -12,27 +12,29 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: -0 }; +var desc = { + value: -0 +}; Object.defineProperty(obj, "foo", desc); try { - Object.defineProperties(obj, { - foo: { - value: +0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: +0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", -0); + verifyEqualTo(obj, "foo", -0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js index e8cc5df2ba8c1ffb4a62612a7dc7c99380ef75ad..1a7348c643f5677993a2d57bef84b669a79fda36 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js @@ -12,27 +12,29 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: +0 }; +var desc = { + value: +0 +}; Object.defineProperty(obj, "foo", desc); try { - Object.defineProperties(obj, { - foo: { - value: -0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: -0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", +0); + verifyEqualTo(obj, "foo", +0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js index b14bf503033f09311460bf850e6ae02252747db7..638593200612e96bbe54fa3d3e68d7a0a586dc1a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: 101 }; +var desc = { + value: 101 +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: 101 - } + foo: { + value: 101 + } }); verifyEqualTo(obj, "foo", 101); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js index 34d4dc158f8d08d75ff28941f2391ac45f5ba8db..910dbf79d5223798544a33dc280738ceb0979d9c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js @@ -15,9 +15,9 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(obj, { - foo: { - value: 102 - } + foo: { + value: 102 + } }); verifyEqualTo(obj, "foo", 102); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js index 08978d57c582adfef625a512054d21037371a0e4..381073f31352f0c435f7ca606c619906ca8e550e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js @@ -13,13 +13,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: "abcd" }; +var desc = { + value: "abcd" +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: "abcd" - } + foo: { + value: "abcd" + } }); verifyEqualTo(obj, "foo", "abcd"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js index 3f13a5f7c72eafb4edd3998464ed3cb5df4f5a10..6159e5341f08a8810175b25b4d607a04f8d2298a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js @@ -10,32 +10,33 @@ includes: [propertyHelper.js] ---*/ var obj = {}; + function getFunc() { - return 11; + return 11; } Object.defineProperty(obj, "prop", { - get: getFunc, - configurable: false + get: getFunc, + configurable: false }); try { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "prop", getFunc()); + verifyEqualTo(obj, "prop", getFunc()); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js index 96d7b34638b5a112cd0e99dc1e1b731e79a2024b..ca3ebff2ea1c1e4ce496e0c1746c5bed1a6091a8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js @@ -15,9 +15,9 @@ var obj = {}; obj.foo = "abcd"; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(obj, { - foo: { - value: "fghj" - } + foo: { + value: "fghj" + } }); verifyEqualTo(obj, "foo", "fghj"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js index d05bf78b47d244e735a05bca5bcecd018a6bb55e..2184bd1ef7a3ba657ccc84cfdc3c7811180098fb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: true }; +var desc = { + value: true +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: true - } + foo: { + value: true + } }); verifyEqualTo(obj, "foo", true); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js index c649cb77af558cebe2d2bd48deb4f25d4b472f15..ec6ec8925b20d076f0706baf9643a8c687dd23d5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js @@ -15,9 +15,9 @@ var obj = {}; obj.foo = true; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(obj, { - foo: { - value: false - } + foo: { + value: false + } }); verifyEqualTo(obj, "foo", false); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js index df9ed9f8ea7e8304ed91c4645160c3513f4cad03..7b1f7f63773f4b2750379a9fc4ac81d023adaeff 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js @@ -12,14 +12,18 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; -var desc = { value: obj1 }; +var obj1 = { + length: 10 +}; +var desc = { + value: obj1 +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: obj1 - } + foo: { + value: obj1 + } }); verifyEqualTo(obj, "foo", obj1); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js index cfbb1fe194f69fd9956c715695861becc4dd798e..19e37a70460ae4bcf13ff9943de88d9047c94dcb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js @@ -12,15 +12,19 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; obj.foo = obj1; // default value of attributes: writable: true, configurable: true, enumerable: true -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; Object.defineProperties(obj, { - foo: { - value: obj2 - } + foo: { + value: obj2 + } }); verifyEqualTo(obj, "foo", obj2); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js index 2037ebf6caf2f9b0c5cfe97753961207221ca650..56ae78800d17f49dbca5f4945183215535be877a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { writable: false }; +var desc = { + writable: false +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - writable: false - } + foo: { + writable: false + } }); verifyEqualTo(obj, "foo", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js index f4c47b700b07a77d9e14643d8ec27cb58a29811d..3d6000d30a61f2108250c380cccfd511d17b7760 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js @@ -12,14 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { writable: false, configurable: true }; +var desc = { + writable: false, + configurable: true +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - writable: true, - configurable: true - } + foo: { + writable: true, + configurable: true + } }); verifyEqualTo(obj, "foo", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js index fb8470edccc139622ab746d791520cf3e639841c..67c6bc26707274f6e742a8cb3b3cefc97b941bac 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js @@ -13,21 +13,20 @@ includes: [propertyHelper.js] var obj = {}; function get_Func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_Func + get: get_Func }); Object.defineProperties(obj, { - foo: { - get: get_Func - } + foo: { + get: get_Func + } }); verifyNotEnumerable(obj, "foo"); assert.sameValue(obj.foo, 10); verifyNotConfigurable(obj, "foo") - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js index ecbde1f77389ce70cd89afa07e33ee7f6dd6415b..c7a9d7c872c4f623c33a24fef91126a43700f11f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js @@ -8,45 +8,45 @@ description: > objects which refer to the different objects (8.12.9 step 6) ---*/ - var obj = {}; +var obj = {}; - function get_Func1() { - return 10; - } +function get_Func1() { + return 10; +} - Object.defineProperty(obj, "foo", { - get: get_Func1, - configurable: true - }); +Object.defineProperty(obj, "foo", { + get: get_Func1, + configurable: true +}); - function get_Func2() { - return 20; - } +function get_Func2() { + return 20; +} - Object.defineProperties(obj, { - foo: { - get: get_Func2 - } - }); +Object.defineProperties(obj, { + foo: { + get: get_Func2 + } +}); - var verifyEnumerable = false; - for (var p in obj) { - if (p === "foo") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in obj) { + if (p === "foo") { + verifyEnumerable = true; + } +} - var verifyValue = false; - verifyValue = (obj.foo === 20); +var verifyValue = false; +verifyValue = (obj.foo === 20); - var desc = Object.getOwnPropertyDescriptor(obj, "foo"); +var desc = Object.getOwnPropertyDescriptor(obj, "foo"); - var verifyConfigurable = false; - delete obj.foo; - verifyConfigurable = obj.hasOwnProperty("foo"); +var verifyConfigurable = false; +delete obj.foo; +verifyConfigurable = obj.hasOwnProperty("foo"); assert.sameValue(verifyConfigurable, false, 'verifyConfigurable'); assert.sameValue(verifyEnumerable, false, 'verifyEnumerable'); assert(verifyValue, 'verifyValue !== true'); -assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)'); +assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)'); assert.sameValue(desc.get, get_Func2, 'desc.get'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js index 4220a378796bcefadd051ad8d2b2ef72de11c7af..f74d2a2fd79476f20c3007664ba710616d816c6c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-59.js @@ -13,17 +13,17 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: set_func + set: set_func }); Object.defineProperties(obj, { - foo: { - set: set_func - } + foo: { + set: set_func + } }); verifyWritable(obj, "foo", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js index cdd9764614385a4e5f634719377f94c1ac7ca600..1f3930f59840d7a812f1e23e14b4d49384357d60 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-6.js @@ -8,26 +8,26 @@ description: > (8.12.9 step 1 ) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return 11; - }, - configurable: false - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return 11; + }, + configurable: false +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); +var obj = new Con(); - Object.defineProperties(obj, { - prop: { - get: function () { - return 12; - }, - configurable: true - } - }); +Object.defineProperties(obj, { + prop: { + get: function() { + return 12; + }, + configurable: true + } +}); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js index 39e0c2e8ec553d971f113818395da25174a34130..4c619fd073aaa44ea96aac6bae85f7bbc54d851a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-60.js @@ -15,18 +15,18 @@ var obj = {}; function set_func1() {} Object.defineProperty(obj, "foo", { - set: set_func1, - configurable: true + set: set_func1, + configurable: true }); function set_func2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperties(obj, { - foo: { - set: set_func2 - } + foo: { + set: set_func2 + } }); verifyWritable(obj, "foo", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js index 78d9e185d88103caeef655ef0b8380bc17d798cd..14b726244c13a3a6661db389803b7f30242cfc04 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-61.js @@ -12,15 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - enumerable: false +Object.defineProperty(obj, "foo", { + value: 10, + enumerable: false }); Object.defineProperties(obj, { - foo: { - enumerable: false - } + foo: { + enumerable: false + } }); verifyEqualTo(obj, "foo", 10); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js index 4c18015ff071bd6bdc34818a6579e6f3cf0238d7..7f7511776d309294300556e29f6840d14099f01e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-62.js @@ -12,16 +12,16 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - enumerable: false, - configurable: true +Object.defineProperty(obj, "foo", { + value: 10, + enumerable: false, + configurable: true }); Object.defineProperties(obj, { - foo: { - enumerable: true - } + foo: { + enumerable: true + } }); verifyEqualTo(obj, "foo", 10); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js index 860effe4e5a7f9b4466ac0921258186bb9bd7684..b7c53b94ed391868f585e8926d63c5f1d6bf372e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-63.js @@ -13,15 +13,15 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - configurable: false +Object.defineProperty(obj, "foo", { + value: 10, + configurable: false }); Object.defineProperties(obj, { - foo: { - configurable: false - } + foo: { + configurable: false + } }); verifyEqualTo(obj, "foo", 10); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js index fa18f21d782446e0b4a1934baa033ba9b2f6b48e..1fcaaa890057885f029731e36a7e5a2747ecab27 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-64.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - configurable: true + value: 10, + configurable: true }); Object.defineProperties(obj, { - foo: { - configurable: false - } + foo: { + configurable: false + } }); verifyEqualTo(obj, "foo", 10); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js index a784e4fabd2baf5a29ff71c22b262c97488bf9f4..96f9243e64db48f44da2573f50dbbc6188228b88 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-65.js @@ -13,28 +13,28 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - configurable: false + value: 10, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js index 3e068c2d2b5a5c46a610d65137c6599fa0cecf09..1295aa86f57b5f8d1abfac52338f651849ba8d95 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66-1.js @@ -14,29 +14,29 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - enumerable: false, - configurable: false + value: 10, + enumerable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - enumerable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + enumerable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js index 3b26b50180f9faea168247e29eca3e61f033eb80..7029437054adc8652dcf18ddc6a9f38413a070b3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-66.js @@ -13,30 +13,30 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - enumerable: true, - configurable: false +Object.defineProperty(obj, "foo", { + value: 10, + enumerable: true, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - enumerable: false - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + enumerable: false + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyEnumerable(obj, "foo"); + verifyEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js index f90e5acd48686fcd75468beae31b656d30f41510..94d360b5e040ea6caf3542a7c0bbb8258c964622 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js @@ -13,33 +13,32 @@ includes: [propertyHelper.js] var obj = {}; function get_Func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_Func, - configurable: false + get: get_Func, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: 11 - } - }); + Object.defineProperties(obj, { + foo: { + value: 11 + } + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - verifyNotEnumerable(obj, "foo"); + assert(e instanceof TypeError); + verifyNotEnumerable(obj, "foo"); - assert.sameValue(obj.foo, 10); + assert.sameValue(obj.foo, 10); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - var desc = Object.getOwnPropertyDescriptor(obj, "foo"); + var desc = Object.getOwnPropertyDescriptor(obj, "foo"); - assert.sameValue(typeof (desc.set), "undefined"); - assert.sameValue(desc.get, get_Func); + assert.sameValue(typeof(desc.set), "undefined"); + assert.sameValue(desc.get, get_Func); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js index d1615f9748d751b1348ae2228d4ad77bb89fa38c..8a5b27f21b2b0d442f99940567c6aebad0c6b26b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js @@ -14,32 +14,32 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - configurable: false + value: 10, + configurable: false }); function get_func() { - return 11; + return 11; } try { - Object.defineProperties(obj, { - foo: { - get: get_func - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + get: get_func + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js index e0fb47e8ead8400c2132938514c732b9c87619d0..8df102770676cce0d31e64fe1d946c0e95962678 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-69.js @@ -8,38 +8,38 @@ description: > is true, desc is accessor property (8.12.9 step 9.b.i) ---*/ - var obj = {}; - - Object.defineProperty(obj, "foo", { - value: 10, - configurable: true - }); - - function get_Func() { - return 20; - } - - Object.defineProperties(obj, { - foo: { - get: get_Func - } - }); - - var verifyEnumerable = false; - for (var p in obj) { - if (p === "foo") { - verifyEnumerable = true; - } - } - - var verifyValue = false; - verifyValue = (obj.foo === 20); - - var desc = Object.getOwnPropertyDescriptor(obj, "foo"); - - var verifyConfigurable = true; - delete obj.foo; - verifyConfigurable = obj.hasOwnProperty("foo"); +var obj = {}; + +Object.defineProperty(obj, "foo", { + value: 10, + configurable: true +}); + +function get_Func() { + return 20; +} + +Object.defineProperties(obj, { + foo: { + get: get_Func + } +}); + +var verifyEnumerable = false; +for (var p in obj) { + if (p === "foo") { + verifyEnumerable = true; + } +} + +var verifyValue = false; +verifyValue = (obj.foo === 20); + +var desc = Object.getOwnPropertyDescriptor(obj, "foo"); + +var verifyConfigurable = true; +delete obj.foo; +verifyConfigurable = obj.hasOwnProperty("foo"); assert.sameValue(verifyConfigurable, false, 'verifyConfigurable'); assert.sameValue(verifyEnumerable, false, 'verifyEnumerable'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js index f46b1a03ae335b4ce377722df68b39b9377f75b3..a9aa8688febfdb1fe02cba36085491003c36975a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-7.js @@ -8,27 +8,27 @@ description: > overrides an inherited data property (8.12.9 step 1 ) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - value: 11, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + value: 11, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - get: function () { - return 12; - }, - configurable: false - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + get: function() { + return 12; + }, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 13, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + value: 13, + configurable: true + } + }); }); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js index 63693367ffa7675df7f88cdb8f5636c8e366f235..da3efb8d34105585faae5095db0ed5e49d7dd440 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-70.js @@ -14,18 +14,18 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_func, - configurable: true + get: get_func, + configurable: true }); Object.defineProperties(obj, { - foo: { - value: 12 - } + foo: { + value: 12 + } }); verifyEqualTo(obj, "foo", 12); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js index 1e4ebef1efd650671ac06c2f93aecf1a0fd43cb9..4b1fa51835b5375003dfc686fd6fc4a0a1fa7481 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-71.js @@ -13,30 +13,30 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: 10, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - writable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + writable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js index a7e08fd5d09e9b2daeabcceb0275df57f5c8bb52..45b00d5b29ff500ca192c2763d7edce43605eaf6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js @@ -14,30 +14,30 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: 10, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: 20 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: 20 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js index b277a1b1a4b41b379deb171f75e0c2c2ddb3338d..65dbed0c1197194e764143bf30312c43136d8246 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-73.js @@ -13,16 +13,16 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: undefined, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: undefined, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: undefined - } + foo: { + value: undefined + } }); verifyEqualTo(obj, "foo", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js index 359fcbffbc029c1861aa48a2337215e9a434ecc6..0554f87c12a2c4d733009c9bd3709eb7fa017477 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-74.js @@ -13,16 +13,16 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: null, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: null, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: null - } + foo: { + value: null + } }); verifyEqualTo(obj, "foo", null); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js index 7f3c41cb4b17abcb89e306217fca59b3abdfe38d..7d66ee61aa5c91fecd09ca5b3954f786425f7719 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js @@ -15,18 +15,17 @@ var obj = {}; var accessed = false; Object.defineProperty(obj, "foo", { - value: NaN, - writable: false, - configurable: false + value: NaN, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: NaN - } + foo: { + value: NaN + } }); verifyNotEnumerable(obj, "foo"); verifyNotWritable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js index 8e45b20b1980a018a6d3134d5819a1bdbdc6b092..9bc65e056721ccd9dc05f6a2188fb391dd5a5f73 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js @@ -13,30 +13,30 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: -0, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: -0, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: +0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: +0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", -0); + verifyEqualTo(obj, "foo", -0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js index 76e45b219f0b04b8791ee8b7dd63a76584d840a5..bdda83d93f6c82ca6893c4d4715b215c0357b8db 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-77.js @@ -13,30 +13,30 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: +0, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: +0, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: -0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: -0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", +0); + verifyEqualTo(obj, "foo", +0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js index 2a65114e630add2be2806897df20eb4a98c0e7f9..ac98a36dc10917d52de203c775935a2dba88d107 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js @@ -14,15 +14,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 100, - writable: false, - configurable: false + value: 100, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: 100 - } + foo: { + value: 100 + } }); verifyEqualTo(obj, "foo", 100); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js index 78f718e2f70c5548331ca59192108eb75a4c69af..e364fa60383a07832127523de210e1a8181b0231 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js @@ -13,30 +13,30 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: 10, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: 20 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: 20 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js index 923f4fdc9b555d09e03c4b9f36426b68964a3cf0..119c27d7981df2b6cce27140cd4b6ee7f2ba5b4b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js @@ -8,29 +8,29 @@ description: > overrides an inherited accessor property (8.12.9 step 1 ) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function() { - return 11; - }, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return 11; + }, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - get: function () { - return 12; - }, - configurable: false - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + get: function() { + return 12; + }, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 13, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + value: 13, + configurable: true + } + }); }); assert.sameValue(obj.prop, 12, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js index 736f2945e2682ecbe1eb2025fd79c3baaf2bcfb3..ba37ac598eef859a1135fc33889fdcb1512debef 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.js @@ -14,15 +14,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: "abcd", - writable: false, - configurable: false + value: "abcd", + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: "abcd" - } + foo: { + value: "abcd" + } }); verifyEqualTo(obj, "foo", "abcd"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js index f44d56dd5cc538b91205529c067939a9b275f960..99a88342dace94f9492fad4240e55960af6e2595 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-81.js @@ -13,30 +13,30 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: "abcd", - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: "abcd", + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: "defg" - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: "defg" + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", "abcd"); + verifyEqualTo(obj, "foo", "abcd"); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js index e40729c3350f03c57ce45e74374e11c24d5c33d7..10eff312d830fc5c75600c8632a85335b0ef21d6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-82.js @@ -15,15 +15,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: false, - writable: false, - configurable: false + value: false, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: false - } + foo: { + value: false + } }); verifyEqualTo(obj, "foo", false); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js index 958e08ed9915de7c39f7acf4f57c839b0f6cec2d..6288ea2b3c8cb636d945e9d870ddd4366f6c7d43 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-83.js @@ -14,29 +14,29 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: false, - writable: false, - configurable: false + value: false, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", false); + verifyEqualTo(obj, "foo", false); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js index 9ccb8b5c0e8492c72e0fa23756f31a534f4f7ec6..f78066f0c88eb6771429ae1a564b3bd3a16cb4bd 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js @@ -14,21 +14,23 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false + value: obj1, + writable: false, + configurable: false }); var obj2 = obj1; obj2.y = "hello"; Object.defineProperties(obj, { - foo: { - value: obj2 - } + foo: { + value: obj2 + } }); verifyEqualTo(obj, "foo", obj1); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js index 78e078fa7aadacb37efff39000e7a3440bd91e05..35932acd67306a65060d57cc0e75b63d798f9b0d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js @@ -14,18 +14,20 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; - -Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false +var obj1 = { + length: 10 +}; + +Object.defineProperty(obj, "foo", { + value: obj1, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: obj1 - } + foo: { + value: obj1 + } }); verifyEqualTo(obj, "foo", obj1); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js index 7f5d016edc8b9bbfc299884b6b1d6b3715db8146..9ff21468b2a42e7fcabd2859c088cfbf30496808 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js @@ -13,34 +13,38 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; - -Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false +var obj1 = { + length: 10 +}; + +Object.defineProperty(obj, "foo", { + value: obj1, + writable: false, + configurable: false }); -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; try { - Object.defineProperties(obj, { - foo: { - value: obj2 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: obj2 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", obj1); + verifyEqualTo(obj, "foo", obj1); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js index a6ede93bfc8ae2ae1f1d69b3203f6eb19d59e42b..120d7ecce6e16e31cbdca54a602afc08053ee55c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js @@ -14,34 +14,34 @@ includes: [propertyHelper.js] var obj = {}; -var set_func = function (value) { - obj.setVerifyHelpProp = value; +var set_func = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperty(obj, "foo", { - set: set_func, - configurable: false + set: set_func, + configurable: false }); -set_func = function (value) { - obj.setVerifyHelpProp1 = value; +set_func = function(value) { + obj.setVerifyHelpProp1 = value; }; try { - Object.defineProperties(obj, { - foo: { - set: set_func - } - }); + Object.defineProperties(obj, { + foo: { + set: set_func + } + }); } catch (e) { - verifyWritable(obj, "foo", "setVerifyHelpProp"); + verifyWritable(obj, "foo", "setVerifyHelpProp"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js index 4792d6dc781db5768e8612c454b19333a6bf32c5..762302ec82cfc802142ff9c9fd1f281b8d59ce8e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js @@ -14,22 +14,21 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: set_func, - configurable: false + set: set_func, + configurable: false }); Object.defineProperties(obj, { - foo: { - set: set_func - } + foo: { + set: set_func + } }); verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js index c62ac4b97a8b313a9527cd5f0156db954d7938d8..13dbde09c8aa783a94e480228f1f376eab3a60f9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js @@ -14,33 +14,32 @@ includes: [propertyHelper.js] var obj = {}; function set_func1(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: set_func1, - configurable: false + set: set_func1, + configurable: false }); function set_func2() {} try { - Object.defineProperties(obj, { - foo: { - set: set_func2 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + set: set_func2 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(obj, "foo", "setVerifyHelpProp"); + verifyWritable(obj, "foo", "setVerifyHelpProp"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js index a8ef44e7ff55e9fb669704676a91c8aad3547216..bc961e8ffa1d4b4051adbfa3b7c85189d5e89370 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js @@ -14,38 +14,38 @@ includes: [propertyHelper.js] var obj = {}; function get_Func() { - return 0; + return 0; } Object.defineProperty(obj, "foo", { - set: undefined, - get: get_Func, - enumerable: false, - configurable: false + set: undefined, + get: get_Func, + enumerable: false, + configurable: false }); function set_Func() {} try { - Object.defineProperties(obj, { - foo: { - set: set_Func - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + set: set_Func + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); - var desc = Object.getOwnPropertyDescriptor(obj, "foo"); + verifyNotConfigurable(obj, "foo"); + var desc = Object.getOwnPropertyDescriptor(obj, "foo"); - if (typeof (desc.set) !== "undefined") { - $ERROR('Expected typeof (desc.set) === "undefined", actually ' + typeof (desc.set)); - } + if (typeof(desc.set) !== "undefined") { + $ERROR('Expected typeof (desc.set) === "undefined", actually ' + typeof(desc.set)); + } - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js index 778ba138b34e905a634de9f23ca90ed532b93eb3..0c2d713de03bd8a22fdb5751323dd3bf5bb5c2d9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-89.js @@ -14,20 +14,20 @@ includes: [propertyHelper.js] var obj = {}; function get_Func() { - return 0; + return 0; } Object.defineProperty(obj, "foo", { - get: get_Func, - set: undefined, - enumerable: false, - configurable: false + get: get_Func, + set: undefined, + enumerable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - set: undefined - } + foo: { + set: undefined + } }); verifyNotEnumerable(obj, "foo"); @@ -36,6 +36,6 @@ verifyNotConfigurable(obj, "foo"); var desc = Object.getOwnPropertyDescriptor(obj, "foo"); -if (typeof (desc.set) !== "undefined") { - $ERROR('Expected typeof (desc.set) === "undefined", actually ' + typeof (desc.set)); +if (typeof(desc.set) !== "undefined") { + $ERROR('Expected typeof (desc.set) === "undefined", actually ' + typeof(desc.set)); } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js index 1b703ad31e44e9c0ab2bf5956e7b8ff01166ac3a..35f88c16d3e0d21441a1173f6e3167df59d44f4f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-9.js @@ -8,16 +8,16 @@ description: > get function (8.12.9 step 1 ) ---*/ - var obj = {}; - Object.defineProperty(obj, "prop", { - set: function () { }, - configurable: false - }); +var obj = {}; +Object.defineProperty(obj, "prop", { + set: function() {}, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - get: function () { }, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + get: function() {}, + configurable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js index 2002a2c7abb7ee130ff5e52ded91ae0ffa11257b..c8407d1e8ef05f00c788d66ad3be1583dd087d68 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js @@ -14,23 +14,24 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } + function get_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: false, - configurable: false + get: get_func, + set: set_func, + enumerable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - get: get_func - } + foo: { + get: get_func + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js index 3698daffbb0cab143af2d440a1d4ba337302beee..ec80c007b31b42ed242a0751b2154821536a3ed3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js @@ -14,42 +14,42 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } + function get_func1() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_func1, - set: set_func, - enumerable: false, - configurable: false + get: get_func1, + set: set_func, + enumerable: false, + configurable: false }); function get_func2() { - return 20; + return 20; } try { - Object.defineProperties(obj, { - foo: { - get: get_func2 - } - }); - $ERROR("Expected an exception"); + Object.defineProperties(obj, { + foo: { + get: get_func2 + } + }); + $ERROR("Expected an exception"); } catch (e) { - verifyEqualTo(obj, "foo", get_func1()); + verifyEqualTo(obj, "foo", get_func1()); - verifyWritable(obj, "foo", "setVerifyHelpProp"); + verifyWritable(obj, "foo", "setVerifyHelpProp"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js index adfd982a3a53b217b8a2acf8333d7d6e619ec57f..2af77cd282deec633f7cbf3b05bdb45506036d2c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-92.js @@ -14,36 +14,36 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: undefined, - set: set_func, - enumerable: false, - configurable: false + get: undefined, + set: set_func, + enumerable: false, + configurable: false }); function get_func() { - return 0; + return 0; } try { - Object.defineProperties(obj, { - foo: { - get: get_func - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + get: get_func + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(obj, "foo", "setVerifyHelpProp"); + verifyWritable(obj, "foo", "setVerifyHelpProp"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js index 50e80f24861f093bc17487d1bdecff838c02dfdc..2b77c05dba997ef00bc3943ee8a2b327155d355b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-1.js @@ -15,46 +15,46 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "property1", { - value: 1003, - writable: false, - configurable: false + value: 1003, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - property: { - value: 1002 - }, - property1: { - value: 1004 - } - }); - - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + property: { + value: 1002 + }, + property1: { + value: 1004 + } + }); + + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "property", 1002); + verifyEqualTo(obj, "property", 1002); - verifyNotWritable(obj, "property"); + verifyNotWritable(obj, "property"); - verifyNotEnumerable(obj, "property"); + verifyNotEnumerable(obj, "property"); - verifyConfigurable(obj, "property"); - verifyEqualTo(obj, "property1", 1003); + verifyConfigurable(obj, "property"); + verifyEqualTo(obj, "property1", 1003); - verifyNotWritable(obj, "property1"); + verifyNotWritable(obj, "property1"); - verifyNotEnumerable(obj, "property1"); + verifyNotEnumerable(obj, "property1"); - verifyNotConfigurable(obj, "property1"); + verifyNotConfigurable(obj, "property1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js index cfbe9f5163ce349e8cc209333842dde70910f4ed..ccab6d7e8ed20a4a3f5faf1650ea68bad20c136e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-2.js @@ -15,46 +15,46 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "1", { - value: 1003, - writable: false, - configurable: false + value: 1003, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - 0: { - value: 1002 - }, - 1: { - value: 1004 - } - }); - - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + 0: { + value: 1002 + }, + 1: { + value: 1004 + } + }); + + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "0", 1002); + verifyEqualTo(obj, "0", 1002); - verifyNotWritable(obj, "0"); + verifyNotWritable(obj, "0"); - verifyNotEnumerable(obj, "0"); + verifyNotEnumerable(obj, "0"); - verifyConfigurable(obj, "0"); - verifyEqualTo(obj, "1", 1003); + verifyConfigurable(obj, "0"); + verifyEqualTo(obj, "1", 1003); - verifyNotWritable(obj, "1"); + verifyNotWritable(obj, "1"); - verifyNotEnumerable(obj, "1"); + verifyNotEnumerable(obj, "1"); - verifyNotConfigurable(obj, "1"); + verifyNotConfigurable(obj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js index ff5d40563257f7d51e12ebf670080edb0836c95b..040fd17b3f6d8948c5ccd2129050556df752951e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-3.js @@ -14,47 +14,47 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: false, - configurable: false + value: 1001, + writable: false, + configurable: false }); Object.defineProperty(obj, "property1", { - value: 1003, - writable: false, - configurable: true + value: 1003, + writable: false, + configurable: true }); try { - Object.defineProperties(obj, { - property: { - value: 1002 - }, - property1: { - value: 1004 - } - }); - - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + property: { + value: 1002 + }, + property1: { + value: 1004 + } + }); + + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "property", 1001); + verifyEqualTo(obj, "property", 1001); - verifyNotWritable(obj, "property"); + verifyNotWritable(obj, "property"); - verifyNotEnumerable(obj, "property"); + verifyNotEnumerable(obj, "property"); - verifyNotConfigurable(obj, "property"); + verifyNotConfigurable(obj, "property"); - verifyEqualTo(obj, "property1", 1003); + verifyEqualTo(obj, "property1", 1003); - verifyNotWritable(obj, "property1"); + verifyNotWritable(obj, "property1"); - verifyNotEnumerable(obj, "property1"); + verifyNotEnumerable(obj, "property1"); - verifyConfigurable(obj, "property1"); + verifyConfigurable(obj, "property1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js index 89feb4d5f08eee35eaff477a768cff27d7d931fe..3f871066b14ba713352cb8282e0dd7ee3a2f156f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93-4.js @@ -14,46 +14,46 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: false, - configurable: false + value: 1001, + writable: false, + configurable: false }); Object.defineProperty(obj, "1", { - value: 1003, - writable: false, - configurable: true + value: 1003, + writable: false, + configurable: true }); try { - Object.defineProperties(obj, { - 0: { - value: 1002 - }, - 1: { - value: 1004 - } - }); - - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + 0: { + value: 1002 + }, + 1: { + value: 1004 + } + }); + + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "0", 1001); + verifyEqualTo(obj, "0", 1001); - verifyNotWritable(obj, "0"); + verifyNotWritable(obj, "0"); - verifyNotEnumerable(obj, "0"); + verifyNotEnumerable(obj, "0"); - verifyNotConfigurable(obj, "0"); - verifyEqualTo(obj, "1", 1003); + verifyNotConfigurable(obj, "0"); + verifyEqualTo(obj, "1", 1003); - verifyNotWritable(obj, "1"); + verifyNotWritable(obj, "1"); - verifyNotEnumerable(obj, "1"); + verifyNotEnumerable(obj, "1"); - verifyConfigurable(obj, "1"); + verifyConfigurable(obj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js index 2562a0ad052c2dd99f0a4d10a2ea1a9de0498b57..4e3c784f21d1b07740194463ff354c73e80b6ac8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-93.js @@ -14,20 +14,20 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: undefined, - set: set_func, - enumerable: false, - configurable: false + get: undefined, + set: set_func, + enumerable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - get: undefined - } + foo: { + get: undefined + } }); verifyWritable(obj, "foo", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js index 2955e6ff4caf82a73ec0a73966e9a4533a98a174..1df8a413283b25a89c1beb94d3943d03e38cd476 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.js @@ -15,9 +15,9 @@ var obj = {}; obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(obj, { - foo: { - value: 200 - } + foo: { + value: 200 + } }); verifyEqualTo(obj, "foo", 200); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js index 387c062a1e42d3c49baf529277ca1eca4e2c322a..08a0229e88a75bbb185660e7a3a15f2959813b64 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-95.js @@ -13,16 +13,16 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 200, - enumerable: true, - writable: true, - configurable: true + value: 200, + enumerable: true, + writable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - value: undefined - } + foo: { + value: undefined + } }); verifyEqualTo(obj, "foo", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js index 8fec3fa5341a93b78c562b7b19b30f02b80cbf1f..18e7cb5d0f4541893826fd337049814881fdb60b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-96.js @@ -13,16 +13,16 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: undefined, - enumerable: true, - writable: true, - configurable: true + value: undefined, + enumerable: true, + writable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - value: 200 - } + foo: { + value: 200 + } }); verifyEqualTo(obj, "foo", 200); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js index 197be1c816e1133726b01b22092303e52dfa9aec..015b74be780905478698362663d8b8fd77d167bc 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-97.js @@ -12,17 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 100, - enumerable: true, - writable: false, - configurable: true +Object.defineProperty(obj, "foo", { + value: 100, + enumerable: true, + writable: false, + configurable: true }); Object.defineProperties(obj, { - foo: { - writable: true - } + foo: { + writable: true + } }); verifyEqualTo(obj, "foo", 100); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js index cfd9cd94cfc089244faedc328302a783cc6adca0..37e8dc0122f1f2a4be903d124472287063b2abb3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-98.js @@ -12,17 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 200, - enumerable: false, - writable: true, - configurable: true +Object.defineProperty(obj, "foo", { + value: 200, + enumerable: false, + writable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - enumerable: true - } + foo: { + enumerable: true + } }); verifyEqualTo(obj, "foo", 200); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js index ce93bc299d6a871eee24963bcbd1a40437f1b4ca..055a3c84981b7f7cc571f1e0c564e27576081370 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-99.js @@ -12,17 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 200, - enumerable: true, - writable: true, - configurable: true +Object.defineProperty(obj, "foo", { + value: 200, + enumerable: true, + writable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - configurable: false - } + foo: { + configurable: false + } }); verifyEqualTo(obj, "foo", 200); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-0-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-0-1.js index e552666a33a75a08ae1e01d8f4de7b24a414f5ba..e507ae0bcf317ee3960d841292ebf9f15aa1ef30 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-0-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.6-0-1 description: Object.defineProperty must exist as a function ---*/ - var f = Object.defineProperty; +var f = Object.defineProperty; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-1-1.js index 07851ab52a50e6ccbe9237e9c740ffcfd1336d17..d78f0fa0118efc7baaee66510e278322e0f9ab14 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-1-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-1-1.js @@ -7,5 +7,5 @@ description: Object.defineProperty applied to undefined throws a TypeError ---*/ assert.throws(TypeError, function() { - Object.defineProperty(undefined, "foo", {}); + Object.defineProperty(undefined, "foo", {}); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-1-2.js index ad1ef64aaa9330b8b8b0cc8e8933595ff5ac4d0f..29698ff4a3c9250906708dc78429bd4ac224fe1c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-1-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-1-2.js @@ -7,5 +7,5 @@ description: Object.defineProperty applied to null throws a TypeError ---*/ assert.throws(TypeError, function() { - Object.defineProperty(null, "foo", {}); + Object.defineProperty(null, "foo", {}); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-1-3.js index 7fac12e1be565f6dd49bff0eac3ce9caa7127587..22322c244ab605214d80fdb0aed5f57cc1d18aca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-1-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-1-3.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(TypeError, function() { - Object.defineProperty(5, "foo", {}); + Object.defineProperty(5, "foo", {}); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-1-4.js index 2f0f774641e4fc9c2048629ff1b0b0ec8a13fb73..a2368fcc0122d50da1cd819bd89abb20303eb8d6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-1-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-1-4.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(TypeError, function() { - Object.defineProperty("hello\nworld\\!", "foo", {}); + Object.defineProperty("hello\nworld\\!", "foo", {}); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-1.js index c3459ee28ef9e22b5d50dbe1d5736d017c6abc80..bc863a7be7533a0925df7490e2c0625f3db762a0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-1.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(TypeError, function() { - Object.defineProperty(true, "foo", {}); + Object.defineProperty(true, "foo", {}); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-1.js index 7858e89077235bca87c5b87cd4c464dcf70ba622..1b8589db28df8ea67b4188dcf0b26ab4a5a808d0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-1.js @@ -8,7 +8,7 @@ description: > string 'undefined' ---*/ - var obj = {}; - Object.defineProperty(obj, undefined, {}); +var obj = {}; +Object.defineProperty(obj, undefined, {}); assert(obj.hasOwnProperty("undefined"), 'obj.hasOwnProperty("undefined") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-10.js index 6c8c201fe77d7c36a59a4c1001fb4bfb32f6e2dd..c3b52b74d11f4f7a1c1a9f162a389634bc4e3ef8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-10.js @@ -8,7 +8,7 @@ description: > a string (value is a negative number) ---*/ - var obj = {}; - Object.defineProperty(obj, -20, {}); +var obj = {}; +Object.defineProperty(obj, -20, {}); assert(obj.hasOwnProperty("-20"), 'obj.hasOwnProperty("-20") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-11.js index bfc039d8499dccfe936441b11dfb6c0928fdca5f..576f3f9689ea5dc8aab996d7ee016a68405fe120 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-11.js @@ -8,7 +8,7 @@ description: > a string (value is Infinity) ---*/ - var obj = {}; - Object.defineProperty(obj, Infinity, {}); +var obj = {}; +Object.defineProperty(obj, Infinity, {}); assert(obj.hasOwnProperty("Infinity"), 'obj.hasOwnProperty("Infinity") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-12.js index 63ef4f2542bc564b53a6fd8e20adf595841e0a2b..fb1fed3da3b6133ea0e0e98e26704daf49e3311d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-12.js @@ -8,7 +8,7 @@ description: > a string (value is +Infinity) ---*/ - var obj = {}; - Object.defineProperty(obj, +Infinity, {}); +var obj = {}; +Object.defineProperty(obj, +Infinity, {}); assert(obj.hasOwnProperty("Infinity"), 'obj.hasOwnProperty("Infinity") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-13.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-13.js index 230e0f1c77a216adea631dc9d8982675c67680af..2a2bb96bc87207ec91935be2261235fb3ebed839 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-13.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-13.js @@ -8,7 +8,7 @@ description: > a string (value is -Infinity) ---*/ - var obj = {}; - Object.defineProperty(obj, -Infinity, {}); +var obj = {}; +Object.defineProperty(obj, -Infinity, {}); assert(obj.hasOwnProperty("-Infinity"), 'obj.hasOwnProperty("-Infinity") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-14.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-14.js index 5283705b2751731765637c8dabaafc115d330351..54800b7b331d6585c0701623f4ed2e294af8e72a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-14.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-14.js @@ -8,7 +8,7 @@ description: > a string (value is 1(following 20 zeros)) ---*/ - var obj = {}; - Object.defineProperty(obj, 100000000000000000000, {}); +var obj = {}; +Object.defineProperty(obj, 100000000000000000000, {}); assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-15.js index e6dbae77287657f6ba09c032157c1124f9565baf..f14f48452d161220094d7d06cda75c1f36c092f0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-15.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-15.js @@ -8,7 +8,7 @@ description: > a string (value is 1(following 21 zeros)) ---*/ - var obj = {}; - Object.defineProperty(obj, 1000000000000000000000, {}); +var obj = {}; +Object.defineProperty(obj, 1000000000000000000000, {}); assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-16.js index e3a21b9726ddef8d643966eadbc867055327f9a3..94ccfaa868afb517203c315fe26c8ee1bee1ff00 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-16.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-16.js @@ -8,7 +8,7 @@ description: > a string (value is 1(following 22 zeros)) ---*/ - var obj = {}; - Object.defineProperty(obj, 10000000000000000000000, {}); +var obj = {}; +Object.defineProperty(obj, 10000000000000000000000, {}); assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js index 2a57a5d35f49ca72afba3c10f765cf629420065a..d0aa983f8da2c32d68aaeb5d179cdd10a86e53d0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-17-1.js @@ -8,7 +8,7 @@ description: > a string (value is 1) ---*/ - var obj = {}; - Object.defineProperty(obj, 1, {}); +var obj = {}; +Object.defineProperty(obj, 1, {}); assert(obj.hasOwnProperty("1"), 'obj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-17.js index 9e8bb2ddb8821c412cfcc4aa4a79cd96010020a9..ae62d9a0367a45c7be71859f744b40ee7a4e0b5b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-17.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-17.js @@ -8,7 +8,7 @@ description: > a string (value is 1e+20) ---*/ - var obj = {}; - Object.defineProperty(obj, 1e+20, {}); +var obj = {}; +Object.defineProperty(obj, 1e+20, {}); assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-18.js index 0dbaf2e38c28f675319af044a5a34483ed416993..205de24a2cdd831291d9d4c686bb9978af980618 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-18.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-18.js @@ -8,7 +8,7 @@ description: > string (value is 1e+21) ---*/ - var obj = {}; - Object.defineProperty(obj, 1e+21, {}); +var obj = {}; +Object.defineProperty(obj, 1e+21, {}); assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-19.js index bda77ab5e3c8b563e09f4c9d1e172558557a5f46..3cdcfc0d42e52e461310e9949a6af10ca5f4edd8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-19.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-19.js @@ -8,7 +8,7 @@ description: > string (value is 1e+22) ---*/ - var obj = {}; - Object.defineProperty(obj, 1e+22, {}); +var obj = {}; +Object.defineProperty(obj, 1e+22, {}); assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-2.js index 31d6fb887e76c35ca105f711b3da3854e47dd000..68d62dd21cb756a1bcf85e371c9d4741b4e9bf62 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-2.js @@ -8,7 +8,7 @@ description: > string 'null' ---*/ - var obj = {}; - Object.defineProperty(obj, null, {}); +var obj = {}; +Object.defineProperty(obj, null, {}); assert(obj.hasOwnProperty("null"), 'obj.hasOwnProperty("null") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-20.js index 06d8aa82a3a17d223e17a96d2a919a58c7fd9e44..fc3d896c0cf9fbe61c67e19709d7953c5a270a72 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-20.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-20.js @@ -8,7 +8,7 @@ description: > a string (value is 0.000001) ---*/ - var obj = {}; - Object.defineProperty(obj, 0.000001, {}); +var obj = {}; +Object.defineProperty(obj, 0.000001, {}); assert(obj.hasOwnProperty("0.000001"), 'obj.hasOwnProperty("0.000001") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-21.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-21.js index 287d8c1dd536124e4bdb518ec2fe434acd680789..d21b1b707b46d3df641e1e58db921a8a84649422 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-21.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-21.js @@ -8,7 +8,7 @@ description: > a string (value is 0.0000001) ---*/ - var obj = {}; - Object.defineProperty(obj, 0.0000001, {}); +var obj = {}; +Object.defineProperty(obj, 0.0000001, {}); assert(obj.hasOwnProperty("1e-7"), 'obj.hasOwnProperty("1e-7") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-22.js index e803f48def3ec185b04c2aba41884d23fed9a029..dc5764ddbc2f06638793ccc7e8196c78877d4b43 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-22.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-22.js @@ -8,7 +8,7 @@ description: > a string (value is 0.00000001) ---*/ - var obj = {}; - Object.defineProperty(obj, 0.00000001, {}); +var obj = {}; +Object.defineProperty(obj, 0.00000001, {}); assert(obj.hasOwnProperty("1e-8"), 'obj.hasOwnProperty("1e-8") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-23.js index 3839f960ddc3bf88a7635996eb11722df875817e..3422c13177065725b70d7d50670d6bd75660b165 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-23.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-23.js @@ -8,7 +8,7 @@ description: > a string (value is 1e-7) ---*/ - var obj = {}; - Object.defineProperty(obj, 1e-7, {}); +var obj = {}; +Object.defineProperty(obj, 1e-7, {}); assert(obj.hasOwnProperty("1e-7"), 'obj.hasOwnProperty("1e-7") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-24.js index da1d927b5260028f39bc4409ced83102075dc50d..be331a8acc97809dcda8e7154f9d5b775e6a4696 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-24.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-24.js @@ -8,7 +8,7 @@ description: > a string (value is 1e-6) ---*/ - var obj = {}; - Object.defineProperty(obj, 1e-6, {}); +var obj = {}; +Object.defineProperty(obj, 1e-6, {}); assert(obj.hasOwnProperty("0.000001"), 'obj.hasOwnProperty("0.000001") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-25.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-25.js index 740c0e3dd63f589f9df5a2f7fe7c88038b1a8b1f..79d010d5bdba110a8ff4994f96d0ce72e3346b9a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-25.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-25.js @@ -8,7 +8,7 @@ description: > a string (value is 1e-5) ---*/ - var obj = {}; - Object.defineProperty(obj, 1e-5, {}); +var obj = {}; +Object.defineProperty(obj, 1e-5, {}); assert(obj.hasOwnProperty("0.00001"), 'obj.hasOwnProperty("0.00001") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-26.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-26.js index e514f84ac835fed583307610ba0cc86f0742300d..5499e7f5517dbeba565e8da82ec3403799f1719c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-26.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-26.js @@ -8,7 +8,7 @@ description: > to a string (value is 123) ---*/ - var obj = {}; - Object.defineProperty(obj, 123, {}); +var obj = {}; +Object.defineProperty(obj, 123, {}); assert(obj.hasOwnProperty("123"), 'obj.hasOwnProperty("123") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-27.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-27.js index 889ff4480c137999d4b7b7201793775b1c668b46..535f6c4b3dc3aea33b3ce0c5fc1701d14b0a1f58 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-27.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-27.js @@ -8,7 +8,7 @@ description: > a string (value is 123.456) ---*/ - var obj = {}; - Object.defineProperty(obj, 123.456, {}); +var obj = {}; +Object.defineProperty(obj, 123.456, {}); assert(obj.hasOwnProperty("123.456"), 'obj.hasOwnProperty("123.456") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-28.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-28.js index ac3077dbf1a97ac531720afce1198dacc7e2f00e..dee948966c7a44bea88c7cda0f3f0df62af2d572 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-28.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-28.js @@ -8,7 +8,7 @@ description: > a string (value is 1(following 19 zeros).1) ---*/ - var obj = {}; - Object.defineProperty(obj, 10000000000000000000.1, {}); +var obj = {}; +Object.defineProperty(obj, 10000000000000000000.1, {}); assert(obj.hasOwnProperty("10000000000000000000"), 'obj.hasOwnProperty("10000000000000000000") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-29.js index c4cd44599e7ff65e92e1206a84a7069a27c9940b..b897ff64870277af0376b8a4fb6f14d56d4dfcd7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-29.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-29.js @@ -8,7 +8,7 @@ description: > a string (value is 1(following 20 zeros).1) ---*/ - var obj = {}; - Object.defineProperty(obj, 100000000000000000000.1, {}); +var obj = {}; +Object.defineProperty(obj, 100000000000000000000.1, {}); assert(obj.hasOwnProperty("100000000000000000000"), 'obj.hasOwnProperty("100000000000000000000") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-3.js index 076c40166b252e920c739fb4bf22dbe244821027..e9d58d50c72c51f4ec544d5c73711b2853fa7f8d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-3.js @@ -8,7 +8,7 @@ description: > false ---*/ - var obj = {}; - Object.defineProperty(obj, false, {}); +var obj = {}; +Object.defineProperty(obj, false, {}); assert(obj.hasOwnProperty("false"), 'obj.hasOwnProperty("false") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-30.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-30.js index 774bb3305ba7c2fc5ab541faccfa7b3806b82c9d..9dee13a2925aeba3aaf9fa366759e8f9d9230f66 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-30.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-30.js @@ -8,7 +8,7 @@ description: > a string (value is 1(following 21 zeros).1) ---*/ - var obj = {}; - Object.defineProperty(obj, 1000000000000000000000.1, {}); +var obj = {}; +Object.defineProperty(obj, 1000000000000000000000.1, {}); assert(obj.hasOwnProperty("1e+21"), 'obj.hasOwnProperty("1e+21") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-31.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-31.js index 59dd29568f551a6e4e6402e888872e15ea3e7b40..844d7b7f390091f1e17dafc0d20bcf7f8c0450c1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-31.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-31.js @@ -8,7 +8,7 @@ description: > a string (value is 1(following 22 zeros).1) ---*/ - var obj = {}; - Object.defineProperty(obj, 10000000000000000000000.1, {}); +var obj = {}; +Object.defineProperty(obj, 10000000000000000000000.1, {}); assert(obj.hasOwnProperty("1e+22"), 'obj.hasOwnProperty("1e+22") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-32.js index fee7a110904b2abda17b8945ba2d8b048f632248..c34e5ae811752445ea197fe4fe88a083af1d3c51 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-32.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-32.js @@ -8,7 +8,7 @@ description: > a string (value is 123.1234567) ---*/ - var obj = {}; - Object.defineProperty(obj, 123.1234567, {}); +var obj = {}; +Object.defineProperty(obj, 123.1234567, {}); assert(obj.hasOwnProperty("123.1234567"), 'obj.hasOwnProperty("123.1234567") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-33.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-33.js index 4e62e4a1674fe881fcd787ba86b1cc27da2157e3..5749d1c9b16598926d1b8bd37050e4b848766fb7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-33.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-33.js @@ -6,7 +6,7 @@ es5id: 15.2.3.6-2-33 description: Object.defineProperty - argument 'P' is applied to an empty string ---*/ - var obj = {}; - Object.defineProperty(obj, "", {}); +var obj = {}; +Object.defineProperty(obj, "", {}); assert(obj.hasOwnProperty(""), 'obj.hasOwnProperty("") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-34.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-34.js index c8d127e5d8404beec9015453ce9b5eb8d11d2b39..35b64a5a9d39bb9de618ffde9573d2e162e0c775 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-34.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-34.js @@ -6,7 +6,7 @@ es5id: 15.2.3.6-2-34 description: Object.defineProperty - argument 'P' is applied to string 'AB \cd' ---*/ - var obj = {}; - Object.defineProperty(obj, "AB\n\\cd", {}); +var obj = {}; +Object.defineProperty(obj, "AB\n\\cd", {}); assert(obj.hasOwnProperty("AB\n\\cd"), 'obj.hasOwnProperty("AB\n\\cd") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-35.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-35.js index 85150e3fccefab9af2e3dffb7e70eba159357e0d..c5dfc603d14c26e13ff86dee8f03822cb49fe48a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-35.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-35.js @@ -8,7 +8,7 @@ description: > 'undefined' ---*/ - var obj = {}; - Object.defineProperty(obj, "undefined", {}); +var obj = {}; +Object.defineProperty(obj, "undefined", {}); assert(obj.hasOwnProperty("undefined"), 'obj.hasOwnProperty("undefined") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-36.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-36.js index 1e63f2334d71057ab3cc1e49af2707790d92c6a5..91e27ced4da6e2f826d464413d81ba54d2024372 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-36.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-36.js @@ -6,7 +6,7 @@ es5id: 15.2.3.6-2-36 description: Object.defineProperty - argument 'P' is applied to string 'null' ---*/ - var obj = {}; - Object.defineProperty(obj, "null", {}); +var obj = {}; +Object.defineProperty(obj, "null", {}); assert(obj.hasOwnProperty("null"), 'obj.hasOwnProperty("null") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-37.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-37.js index 92fae11cdc99fa2ccecf4d0ed504a42d7088ea20..84c75005adf2f85514c512426d795cc63ff4c9f8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-37.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-37.js @@ -8,7 +8,7 @@ description: > '123αβπcd' ---*/ - var obj = {}; - Object.defineProperty(obj, "123αβπcd", {}); +var obj = {}; +Object.defineProperty(obj, "123αβπcd", {}); assert(obj.hasOwnProperty("123αβπcd"), 'obj.hasOwnProperty("123αβπcd") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-38.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-38.js index 97470527ad7bf3597001faaba8168641ce722652..3a60248f417271774aee023a9c9a48952e7b84ea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-38.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-38.js @@ -6,7 +6,7 @@ es5id: 15.2.3.6-2-38 description: Object.defineProperty - argument 'P' is applied to string '1' ---*/ - var obj = {}; - Object.defineProperty(obj, "1", {}); +var obj = {}; +Object.defineProperty(obj, "1", {}); assert(obj.hasOwnProperty("1"), 'obj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-39.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-39.js index 37a927863cdf353fd300fd27e675fa57dc3a693a..8574694e1ab405a090022eef19f10a0a1abdb84c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-39.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-39.js @@ -8,7 +8,7 @@ description: > a string ---*/ - var obj = {}; - Object.defineProperty(obj, [1, 2], {}); +var obj = {}; +Object.defineProperty(obj, [1, 2], {}); assert(obj.hasOwnProperty("1,2"), 'obj.hasOwnProperty("1,2") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-4.js index 5089fa099b571d100e857d0705b32393ab5548b7..b971991d70c946c8a1d87298806d652ae1597eca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-4.js @@ -8,7 +8,7 @@ description: > true ---*/ - var obj = {}; - Object.defineProperty(obj, true, {}); +var obj = {}; +Object.defineProperty(obj, true, {}); assert(obj.hasOwnProperty("true"), 'obj.hasOwnProperty("true") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-40.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-40.js index af780b296e34f9a725b4db6306db28da31f8a6c9..cda36d2b5cca7f0a722205eccbf1b94192c51a13 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-40.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-40.js @@ -8,7 +8,7 @@ description: > converts to a string ---*/ - var obj = {}; - Object.defineProperty(obj, new String("Hello"), {}); +var obj = {}; +Object.defineProperty(obj, new String("Hello"), {}); assert(obj.hasOwnProperty("Hello"), 'obj.hasOwnProperty("Hello") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-41.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-41.js index dcfcdc5d9f906b23ac711096b3e89c02041ec233..a605fd7ebbed966da3022232a909013cf553eb73 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-41.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-41.js @@ -8,7 +8,7 @@ description: > converts to a string ---*/ - var obj = {}; - Object.defineProperty(obj, new Boolean(false), {}); +var obj = {}; +Object.defineProperty(obj, new Boolean(false), {}); assert(obj.hasOwnProperty("false"), 'obj.hasOwnProperty("false") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-42.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-42.js index f2eab5c8b88967260d0543a2e6c8c8ad9c14a533..194379fa1d09d27ce8d6d39552e23e1fd7cbf022 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-42.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-42.js @@ -8,7 +8,7 @@ description: > converts to a string ---*/ - var obj = {}; - Object.defineProperty(obj, new Number(123), {}); +var obj = {}; +Object.defineProperty(obj, new Number(123), {}); assert(obj.hasOwnProperty("123"), 'obj.hasOwnProperty("123") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-43.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-43.js index 699492a0b9890d59b3011415b0a1a2f5885d7c48..6d65a48c54ffae5c0e4f8e21959d8e68a0e7ed40 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-43.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-43.js @@ -8,14 +8,14 @@ description: > toString method ---*/ - var obj = {}; +var obj = {}; - var ownProp = { - toString: function () { - return "abc"; - } - }; +var ownProp = { + toString: function() { + return "abc"; + } +}; - Object.defineProperty(obj, ownProp, {}); +Object.defineProperty(obj, ownProp, {}); assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-44.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-44.js index ce1c4987e8e51618c67138be35d0e7890a78a1db..796bf8a9452462785d3f224dc674d48e9a3adac3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-44.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-44.js @@ -8,15 +8,15 @@ description: > valueOf method ---*/ - var obj = {}; +var obj = {}; - var ownProp = { - valueOf: function () { - return "abc"; - }, - toString: undefined - }; +var ownProp = { + valueOf: function() { + return "abc"; + }, + toString: undefined +}; - Object.defineProperty(obj, ownProp, {}); +Object.defineProperty(obj, ownProp, {}); assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-45.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-45.js index 09a51c19888a033b2cb3bc84cada652e0fd3ec2f..992db6eeea2fa65cb3cc022521a59872a36a99dd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-45.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-45.js @@ -9,22 +9,22 @@ description: > primitive value ---*/ - var obj = {}; - var toStringAccessed = false; - var valueOfAccessed = false; +var obj = {}; +var toStringAccessed = false; +var valueOfAccessed = false; - var ownProp = { - toString: function () { - toStringAccessed = true; - return {}; - }, - valueOf: function () { - valueOfAccessed = true; - return "abc"; - } - }; +var ownProp = { + toString: function() { + toStringAccessed = true; + return {}; + }, + valueOf: function() { + valueOfAccessed = true; + return "abc"; + } +}; - Object.defineProperty(obj, ownProp, {}); +Object.defineProperty(obj, ownProp, {}); assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js index cca20e2ee596a0bc266f8173c7576f2b2583e396..49c5bbc7386a588350429b9e3d35f014f7e66225 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-46.js @@ -8,21 +8,21 @@ description: > toString and valueOf method ---*/ - var obj = {}; - var toStringAccessed = false; - var valueOfAccessed = false; +var obj = {}; +var toStringAccessed = false; +var valueOfAccessed = false; - var ownProp = { - toString: function () { - toStringAccessed = true; - return "abc"; - }, - valueOf: function () { - valueOfAccessed = true; - return "prop"; - } - }; - Object.defineProperty(obj, ownProp, {}); +var ownProp = { + toString: function() { + toStringAccessed = true; + return "abc"; + }, + valueOf: function() { + valueOfAccessed = true; + return "prop"; + } +}; +Object.defineProperty(obj, ownProp, {}); assert(obj.hasOwnProperty("abc"), 'obj.hasOwnProperty("abc") !== true'); assert.sameValue(valueOfAccessed, false, 'valueOfAccessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-47.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-47.js index 1fa4963c1a4b7636a238d50ffebbaa7ad0a2ce19..b242a1786a7de621db046f30bd3e8e67acc53819 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-47.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-47.js @@ -9,22 +9,22 @@ description: > value ---*/ - var obj = {}; - var toStringAccessed = false; - var valueOfAccessed = false; +var obj = {}; +var toStringAccessed = false; +var valueOfAccessed = false; - var ownProp = { - toString: function () { - toStringAccessed = true; - return {}; - }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - }; +var ownProp = { + toString: function() { + toStringAccessed = true; + return {}; + }, + valueOf: function() { + valueOfAccessed = true; + return {}; + } +}; assert.throws(TypeError, function() { - Object.defineProperty(obj, ownProp, {}); + Object.defineProperty(obj, ownProp, {}); }); assert(valueOfAccessed, 'valueOfAccessed !== true'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-48.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-48.js index 4de8a76c9e59b5d2ee465d8a1c8a49d1eb9532b2..792148aa7bc62aa3eee3ad0baa760867fceb4c1f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-48.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-48.js @@ -9,27 +9,27 @@ description: > toString methods ---*/ - var obj = {}; - var toStringAccessed = false; - var valueOfAccessed = false; +var obj = {}; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - toString: function () { - toStringAccessed = true; - return "test"; - } - }; +var proto = { + toString: function() { + toStringAccessed = true; + return "test"; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - child.valueOf = function () { - valueOfAccessed = true; - return "10"; - }; +var child = new ConstructFun(); +child.valueOf = function() { + valueOfAccessed = true; + return "10"; +}; - Object.defineProperty(obj, child, {}); +Object.defineProperty(obj, child, {}); assert(obj.hasOwnProperty("test"), 'obj.hasOwnProperty("test") !== true'); assert.sameValue(valueOfAccessed, false, 'valueOfAccessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-5.js index c0310cf559f8c0a8cd205f81101991824b24622e..001da37521f08462bde9462f1a2e986d375111a1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-5.js @@ -8,7 +8,7 @@ description: > a string (value is NaN) ---*/ - var obj = {}; - Object.defineProperty(obj, NaN, {}); +var obj = {}; +Object.defineProperty(obj, NaN, {}); assert(obj.hasOwnProperty("NaN"), 'obj.hasOwnProperty("NaN") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-6.js index 2915e96e4331b7cf3fd473fa2bb8ce286cd5cad8..6034791bf3488d19da8ada0c5208087cfbad869f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-6.js @@ -8,7 +8,7 @@ description: > a string (value is 0) ---*/ - var obj = {}; - Object.defineProperty(obj, 0, {}); +var obj = {}; +Object.defineProperty(obj, 0, {}); assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-7.js index 907eb445b34489669c568ce6fbf3a2eb294d35d4..305ffc905fc75837b2edc1a7d1a08353dbd7eb05 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-7.js @@ -8,7 +8,7 @@ description: > a string (value is +0) ---*/ - var obj = {}; - Object.defineProperty(obj, +0, {}); +var obj = {}; +Object.defineProperty(obj, +0, {}); assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js index 5dd887196478a5ae3833cecefe9d387d2c6be225..c0776bb6e48c3f5aa1e551d33721e9c280f465e4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-8.js @@ -8,7 +8,7 @@ description: > a string (value is -0) ---*/ - var obj = {}; - Object.defineProperty(obj, -0, {}); +var obj = {}; +Object.defineProperty(obj, -0, {}); assert(obj.hasOwnProperty("0"), 'obj.hasOwnProperty("0") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-2-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-2-9.js index 409ef356e076894e6ab1270ed2bb2967c2c20f79..021ab11fa37fabe624904f4641969dcd005bc625 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-2-9.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-2-9.js @@ -8,7 +8,7 @@ description: > a string (value is a positive number) ---*/ - var obj = {}; - Object.defineProperty(obj, 30, {}); +var obj = {}; +Object.defineProperty(obj, 30, {}); assert(obj.hasOwnProperty("30"), 'obj.hasOwnProperty("30") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js index f3acf87e5557989c7f69d2cbdb374de3d5d16b1f..030b5d02bb26d38d5e3b32e213e1b2c5d14f025a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js @@ -12,12 +12,17 @@ description: > 'value' present(8.10.5 step 9.a) ---*/ - var o = {}; +var o = {}; - // dummy getter - var getter = function () { return 1; } - var desc = { get: getter, value: 101}; +// dummy getter +var getter = function() { + return 1; +} +var desc = { + get: getter, + value: 101 +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js index d15bb70e5ebddd8af620c6d0032b436d9ad10b93..ebb7f5bd4824ad2e130728d4985e183162fc7631 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js @@ -12,12 +12,14 @@ description: > but not undefined (Number)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = 42; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = 42; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js index a792d3866be539b8fb9b2a24604041ba3267df01..5c49f9552c295db175ec77c80451a2e4a1dd3a67 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: null }); +Object.defineProperty(obj, "property", { + configurable: null +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js index 6f424df924a4ac8d27ff5eb947a5a5cfe04c73d4..58ceddc3bb630abd8d381e797d84f3b998c020cd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js @@ -8,15 +8,17 @@ description: > true (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: true }); +Object.defineProperty(obj, "property", { + configurable: true +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js index 956bdee57065ebc0a490f788df5e04889d07039a..f28ee336676f654648f0aad937a7c99fde27b668 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: false }); +Object.defineProperty(obj, "property", { + configurable: false +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js index ca816d3b39dcedaf2478e229ebb7d26325577814..442ccffbe854c7b45e499fd937a840600d42a286 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: 0 }); +Object.defineProperty(obj, "property", { + configurable: 0 +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js index eee093efb9702f15443a7c38ae96d9761a1d236e..0de5f8d9829efc5ccb8fc95ad4209e8b5ba6c8a2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js @@ -11,7 +11,9 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "property", { configurable: +0 }); +Object.defineProperty(obj, "property", { + configurable: +0 +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js index a96eceabe37325b9b45538c57675f70252b480cf..c899a8e444e4430bcb18566a35ea1f752217d77c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: -0 }); +Object.defineProperty(obj, "property", { + configurable: -0 +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js index 35b086b0df6fe2431140996ac7008b6e216ff9fb..4a6edd949a4ce187b9acbbd6f33299ab7ed61851 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: NaN }); +Object.defineProperty(obj, "property", { + configurable: NaN +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js index bfe8d6199b11ab049e2d2554e33d8147014cb7a8..4268d5d75acb024ae5131a1e7d3e9f12b1066326 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js @@ -8,15 +8,17 @@ description: > a positive number (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: 12345 }); +Object.defineProperty(obj, "property", { + configurable: 12345 +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js index 533e2176ef28ccd38fd52a7e3a3a461c3700d6a2..b80fa463306f7217ad36535bb1633a41bcf4a89f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js @@ -8,15 +8,17 @@ description: > a negative number (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: -12345 }); +Object.defineProperty(obj, "property", { + configurable: -12345 +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js index ffd7940fe55c1083f816da8aaa842bbfad34b339..26f6c405990096c79d52baf9fc661e4ad7502a5a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: "" }); +Object.defineProperty(obj, "property", { + configurable: "" +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js index 28e657393e121600dedc5034aa14305b3628f516..6de92ffa5bf98eaf94ebdd5464efc55813b45dd9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js @@ -12,12 +12,14 @@ description: > but not undefined (Boolean)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = true; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = true; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js index fa8d9108e8c8173c08ec93727294c39b55104a49..9205a2b5908ff4ed7adbb2ce1806d5cf91e1337a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js @@ -8,15 +8,17 @@ description: > a non-empty string (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: " " }); +Object.defineProperty(obj, "property", { + configurable: " " +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js index 03e65d3c83c9186c4e7373c5ea32dabcd886b942..4608840f9da37c094be968309bdb080ff28ec463 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js @@ -8,17 +8,17 @@ description: > a Function object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - configurable: function () { } - }); +Object.defineProperty(obj, "property", { + configurable: function() {} +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js index 8b0def7fde86f6244f85f636064f59b008f9b77b..a09d35399a28c067890b086cd5c513f677b9b1f3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js @@ -8,15 +8,17 @@ description: > an Array object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: [1, 2, 3] }); +Object.defineProperty(obj, "property", { + configurable: [1, 2, 3] +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js index 59b6781075015f81482d46402109620e6d3a4de2..9f0d8f5e9873fe14ca2394f419a8a83cf0752d2d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js @@ -8,15 +8,17 @@ description: > a String object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: new String("bbq") }); +Object.defineProperty(obj, "property", { + configurable: new String("bbq") +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js index c6a3e8cd24236f93548890de23a769525b662212..46972c084fcb790161a00dc062e3e65f7a91728d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js @@ -8,15 +8,17 @@ description: > a Boolean object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: new Boolean(true) }); +Object.defineProperty(obj, "property", { + configurable: new Boolean(true) +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js index 5907d7b81d5e315cd80209eb12adf54e2f595996..09b23a6b9dc47b813e6ce29b61b228bb092a8987 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js @@ -8,15 +8,17 @@ description: > a Number object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: new Number(0) }); +Object.defineProperty(obj, "property", { + configurable: new Number(0) +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js index 2803afbe057b700b47fc47c068fd22957e05996b..9309ae735c64325e4de4af8e6823d411c2281428 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js @@ -8,15 +8,17 @@ description: > the Math object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: Math }); +Object.defineProperty(obj, "property", { + configurable: Math +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js index 2daeab199c38ea8a3903ba8ba5acbfb27f413f2b..04d74d887ea1840a550d11d3d8efa7f8cd5f70dd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js @@ -8,15 +8,17 @@ description: > a Date object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: new Date() }); +Object.defineProperty(obj, "property", { + configurable: new Date() +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js index 76e6ed6d3267cf62a234a46dc050da7d0031ef2f..29356c1aa9ae1f8c845b8afdb9201728d9183ac8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js @@ -8,19 +8,19 @@ description: > a RegExp object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - var attr = { - configurable: new RegExp() - }; +var attr = { + configurable: new RegExp() +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-119.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-119.js index 7b4ff65cfbdd6b85063b40315430029d0bd1ee5d..07013e09b52ab29da5fef3966af4f35a880d9c45 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-119.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-119.js @@ -8,19 +8,19 @@ description: > the JSON object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - var attr = { - configurable: JSON - }; +var attr = { + configurable: JSON +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js index fd0ff11973ccc87ff4394d75c10d034dc1b73fed..023cb1f851586f06ac08e81b9362920d039a814d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js @@ -12,12 +12,14 @@ description: > but not undefined (String)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = "abc"; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = "abc"; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js index 74acbbe0252e5ba05c711b794ed45f0919dc3517..9e7009358d1744ec3e08bf272554418c63a541d1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js @@ -8,19 +8,19 @@ description: > a Error object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - var attr = { - configurable: new SyntaxError() - }; +var attr = { + configurable: new SyntaxError() +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js index d7c924ad58e7639ff8579da3fcbd88cbce8a4017..ed80e3969a5a0e311058cce351383dc01aaf7498 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js @@ -8,21 +8,23 @@ description: > the Argument object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(1, true, "a"); +var argObj = (function() { + return arguments; +})(1, true, "a"); - var attr = { - configurable: argObj - }; +var attr = { + configurable: argObj +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js index b89b54fc3e6df56d523673444bbf4fa04ffb0cdf..5af18a03286b69dc542c25d01d7b3633f8f03abb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js @@ -8,19 +8,19 @@ description: > the global object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - var attr = { - configurable: this - }; +var attr = { + configurable: this +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-124.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-124.js index b4f1995e7a165dc478ae8213fa5a08b2ac35143c..4cd00a0cad28ff2a5d1ec480568d8865acfb82a3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-124.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-124.js @@ -9,19 +9,19 @@ description: > step 4.b) ---*/ - var obj = {}; +var obj = {}; - var attr = { - configurable: "false" - }; +var attr = { + configurable: "false" +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-125.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-125.js index 9c948ddaa5023f3c4462d5e510ae880761574cdb..4b16e7dbb0d4c5fb64acf1af98cf0f7640a1a83a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-125.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-125.js @@ -8,19 +8,19 @@ description: > treated as true when it is new Boolean(false) (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - var attr = { - configurable: new Boolean(false) - }; +var attr = { + configurable: new Boolean(false) +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js index e6e27c455fbc30971c3ae1c9d89a4be3bc147502..055c958679a304e13fa2518766bfe4e0b332c660 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js @@ -8,10 +8,12 @@ description: > present (8.10.5 step 5) ---*/ - var obj = {}; +var obj = {}; - var attr = { value: 100 }; +var attr = { + value: 100 +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); assert.sameValue(obj.property, 100, 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js index 2356a57b6ecae255c4be6f84e52491eb6dad74b3..a732f78a975a61bf85d1b3aae71215f9aa6d2076 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js @@ -8,13 +8,13 @@ description: > present (8.10.5 step 5) ---*/ - var obj = { }; +var obj = {}; - var attr = { - writable: true - }; +var attr = { + writable: true +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-129.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-129.js index 6c0767ea06b8c3eec479ba2c321053f8bb42a1c9..1549cb62c3ac8eee7c2ab826b0ed371a511575e7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-129.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-129.js @@ -8,17 +8,17 @@ description: > inherited data property (8.10.5 step 5.a) ---*/ - var obj = { }; +var obj = {}; - var proto = { - value: "inheritedDataProperty" - }; +var proto = { + value: "inheritedDataProperty" +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js index 47111101f40e61271f2202cbc7bfd0ac384adc93..384450224d8af7ad7e478a11b01dcf139bae8140 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js @@ -12,12 +12,14 @@ description: > not callable (Null)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = null; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = null; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js index d57fa6425014db975d5e8f47094f0a7df5b9a105..ad306767218fb0efd4680138a3e9b5e00898585d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js @@ -9,17 +9,19 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { value: "inheritedDataProperty" }; +var proto = { + value: "inheritedDataProperty" +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - child.value = "ownDataProperty"; +child.value = "ownDataProperty"; - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js index 6490829bff3db57319fc3c6a0da995edba381d0a..bba5ca3f3ed99946bb1f30ba0ed15c57c87e8404 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js @@ -9,24 +9,24 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = { }; +var obj = {}; - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "value", { - value: "ownDataProperty" - }); +var child = new ConstructFun(); +Object.defineProperty(child, "value", { + value: "ownDataProperty" +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-132.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-132.js index dac5ac76fd6572c1e5e11ace1dd8f37060db168c..4b37f1d2a31b32b264b5e268e2d8eda2f4f918da 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-132.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-132.js @@ -8,15 +8,15 @@ description: > accessor property (8.10.5 step 5.a) ---*/ - var obj = { }; +var obj = {}; - var attr = {}; - Object.defineProperty(attr, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +var attr = {}; +Object.defineProperty(attr, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-133.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-133.js index 0fbac7b7c0aab43604f25a082b6c36258908a43d..96ba2888b52845e28733b4ddc80fe08887070b4d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-133.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-133.js @@ -8,20 +8,20 @@ description: > inherited accessor property (8.10.5 step 5.a) ---*/ - var obj = { }; +var obj = {}; - var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +var proto = {}; +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js index 25e3a8e4f1561726f2468db052dd619280fbba5e..bde2857ddd01cd6ccc7a87a82e8987d86d76b4ae 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-134.js @@ -9,22 +9,22 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { - value: "inheritedDataProperty" - }; +var proto = { + value: "inheritedDataProperty" +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-135.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-135.js index 81361b3a5cf3fcb2c4baed02012d9d58e4fe31c9..7283eba4fa29e92e7e0ba3bb71bb9c1b506b215a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-135.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-135.js @@ -9,25 +9,25 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +var proto = {}; +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "value", { - get: function () { - return "ownAccessorProperty"; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "value", { + get: function() { + return "ownAccessorProperty"; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-136.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-136.js index 6a3a9207e726f17e91986ca99be5eaded32cf9b3..da1a2d69900695b86b0e42199155ee20ebfafa19 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-136.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-136.js @@ -8,14 +8,14 @@ description: > accessor property without a get function (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var attr = {}; - Object.defineProperty(attr, "value", { - set: function () { } - }); +var attr = {}; +Object.defineProperty(attr, "value", { + set: function() {} +}); - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-137.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-137.js index aafeec5ffaa1b5855d73a73f857b3a0b9673ec14..da9ec587cd2192de3ee007ddc434f67866db9f12 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-137.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-137.js @@ -9,24 +9,24 @@ description: > inherited accessor property (8.10.5 step 5.a) ---*/ - var obj = { }; +var obj = {}; - var proto = {}; - Object.defineProperty(proto, "value", { - get: function () { - return "inheritedAccessorProperty"; - } - }); +var proto = {}; +Object.defineProperty(proto, "value", { + get: function() { + return "inheritedAccessorProperty"; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "value", { - set : function () { } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "value", { + set: function() {} +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js index 1c0616d17d4f16c76356d709cfc9df78463152a3..7d8496fe554333c1543b6e467549c49b35d48009 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js @@ -9,19 +9,21 @@ description: > 5.a) ---*/ - var obj = { property : 120 }; +var obj = { + property: 120 +}; - var proto = {}; - Object.defineProperty(proto, "value", { - set: function () { } - }); +var proto = {}; +Object.defineProperty(proto, "value", { + set: function() {} +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js index dc4bb72beb2426d378ddfcc11067b6c72c774ab6..630261a0f8fa87e2ab7a1cb3f51336d0f37d61c5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js @@ -9,13 +9,13 @@ description: > of prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Function.prototype.value = "Function"; - var funObj = function (a, b) { - return a + b; - }; +Function.prototype.value = "Function"; +var funObj = function(a, b) { + return a + b; +}; - Object.defineProperty(obj, "property", funObj); +Object.defineProperty(obj, "property", funObj); assert.sameValue(obj.property, "Function", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-139.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-139.js index 544b80e06304d95116c65b9f602fbf9d06a2dd48..86afdeca54afc12b25211f674e92829bb2de4893 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-139.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-139.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = { }; +var obj = {}; - var funObj = function (a, b) { - return a + b; - }; +var funObj = function(a, b) { + return a + b; +}; - funObj.value = "Function"; +funObj.value = "Function"; - Object.defineProperty(obj, "property", funObj); +Object.defineProperty(obj, "property", funObj); assert.sameValue(obj.property, "Function", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js index 68037deefc8fff6c51a749c05842dd77b575628d..ea5c09dbf971f13a6fae1cf69b1aa923d04417b3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js @@ -12,12 +12,16 @@ description: > but not undefined (Object)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy getter - var setter = { a: 1 }; - var desc = { set: setter }; +var o = {}; + +// dummy getter +var setter = { + a: 1 +}; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js index 2427bce09bc8a1961502bf15a70a7940cecdd195..0a5328e0125ef4c34a8c43dfc3c29306e201c8e4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js @@ -9,11 +9,11 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Array.prototype.value = "Array"; - var arrObj = [1, 2, 3]; +Array.prototype.value = "Array"; +var arrObj = [1, 2, 3]; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); assert.sameValue(obj.property, "Array", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-140.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-140.js index 5dcb9fc1e3b13248cdb3e37dc64b458c929edc18..3864f44ed562188eda99c2a8c49430a559b3e785 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-140.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-140.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = { }; +var obj = {}; - var arrObj = [1, 2, 3]; +var arrObj = [1, 2, 3]; - arrObj.value = "Array"; +arrObj.value = "Array"; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); assert.sameValue(obj.property, "Array", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js index 7168b9b07cf739ded84d0924db830b95f0765f51..01ceb708f69a7519ce41811ee621068427ca1178 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-141-1.js @@ -9,11 +9,11 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - String.prototype.value = "String"; - var strObj = new String("abc"); +String.prototype.value = "String"; +var strObj = new String("abc"); - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); assert.sameValue(obj.property, "String", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-141.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-141.js index 531b40470eda7dcc229042ce2e910e824619be28..4dfde83fd57e2e3e719fa1b7f91342ace3f44246 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-141.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-141.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = { }; +var obj = {}; - var strObj = new String("abc"); +var strObj = new String("abc"); - strObj.value = "String"; +strObj.value = "String"; - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); assert.sameValue(obj.property, "String", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js index b7c70877df66dd8a1514ef11af854f44bd35d58f..65e2d29821cdc2c10861572895777fa483f53b2c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-142-1.js @@ -9,11 +9,11 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Boolean.prototype.value = "Boolean"; - var boolObj = new Boolean(true); +Boolean.prototype.value = "Boolean"; +var boolObj = new Boolean(true); - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); assert.sameValue(obj.property, "Boolean", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-142.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-142.js index 9daa893ce8eb9d6b7c32e85b07f2e3815a120be4..236907cd76178c7c1a6e2e16bb7e5fb8ee804fd4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-142.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-142.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = { }; +var obj = {}; - var boolObj = new Boolean(true); +var boolObj = new Boolean(true); - boolObj.value = "Boolean"; +boolObj.value = "Boolean"; - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); assert.sameValue(obj.property, "Boolean", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js index 855177b2c9820d582f55f24240b96e5dd5077a2b..fcab64dffc93b06c395ffe603a14f99257b72bd8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-143-1.js @@ -9,11 +9,11 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Number.prototype.value = "Number"; - var numObj = new Number(-2); +Number.prototype.value = "Number"; +var numObj = new Number(-2); - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); assert.sameValue(obj.property, "Number", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-143.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-143.js index e321f19905fb9c425a625f9cc9e68b702f1729ba..7e3e5295198fe79734cb8de626b3b5265002ab50 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-143.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-143.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = { }; +var obj = {}; - var numObj = new Number(-2); +var numObj = new Number(-2); - numObj.value = "Number"; +numObj.value = "Number"; - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); assert.sameValue(obj.property, "Number", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js index 2d38e639f98c70922b62d3fcad8a79a7130686b8..684510495553c5f7878fa511b05bd0d8f17500af 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-144-1.js @@ -9,10 +9,10 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.value = "Math"; +Object.prototype.value = "Math"; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); assert.sameValue(obj.property, "Math", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-144.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-144.js index 5a243de1cace221844fa244cd150fcb598d52963..013d64c9f20c8fc31c378bc6351758c34c9d4cc9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-144.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-144.js @@ -9,10 +9,10 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - Math.value = "Math"; +Math.value = "Math"; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); assert.sameValue(obj.property, "Math", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js index 738ae2d0e7483faa38af3b613f0befc4112027cd..9c5905d7f6af73b7ba599615ade07279a233145e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-145-1.js @@ -9,11 +9,11 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Date.prototype.value = "Date"; - var dateObj = new Date(); +Date.prototype.value = "Date"; +var dateObj = new Date(); - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); assert.sameValue(obj.property, "Date", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-145.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-145.js index 0b7d5c75c0f2a39b1962dfcf480204047e8964c5..2fa41afc5119ab36f0c03592efe9c1d96fd651ae 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-145.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-145.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = { }; +var obj = {}; - var dateObj = new Date(); +var dateObj = new Date(); - dateObj.value = "Date"; +dateObj.value = "Date"; - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); assert.sameValue(obj.property, "Date", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js index 28fd27b9d358ac4f6b2cd1a8286fbed148584bdf..6ba4c290ab0d9b3b83de3402ea15e2edf4d29c23 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-146-1.js @@ -9,11 +9,11 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - RegExp.prototype.value = "RegExp"; - var regObj = new RegExp(); +RegExp.prototype.value = "RegExp"; +var regObj = new RegExp(); - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); assert.sameValue(obj.property, "RegExp", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-146.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-146.js index fc99527fb2e5c40f3d31bcb69d72208988410f1d..b8a1232236f6191b1f1cd66d661e9b38ae614358 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-146.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-146.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = { }; +var obj = {}; - var regObj = new RegExp(); +var regObj = new RegExp(); - regObj.value = "RegExp"; +regObj.value = "RegExp"; - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); assert.sameValue(obj.property, "RegExp", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js index 2a28c6b511a4665b91f744e9df644b76e7b5cf47..075a30d029cfd010913bf9a55bf32957724d397a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-147-1.js @@ -9,10 +9,10 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.value = "JSON"; +Object.prototype.value = "JSON"; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); assert.sameValue(obj.property, "JSON", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-147.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-147.js index 5974a207bbb87078233f45b76984e2cb31019b90..66dca2c1440c66b05248e28590aadf6dc2e74f24 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-147.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-147.js @@ -9,10 +9,10 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - JSON.value = "JSON"; +JSON.value = "JSON"; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); assert.sameValue(obj.property, "JSON", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js index 516717351ec53f464307e5f164dd201a4af080bb..d08b1716da47031db7846a7800f3c743a6f1d146 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-148-1.js @@ -9,11 +9,11 @@ description: > prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Error.prototype.value = "Error"; - var errObj = new Error(); +Error.prototype.value = "Error"; +var errObj = new Error(); - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); assert.sameValue(obj.property, "Error", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-148.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-148.js index 0e7a99843247a921124f9ba5c4e2c81c39866317..1e9363c73e31e4b11849caf847496a78decf411c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-148.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-148.js @@ -9,12 +9,12 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var errObj = new Error(); +var errObj = new Error(); - errObj.value = "Error"; +errObj.value = "Error"; - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); assert.sameValue(obj.property, "Error", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js index 7ce7e83e2241dcb629a450e2178db5523a3530c4..644b3446617ca0cfe7d7cf8cdb41a6baa1142882 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js @@ -9,12 +9,14 @@ description: > of prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.value = "arguments"; - var argObj = (function () { return arguments; })(); +Object.prototype.value = "arguments"; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); assert.sameValue(obj.property, "arguments", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js index 4385351de51869db2faccaf1b2c81aaea9220978..164e85521a816f5114d2aa04091e8c763239ac51 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js @@ -9,12 +9,14 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.value = "arguments"; +argObj.value = "arguments"; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); assert.sameValue(obj.property, "arguments", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js index 03bca14f13ed929531c2b3ae94f88f2c8349a9f5..f3f1d548327114b5654ba9883e951e561fc63677 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js @@ -6,7 +6,7 @@ es5id: 15.2.3.6-3-15 description: Object.defineProperty - 'Attributes' is undefined (8.10.5 step 1) ---*/ - var obj = {}; +var obj = {}; assert.throws(TypeError, function() { - Object.defineProperty(obj, "property", undefined); + Object.defineProperty(obj, "property", undefined); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-151.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-151.js index afa1640a3e2577b4f59ab2e76cb7b2fc9d07517f..e0d0737afa1f0dac7f94368da9a8f922cd73f3aa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-151.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-151.js @@ -9,10 +9,10 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - this.value = "global"; +this.value = "global"; - Object.defineProperty(obj, "property", this); +Object.defineProperty(obj, "property", this); assert.sameValue(obj.property, "global", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js index 1b9eb1efed4704441d2472b839d9a382708a5c78..d355d3c45d23c94729511e9c4c5703478d9e8507 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] var obj = {}; var attr = { - writable: false + writable: false }; Object.defineProperty(obj, "property", attr); @@ -20,4 +20,3 @@ Object.defineProperty(obj, "property", attr); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js index d2ae3647f134be69f1cea155a1a9e573f448e693..15eeb6e1cf5b3e4a71ed8aac1894b1b7e197cb4d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] var obj = {}; var attr = { - value: 100 + value: 100 }; Object.defineProperty(obj, "property", attr); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-154.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-154.js index 68f33cd8e989f3ca3fb6e6ea3fb48c7ea8b11e37..b946275209aabc515300d60725548ccb6654aa31 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-154.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-154.js @@ -8,19 +8,19 @@ description: > data property (8.10.5 step 6.a) ---*/ - var obj = { }; +var obj = {}; - var attr = { - writable: true - }; +var attr = { + writable: true +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-155.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-155.js index da6d6e0759bffdfda54b988a6392615f4322b3f6..87423da12aa3374f70119994b8d62041dd94cf48 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-155.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-155.js @@ -8,24 +8,24 @@ description: > inherited data property (8.10.5 step 6.a) ---*/ - var obj = { }; +var obj = {}; - var proto = { - writable: true - }; +var proto = { + writable: true +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-156.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-156.js index 18ef468a6e26e08ecf50b3fc188fd3c90ed77381..4e5a49d4e038d4d5df6a1bc78cc167c04b1632fd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-156.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-156.js @@ -9,25 +9,25 @@ description: > step 6.a) ---*/ - var obj = { }; +var obj = {}; - var proto = { - writable: false - }; +var proto = { + writable: false +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - child.writable = true; +var child = new ConstructFun(); +child.writable = true; - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-157.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-157.js index eb343016dc67e1d1ed7fbc81d5c75ced5de3e73c..27c98e78b2fe0dc56f6afd52a1e3c8c9a82c9e7b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-157.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-157.js @@ -9,30 +9,30 @@ description: > (8.10.5 step 6.a) ---*/ - var obj = { }; +var obj = {}; - var proto = { }; - Object.defineProperty(proto, "writable", { - get : function () { - return false; - } - }); +var proto = {}; +Object.defineProperty(proto, "writable", { + get: function() { + return false; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "writable", { - value: true - }); +var child = new ConstructFun(); +Object.defineProperty(child, "writable", { + value: true +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-158.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-158.js index 38c16538834b7e51ea07a79d04b1412e93a211ed..29d46ba9f614d4f5075cce1ef2f5034cdf76e71c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-158.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-158.js @@ -8,22 +8,22 @@ description: > accessor property (8.10.5 step 6.a) ---*/ - var obj = { }; +var obj = {}; - var attr = { }; - Object.defineProperty(attr, "writable", { - get: function () { - return true; - } - }); +var attr = {}; +Object.defineProperty(attr, "writable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-159.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-159.js index 32dbd534116e8c3c24d0cd4e623d8a6fb1945596..fa99dd2e7637fc764b2ce97cf4b7f35a76706637 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-159.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-159.js @@ -8,27 +8,27 @@ description: > inherited accessor property (8.10.5 step 6.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; - Object.defineProperty(proto, "writable", { - get: function () { - return true; - } - }); +var proto = {}; +Object.defineProperty(proto, "writable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-16.js index e56a08412e58e4628a44c4ae6d0a00a8c2df4c11..3ed6b9190b217ab12ea29df731c5a8feae1b2831 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-16.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-16.js @@ -7,5 +7,5 @@ description: Object.defineProperty - 'Attributes' is null (8.10.5 step 1) ---*/ assert.throws(TypeError, function() { - Object.defineProperty({}, "property", null); + Object.defineProperty({}, "property", null); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-160.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-160.js index b363def64512db0280eaba2095d03206a92c3c50..d30abd3124d5957643ced279ccd8fc0613615c46 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-160.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-160.js @@ -9,29 +9,29 @@ description: > (8.10.5 step 6.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { - writable: false - }; +var proto = { + writable: false +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "writable", { - get: function () { - return true; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "writable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-161.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-161.js index e2e626d34a55c42378a212f9c3669112c61770c3..7072dc507acf50560d066d59e0fc877b9fda07a6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-161.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-161.js @@ -9,32 +9,32 @@ description: > (8.10.5 step 6.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; - Object.defineProperty(proto, "writable", { - get: function () { - return false; - } - }); +var proto = {}; +Object.defineProperty(proto, "writable", { + get: function() { + return false; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "writable", { - get: function () { - return true; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "writable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js index 1c3b3c7e9a772eec6ea866a2b7f6bad6b19a859a..e5081410b6c5d14923d02d43390469a086a88b4d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js @@ -13,11 +13,10 @@ var obj = {}; var attr = {}; Object.defineProperty(attr, "writable", { - set: function () { } + set: function() {} }); Object.defineProperty(obj, "property", attr); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js index bbdf9eed722f6cd988e482628bd6f3fe13fe0514..3615ce5c6f735f0f27c017f1397c5232e9f22aac 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js @@ -14,17 +14,17 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "writable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var child = new ConstructFun(); Object.defineProperty(child, "writable", { - set: function () { } + set: function() {} }); Object.defineProperty(obj, "property", child); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-164.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-164.js index 4c5e7b06c2565f6a387cd4bb4df074243d8a753e..baaa4a1a3804bfd909f4f141e79a3f5c674a62eb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-164.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-164.js @@ -14,10 +14,10 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "writable", { - set: function () { } + set: function() {} }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var child = new ConstructFun(); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js index 2daa9523df5a78a1e9b19edf1a8adbda2207f725..d790fc6e4d0c699a216fbd7388e96b2317c11f87 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-165-1.js @@ -9,20 +9,20 @@ description: > property of prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Function.prototype.writable = true; - var funObj = function (a, b) { - return a + b; - }; +Function.prototype.writable = true; +var funObj = function(a, b) { + return a + b; +}; - Object.defineProperty(obj, "property", funObj); +Object.defineProperty(obj, "property", funObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-165.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-165.js index 3895b6f61facfc2a4e51fb7999db290620262f4e..c0e137038ba7877939dd75ba212078b4e22ddfd5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-165.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-165.js @@ -9,21 +9,21 @@ description: > property (8.10.5 step 6.a) ---*/ - var obj = {}; +var obj = {}; - var funObj = function (a, b) { - return a + b; - }; +var funObj = function(a, b) { + return a + b; +}; - funObj.writable = true; +funObj.writable = true; - Object.defineProperty(obj, "property", funObj); +Object.defineProperty(obj, "property", funObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js index 66bc45603a2b03a7d6fb7238f47468a956eb93ca..3ed3f5223bd034c755c38ab152a5466443d5b978 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-166-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Array.prototype.writable = true; - var arrObj = [1, 2, 3]; +Array.prototype.writable = true; +var arrObj = [1, 2, 3]; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-166.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-166.js index 2781bbe76b3a8adb2b61535bac0528954d82f7ff..2422bbd2e682aba134509156e515470bfc38bc50 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-166.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-166.js @@ -9,19 +9,19 @@ description: > step 6.a) ---*/ - var obj = { }; +var obj = {}; - var arrObj = [1, 2, 3]; +var arrObj = [1, 2, 3]; - arrObj.writable = true; +arrObj.writable = true; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js index e5227ee79ea717e985689ae49016324ccaf9a9f0..6fa37c460a160c83b58fc855f10edcbaa2fdb118 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - String.prototype.writable = true; - var strObj = new String("abc"); +String.prototype.writable = true; +var strObj = new String("abc"); - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-167.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-167.js index 9514ee5227af1c0d6d431732d4b9df251e0cd9a9..955db2b909f1744a5c5d206619d900653e9bf8d6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-167.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-167.js @@ -9,19 +9,19 @@ description: > step 6.a) ---*/ - var obj = {}; +var obj = {}; - var strObj = new String("abc"); +var strObj = new String("abc"); - strObj.writable = true; +strObj.writable = true; - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js index 347024234d63042b2975d408d9fb2453dc094dd1..9ae7ebb9671cb7715b10ae8fafedd0e63aef74a2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-168-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Boolean.prototype.writable = true; - var boolObj = new Boolean(true); +Boolean.prototype.writable = true; +var boolObj = new Boolean(true); - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-168.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-168.js index a817213316d0df5c1886825aedf9f9e7d4d3ce8c..ce57f97458b526e0d67d25a93379385fa16dd268 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-168.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-168.js @@ -9,19 +9,19 @@ description: > step 6.a) ---*/ - var obj = { }; +var obj = {}; - var boolObj = new Boolean(true); +var boolObj = new Boolean(true); - boolObj.writable = true; +boolObj.writable = true; - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js index 431adb9f6af21f050fb66e51930b57cf92741acc..c6c675e9c83e3cd80f577566abd1f98618d42378 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-169-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Number.prototype.writable = true; - var numObj = new Number(-2); +Number.prototype.writable = true; +var numObj = new Number(-2); - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-169.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-169.js index 4fbbfc386fd470cfd72716ec2b0d2fd739fe4ed8..dc0d5554ffec322b4029fa0b2c512039ae4e472b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-169.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-169.js @@ -9,19 +9,19 @@ description: > step 6.a) ---*/ - var obj = { }; +var obj = {}; - var numObj = new Number(-2); +var numObj = new Number(-2); - numObj.writable = true; +numObj.writable = true; - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js index 855ddf4b2ea8c0a4e6e9fcae41a3f54dbe97be92..72f31b2e09b0aed2be867e1dacbfc01688df1a89 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(TypeError, function() { - Object.defineProperty({}, "property", true); + Object.defineProperty({}, "property", true); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js index bd586b4b119c6450353c14a824c357da334e9613..6a88ed9c5ddc71860677e63169eba7203eebeb84 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js @@ -9,17 +9,17 @@ description: > prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.writable = true; +Object.prototype.writable = true; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-170.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-170.js index d0d86774fe291de79817ffa8e2219337f04c8afb..6f5f3065b26e8a81bf84f95f2acfe01b2822cf77 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-170.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-170.js @@ -9,17 +9,17 @@ description: > step 6.a) ---*/ - var obj = {}; +var obj = {}; - Math.writable = true; +Math.writable = true; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js index a10aa1b7d4ed3a48f822e57a1dc81340964002ea..b5941c8bf531e0b674e66c479b6c00541375545f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-171-1.js @@ -12,13 +12,13 @@ includes: [propertyHelper.js] var obj = {}; try { - Date.prototype.writable = true; + Date.prototype.writable = true; - var dateObj = new Date(); + var dateObj = new Date(); - Object.defineProperty(obj, "property", dateObj); - verifyWritable(obj, "property"); + Object.defineProperty(obj, "property", dateObj); + verifyWritable(obj, "property"); } finally { - delete Date.prototype.writable; + delete Date.prototype.writable; } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-171.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-171.js index 4cbcfcf9f82c998ba4fc82493129f961c2c15afc..15f8cc9e88cb5ef06a20f9fb7503755af78375ca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-171.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-171.js @@ -9,19 +9,19 @@ description: > step 6.a) ---*/ - var obj = { }; +var obj = {}; - var dateObj = new Date(); +var dateObj = new Date(); - dateObj.writable = true; +dateObj.writable = true; - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js index abcd93fc043ec9c8e472c3b2045e6c550c03ba1c..c75e3af141d487de78e4b854104dd254da6d145d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-172-1.js @@ -9,19 +9,19 @@ description: > prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - RegExp.prototype.writable = true; +RegExp.prototype.writable = true; - var regObj = new RegExp(); +var regObj = new RegExp(); - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-172.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-172.js index 8c1f6a605821f807ef6e7b91d71b62712bb56860..424ac5008eafd18288047fa0c34ded90b07810ab 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-172.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-172.js @@ -9,19 +9,19 @@ description: > step 6.a) ---*/ - var obj = { }; +var obj = {}; - var regObj = new RegExp(); +var regObj = new RegExp(); - regObj.writable = true; +regObj.writable = true; - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js index 78f95f7d2db992857b84e1c5cdfda786b1400925..ec74c5a4f02d3a3e8515a298865635c210a8b63a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-173-1.js @@ -9,17 +9,17 @@ description: > prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.writable = true; +Object.prototype.writable = true; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-173.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-173.js index cb368f7d0331ca082f1d2ce1cb1a23f7e970aeee..2b9aa032b3002c718105c7851ec9c3927df98a69 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-173.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-173.js @@ -9,17 +9,17 @@ description: > step 6.a) ---*/ - var obj = {}; +var obj = {}; - JSON.writable = true; +JSON.writable = true; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js index 073df798723833f8b7f515159a5958340504c2b9..552d3ed010842058f9faef7186ae6f131fd3bae0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-174-1.js @@ -9,19 +9,19 @@ description: > prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Error.prototype.writable = true; +Error.prototype.writable = true; - var errObj = new Error(); +var errObj = new Error(); - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-174.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-174.js index e29059c3bf2df3dc52b8c40d4254a3bea814eb0f..ee58430a9bf522f64e83d2f8363a67626027bad9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-174.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-174.js @@ -9,19 +9,19 @@ description: > step 6.a) ---*/ - var obj = { }; +var obj = {}; - var errObj = new Error(); +var errObj = new Error(); - errObj.writable = true; +errObj.writable = true; - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js index cc32ea6b421b78f27f5916b6d36992574fafcd6c..6ea48186237ea13f957ac6876e12b39019e4ed55 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js @@ -9,19 +9,21 @@ description: > property of prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.writable = true; +Object.prototype.writable = true; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js index f816f7acfca6c5a4e7cb5fa0d6211ff17aaa3fad..37644833da60dafd42bb19da75b18f6a6cabd669 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js @@ -9,19 +9,21 @@ description: > property (8.10.5 step 6.a) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.writable = true; +argObj.writable = true; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js index c044f4dd931865da875954cfc1c454d502c19969..76ea0c955fa60fb35534ec168d778ca66e0f812e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 6.a) ---*/ - var obj = {}; +var obj = {}; - this.writable = true; +this.writable = true; - Object.defineProperty(obj, "property", this); +Object.defineProperty(obj, "property", this); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-178.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-178.js index 77d1123e1e92c7e04ece1e908ac6b35899b7dd26..354b342f1dd551a014ab01478c8c897a47050a08 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-178.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-178.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - writable: undefined + writable: undefined }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js index ec43702bc9b0d5f1f6f4e847d1647218cc21c176..88c9e3f0dbfd544e88ad076f92ea2de060642293 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: null }); +Object.defineProperty(obj, "property", { + writable: null +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js index c2f3bcd6734637ef47583212e4fb4474fe8db14d..ad18680682b5dae40ce687e00d74e6b06cf5e328 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(TypeError, function() { - Object.defineProperty({}, "property", 12); + Object.defineProperty({}, "property", 12); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js index 41365f9ce5ab80ffc40fcd3a943654f5d8823e9b..5eeabe40ef3c4daf8e6871de384190d800b20a6c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js @@ -8,15 +8,17 @@ description: > true (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: true }); +Object.defineProperty(obj, "property", { + writable: true +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js index dba19631028ebb4053efdbc6b411e9e2abc721b5..7b40135c27f1e848d19e05ff311c586aa5548630 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: false }); +Object.defineProperty(obj, "property", { + writable: false +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js index 559b4e64da6f90fa67a4c8415db100076e1375d5..2d818dba21b4d27989542f4b8d572aa350abb633 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: 0 }); +Object.defineProperty(obj, "property", { + writable: 0 +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js index 815482b166c76d008caa91570d918d9807b27f91..9b20abc03feb297cbd61191c10f7d42968af5a65 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js @@ -11,7 +11,9 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "property", { writable: +0 }); +Object.defineProperty(obj, "property", { + writable: +0 +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js index a7829b76605b20d039c220db235943e299da3e69..d788c3d238bdeb597db851af7351a461b71758f3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: -0 }); +Object.defineProperty(obj, "property", { + writable: -0 +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js index 3e057091e690b2b2ec7c8e5844b3ddc32e1df3b2..883316e494a8b880929a619e8649e9b76850c2fb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js @@ -9,13 +9,14 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: NaN}); +Object.defineProperty(obj, "property", { + writable: NaN +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); -assert.sameValue(typeof (obj.property), "undefined"); - +assert.sameValue(typeof(obj.property), "undefined"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js index 1239edb9d4b0fd2dc9468a5d1ecf62181f606338..59c0376b2db73fde5bfaf04ea0ee0e61b76915ce 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js @@ -8,15 +8,17 @@ description: > positive number (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: 12345 }); +Object.defineProperty(obj, "property", { + writable: 12345 +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js index 91c91c7f574a2cb39cb6c085dc07a8615982b6a9..3c393647af77b85d6723f80b78e52e1d8a09c05d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js @@ -8,15 +8,17 @@ description: > negative number (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: -12345 }); +Object.defineProperty(obj, "property", { + writable: -12345 +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js index 51fca69ec6381eaa71ef1eb673896fc19f18e75b..e23005612c29d83e82beba5439ba7522bcaac246 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js @@ -11,7 +11,9 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "property", { writable: "" }); +Object.defineProperty(obj, "property", { + writable: "" +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js index c3da81e30d504404cc26c1328a018aa1e684d575..02bd96fe6d7a5ad2836e4bec7344b59696dfc3c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js @@ -8,15 +8,17 @@ description: > non-empty string (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: " " }); +Object.defineProperty(obj, "property", { + writable: " " +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js index c108213483099dba0f055ebe44fa7acadb638977..f4053d85ccbb55e8ce444729960ef57f1a4c546a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js @@ -9,5 +9,5 @@ description: > ---*/ assert.throws(TypeError, function() { - Object.defineProperty({}, "property", "abc"); + Object.defineProperty({}, "property", "abc"); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-190.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-190.js index a87d465a006a6a7d3c73b1382d233ef91a2bfe80..12ace4eb7ce9b7e0c00793819aea64244d729970 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-190.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-190.js @@ -8,17 +8,17 @@ description: > Function object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - writable: function () { } - }); +Object.defineProperty(obj, "property", { + writable: function() {} +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js index 0bed96abceefcb9c76e3d7a5a718cd3ef3159219..bae79913a25b91b9eee0f72a0ae1e3d5b990b7e4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js @@ -8,15 +8,17 @@ description: > Array object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: [1, 2, 3] }); +Object.defineProperty(obj, "property", { + writable: [1, 2, 3] +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js index 86a87b4237d29a9080434d61a9c04fcc3480a20f..b7c3568f1881bfb5e21c6050b9fd3a68ef3618d0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js @@ -8,15 +8,17 @@ description: > String object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new String("bbq") }); +Object.defineProperty(obj, "property", { + writable: new String("bbq") +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js index 66f9558d0256aa16489170448b28fe4b0ab81930..9cec27586aa0bf1d97a218f3976f35f5e5de4ac6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js @@ -8,15 +8,17 @@ description: > Boolean object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new Boolean(true) }); +Object.defineProperty(obj, "property", { + writable: new Boolean(true) +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js index df8ac1084c773edd6851fa82bd9d3a9915b615b4..b7982633987991e8f86eed074d6cbd1ca9886f2e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js @@ -8,15 +8,17 @@ description: > Number object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new Number(123) }); +Object.defineProperty(obj, "property", { + writable: new Number(123) +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js index 339bfc4c2ed335bc3f1232d171d29e4227e5e074..992e8da924c0b2cd97cf50a3c2b0103762bb93be 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js @@ -8,15 +8,17 @@ description: > Math object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: Math }); +Object.defineProperty(obj, "property", { + writable: Math +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js index 2ce077a6ef34826a3988643aefbffb294774fa7c..62c4cd7d7c7c40b2f4ac64d81fbe16949a41d017 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js @@ -8,15 +8,17 @@ description: > Date object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new Date() }); +Object.defineProperty(obj, "property", { + writable: new Date() +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js index 550d69b6b5eac079f14b077a8cc38350154f6cf0..702cffb78545b7174155cb81d468e67ec7e18304 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js @@ -8,17 +8,17 @@ description: > RegExp object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - writable: new RegExp() - }); +Object.defineProperty(obj, "property", { + writable: new RegExp() +}); - var beforeWrite = obj.hasOwnProperty("property") && typeof obj.property === "undefined"; +var beforeWrite = obj.hasOwnProperty("property") && typeof obj.property === "undefined"; - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert(beforeWrite, 'beforeWrite !== true'); assert(afterWrite, 'afterWrite !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js index f5ccb8883054188e8d19c581a739134a3e506f9c..f7e0e2cb1f5cff406ee58493f29023a0323c7ba1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js @@ -8,15 +8,17 @@ description: > JSON object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: JSON }); +Object.defineProperty(obj, "property", { + writable: JSON +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js index ffd301e24ad0307927d78ddfc12c96b6791cb8d8..7b9d8aa356864a5af004d23a4d9c862624b1d5ce 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js @@ -8,15 +8,17 @@ description: > Error object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new SyntaxError() }); +Object.defineProperty(obj, "property", { + writable: new SyntaxError() +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js index 082d367fe3f443af075932e7be0dc3eed83b806d..50c5a0faf3c390eaa10dbb032528ba7b7ca32b4a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js @@ -12,12 +12,17 @@ description: > 'writable' present(8.10.5 step 9.a) ---*/ - var o = {}; - - // dummy getter - var getter = function () { return 1; } - var desc = { get: getter, writable: false }; +var o = {}; + +// dummy getter +var getter = function() { + return 1; +} +var desc = { + get: getter, + writable: false +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js index 1873ba03ef12aba15ca0d73cdb13814b87d4b839..1fba3a8b8d09136bc213ccef47f119d04809fdb7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js @@ -8,18 +8,18 @@ description: > present (8.10.5 step 3) ---*/ - var obj = {}; +var obj = {}; - var accessed = false; - Object.defineProperty(obj, "property", { - enumerable: false - }); +var accessed = false; +Object.defineProperty(obj, "property", { + enumerable: false +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js index 286cb4f5d58ddc3bc611ca44539b89c397aeed05..8ce95c3dd9c143bf25a48277209c8e2da7f44913 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js @@ -8,17 +8,21 @@ description: > Argument object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(1, true, "a"); +var argObj = (function() { + return arguments; +})(1, true, "a"); - Object.defineProperty(obj, "property", { writable: argObj }); +Object.defineProperty(obj, "property", { + writable: argObj +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js index 52ee4bbd6d6f1df0db73444411101de77779754e..1a662e73f6c76d881e779a9db106ca82af2b55b5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js @@ -8,17 +8,17 @@ description: > global object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - writable: this - }); +Object.defineProperty(obj, "property", { + writable: this +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js index cb0c0e49729cffc78022c45d22aee4afb7019e37..9d4a5239e9bd24f91089d7638498790ef9dcad5a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js @@ -9,15 +9,17 @@ description: > 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: "false" }); +Object.defineProperty(obj, "property", { + writable: "false" +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js index a8d61b311c610886b5958cd02c49b707ce78624d..07341a6ce754663a0856edec3b4f7d51c0bc7636 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js @@ -8,15 +8,17 @@ description: > treated as true when it is new Boolean(false) (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new Boolean(false) }); +Object.defineProperty(obj, "property", { + writable: new Boolean(false) +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js index 4d1f8183b79176dd6ffe141f4223fa4cce4cddd8..0aa07865df715b1ce24e1115960522ca2b2dc923 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js @@ -8,12 +8,12 @@ description: > (8.10.5 step 7) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - get: function () { - return "present"; - } - }); +Object.defineProperty(obj, "property", { + get: function() { + return "present"; + } +}); assert.sameValue(obj.property, "present", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-206.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-206.js index 004e92a78d8c25396298de7cef61788412320271..b7ee5eb85110b4b3675eb009849b6ffa4c2de296 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-206.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-206.js @@ -8,11 +8,11 @@ description: > present (8.10.5 step 7) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - set: function () {} - }); +Object.defineProperty(obj, "property", { + set: function() {} +}); assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property'); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-207.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-207.js index 720e1e1c0b8759dae9326d25ce08fcb55f704cff..f0d1e15370e2d84000439ade4de4727cb61ef814 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-207.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-207.js @@ -8,13 +8,13 @@ description: > property (8.10.5 step 7.a) ---*/ - var obj = {}; - var attributes = { - get: function () { - return "ownDataProperty"; - } - }; +var obj = {}; +var attributes = { + get: function() { + return "ownDataProperty"; + } +}; - Object.defineProperty(obj, "property", attributes); +Object.defineProperty(obj, "property", attributes); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-208.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-208.js index 3be19510af59955afe5b8bd2963a43f47bb42788..acfd6d48a3e2cd67bf620b25cb0bedef5b1d7c83 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-208.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-208.js @@ -8,18 +8,18 @@ description: > inherited data property (8.10.5 step 7.a) ---*/ - var obj = {}; - var proto = { - get: function () { - return "inheritedDataProperty"; - } - }; +var obj = {}; +var proto = { + get: function() { + return "inheritedDataProperty"; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "inheritedDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-209.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-209.js index 06e83faf6f09855d80c0abcb08cf7e4b035f11f5..65e76e89c012b3da9c0a2c2feed3bc75e2f75ee2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-209.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-209.js @@ -9,21 +9,21 @@ description: > 7.a) ---*/ - var obj = {}; - var proto = { - get: function () { - return "inheritedDataProperty"; - } - }; +var obj = {}; +var proto = { + get: function() { + return "inheritedDataProperty"; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - child.get = function () { - return "ownDataProperty"; - }; +var child = new ConstructFun(); +child.get = function() { + return "ownDataProperty"; +}; - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-21.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-21.js index 24baf80a031cdf5397510be743f5e8319f67f9da..b8054e9b43cd7089611e79eae2816bb9be9b28b7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-21.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-21.js @@ -8,16 +8,16 @@ description: > not present (8.10.5 step 3) ---*/ - var obj = {}; +var obj = {}; - var attr = {}; - var accessed = false; - Object.defineProperty(obj, "property", attr); +var attr = {}; +var accessed = false; +Object.defineProperty(obj, "property", attr); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-210.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-210.js index 52122a6292261f21a768d12fffcaf84ab1e1c75e..8f62b01bed5360000a9a134be6c6b26272f0f6ab 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-210.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-210.js @@ -9,27 +9,27 @@ description: > step 7.a) ---*/ - var obj = {}; - var proto = {}; - var fun = function () { - return "inheritedAccessorProperty"; - }; - Object.defineProperty(proto, "get", { - get: function () { - return fun; - } - }); +var obj = {}; +var proto = {}; +var fun = function() { + return "inheritedAccessorProperty"; +}; +Object.defineProperty(proto, "get", { + get: function() { + return fun; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "get", { - value: function () { - return "ownDataProperty"; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "get", { + value: function() { + return "ownDataProperty"; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-211.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-211.js index 543ef14fbbe8e5e8b5f33d2c6219c39be52837be..ba3085b96200d7396eec903fb9716c6d1e10781d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-211.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-211.js @@ -8,17 +8,17 @@ description: > accessor property (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var attributes = {}; - Object.defineProperty(attributes, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); +var attributes = {}; +Object.defineProperty(attributes, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); - Object.defineProperty(obj, "property", attributes); +Object.defineProperty(obj, "property", attributes); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-212.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-212.js index 9cf8718b8a37cece291e01fe3796b038e49d85e3..4eb0b303c6de69fce0298c7f7f0578ea01ffde12 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-212.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-212.js @@ -8,21 +8,21 @@ description: > inherited accessor property (8.10.5 step 7.a) ---*/ - var obj = {}; - var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +var obj = {}; +var proto = {}; +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "inheritedAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-213.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-213.js index 2b51e1554bbb18294a66a958d737244f7768864a..a0839ccfea7cbfaeda0ab73509f577d17ce33f8e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-213.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-213.js @@ -9,25 +9,25 @@ description: > (8.10.5 step 7.a) ---*/ - var obj = {}; - var proto = { - get: function () { - return "inheritedDataProperty"; - } - }; +var obj = {}; +var proto = { + get: function() { + return "inheritedDataProperty"; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-214.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-214.js index b740fedec07e1890d3f042a453cdbf5ef9a83f14..b4bbb84425f3885c91b4a0b4464e32700c70c753 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-214.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-214.js @@ -9,28 +9,28 @@ description: > (8.10.5 step 7.a) ---*/ - var obj = {}; - var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +var obj = {}; +var proto = {}; +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "get", { - get: function () { - return function () { - return "ownAccessorProperty"; - }; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "get", { + get: function() { + return function() { + return "ownAccessorProperty"; + }; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-215.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-215.js index 0e03885d01d88ffc956db386e96f9a2bd51c6dd1..cd74bb102dc206b7409bfcc00e1e5fad926f96c3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-215.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-215.js @@ -8,14 +8,14 @@ description: > accessor property without a get function (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var attributes = {}; - Object.defineProperty(attributes, "get", { - set: function () { } - }); +var attributes = {}; +Object.defineProperty(attributes, "get", { + set: function() {} +}); - Object.defineProperty(obj, "property", attributes); +Object.defineProperty(obj, "property", attributes); assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property'); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-216.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-216.js index f80e5aa703c3feebb096aa7ec72f7452ad0f0bed..d8a9c00984a6927a5d983f837b1b6029b14485fe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-216.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-216.js @@ -9,25 +9,25 @@ description: > inherited accessor property (8.10.5 step 7.a) ---*/ - var obj = {}; - var proto = {}; - Object.defineProperty(proto, "get", { - get: function () { - return function () { - return "inheritedAccessorProperty"; - }; - } - }); +var obj = {}; +var proto = {}; +Object.defineProperty(proto, "get", { + get: function() { + return function() { + return "inheritedAccessorProperty"; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "get", { - set: function () { } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "get", { + set: function() {} +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-217.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-217.js index 4454a148eee4483c86c228f55097eb2277bcc5d3..78ed6f0f0719f912dc611e73c0f55f6cd6d4c321 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-217.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-217.js @@ -9,18 +9,18 @@ description: > 7.a) ---*/ - var obj = {}; - var proto = {}; - Object.defineProperty(proto, "get", { - set: function () { } - }); +var obj = {}; +var proto = {}; +Object.defineProperty(proto, "get", { + set: function() {} +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js index af3ba07d2874ca18ba74c470e7a0b97f4ce155ab..ea8476132fcc8ac923e41925324d4e81fb53f4f8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-218-1.js @@ -9,13 +9,13 @@ description: > prototype object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Function.prototype.get = function () { - return "functionGetProperty"; - }; - var funObj = function () { }; +Function.prototype.get = function() { + return "functionGetProperty"; +}; +var funObj = function() {}; - Object.defineProperty(obj, "property", funObj); +Object.defineProperty(obj, "property", funObj); assert.sameValue(obj.property, "functionGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-218.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-218.js index 4b1b50bb77df28cadf928a4d78fbb29bec93eeea..3237a5db9911c3ced49f3c01005ef0afb3435933 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-218.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-218.js @@ -9,14 +9,14 @@ description: > (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var funObj = function () { }; +var funObj = function() {}; - funObj.get = function () { - return "functionGetProperty"; - }; +funObj.get = function() { + return "functionGetProperty"; +}; - Object.defineProperty(obj, "property", funObj); +Object.defineProperty(obj, "property", funObj); assert.sameValue(obj.property, "functionGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js index 777e4b1e16eaa253baf37f9fae6265f79ecedf9d..65f8a003e961c892b57a837dff0f4b3d4e89a480 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-219-1.js @@ -9,13 +9,13 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Array.prototype.get = function () { - return "arrayGetProperty"; - }; - var arrObj = []; +Array.prototype.get = function() { + return "arrayGetProperty"; +}; +var arrObj = []; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); assert.sameValue(obj.property, "arrayGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-219.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-219.js index 4586f5b9df376f9a6f81cec0961611e5807ad4cf..561257b218a6d22886cf72a0f8c85e879f190625 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-219.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-219.js @@ -9,14 +9,14 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - var arrObj = []; +var arrObj = []; - arrObj.get = function () { - return "arrayGetProperty"; - }; +arrObj.get = function() { + return "arrayGetProperty"; +}; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); assert.sameValue(obj.property, "arrayGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-22.js index e09e9b43bdd95c062bbd5fe6281ab8bd0bd4d2eb..858e65ee71d608b05fad7212f0f29c5022c477f8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-22.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-22.js @@ -8,17 +8,17 @@ description: > own data property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { - enumerable: true - }); +Object.defineProperty(obj, "property", { + enumerable: true +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js index 12816889ee97929c52ccecd8867493590a244a8b..e84ef2f7f7d14029412b46ceb351c505f2fe4d12 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-220-1.js @@ -9,13 +9,13 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - String.prototype.get = function () { - return "stringGetProperty"; - }; - var strObj = new String(); +String.prototype.get = function() { + return "stringGetProperty"; +}; +var strObj = new String(); - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); assert.sameValue(obj.property, "stringGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-220.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-220.js index 90284ea2ddaa2b076b5dd43850d56966d245ffdf..093721583230159684294c1cbaf5e28f90505c3c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-220.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-220.js @@ -9,14 +9,14 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - var strObj = new String(); +var strObj = new String(); - strObj.get = function () { - return "stringGetProperty"; - }; +strObj.get = function() { + return "stringGetProperty"; +}; - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); assert.sameValue(obj.property, "stringGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js index 5984602a4eee1a1daeb811dbef8bb2789a164670..70a954f197e69ab9d785a3b3019a46f528265964 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-221-1.js @@ -9,13 +9,13 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Boolean.prototype.get = function () { - return "booleanGetProperty"; - }; - var boolObj = new Boolean(true); +Boolean.prototype.get = function() { + return "booleanGetProperty"; +}; +var boolObj = new Boolean(true); - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); assert.sameValue(obj.property, "booleanGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-221.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-221.js index d23d5d32a623f741e2ba271f5f27559f40b23c3d..f62fd3eb765731e223180f850b6adf3616a7e46a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-221.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-221.js @@ -9,14 +9,14 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - var boolObj = new Boolean(true); +var boolObj = new Boolean(true); - boolObj.get = function () { - return "booleanGetProperty"; - }; +boolObj.get = function() { + return "booleanGetProperty"; +}; - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); assert.sameValue(obj.property, "booleanGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js index 2782d5443846e20200d2e836a385270d2edac40a..b2b3af5692ae45c80941e0ed106f8499f61e17d8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-222-1.js @@ -9,13 +9,13 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Number.prototype.get = function () { - return "numberGetProperty"; - }; - var numObj = new Number(-2); +Number.prototype.get = function() { + return "numberGetProperty"; +}; +var numObj = new Number(-2); - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); assert.sameValue(obj.property, "numberGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-222.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-222.js index 53996912347da7060500e7f0bdf1b1b3e2c94701..04f5d8af678cd94244f18b281b8c636451171ab8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-222.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-222.js @@ -9,14 +9,14 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - var numObj = new Number(-2); +var numObj = new Number(-2); - numObj.get = function () { - return "numberGetProperty"; - }; +numObj.get = function() { + return "numberGetProperty"; +}; - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); assert.sameValue(obj.property, "numberGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js index cb7c01393bfc14d39a46905c61456942935cbf63..d8849c6a29f2852eadabacaad9b6980d8e4684c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-223-1.js @@ -9,12 +9,12 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.get = function () { - return "mathGetProperty"; - }; +Object.prototype.get = function() { + return "mathGetProperty"; +}; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); assert.sameValue(obj.property, "mathGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js index 165f297a7f9bae743294b9e75a9aef6b8bbfef97..e9de0f51858d9b5ba7c3b13b85e8ae6a47f3e87e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js @@ -9,12 +9,12 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - Math.get = function () { - return "mathGetProperty"; - }; +Math.get = function() { + return "mathGetProperty"; +}; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); assert.sameValue(obj.property, "mathGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js index 4e2957df909b89c8cf33a4479cb2c868c314fe68..dd6e0d0505ff76e470510a83e87ad402585725d3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-224-1.js @@ -9,13 +9,13 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Date.prototype.get = function () { - return "dateGetProperty"; - }; - var dateObj = new Date(); +Date.prototype.get = function() { + return "dateGetProperty"; +}; +var dateObj = new Date(); - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); assert.sameValue(obj.property, "dateGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-224.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-224.js index aff1cffe09e98cd94d7d2306a5673699db7dff86..3b6b143c431dd2843e92f3890b553b1cb0c09231 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-224.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-224.js @@ -9,14 +9,14 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - var dateObj = new Date(); +var dateObj = new Date(); - dateObj.get = function () { - return "dateGetProperty"; - }; +dateObj.get = function() { + return "dateGetProperty"; +}; - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); assert.sameValue(obj.property, "dateGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js index cac5367617ede93048d7dcb817ff55c189fb821d..fc96a2d1d4ec835fb50e0cd2520bcd830f865cb6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-225-1.js @@ -9,14 +9,14 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - RegExp.prototype.get = function () { - return "regExpGetProperty"; - }; - var regObj = new RegExp(); +RegExp.prototype.get = function() { + return "regExpGetProperty"; +}; +var regObj = new RegExp(); - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); assert.sameValue(obj.property, "regExpGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-225.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-225.js index df394a6422108ef26d59342b5f547bfbcb2f2e08..f65c6e74ad37d44226b12f89953e66c104faadb4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-225.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-225.js @@ -9,14 +9,14 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - var regObj = new RegExp(); +var regObj = new RegExp(); - regObj.get = function () { - return "regExpGetProperty"; - }; +regObj.get = function() { + return "regExpGetProperty"; +}; - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); assert.sameValue(obj.property, "regExpGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js index 63ccc8a3a9fc9ae2479de3a46f6764aa1ad7dc5d..8531ea1b9437baf845dedc90d3bf050a06f74a53 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-226-1.js @@ -9,12 +9,12 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.get = function () { - return "jsonGetProperty"; - }; +Object.prototype.get = function() { + return "jsonGetProperty"; +}; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); assert.sameValue(obj.property, "jsonGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-226.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-226.js index 404626ea18009be4b2a71f2363581815a8dfa67f..f7d95101387362186e8403dd85b17dbc319bcd97 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-226.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-226.js @@ -9,12 +9,12 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - JSON.get = function () { - return "jsonGetProperty"; - }; +JSON.get = function() { + return "jsonGetProperty"; +}; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); assert.sameValue(obj.property, "jsonGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js index 3b694afa293228a4f41f69ecb013c9cd665cf10d..69c0c2b1f3f16afd26b7392b8b720e6e18a7c5c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-227-1.js @@ -9,13 +9,13 @@ description: > object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Error.prototype.get = function () { - return "errorGetProperty"; - }; - var errObj = new Error(); +Error.prototype.get = function() { + return "errorGetProperty"; +}; +var errObj = new Error(); - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); assert.sameValue(obj.property, "errorGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-227.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-227.js index a61ca0f0c49a5c860ec78e2b23a133036b8b569a..cd5a996ed5a7dc0ac4119969d48477c9faed131f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-227.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-227.js @@ -9,14 +9,14 @@ description: > 7.a) ---*/ - var obj = {}; +var obj = {}; - var errObj = new Error(); +var errObj = new Error(); - errObj.get = function () { - return "errorGetProperty"; - }; +errObj.get = function() { + return "errorGetProperty"; +}; - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); assert.sameValue(obj.property, "errorGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js index 89b7ba7df21f55061e61e9fff6ec9e23d512b246..2f6acb4b124ef9afec80442e2f3196ec71e2c0b3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js @@ -9,13 +9,15 @@ description: > prototype object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.get = function () { - return "argumentGetProperty"; - }; - var argObj = (function () { return arguments; })(); +Object.prototype.get = function() { + return "argumentGetProperty"; +}; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); assert.sameValue(obj.property, "argumentGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js index abacba3aa981ce48e7953912dd822744c879907b..3bed3952c3e350de0369c0699c259b82fa84364d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js @@ -9,14 +9,16 @@ description: > (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.get = function () { - return "argumentGetProperty"; - }; +argObj.get = function() { + return "argumentGetProperty"; +}; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); assert.sameValue(obj.property, "argumentGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js index bb1b20d09bd596b73b27a1bbd577ddfcebfd6e37..b45a048a3ed5d51aeb5a8ae39e25848bb79cf789 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js @@ -8,25 +8,25 @@ description: > an inherited data property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var proto = {}; - Object.defineProperty(proto, "enumerable", { - value: true - }); +var proto = {}; +Object.defineProperty(proto, "enumerable", { + value: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-230.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-230.js index 2a894faeb3f6ec3643533d3ce6ec9fc172b3bac1..69a884b8fea2b1558fa653bd9aa769a10d1f0ab6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-230.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-230.js @@ -9,12 +9,12 @@ description: > step 7.a) ---*/ - var obj = {}; +var obj = {}; - this.get = function () { - return "globalGetProperty"; - }; +this.get = function() { + return "globalGetProperty"; +}; - Object.defineProperty(obj, "property", this); +Object.defineProperty(obj, "property", this); assert.sameValue(obj.property, "globalGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-231.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-231.js index 3352bff3c0d7f16da9fb5100d8319e7ce2daa821..b9c1fab4b60327ee4e65b521086b7b8e3a2e2152 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-231.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-231.js @@ -8,11 +8,11 @@ description: > undefined (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - get: undefined - }); +Object.defineProperty(obj, "property", { + get: undefined +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(typeof obj.property, "undefined", 'typeof obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-232.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-232.js index 1556b1c7b6289bbb9823646000c6a2e8aa26ad25..78e0e141e1f1781116a60f1f472abdebf8298dcb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-232.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-232.js @@ -8,13 +8,13 @@ description: > a function (8.10.5 step 7.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - get: function () { - return "getFunction"; - } - }); +Object.defineProperty(obj, "property", { + get: function() { + return "getFunction"; + } +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(obj.property, "getFunction", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-235.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-235.js index e4b65b842c8f4e1f7b2f69ea3aaec0bfec3b05c0..97cec21352a8e148da8fd4ee44b60b517af24459 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-235.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-235.js @@ -8,16 +8,16 @@ description: > (8.10.5 step 8) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Object.defineProperty(obj, "property", { - set: function (value) { - data = value; - } - }); +Object.defineProperty(obj, "property", { + set: function(value) { + data = value; + } +}); - obj.property = "overrideData"; +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-236.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-236.js index 8a09f51b059cbe1dc01fcc965f8e9efb059fc663..a52ba6e963950656b17b607b982cc3ba2a570afd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-236.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-236.js @@ -12,9 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - get: function () { - return 11; - } + get: function() { + return 11; + } }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-237.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-237.js index 6f940328bd20c282fa3749cc46281aaaa823d6a7..8060ed559a8fccd692986e604976575a5b9625d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-237.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-237.js @@ -8,16 +8,16 @@ description: > property (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Object.defineProperty(obj, "property", { - set: function (value) { - data = value; - } - }); +Object.defineProperty(obj, "property", { + set: function(value) { + data = value; + } +}); - obj.property = "overrideData"; +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-238.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-238.js index ee2a0704c586f17ad80360c40f3c11f1dfa9dd53..6b1fcfc71d5fa07446cc265a4aa085b195126694 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-238.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-238.js @@ -8,22 +8,22 @@ description: > inherited data property (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; - var proto = { - set: function (value) { - data = value; - } - }; +var obj = {}; +var data = "data"; +var proto = { + set: function(value) { + data = value; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - obj.property = "overrideData"; +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-239.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-239.js index fc8ab6600d40a488b37c8c858e4c8119221d4e37..90a83a52f81c6fca7279fdba7131b02960864585 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-239.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-239.js @@ -9,26 +9,26 @@ description: > 8.a) ---*/ - var obj = {}; - var data1 = "data"; - var data2 = "data"; - var proto = { - set: function (value) { - data1 = value; - } - }; +var obj = {}; +var data1 = "data"; +var data2 = "data"; +var proto = { + set: function(value) { + data1 = value; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - child.set = function (value) { - data2 = value; - }; +var child = new ConstructFun(); +child.set = function(value) { + data2 = value; +}; - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - obj.property = "overrideData"; +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data1, "data", 'data1'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-24.js index bccb1de1e24ccdbbbed9c6ef7718d58c2256b034..fe6ed9ef380c3c6292c747483193fb231f94a5a6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-24.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-24.js @@ -9,28 +9,28 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var proto = {}; - Object.defineProperty(proto, "enumerable", { - value: false - }); +var proto = {}; +Object.defineProperty(proto, "enumerable", { + value: false +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "enumerable", { - value: true - }); +var child = new ConstructFun(); +Object.defineProperty(child, "enumerable", { + value: true +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-240.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-240.js index 3a148ce82ba23acb81cf18c8c3e09366a932cd2e..20efcfc13559d8e93fce39ef9c86fcfea0be5f46 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-240.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-240.js @@ -9,32 +9,32 @@ description: > step 8.a) ---*/ - var obj = {}; - var proto = {}; - var data1 = "data"; - var data2 = "data"; - - Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data1 = value; - }; - } - }); - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - - var child = new ConstructFun(); - Object.defineProperty(child, "set", { - value: function (value) { - data2 = value; - } - }); - - Object.defineProperty(obj, "property", child); - - obj.property = "overrideData"; +var obj = {}; +var proto = {}; +var data1 = "data"; +var data2 = "data"; + +Object.defineProperty(proto, "set", { + get: function() { + return function(value) { + data1 = value; + }; + } +}); + +var ConstructFun = function() {}; +ConstructFun.prototype = proto; + +var child = new ConstructFun(); +Object.defineProperty(child, "set", { + value: function(value) { + data2 = value; + } +}); + +Object.defineProperty(obj, "property", child); + +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data1, "data", 'data1'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-241.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-241.js index 17bf99c8a781c951627f00d051135ed0611ff4de..159da6087e8e6d1ad27d6eab196a2ad3f5430378 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-241.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-241.js @@ -8,19 +8,19 @@ description: > accessor property (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; - var attributes = {}; - Object.defineProperty(attributes, "set", { - get: function () { - return function (value) { - data = value; - }; - } - }); +var obj = {}; +var data = "data"; +var attributes = {}; +Object.defineProperty(attributes, "set", { + get: function() { + return function(value) { + data = value; + }; + } +}); - Object.defineProperty(obj, "property", attributes); - obj.property = "ownAccessorProperty"; +Object.defineProperty(obj, "property", attributes); +obj.property = "ownAccessorProperty"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "ownAccessorProperty", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-242.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-242.js index 132baba02c8d8ef20018daa94904ae85256d574d..a1b53d312c4c2fd08cacf1f55ea0502c87125f85 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-242.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-242.js @@ -8,24 +8,24 @@ description: > inherited accessor property (8.10.5 step 8.a) ---*/ - var obj = {}; - var proto = {}; - var data = "data"; - Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data = value; - }; - } - }); +var obj = {}; +var proto = {}; +var data = "data"; +Object.defineProperty(proto, "set", { + get: function() { + return function(value) { + data = value; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); - obj.property = "inheritedAccessorProperty"; +Object.defineProperty(obj, "property", child); +obj.property = "inheritedAccessorProperty"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "inheritedAccessorProperty", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js index f343f73a47d42f9eac288487846138205beaa5f4..a324607a00e68cc25bffc55340e94c053879e14f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-243.js @@ -9,30 +9,30 @@ description: > (8.10.5 step 8.a) ---*/ - var obj = {}; - var data1 = "data"; - var data2 = "data"; +var obj = {}; +var data1 = "data"; +var data2 = "data"; - var proto = { - set: function (value) { - data1 = value; - } - }; +var proto = { + set: function(value) { + data1 = value; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "set", { - get: function () { - return function (value) { - data2 = value; - }; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "set", { + get: function() { + return function(value) { + data2 = value; + }; + } +}); - Object.defineProperty(obj, "property", child); - obj.property = "ownAccessorProperty"; +Object.defineProperty(obj, "property", child); +obj.property = "ownAccessorProperty"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data1, "data", 'data1'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-244.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-244.js index 1696066e484989c67dd1bea86eeb79246dadbea3..0989ddcdb82c72c0d8c209df5a25807fb5b94978 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-244.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-244.js @@ -9,32 +9,32 @@ description: > (8.10.5 step 8.a) ---*/ - var obj = {}; - var proto = {}; - var data1 = "data"; - var data2 = "data"; - Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data1 = value; - }; - } - }); +var obj = {}; +var proto = {}; +var data1 = "data"; +var data2 = "data"; +Object.defineProperty(proto, "set", { + get: function() { + return function(value) { + data1 = value; + }; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "set", { - get: function () { - return function (value) { - data2 = value; - }; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "set", { + get: function() { + return function(value) { + data2 = value; + }; + } +}); - Object.defineProperty(obj, "property", child); - obj.property = "ownAccessorProperty"; +Object.defineProperty(obj, "property", child); +obj.property = "ownAccessorProperty"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data1, "data", 'data1'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js index 5953cc76feb7f592d23243ef29ab807904fa9345..87f88a3dd1fe06aa2c5297eab28857dd7298f9d6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js @@ -13,7 +13,7 @@ var obj = {}; var attributes = {}; Object.defineProperty(attributes, "set", { - set: function () { } + set: function() {} }); Object.defineProperty(obj, "property", attributes); @@ -25,4 +25,3 @@ var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert(obj.hasOwnProperty("property")); assert.sameValue(typeof obj.property, "undefined"); assert.sameValue(typeof desc.set, "undefined"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js index d3c9b3b051264cc15bc9e4a33d7f9e57179564b1..aaada824fa53992061c886c265979a585c6399c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js @@ -14,19 +14,19 @@ var obj = {}; var proto = {}; var data = "data"; Object.defineProperty(proto, "set", { - get: function () { - return function (value) { - data = value; - }; - } + get: function() { + return function(value) { + data = value; + }; + } }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var child = new ConstructFun(); Object.defineProperty(child, "set", { - set: function () { } + set: function() {} }); Object.defineProperty(obj, "property", child); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-247.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-247.js index 7de4f4b3fd5efcedda588968867ab51efb2c1ab1..ad5c22adaf50dbeca6c70156d89518223fe11250 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-247.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-247.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var obj = {}; var proto = {}; Object.defineProperty(proto, "set", { - set: function () { } + set: function() {} }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var child = new ConstructFun(); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js index 4ff3487ad1c58bf63d8b144cb296e20e7f1b208f..222c7aca7e7ba8ec3e85d02186fa4692699e3288 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-248-1.js @@ -9,16 +9,16 @@ description: > prototype object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Function.prototype.set = function (value) { - data = value; - }; - var funObj = function () { }; +Function.prototype.set = function(value) { + data = value; +}; +var funObj = function() {}; - Object.defineProperty(obj, "property", funObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", funObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js index 2f473b9860430e0ecdd241cf8d698e824b050b60..7097d177026b0cd86806e365d0e564df36f53ce2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-248.js @@ -9,16 +9,16 @@ description: > (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; - var funObj = function () { }; +var obj = {}; +var data = "data"; +var funObj = function() {}; - funObj.set = function (value) { - data = value; - }; +funObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", funObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", funObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js index 12f19e8948815d52d0aebd7ff99c6e4e81a228cf..11845419aa6f803436fbeb4d47611a3548ac54fb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-249-1.js @@ -9,16 +9,16 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Array.prototype.set = function (value) { - data = value; - }; - var arrObj = []; +Array.prototype.set = function(value) { + data = value; +}; +var arrObj = []; - Object.defineProperty(obj, "property", arrObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", arrObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-249.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-249.js index dce84e78be8b884a9a4decef6c2859287ff31a56..b431308daa56f6c5a8289ef38b04479d3b9d7301 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-249.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-249.js @@ -9,16 +9,16 @@ description: > 8.a) ---*/ - var obj = {}; - var data = "data"; - var arrObj = []; +var obj = {}; +var data = "data"; +var arrObj = []; - arrObj.set = function (value) { - data = value; - }; +arrObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", arrObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", arrObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js index 2b278d63beab6d17163a8f9493daaf56bb445bdf..5bbdda116060d7047fa549d77b4e366ed5d4b78f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js @@ -9,30 +9,30 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; - - var proto = {}; - Object.defineProperty(proto, "enumerable", { - get: function () { - return false; - } - }); - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - - var child = new ConstructFun(); - Object.defineProperty(child, "enumerable", { - value: true - }); - - Object.defineProperty(obj, "property", child); - - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +var obj = {}; +var accessed = false; + +var proto = {}; +Object.defineProperty(proto, "enumerable", { + get: function() { + return false; + } +}); + +var ConstructFun = function() {}; +ConstructFun.prototype = proto; + +var child = new ConstructFun(); +Object.defineProperty(child, "enumerable", { + value: true +}); + +Object.defineProperty(obj, "property", child); + +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js index 10055b5c8a08397549c454971b0a66baaeaa89d7..372576ab9022a51727e9ced783b1018198980e23 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-250-1.js @@ -9,16 +9,16 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; +var obj = {}; - String.prototype.set = function (value) { - data = value; - }; - var strObj = new String(); - var data = "data"; +String.prototype.set = function(value) { + data = value; +}; +var strObj = new String(); +var data = "data"; - Object.defineProperty(obj, "property", strObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", strObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-250.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-250.js index bfededf6b27bfa057ab909ab43cc99813724624d..0549855c40d4a867a775f4c3357a58ac19f0ec1d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-250.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-250.js @@ -9,16 +9,16 @@ description: > 8.a) ---*/ - var obj = {}; - var strObj = new String(); - var data = "data"; +var obj = {}; +var strObj = new String(); +var data = "data"; - strObj.set = function (value) { - data = value; - }; +strObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", strObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", strObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js index 6ea5a518d48b1cab0f687fc3bbfe1ff725807fe8..f4799b72905a50df9604ca0a4bba40bd7424125d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-251-1.js @@ -9,16 +9,16 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Boolean.prototype.set = function (value) { - data = value; - }; - var boolObj = new Boolean(true); +Boolean.prototype.set = function(value) { + data = value; +}; +var boolObj = new Boolean(true); - Object.defineProperty(obj, "property", boolObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", boolObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-251.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-251.js index 9bbccaff9506d33321fc0a84c9dd1b2839cfd9dc..5e7f2ddd2706f01b0427bd20de76631596fc3d4b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-251.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-251.js @@ -9,16 +9,16 @@ description: > 8.a) ---*/ - var obj = {}; - var data = "data"; - var boolObj = new Boolean(true); +var obj = {}; +var data = "data"; +var boolObj = new Boolean(true); - boolObj.set = function (value) { - data = value; - }; +boolObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", boolObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", boolObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js index 749f8bc335fb3584f2311c2e2ed1169d3682d9c6..72e1288dd1c24929c4b6d9e0f3688e6676d5c3c8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-252-1.js @@ -9,16 +9,16 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Number.prototype.set = function (value) { - data = value; - }; - var numObj = new Number(-2); +Number.prototype.set = function(value) { + data = value; +}; +var numObj = new Number(-2); - Object.defineProperty(obj, "property", numObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", numObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-252.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-252.js index 549dcd00e5263d362fc12ba501f8a6561138f51e..199d853dba59a1427621536d4932b2315319db20 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-252.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-252.js @@ -9,16 +9,16 @@ description: > 8.a) ---*/ - var obj = {}; - var data = "data"; - var numObj = new Number(-2); +var obj = {}; +var data = "data"; +var numObj = new Number(-2); - numObj.set = function (value) { - data = value; - }; +numObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", numObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", numObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js index 96622fe5086ba16c246cff3355730a060733e642..56d185832efed293703a420d32989c0a3d268b5b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-253-1.js @@ -9,15 +9,15 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Object.prototype.set = function (value) { - data = value; - }; +Object.prototype.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", Math); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", Math); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-253.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-253.js index 322dfe1f0295063768f21e8042190e1a52ad008f..5aa8e6a571ebb249d9421cb19e522a620e16212b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-253.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-253.js @@ -9,15 +9,15 @@ description: > 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Math.set = function (value) { - data = value; - }; +Math.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", Math); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", Math); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js index 9b3a47fe4ed14448329d270974eb111f54248fbb..3d774064d7b36d804f190ff7a7596a44b200500e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-254-1.js @@ -9,16 +9,16 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Date.prototype.set = function (value) { - data = value; - }; - var dateObj = new Date(); +Date.prototype.set = function(value) { + data = value; +}; +var dateObj = new Date(); - Object.defineProperty(obj, "property", dateObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", dateObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js index 215cd639d34fc7e748053e174a3f5ee970f695cf..3c5799b94b2f04f274e035a664c12a0f4f4f5545 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-254.js @@ -9,16 +9,16 @@ description: > 8.a) ---*/ - var obj = {}; - var data = "data"; - var dateObj = new Date(); +var obj = {}; +var data = "data"; +var dateObj = new Date(); - dateObj.set = function (value) { - data = value; - }; +dateObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", dateObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", dateObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js index 15c2b421e0051390d899be8b3a7871c814f218e5..04d4f46f0163b7116a25b0ba8f905e8dedc1cdc9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-255-1.js @@ -9,16 +9,16 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - RegExp.prototype.set = function (value) { - data = value; - }; - var regObj = new RegExp(); +RegExp.prototype.set = function(value) { + data = value; +}; +var regObj = new RegExp(); - Object.defineProperty(obj, "property", regObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", regObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-255.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-255.js index 058730c2f859aba2c4a29f94242a7aa445eb86f7..fd1f42cf891f4b0e47198b70678c6c8bfe471731 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-255.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-255.js @@ -9,16 +9,16 @@ description: > 8.a) ---*/ - var obj = {}; - var data = "data"; - var regObj = new RegExp(); +var obj = {}; +var data = "data"; +var regObj = new RegExp(); - regObj.set = function (value) { - data = value; - }; +regObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", regObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", regObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js index 86747c4b879e96acf92f097fc6ec41631e173459..5b3a9c5db49053efd4912e8c607c273a283516df 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-256-1.js @@ -9,15 +9,15 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Object.prototype.set = function (value) { - data = value; - }; +Object.prototype.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", JSON); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", JSON); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-256.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-256.js index 67353422e9cf3b990c4b05bbf4af144db34b9a0c..885adc17604fd683f3249ab57ef62dac8672fcd7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-256.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-256.js @@ -9,15 +9,15 @@ description: > 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - JSON.set = function (value) { - data = value; - }; +JSON.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", JSON); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", JSON); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js index a0fe03339262b3ef6833dd83a68fea13168f8b03..86693a8aca08097e680790727ecf73ddf16e2660 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-257-1.js @@ -9,16 +9,16 @@ description: > object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Error.prototype.set = function (value) { - data = value; - }; - var errObj = new Error(); +Error.prototype.set = function(value) { + data = value; +}; +var errObj = new Error(); - Object.defineProperty(obj, "property", errObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", errObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-257.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-257.js index 944e77f984587bb6270de61e3852a4fef6a07882..e11ce787d5b68e19b97389bea86004a30009fc34 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-257.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-257.js @@ -9,16 +9,16 @@ description: > 8.a) ---*/ - var obj = {}; - var data = "data"; - var errObj = new Error(); +var obj = {}; +var data = "data"; +var errObj = new Error(); - errObj.set = function (value) { - data = value; - }; +errObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", errObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", errObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js index 0b250f10f21d2dd5b089d9e17cfb477be77b311b..48c857b9be7531c51acd7ee3b376854aaf15dc37 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js @@ -9,16 +9,18 @@ description: > prototype object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Object.prototype.set = function (value) { - data = value; - }; - var argObj = (function () { return arguments; })(); +Object.prototype.set = function(value) { + data = value; +}; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", argObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js index 3ec7fdcf09d4f5e9f12551c6a0a8fd4ac991c315..f75b5de0ede5206eb50418d193ea15771b059a49 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js @@ -9,15 +9,17 @@ description: > (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; - var argObj = (function () { return arguments; })(); - argObj.set = function (value) { - data = value; - }; +var obj = {}; +var data = "data"; +var argObj = (function() { + return arguments; +})(); +argObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", argObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", argObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js index cddcf00fa4757606133eccf354ca0c5218fb53f4..cb6114b6cdd1730e6c66cbf5345f93e377deb5d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js @@ -8,22 +8,22 @@ description: > own accessor property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var attr = {}; - Object.defineProperty(attr, "enumerable", { - get: function () { - return true; - } - }); +var attr = {}; +Object.defineProperty(attr, "enumerable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-260.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-260.js index 17a785f860a16fb167a83504f643b049a7aca6d3..993707e945654bd562e684c1e48ec083a62528e7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-260.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-260.js @@ -9,15 +9,15 @@ description: > step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - this.set = function (value) { - data = value; - }; +this.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", this); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", this); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-261.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-261.js index 517fd80674d4467c89be085ad44c56b0d4d4a009..bf605c2c84d7b71516458abf18df476228b73082 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-261.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-261.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - set: undefined + set: undefined }); var desc = Object.getOwnPropertyDescriptor(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-262.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-262.js index 0b8522c7ffda9597b9611bb2e56575dea8216bfe..7e5c6c1c2ad1d7d8ac552b989b33b9c4a323c4f4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-262.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-262.js @@ -8,15 +8,15 @@ description: > a function (8.10.5 step 8.b) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Object.defineProperty(obj, "property", { - set: function (value) { - data = value; - } - }); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", { + set: function(value) { + data = value; + } +}); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-27.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-27.js index 83cb145730e42bad8882f434736d4f0b20e063ed..05c981290ec30c829d282c9ea5ab5bce3c9280e2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-27.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-27.js @@ -8,27 +8,27 @@ description: > an inherited accessor property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var proto = {}; - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); +var proto = {}; +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js index 0de7fce4a023566f53a5d16a72371130fe0785d4..013382fe9adf8a6c3af1ac2f5e7f5c7377385a17 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js @@ -9,28 +9,30 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var proto = { enumerable: false }; +var proto = { + enumerable: false +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(child, "enumerable", { - get: function () { - return true; - } - }); +Object.defineProperty(child, "enumerable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js index 665c3218e4e99a64e00c693333b4f346b0d0ab59..c7a432892bbdbd47acc0d1511102114ce1e1edea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js @@ -9,33 +9,33 @@ description: > property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; - var proto = {}; - - Object.defineProperty(proto, "enumerable", { - get: function () { - return false; - } - }); - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - - var child = new ConstructFun(); - - Object.defineProperty(child, "enumerable", { - get: function () { - return true; - } - }); - - Object.defineProperty(obj, "property", child); - - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +var obj = {}; +var accessed = false; +var proto = {}; + +Object.defineProperty(proto, "enumerable", { + get: function() { + return false; + } +}); + +var ConstructFun = function() {}; +ConstructFun.prototype = proto; + +var child = new ConstructFun(); + +Object.defineProperty(child, "enumerable", { + get: function() { + return true; + } +}); + +Object.defineProperty(obj, "property", child); + +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js index 9e0d0f396b582a7b0b14b9b4634c7939b9d5de34..d701420b41f4360591e8fcb4fc8b8a07ed85e70a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js @@ -12,12 +12,15 @@ description: > 'value' present(8.10.5 step 9.a) ---*/ - var o = {}; +var o = {}; - // dummy setter - var setter = function () { } - var desc = { set: setter, value: 101}; +// dummy setter +var setter = function() {} +var desc = { + set: setter, + value: 101 +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js index 54be326f7f8d1d442c6ca331470b67b0769c338f..cfc961d17cc256691161caf91e90e61e52a8897d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js @@ -8,20 +8,20 @@ description: > own accessor property without a get function (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var attr = {}; - Object.defineProperty(attr, "enumerable", { - set: function () { } - }); +var attr = {}; +Object.defineProperty(attr, "enumerable", { + set: function() {} +}); - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-31.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-31.js index 476cf5038c288ada08781eac3d07a17a4956f196..f628d64227f4b04af0ec0da8d4b67f3baa67f828 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-31.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-31.js @@ -9,31 +9,31 @@ description: > inherited accessor property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; - var proto = {}; +var obj = {}; +var accessed = false; +var proto = {}; - Object.defineProperty(proto, "enumerable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "enumerable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(child, "enumerable", { - set: function () { } - }); +Object.defineProperty(child, "enumerable", { + set: function() {} +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js index b1981975f4e98d3faef1214275314b84542eeb2e..112d61a296b0473cca5ca0d28e417afebcc7fc4f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js @@ -9,25 +9,25 @@ description: > 3.a) ---*/ - var obj = {}; - var accessed = false; - var proto = {}; +var obj = {}; +var accessed = false; +var proto = {}; - Object.defineProperty(proto, "enumerable", { - set: function () { } - }); +Object.defineProperty(proto, "enumerable", { + set: function() {} +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js index 17f152928a3ad4160c0cf5e6c2f22a5b2c377903..60d9644e4e857df1eac774c234bfbe3abbafb8c4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-33-1.js @@ -9,18 +9,18 @@ description: > property of prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Function.prototype.enumerable = true; - var fun = function () { }; +Function.prototype.enumerable = true; +var fun = function() {}; - Object.defineProperty(obj, "property", fun); +Object.defineProperty(obj, "property", fun); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-33.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-33.js index 98980b1d5e1900ef1a7adac94a9c4a38258ac11b..60abcc95de13d231ec1ec88aac030c431bc0559e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-33.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-33.js @@ -9,18 +9,18 @@ description: > property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var fun = function () { }; - fun.enumerable = true; +var fun = function() {}; +fun.enumerable = true; - Object.defineProperty(obj, "property", fun); +Object.defineProperty(obj, "property", fun); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js index 6a54cf1728c4277040c5b2f02a338e7e3b218734..d17143545f5645b216bf69cc7ddc31f5cfdbb084 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-34-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Array.prototype.enumerable = true; - var arrObj = []; +Array.prototype.enumerable = true; +var arrObj = []; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-34.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-34.js index 83aba5145b0f39b1c4d770c23b50713590823f2a..1d94646525b5e0e8cf1219e1b6888474b860de6f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-34.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-34.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var arrObj = []; - arrObj.enumerable = true; +var arrObj = []; +arrObj.enumerable = true; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js index 908e603b1c76e1cb30cb44dda8590e9e61bf068c..3d47c1b360bd6f93f25f1deb106d87ae6ef647a7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-35-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - String.prototype.enumerable = true; - var strObj = new String(); +String.prototype.enumerable = true; +var strObj = new String(); - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-35.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-35.js index 00b780f0a133d0cce7cad3b6aa4867aad4db60be..a38b4988b16d7292f858239b02692824ee788182 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-35.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-35.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var strObj = new String(); - strObj.enumerable = true; +var strObj = new String(); +strObj.enumerable = true; - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js index a385748a7f16b0b938bed1bfe5e547fa3d579c41..fe685c51147aa91f6f536ea606460ca9de5b089a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Boolean.prototype.enumerable = true; - var boolObj = new Boolean(true); +Boolean.prototype.enumerable = true; +var boolObj = new Boolean(true); - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-36.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-36.js index 2ca7f9ab984a5b7a14577d291b44d791a09b5152..da76274509ce1401268ee096b6f2c22eb2419b9e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-36.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-36.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var boolObj = new Boolean(true); - boolObj.enumerable = true; +var boolObj = new Boolean(true); +boolObj.enumerable = true; - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js index d9e83be1f64bb92eac95f7ac08de2a694b0df3dd..4cd927281bc072efee6c844e38ad868c3b06a29f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-37-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Number.prototype.enumerable = true; - var numObj = new Number(-2); +Number.prototype.enumerable = true; +var numObj = new Number(-2); - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-37.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-37.js index 291f1b0e3f9b8729bc7eddf14d450970bf291dce..b7cf88d53539824772c4aaaaf8cfbb74182d175d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-37.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-37.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var numObj = new Number(-2); - numObj.enumerable = true; +var numObj = new Number(-2); +numObj.enumerable = true; - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js index c49dc19dc705dd74897c5f1f2798b92e47cb5fef..0fe274646ed13a4a95e2b21c12917e0d115fbc2e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-38-1.js @@ -9,17 +9,17 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.prototype.enumerable = true; +Object.prototype.enumerable = true; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-38.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-38.js index ea7b3809fbf2437051a9ff269a736a517c758f86..d3851c5f6af2c791ad58f1c43c82085f3ffc7937 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-38.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-38.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Math.enumerable = true; +Math.enumerable = true; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js index 54bc49d18ff00a37a192a26dc5ca5714d8f73954..2ea93ddfc5160f9932a560e0a13b6e34e0fdff75 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-39-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Date.prototype.enumerable = true; - var dateObj = new Date(); +Date.prototype.enumerable = true; +var dateObj = new Date(); - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-39.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-39.js index 476162159b7a4b9b4fcab39ffc0b9c9adaf27344..605f7a5f9f8a781f1c35348ad02522246025d189 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-39.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-39.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var dateObj = new Date(); - dateObj.enumerable = true; +var dateObj = new Date(); +dateObj.enumerable = true; - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js index e740fecf1aac562c50a3facc6ec6ae790ad27473..209074cda1edccca178df32ad054a0183372ac2e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js @@ -12,12 +12,15 @@ description: > 'writable' present(8.10.5 step 9.a) ---*/ - var o = {}; - - // dummy getter - var setter = function () { } - var desc = { set: setter, writable: false }; +var o = {}; + +// dummy getter +var setter = function() {} +var desc = { + set: setter, + writable: false +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js index 6f2548ffd6dfefd3087a3392c50b636646deb394..a9250c89c601ce1d09f74b26e6061b664d199a6d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - RegExp.prototype.enumerable = true; - var regObj = new RegExp(); +RegExp.prototype.enumerable = true; +var regObj = new RegExp(); - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-40.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-40.js index 46975d82c7bc568104477c187ba8752c06e2dbd6..1d87040b4c4cf7ac7486aab9024c0c963a4874da 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-40.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-40.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var regObj = new RegExp(); - regObj.enumerable = true; +var regObj = new RegExp(); +regObj.enumerable = true; - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js index c53c418401b1368a5c4f97f6c7cf90140ac0b356..562a96cd848f73cc2b27918b1f6da2f2b4617dcd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-41-1.js @@ -9,17 +9,17 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.prototype.enumerable = true; +Object.prototype.enumerable = true; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-41.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-41.js index 6475a5ceb665f45ec4491c7d5cb11c4652dfda77..5c25f800215ce41d434d63097f3cd158f6bedc9e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-41.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-41.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - JSON.enumerable = true; +JSON.enumerable = true; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js index 41e13499fbe770940b9979d744a3412be45036df..cec338131f139976bbf09840346d9c08ad38e63a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-42-1.js @@ -9,18 +9,18 @@ description: > prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Error.prototype.enumerable = true; - var errObj = new Error(); +Error.prototype.enumerable = true; +var errObj = new Error(); - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-42.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-42.js index 909994b82411604a848e5dac3f89c12f7f81ed63..9e287b18d8a29f1565c48887857b1b40edb9a0fa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-42.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-42.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var errObj = new Error(); - errObj.enumerable = true; +var errObj = new Error(); +errObj.enumerable = true; - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js index 7a799db391aeb7a01740ddb96a8fa51c20ef132d..c1565948ed591c435c745725acb4d13f02def621 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js @@ -9,18 +9,20 @@ description: > property of prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.prototype.enumerable = true; - var argObj = (function () { return arguments; })(); +Object.prototype.enumerable = true; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js index 8c2be1cae563d5610965f0927b7d133ae4a411bf..f4a0f9de76e2c6f738e60b0a6ddc91f974ed96d9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js @@ -9,18 +9,20 @@ description: > property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var argObj = (function () { return arguments; })(); - argObj.enumerable = true; +var argObj = (function() { + return arguments; +})(); +argObj.enumerable = true; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js index 98538314a01b2b0918081dd4befa5281c98a0cdc..eedac149c29e7dece156e7de81ce8eddf4145d99 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - this.enumerable = true; +this.enumerable = true; - Object.defineProperty(obj, "property", this); +Object.defineProperty(obj, "property", this); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-46.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-46.js index 9e6003e7c15e1b1c2453b767057f3c026777a635..ded4ff967241c5ac2eb82745f9e0f334824c44c3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-46.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-46.js @@ -8,17 +8,17 @@ description: > 'Attributes' is undefined (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { - enumerable: undefined - }); +Object.defineProperty(obj, "property", { + enumerable: undefined +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js index 2ed3c5efddd70d230d398c6dc5fc0ca66827399f..3a927f0f201f74509eef638e059f001333ce1168 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js @@ -8,15 +8,17 @@ description: > 'Attributes' is null (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: null }); +Object.defineProperty(obj, "property", { + enumerable: null +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js index d1e420ea8fe4d99cc3777af9dd5ed510fc8c2be1..c42943fe72f15f4b2215fb5a8d65fe08a7ca23b2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js @@ -8,15 +8,17 @@ description: > 'Attributes' is true (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: true }); +Object.defineProperty(obj, "property", { + enumerable: true +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js index bed11ffd6dd9f43d36cff431ad890e436a05dd93..f24a82be3073c141f3c2b5effc9748a5390b2dae 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js @@ -8,15 +8,17 @@ description: > 'Attributes' is false (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: false }); +Object.defineProperty(obj, "property", { + enumerable: false +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js index 763fbca7a0d782a151a6497e43f401dab51958e4..e2290434de84e759ec222baed3479091c820020b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js @@ -12,12 +12,14 @@ description: > but not undefined (Number)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = 42; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = 42; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js index 91a8d090623ab5ed209619f884ace79d410ed9be..aa6c0582e8bc9e03e5a7aa3d00490646b3f5102b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js @@ -8,15 +8,17 @@ description: > 'Attributes' is 0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: 0 }); +Object.defineProperty(obj, "property", { + enumerable: 0 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js index ddea2dfa77e14f8c32428abf5c59637b9dd6041d..4b5e1dffc9c0ae5744fc3cd4bdc3e4eed45ba45c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js @@ -8,15 +8,17 @@ description: > 'Attributes' is +0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: +0 }); +Object.defineProperty(obj, "property", { + enumerable: +0 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js index 2fb433b80a61b436a0ab548cb54c246efb3b70a7..19ad09b8d51d0af64a049195b9bba41af301ca01 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js @@ -8,15 +8,17 @@ description: > 'Attributes' is -0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: -0 }); +Object.defineProperty(obj, "property", { + enumerable: -0 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js index aaa5fef8e1c5174f8a37eb9f58919133f59654a4..9b22a839bfecd81f2796762e05c4a17c66faf962 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js @@ -8,15 +8,17 @@ description: > 'Attributes' is NaN (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: NaN }); +Object.defineProperty(obj, "property", { + enumerable: NaN +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js index 479ed01b7749ab4c727013ac6585b4e2f003577e..0eb6de95d6a354bc98f028120d0b002a972aa7b5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a positive number (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: 12 }); +Object.defineProperty(obj, "property", { + enumerable: 12 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js index bba81e43e1e8b1a3c6e70f34d59dcf6c600dfb92..7357b3c82124574eb1da2ad20b7bb69aa83af641 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a negative number (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: -2 }); +Object.defineProperty(obj, "property", { + enumerable: -2 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js index ff875f28a203310855c1b9c35527d2f170299c0b..8bf0c1e6a72b80d3cbd052aca77379b7fc0c7cdd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js @@ -8,15 +8,17 @@ description: > 'Attributes' is an empty string (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: "" }); +Object.defineProperty(obj, "property", { + enumerable: "" +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js index ec0bb7376d10dd8c4cd17964862a43b0d8f923af..78c6e6928af13720e055f98c8fec69786538768e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a non-empty string (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: "AB\n\\cd" }); +Object.defineProperty(obj, "property", { + enumerable: "AB\n\\cd" +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js index be5dd1d8da1cbb3505c8703a5b9ca35aec08f251..2cb29dd7ab7611210933f439a00d1b878cd6306c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js @@ -8,17 +8,17 @@ description: > 'Attributes' is a Function object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { - enumerable: function () { } - }); +Object.defineProperty(obj, "property", { + enumerable: function() {} +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js index 404f491efb4b8fabce3f982c0b0f04f67f5a6c7f..6a4e73e7e54b90ec4491b0b803606b3d5e7b4a2b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js @@ -8,15 +8,17 @@ description: > 'Attributes' is an Array object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: [] }); +Object.defineProperty(obj, "property", { + enumerable: [] +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js index be4b9302eb3bec00490032bba570fc1b7dd3682f..333d6a1d8cbd10835237c47c16bdd53adbb280cd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js @@ -12,12 +12,14 @@ description: > but not undefined (Boolean)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = true; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = true; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js index b8a43aeb74903a88185e97840e925d6dbaa1bcd5..c1a4fc7b7b94b14afc8e6edbb9a151f1ae37f502 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a String Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new String() }); +Object.defineProperty(obj, "property", { + enumerable: new String() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js index 1e963978c968f971e3430ab85dd89d3757422497..7d46bdf7bfde08b4a8681a92a7b8a499d9513a1f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a Boolean Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Boolean() }); +Object.defineProperty(obj, "property", { + enumerable: new Boolean() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js index 60be30065c12ed9ab2aefc1a149c4cea1698a844..cb2aef8d05f8df884fbb8fdc13bce74de541b726 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a Number Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Number() }); +Object.defineProperty(obj, "property", { + enumerable: new Number() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js index a18690aac44d53da4dc70f248c4175ccb06069b1..ef607344f1e5cb7cafb87367adc0f866924a65da 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js @@ -8,15 +8,17 @@ description: > 'Attributes' is the Math Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: Math }); +Object.defineProperty(obj, "property", { + enumerable: Math +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js index 8ede8c20ed602fa047aa12da59539d20653cd0f5..4cd67c97d746c61370a0d9a0e59d69b1b45d20da 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a Date Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Date() }); +Object.defineProperty(obj, "property", { + enumerable: new Date() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js index 57380cd6351c6df0fdbacf534a2e105320b586d1..0be3df181c1f172831f9dfb5d2fc4cd06c46416f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a RegExp Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new RegExp() }); +Object.defineProperty(obj, "property", { + enumerable: new RegExp() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js index ec25504356e5627de7538116fe4bce7b44dac2e0..0d07de5d2b1311f0a7927a7cfd43291d33b40481 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js @@ -8,15 +8,17 @@ description: > 'Attributes' is the JSON Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: JSON }); +Object.defineProperty(obj, "property", { + enumerable: JSON +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js index fe4c45f0ea25ad0fa23834a1e5224c31892084d3..f2993f58d5586f91c107df676b3e687559882be6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js @@ -8,15 +8,17 @@ description: > 'Attributes' is an Error Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Error() }); +Object.defineProperty(obj, "property", { + enumerable: new Error() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js index 842b98eb26d401e8986236ac2922b6ba52a93443..e5b19c83e61d13900c8136fe3d7fe652e316b338 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js @@ -8,16 +8,20 @@ description: > 'Attributes' is an Arguments Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; - var argObj = (function () { return arguments; })(0, 1, 2); +var obj = {}; +var accessed = false; +var argObj = (function() { + return arguments; +})(0, 1, 2); - Object.defineProperty(obj, "property", { enumerable: argObj }); +Object.defineProperty(obj, "property", { + enumerable: argObj +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js index 54556c3030ed38366fc29e89a9ccac91684db2d5..b9690c2bbf3a49ca38930d586fcac8fe5bb24cdc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js @@ -12,12 +12,14 @@ description: > but not undefined (String)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = "abc"; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = "abc"; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js index ded68d14c1f6e3742b49d92fd37379d9dc84528a..f3b46f3d6f8c6e20871b3b317a70828dbd181480 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js @@ -8,15 +8,17 @@ description: > 'Attributes' is the global object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: this }); +Object.defineProperty(obj, "property", { + enumerable: this +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js index d732a952303dd2e8b0f6021169af0e92eb223f7b..d32608e8a794b0fd9c1e0fcb9139233e8f12ee48 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js @@ -9,15 +9,17 @@ description: > 'false') (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: "false" }); +Object.defineProperty(obj, "property", { + enumerable: "false" +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js index 64bd3d7e2b33d1f80c7b54904779fd716fab47c5..1da2600b62acc0405a878bc7f23706a47b3298a0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js @@ -9,15 +9,17 @@ description: > (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Boolean(false) }); +Object.defineProperty(obj, "property", { + enumerable: new Boolean(false) +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js index baac16ea65df082178d229910b1eed35d6250d51..cc482c6c89bd9fa858841bac156b2abffae5c98e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - configurable: false + configurable: false }); assert(obj.hasOwnProperty("property")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js index c6fc62d8207677131f8ff14904618e48b3a07f4a..d5c2b4ba9e3f431b01e83cc699613219ae51e01a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { value: 100 }); +Object.defineProperty(obj, "property", { + value: 100 +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js index 57de46485f38ef697fd6691d994c3713ec89e729..29eabf5bdbd3263cfc0503957c7c3caf79a36398 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js @@ -8,17 +8,17 @@ description: > own data property (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - Object.defineProperty(obj, "property", { - configurable: true - }); +Object.defineProperty(obj, "property", { + configurable: true +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-76.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-76.js index 39e2e863af079cbdafd95524cf0722eed30924a5..649f877b30b43d1a08af28ed3aa4094ccef6733a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-76.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-76.js @@ -9,13 +9,13 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; var proto = { - configurable: false + configurable: false }; -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var child = new ConstructFun(); @@ -28,4 +28,4 @@ verifyNotConfigurable(obj, "property"); assert(obj.hasOwnProperty("property")); -assert.sameValue(typeof (obj.property), "undefined"); +assert.sameValue(typeof(obj.property), "undefined"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-77.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-77.js index 9d80e8cb7098901907bebc846b0b82aab0fe27a5..849e2ce6e10081209cbc717d99847c699dc36148 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-77.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-77.js @@ -9,25 +9,25 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var proto = { - configurable: false - }; +var proto = { + configurable: false +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - child.configurable = true; +var child = new ConstructFun(); +child.configurable = true; - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-78.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-78.js index 7373f43740a9b587d8abb231c1f9f4d7c145366f..b6c53ec3fc6cf4e94eb4c21ec898823f77850f4a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-78.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-78.js @@ -9,31 +9,31 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { }; +var proto = {}; - Object.defineProperty(proto, "configurable", { - get: function () { - return false; - } - }); +Object.defineProperty(proto, "configurable", { + get: function() { + return false; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "configurable", { - value: true - }); +var child = new ConstructFun(); +Object.defineProperty(child, "configurable", { + value: true +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-79.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-79.js index 175d52cd68380aefba3a0cca7bba9cb910cbdb24..047d7763f4e8c2cff44c6e4eb90ccd535072905a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-79.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-79.js @@ -8,22 +8,22 @@ description: > own accessor property (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var attr = {}; - Object.defineProperty(attr, "configurable", { - get: function () { - return true; - } - }); +var attr = {}; +Object.defineProperty(attr, "configurable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js index 31591f85fa82d601832def9befa6095eb38e0de8..95eac7dafebaaa2fc729c00f1efb56c7a3104990 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js @@ -12,12 +12,14 @@ description: > but not undefined (Null)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = null; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = null; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js index c89606b690455bb0932b9331d2c3fe976afaf547..d89c14ee79cade10722201b0c2c188e0b86c5229 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js @@ -8,27 +8,27 @@ description: > an inherited accessor property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; - Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } - }); +var proto = {}; +Object.defineProperty(proto, "configurable", { + get: function() { + return true; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-81.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-81.js index a4f3021f601a8adc3ae80316cdd78570c144fbca..136567ae3aef1a3b149fe3c8c1388cd2c7214496 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-81.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-81.js @@ -9,29 +9,29 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { - configurable: false - }; +var proto = { + configurable: false +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "configurable", { - get: function () { - return true; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "configurable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-82.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-82.js index ac8473eff201a2f086a79bc843db285196cba952..25c3a1db62827b25585d9f7b21e9ce4aaa479e83 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-82.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-82.js @@ -9,32 +9,32 @@ description: > property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var proto = {}; - Object.defineProperty(proto, "configurable", { - get: function () { - return false; - } - }); +var proto = {}; +Object.defineProperty(proto, "configurable", { + get: function() { + return false; + } +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "configurable", { - get: function () { - return true; - } - }); +var child = new ConstructFun(); +Object.defineProperty(child, "configurable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-83.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-83.js index a11deb24a530a66d68cd9c705a83bfcf8e7433fd..b39b5cf911adf9c8646e4c07b7d73ef335865b23 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-83.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-83.js @@ -9,11 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; var attr = {}; Object.defineProperty(attr, "configurable", { - set : function () { } + set: function() {} }); Object.defineProperty(obj, "property", attr); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-84.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-84.js index 5b646c9ad35909932f12d365d35c9e87a814dc25..73297b3727239ad94497edad343d59edc92e71cb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-84.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-84.js @@ -14,17 +14,17 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "configurable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var child = new ConstructFun(); Object.defineProperty(child, "configurable", { - set: function () { } + set: function() {} }); Object.defineProperty(obj, "property", child); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js index 0d4c6548c1ccb8c4aa8bcf79dfc9733fc1178bb2..3d8051dc5841bdf5c86388577c6167b7e1574746 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js @@ -14,10 +14,10 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "configurable", { - set: function () { } + set: function() {} }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var child = new ConstructFun(); @@ -29,6 +29,4 @@ assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); assert(obj.hasOwnProperty("property")); -assert.sameValue(typeof (obj.property), "undefined"); - - +assert.sameValue(typeof(obj.property), "undefined"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js index 016698c0e1dbb83d71d7c480bc7c88af1fe3f14f..687d2cd7bbfc37068f155157a008fe07d5a7a60e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js @@ -9,20 +9,20 @@ description: > property of prototype object (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Function.prototype.configurable = true; - var funObj = function (a, b) { - return a + b; - }; +Function.prototype.configurable = true; +var funObj = function(a, b) { + return a + b; +}; - Object.defineProperty(obj, "property", funObj); +Object.defineProperty(obj, "property", funObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-86.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-86.js index bccb6771539aee96fa1aa0f9e9bb6beeb0a0c7c9..d50eee13ce8793584ce822038d92230bead109fc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-86.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-86.js @@ -9,21 +9,21 @@ description: > property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var funObj = function (a, b) { - return a + b; - }; +var funObj = function(a, b) { + return a + b; +}; - funObj.configurable = true; +funObj.configurable = true; - Object.defineProperty(obj, "property", funObj); +Object.defineProperty(obj, "property", funObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js index b28cb688109760721ed46d452acdad462ac81180..8d7386e46423bd4629115a6ca22984caa4beceae 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-87-1.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Array.prototype.configurable = true; - var arrObj = [1, 2, 3]; +Array.prototype.configurable = true; +var arrObj = [1, 2, 3]; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-87.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-87.js index ed16679ea020be9cc1f68d3be83f0c13587dff49..7473126e8c9ec9120c76bf35a85a7cede4bdf626 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-87.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-87.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var arrObj = [1, 2, 3]; +var arrObj = [1, 2, 3]; - arrObj.configurable = true; +arrObj.configurable = true; - Object.defineProperty(obj, "property", arrObj); +Object.defineProperty(obj, "property", arrObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js index c0708bbe198cbb47aa4356c2110984a77c59d314..c5b2ee9fb0561eeb65ded96bb708606e6a067e4b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-88-1.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - String.prototype.configurable = true; - var strObj = new String("abc"); +String.prototype.configurable = true; +var strObj = new String("abc"); - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-88.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-88.js index 4060b4f3a9dff06964eb7f60395c6ea083d2206c..9accbf1125c02ca44efde64ca22d51d636a3d2fa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-88.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-88.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var strObj = new String("abc"); +var strObj = new String("abc"); - strObj.configurable = true; +strObj.configurable = true; - Object.defineProperty(obj, "property", strObj); +Object.defineProperty(obj, "property", strObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js index 2ee6e17924379cb1a1e41651b7d3b632bf806705..f0fd7d2f05d63e10daa3091a4b4e18f3f46670b1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Boolean.prototype.configurable = true; - var boolObj = new Boolean(true); +Boolean.prototype.configurable = true; +var boolObj = new Boolean(true); - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-89.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-89.js index f39c1ed8d0691822c4c5d1ad709c64fd791958d6..b693ffbca4ef7d6c971e2fc120e5dbf1b536c885 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-89.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-89.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var boolObj = new Boolean(true); +var boolObj = new Boolean(true); - boolObj.configurable = true; +boolObj.configurable = true; - Object.defineProperty(obj, "property", boolObj); +Object.defineProperty(obj, "property", boolObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js index e0fe885c6e2b262c688e581a9007f390cd456cda..a3f036a73a7b1220ba7f94f8542b7f94163fe184 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js @@ -12,12 +12,16 @@ description: > but not undefined (Object)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = { a: 1 }; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = { + a: 1 +}; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js index d867abbc69eac0c1a1a17d8f669d7948270e22e2..542a8eebbce95d3619f94f2072b62f940a5fff0b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Number.prototype.configurable = true; - var numObj = new Number(-2); +Number.prototype.configurable = true; +var numObj = new Number(-2); - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-90.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-90.js index e3d3251d93cd9271acbd950f3de024c0b1f5da2d..a5904b0518a9e4cb4a2e5eeed12a4cb43ae1804a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-90.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-90.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var numObj = new Number(-2); +var numObj = new Number(-2); - numObj.configurable = true; +numObj.configurable = true; - Object.defineProperty(obj, "property", numObj); +Object.defineProperty(obj, "property", numObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js index 2191b771e455649617b9ad3f39e88ffc658faf87..d0a8e2927b12fcd67cd477018a4073b7a5041f9b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-91-1.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.configurable = true; +Object.prototype.configurable = true; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-91.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-91.js index e87007a5aed5444f0bc21c4fdd2e470f9991a5ce..934094a5e55ee9ba3d8982806bdae946c8f1c52f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-91.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-91.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Math.configurable = true; +Math.configurable = true; - Object.defineProperty(obj, "property", Math); +Object.defineProperty(obj, "property", Math); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js index 8665effb5c8be2404b3854ac5ae9ec61f59f7a6d..f02615e75b7f83d1359226d9868c552cabcb2281 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-92-1.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Date.prototype.configurable = true; - var dateObj = new Date(); +Date.prototype.configurable = true; +var dateObj = new Date(); - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-92.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-92.js index b245dc17dfcb96514bffff4f9ffa4c9961d7cf28..1afb867676ff59bf81451d9ff77159a432bab782 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-92.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-92.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var dateObj = new Date(); +var dateObj = new Date(); - dateObj.configurable = true; +dateObj.configurable = true; - Object.defineProperty(obj, "property", dateObj); +Object.defineProperty(obj, "property", dateObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js index b34879406e2e70e99a345109737f41f20ac7113c..775057ba8d0ccd9e40d0b56982f7e431c2ab1b4c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-93-1.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - RegExp.prototype.configurable = true; - var regObj = new RegExp(); +RegExp.prototype.configurable = true; +var regObj = new RegExp(); - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-93.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-93.js index 3657fd461c7daf5e341eafbd7a21ccdcf50b0266..f79298d3552012c69f57fb2bffe3b5f72aceff3a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-93.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-93.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var regObj = new RegExp(); +var regObj = new RegExp(); - regObj.configurable = true; +regObj.configurable = true; - Object.defineProperty(obj, "property", regObj); +Object.defineProperty(obj, "property", regObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js index 293602b42ff7cff66de12902d3f185cda0133cf9..aa834b6bb3349ed10a1a695e91d862210f0832dc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-94-1.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.configurable = true; +Object.prototype.configurable = true; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-94.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-94.js index f7cd3d9aad63deb694700794fa034ade6f4e77e9..a3a3f4d309696d0cf37008bf28bca0091b73c6cc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-94.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-94.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - JSON.configurable = true; +JSON.configurable = true; - Object.defineProperty(obj, "property", JSON); +Object.defineProperty(obj, "property", JSON); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js index 28d5de387c493080a18239bc1bb66fea24a64e55..e86e3bd9aeeeb54a6d676440d8dd300cf1030cad 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-95-1.js @@ -9,18 +9,18 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Error.prototype.configurable = true; - var errObj = new Error(); +Error.prototype.configurable = true; +var errObj = new Error(); - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-95.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-95.js index f0063df45741b1499f4d346fe877595a0cc76bd2..f37dab14921a79cf0f29770a53ef72b9a5b2501b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-95.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-95.js @@ -9,19 +9,19 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = { }; +var obj = {}; - var errObj = new Error(); +var errObj = new Error(); - errObj.configurable = true; +errObj.configurable = true; - Object.defineProperty(obj, "property", errObj); +Object.defineProperty(obj, "property", errObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js index 53a448dd06f4ae8ba7def4eb846c7c6329a34b0f..3dad6f88be0f8b574b2fbb25d12f02561f059038 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js @@ -9,18 +9,20 @@ description: > property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.configurable = true; - var argObj = (function () { return arguments; })(); +Object.prototype.configurable = true; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js index 97b7217a6c29ae71beb5cc9d08c01b7f1accbe0d..1730ebf40cecb41f7b064c26a281277a1e0c000a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js @@ -9,18 +9,20 @@ description: > property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(); - argObj.configurable = true; +var argObj = (function() { + return arguments; +})(); +argObj.configurable = true; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js index 5480de3fabbeb0c258f0ef66f153c0586c8d5c4c..26be7d83b37e9f1625504354305852369ba5226f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js @@ -9,17 +9,17 @@ description: > (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - this.configurable = true; +this.configurable = true; - Object.defineProperty(obj, "property", this); +Object.defineProperty(obj, "property", this); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js index f78b899c82e1bca3e1a09f734e8ab7afa5326cc9..b809de3238835575be7fa57eabc4c5ec4ed946d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: undefined }); +Object.defineProperty(obj, "property", { + configurable: undefined +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js index 8dfc4e949c8e945755fa2c88f3896d698aaa903f..00a540894ea7891168a584d4717f071b9ea4a89d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js @@ -14,10 +14,12 @@ description: > non-extensible objects(8.12.9 step 3) ---*/ - var o = {}; - Object.preventExtensions(o); +var o = {}; +Object.preventExtensions(o); assert.throws(TypeError, function() { - var desc = { value: 1 }; - Object.defineProperty(o, "foo", desc); + var desc = { + value: 1 + }; + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js index 9c6022243d9c76670f6e882d47e0aadfb967fdd0..71145b2c8d17798d6b834f5820a7913249ed94a2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js @@ -14,22 +14,31 @@ description: > properties ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter, enumerable: false, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + enumerable: false, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, setting enumerable to true should fail, since [[Configurable]] - // on the original property will be false. - var desc = { get: getter, enumerable: true }; +// now, setting enumerable to true should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + get: getter, + enumerable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js index b3d524226ad6ed12ec10c252dfc16249465e907f..efda2cd61d34a1f4d4d521c57ff30454fa5b6bd1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js @@ -14,7 +14,7 @@ var obj = {}; obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(obj, "foo", { - value: 200 + value: 200 }); verifyEqualTo(obj, "foo", 200); @@ -23,4 +23,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js index 2d32ed31df6e1cbe3a7dd3768ee4a31195e89e32..bd15bb566894bc7a54fb625a11c239fdf9d755db 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js @@ -13,7 +13,9 @@ var obj = {}; obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: undefined }); +Object.defineProperty(obj, "foo", { + value: undefined +}); verifyEqualTo(obj, "foo", undefined); verifyWritable(obj, "foo"); @@ -21,4 +23,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js index 01fd9bdb50f403440eb26a34425e025e11ecc109..5ad0a75c56a26264ddbab2edbdead9487a6def96 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js @@ -13,7 +13,9 @@ var obj = {}; obj.foo = undefined; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: 100 }); +Object.defineProperty(obj, "foo", { + value: 100 +}); verifyEqualTo(obj, "foo", 100); verifyWritable(obj, "foo"); @@ -21,4 +23,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js index 9a082b26af945dbdd33dc1b74d016c739305814a..44f7cb2fb8fd335e9ab30dc94d007090f43ef13d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js @@ -13,11 +13,12 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - writable: false, configurable: true + writable: false, + configurable: true }); Object.defineProperty(obj, "foo", { - writable: true + writable: true }); verifyEqualTo(obj, "foo", undefined); @@ -26,4 +27,3 @@ verifyWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js index 74fa125dafb31bf11f664c4e2a6dfda1485bcd6e..1a2b93d2a2b684dea26949c4875115e99b6f3f8d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js @@ -13,12 +13,12 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - enumerable: false, - configurable: true + enumerable: false, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: true + enumerable: true }); verifyEqualTo(obj, "foo", undefined); @@ -27,4 +27,3 @@ verifyNotWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js index 67a9b88f01cb50fc3ab1136b902d07ecf2506dea..8059ec36538524d9a73d18b50c7ef4045e2086c8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 200, - enumerable: true, - writable: true, - configurable: true + value: 200, + enumerable: true, + writable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - configurable: false + configurable: false }); verifyEqualTo(obj, "foo", 200); @@ -30,4 +30,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js index 598d0a06e82d55d3d1a051a71b164b242484cf47..c6a9e58fd5638a32bdf43dc3d91f06b2e362cfbc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js @@ -12,17 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 100, - writable: true, - enumerable: true, - configurable: true +Object.defineProperty(obj, "foo", { + value: 100, + writable: true, + enumerable: true, + configurable: true }); -Object.defineProperty(obj, "foo", { - value: 200, - writable: false, - enumerable: false +Object.defineProperty(obj, "foo", { + value: 200, + writable: false, + enumerable: false }); verifyEqualTo(obj, "foo", 200); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js index ee85f3e499dc956c8763604d30e3bff10ca67d33..f888deb39634367048cb2036ea64c496206cca77 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js @@ -14,25 +14,25 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 10; + return 10; } function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc, - configurable: true + get: getFunc, + set: setFunc, + configurable: true }); function getFunc2() { - return 20; + return 20; } Object.defineProperty(obj, "foo", { - get: getFunc2 + get: getFunc2 }); verifyEqualTo(obj, "foo", getFunc2()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-108.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-108.js index 2e967e1cb7b225bd2fb9e8c91b817de4e100d45a..14f5eb8225ba39ecbaf9ca1a5e59213893883340 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-108.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-108.js @@ -14,23 +14,23 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 10; + return 10; } function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - set: setFunc, - get: undefined + set: setFunc, + get: undefined }); verifyWritable(obj, "foo", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-109.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-109.js index 80c2b1ce4777a72deba393e6abb54c15f1d39df2..8b7123a3907cd763220bd4d3d54013a28df3a1a9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-109.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-109.js @@ -13,22 +13,22 @@ includes: [propertyHelper.js] var obj = {}; function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: setFunc, - get: undefined, - enumerable: true, - configurable: true + set: setFunc, + get: undefined, + enumerable: true, + configurable: true }); function getFunc() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: getFunc + get: getFunc }); verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js index a189d21095d9b7d0ec18fcbec6b88e5b28b389d2..aa07d64e55509ae2efd5c2fc081ca41c4ba93c77 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js @@ -14,22 +14,31 @@ description: > properties ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter, enumerable: true, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + enumerable: true, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, setting enumerable to true should fail, since [[Configurable]] - // on the original property will be false. - var desc = { get: getter, enumerable: false }; +// now, setting enumerable to true should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + get: getter, + enumerable: false +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.enumerable, true, 'd2.enumerable'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js index 834b0959dedeeaa0eab6ca243f27ec065d8bb90a..459f7b702f630fcb5eea9a006e92271c1131886e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js @@ -14,21 +14,21 @@ includes: [propertyHelper.js] var obj = {}; function setFunc1() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - set: setFunc1, - enumerable: true, - configurable: true + set: setFunc1, + enumerable: true, + configurable: true }); function setFunc2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: setFunc2 + set: setFunc2 }); verifyWritable(obj, "foo", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-111.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-111.js index c615651704f13fb5f0f3243d094b9c6be9498d4b..dfdd3d42e305f7d88a1921914704b8da10a2bc48 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-111.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-111.js @@ -9,30 +9,30 @@ description: > (8.12.9 step 12) ---*/ - var obj = {}; +var obj = {}; - function getFunc() { - return 10; - } +function getFunc() { + return 10; +} - function setFunc(value) { - obj.setVerifyHelpProp = value; - } +function setFunc(value) { + obj.setVerifyHelpProp = value; +} - Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "foo", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "foo", { - set: undefined, - get: getFunc - }); +Object.defineProperty(obj, "foo", { + set: undefined, + get: getFunc +}); - var desc = Object.getOwnPropertyDescriptor(obj, "foo"); +var desc = Object.getOwnPropertyDescriptor(obj, "foo"); assert(obj.hasOwnProperty("foo"), 'obj.hasOwnProperty("foo") !== true'); -assert.sameValue(typeof (desc.set), "undefined", 'typeof (desc.set)'); +assert.sameValue(typeof(desc.set), "undefined", 'typeof (desc.set)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-112.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-112.js index 1b0201c108bc2535a991e07ccf2b207414ffd2b8..85bde155ac8885d0c9f24d8a938485efeeb51c49 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-112.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-112.js @@ -14,22 +14,22 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - set: undefined, - get: getFunc, - enumerable: true, - configurable: true + set: undefined, + get: getFunc, + enumerable: true, + configurable: true }); function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: setFunc + set: setFunc }); verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-113.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-113.js index a40b2b65280f784e4bba284b44df076932cd384f..7ec7a57bf2eb001b848cbc98edafb11c90a0cd5c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-113.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-113.js @@ -14,18 +14,18 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: getFunc, - enumerable: true, - configurable: true + get: getFunc, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - get: getFunc, - enumerable: false + get: getFunc, + enumerable: false }); verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-114.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-114.js index c1b9f17741e90c31be5da5c4aa406bc4b9fa8f71..c8f90bfcc240ded0ba4a9f6906ab3e9586eb6d9d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-114.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-114.js @@ -14,22 +14,22 @@ includes: [propertyHelper.js] var obj = {}; function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } function getFunc() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc, - configurable: true + get: getFunc, + set: setFunc, + configurable: true }); Object.defineProperty(obj, "foo", { - get: getFunc, - configurable: false + get: getFunc, + configurable: false }); verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js index 5cb28ab762ea1a2b98e554a562f773768fc99542..702324b47d6e4b7b37a130aa42919a70a3b916b7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js @@ -14,27 +14,29 @@ includes: [propertyHelper.js] var obj = {}; function getFunc1() { - return 10; + return 10; } + function setFunc1() {} Object.defineProperty(obj, "foo", { - get: getFunc1, - set: setFunc1, - enumerable: true, - configurable: true + get: getFunc1, + set: setFunc1, + enumerable: true, + configurable: true }); function getFunc2() { - return 20; + return 20; } + function setFunc2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: getFunc2, - set: setFunc2, - enumerable: false + get: getFunc2, + set: setFunc2, + enumerable: false }); verifyEqualTo(obj, "foo", getFunc2()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js index 65a3d68c67cb2de50a71d8d3b430e8bcffb40387..2e0c7b7fa672a1bb745e6bb488459ad09fe7b025 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js @@ -8,14 +8,16 @@ description: > of 'O' is own data property (15.4.5.1 step 1) ---*/ - var arrObj = [0, 1]; - Object.defineProperty(arrObj, "1", { - value: 1, - configurable: false - }); +var arrObj = [0, 1]; +Object.defineProperty(arrObj, "1", { + value: 1, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { value: 1 }); + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); var desc = Object.getOwnPropertyDescriptor(arrObj, "length"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js index 2fd599c0b34d4d15baa0fd940ed7d24d45156a5a..6e8f17960efedfd9be3307221caf8217f9bbd56e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js @@ -9,21 +9,21 @@ description: > property (15.4.5.1 step 1) ---*/ - var arrObj = [0, 1, 2]; - var arrProtoLen; +var arrObj = [0, 1, 2]; +var arrProtoLen; assert.throws(TypeError, function() { - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; + arrProtoLen = Array.prototype.length; + Array.prototype.length = 0; - - Object.defineProperty(arrObj, "2", { - configurable: false - }); - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(arrObj, "2", { + configurable: false + }); + + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 3, 'arrObj.length'); assert.sameValue(Array.prototype.length, 0, 'Array.prototype.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js index 6890b115a856009c5097bb1a0840693bc9028daa..f1bef7cb157841e6f043574cd9dca3d713db8757 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js @@ -14,9 +14,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "length", { - writable: true, - enumerable: false, - configurable: false + writable: true, + enumerable: false, + configurable: false }); assert.sameValue(arrObj.length, 0); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js index b189fc5c645bb1fbee70b139c6fb22fa5d0956f3..ecc53f25a200c2ad0f6a5ddd2b9136065e29132d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js @@ -12,24 +12,31 @@ description: > non-configurable data properties to accessor properties ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // changing "foo" to be an accessor should fail, since [[Configurable]] - // on the original property will be false. +// changing "foo" to be an accessor should fail, since [[Configurable]] +// on the original property will be false. - // dummy getter - var getter = function () { return 1; } +// dummy getter +var getter = function() { + return 1; +} - var desc = { get: getter }; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain a data valued property. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain a data valued property. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.writable, false, 'd2.writable'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js index 62f3f419f9fbca5332ee617b011993594abcbb2d..61098e3ef6ebb29b8441f47393ed08a197aecee0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js @@ -10,9 +10,9 @@ description: > of the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { - configurable: true - }); + Object.defineProperty(arrObj, "length", { + configurable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-121.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-121.js index 3122743c37554cb8a2dff15b1f8b7039011d689a..0679c6b54c8d3e35dfb193b81873cf102904d55c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-121.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-121.js @@ -10,9 +10,9 @@ description: > the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { - enumerable: true - }); + Object.defineProperty(arrObj, "length", { + enumerable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-122.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-122.js index d65953e8799ce0752517f0fe08d9dcda5641c89b..5dd8d1d428ac17d601018fc1cc3bf947b774d948 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-122.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-122.js @@ -9,11 +9,11 @@ description: > descriptor (15.4.5.1 step 3.a.i) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { - get: function () { - return 2; - } - }); + Object.defineProperty(arrObj, "length", { + get: function() { + return 2; + } + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-123.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-123.js index f807ba2524a6f4b265d07eeee5ea98613c517995..ab1a64da7f527dab7846e71c3a72de812f061a16 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-123.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-123.js @@ -10,12 +10,12 @@ description: > the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { - writable: false - }); - Object.defineProperty(arrObj, "length", { - writable: true - }); + Object.defineProperty(arrObj, "length", { + writable: false + }); + Object.defineProperty(arrObj, "length", { + writable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js index b178a24d399b848f4aebd072a3d3640135aad336..e5940a06492f96c355573b44ded2871cbdcc8425 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js @@ -14,7 +14,7 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "length", { - writable: false + writable: false }); verifyEqualTo(arrObj, "length", 0); @@ -23,4 +23,3 @@ verifyNotWritable(arrObj, "length"); verifyNotEnumerable(arrObj, "length"); verifyNotConfigurable(arrObj, "length"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js index 32c822833011a246f7ffcb337d3b67051a4c9f7f..2cd5d4ee97b60c422b3ef6c874a1e61c688a004a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js @@ -9,9 +9,9 @@ description: > [[Value]] field of 'desc' is undefined (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: undefined - }); + Object.defineProperty(arrObj, "length", { + value: undefined + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-126.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-126.js index 17c5c77b0c8c76f5baa60ab6752335a7b64bebb6..4eca508ef3b262160cd98fb5564b4daaa08613cd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-126.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-126.js @@ -9,10 +9,10 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - value: null - }); +Object.defineProperty(arrObj, "length", { + value: null +}); assert.sameValue(arrObj.length, 0, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-127.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-127.js index ca691383c1c2d0638645c4b7a3a3fb5f391965f8..5c86807491fdf38ca7a85a3837b7b0cd69a69c63 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-127.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-127.js @@ -9,11 +9,11 @@ description: > with value false (15.4.5.1 step 3.c) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - value: false - }); +Object.defineProperty(arrObj, "length", { + value: false +}); assert.sameValue(arrObj.length, 0, 'arrObj.length'); assert.sameValue(arrObj.hasOwnProperty("0"), false, 'arrObj.hasOwnProperty("0")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-128.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-128.js index 29a46e6e90a69cc923d1a6bb893d7a4bbbc2b261..3784c89bc5ac1040598cd0dc5e185204f08f0dc6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-128.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-128.js @@ -9,10 +9,10 @@ description: > with value true (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: true - }); +Object.defineProperty(arrObj, "length", { + value: true +}); assert.sameValue(arrObj.length, 1, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-129.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-129.js index 6bb132493e0758c17415dd11ebe632ea6b0b8b83..96c7b8a9e96adaf2edacd674ff26e5b2d970eceb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-129.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-129.js @@ -9,10 +9,10 @@ description: > [[Value]] field of 'desc' is 0 (15.4.5.1 step 3.c) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - value: 0 - }); +Object.defineProperty(arrObj, "length", { + value: 0 +}); assert.sameValue(arrObj.length, 0, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js index 6666176e98452edead1355b70b8c9583413acaa1..badd02ccc94e865a6ea2a41dcc1c4444a0aeb993 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js @@ -12,22 +12,29 @@ description: > non-configurable accessor properties to data properties ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. - // changing "foo" to be a data property should fail, since [[Configurable]] - // on the original property will be false. - var desc = { value: 101 }; +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + configurable: false +}; +Object.defineProperty(o, "foo", d1); + +// changing "foo" to be a data property should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + value: 101 +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain an accessor property. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain an accessor property. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js index d4d9bf8b7dafdb6ea72529a03e4a3089bbca6fbd..ce0d5bba05bd1aa371706fa2ee61623d5228c06a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js @@ -9,10 +9,10 @@ description: > [[Value]] field of 'desc' is +0 (15.4.5.1 step 3.c) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - value: +0 - }); +Object.defineProperty(arrObj, "length", { + value: +0 +}); assert.sameValue(arrObj.length, 0, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-131.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-131.js index 3a0b3de429864d680a473a322fbb5607a91d166a..3458c6ca720116c41feeef18ea9e56c1e5537ef2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-131.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-131.js @@ -9,10 +9,10 @@ description: > [[Value]] field of 'desc' is -0 (15.4.5.1 step 3.c) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - value: -0 - }); +Object.defineProperty(arrObj, "length", { + value: -0 +}); assert.sameValue(arrObj.length, 0, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-132.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-132.js index d431841b1bbe6b6ef4c5e1a05d719791443a660e..2fc557ce772f2d51ffbce6bbf389b325a56d7d7f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-132.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-132.js @@ -9,10 +9,10 @@ description: > [[Value]] field of 'desc' is a positive number (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: 12 - }); +Object.defineProperty(arrObj, "length", { + value: 12 +}); assert.sameValue(arrObj.length, 12, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-133.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-133.js index 990f4c1905653e7a3846062f6cda4037914bd4aa..1f5373e66c3bc687cbbb7a27ef8c7ce267fe7928 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-133.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-133.js @@ -9,9 +9,9 @@ description: > [[Value]] field of 'desc' is a negative number (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: -9 - }); + Object.defineProperty(arrObj, "length", { + value: -9 + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-134.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-134.js index 6141877b5a11f0a34213a004819039db3e38af87..5980610123d18f7bac7262da45161dcb344e0419 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-134.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-134.js @@ -9,9 +9,9 @@ description: > [[Value]] field of 'desc' is +Infinity (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: +Infinity - }); + Object.defineProperty(arrObj, "length", { + value: +Infinity + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-135.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-135.js index fa36e838f26ba8cc77f62cfcfa6b3377cdf2dab8..8e5876ef02efbd700f0ca210cb99a7fd5622f157 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-135.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-135.js @@ -9,9 +9,9 @@ description: > [[Value]] field of 'desc' is -Infinity (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: -Infinity - }); + Object.defineProperty(arrObj, "length", { + value: -Infinity + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-136.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-136.js index a4b4c1b79e53a3de4ef139ab14ae1fa9e1ffe34c..6804e776f4a2d92af9cae108aea90e7f771ba5fb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-136.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-136.js @@ -9,9 +9,9 @@ description: > [[Value]] field of 'desc' is NaN (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: NaN - }); + Object.defineProperty(arrObj, "length", { + value: NaN + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-137.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-137.js index 1e58b7dadd0ae70fccff4307ad9dbe194de8320d..ddf5cde58bb6f66acfc60f625113dc11029682c6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-137.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-137.js @@ -10,10 +10,10 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: "2" - }); +Object.defineProperty(arrObj, "length", { + value: "2" +}); assert.sameValue(arrObj.length, 2, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-138.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-138.js index b1f9b8fc6b7dd4b583ef19f7efc2d1b215afbf87..0ec1ead0d0686f970989441f503dbb6cde19365e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-138.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-138.js @@ -10,9 +10,9 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: "-42" - }); + Object.defineProperty(arrObj, "length", { + value: "-42" + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-139.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-139.js index 13a4b9380b433213c9ebc3f24549dee2a8feac05..30fdd1657b49736106972b4ffaaffbb0b9197427 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-139.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-139.js @@ -10,9 +10,9 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: "200.59" - }); + Object.defineProperty(arrObj, "length", { + value: "200.59" + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js index 7a4cbf27281938e22c4f36655d42c95bab099abd..e38bf445e6a7d5f4dc02fc956668ac510e2b9d16 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js @@ -12,23 +12,27 @@ description: > property for configurable properties ---*/ - var o = {}; +var o = {}; - // create a data property. In this case, - // [[Enumerable]] and [[Configurable]] are true - o["foo"] = 101; +// create a data property. In this case, +// [[Enumerable]] and [[Configurable]] are true +o["foo"] = 101; - // changing "foo" to be an accessor should succeed, since [[Configurable]] - // on the original property will be true. Existing values of [[Configurable]] - // and [[Enumerable]] need to be preserved and the rest need to be set to - // their default values +// changing "foo" to be an accessor should succeed, since [[Configurable]] +// on the original property will be true. Existing values of [[Configurable]] +// and [[Enumerable]] need to be preserved and the rest need to be set to +// their default values - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter }; - Object.defineProperty(o, "foo", d1); +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter +}; +Object.defineProperty(o, "foo", d1); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.enumerable, true, 'd2.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js index 65d068b74e0a600aed63175728bb65df21fb2a24..c3c3a831a2f431636074ca08902d127435d5e8e2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js @@ -10,9 +10,9 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: "+Infinity" - }); + Object.defineProperty(arrObj, "length", { + value: "+Infinity" + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-141.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-141.js index a39d1564a69d012c7d7348eb82740ef8d7314f52..fed04a92583821b0e2348f151dfd3dffc66c00b1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-141.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-141.js @@ -10,9 +10,9 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: "-Infinity" - }); + Object.defineProperty(arrObj, "length", { + value: "-Infinity" + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-142.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-142.js index 8880cf8cfe381ef9bf2618788a5e6214f8bf8808..8924cd6c7cf962ff6e6e08c7b8f4955b33aad476 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-142.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-142.js @@ -9,10 +9,10 @@ description: > containing an exponential number (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: "2E3" - }); +Object.defineProperty(arrObj, "length", { + value: "2E3" +}); assert.sameValue(arrObj.length, 2E3, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-143.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-143.js index 55b9b1ffd8cee5e877e89e5ca258412a36034eac..d304794f2b4eeacbdc09f98cd078e176aa94c638 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-143.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-143.js @@ -9,10 +9,10 @@ description: > containing a hex number (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: "0x00B" - }); +Object.defineProperty(arrObj, "length", { + value: "0x00B" +}); assert.sameValue(arrObj.length, 0x00B, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-144.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-144.js index be700ec7640cf0f670f30939a90229ab48693b40..9259a153eddfaa433b89a2c3db999c49c93b6116 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-144.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-144.js @@ -9,10 +9,10 @@ description: > containing a number with leading zeros (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: "0002.0" - }); +Object.defineProperty(arrObj, "length", { + value: "0002.0" +}); assert.sameValue(arrObj.length, 2, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-145.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-145.js index 8909f1994b2fc1e35fecb62811ac8161bf948277..5f14b513cdcd0cd4570e94c0f0ab45980a92821f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-145.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-145.js @@ -10,9 +10,9 @@ description: > number (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: "two" - }); + Object.defineProperty(arrObj, "length", { + value: "two" + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-146.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-146.js index 565369fb713fc1535c8ed8b9c3c62d4d91b3cdf1..2cc6ec6af0cb454b8e03c902563fc507f743344d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-146.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-146.js @@ -9,14 +9,14 @@ description: > which has an own toString method (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: { - toString: function () { - return '2'; - } - } - }); +Object.defineProperty(arrObj, "length", { + value: { + toString: function() { + return '2'; + } + } +}); assert.sameValue(arrObj.length, 2, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-147.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-147.js index 4274ebbb3b9b7552a95b9c209f42d713710242d9..7549f17bdeb1f66828f1db5302919ee76693e4a6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-147.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-147.js @@ -9,14 +9,14 @@ description: > which has an own valueOf method (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: { - valueOf: function () { - return 2; - } - } - }); +Object.defineProperty(arrObj, "length", { + value: { + valueOf: function() { + return 2; + } + } +}); assert.sameValue(arrObj.length, 2, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-148.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-148.js index 19cb735ae7256ab2655db5038bcb47266a190752..aac1a6d5001795c6f753cd9f68dc4e8e1a653ab9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-148.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-148.js @@ -10,23 +10,23 @@ description: > toString method that returns a string (15.4.5.1 step 3.c) ---*/ - var arrObj = []; - var toStringAccessed = false; - var valueOfAccessed = false; +var arrObj = []; +var toStringAccessed = false; +var valueOfAccessed = false; - Object.defineProperty(arrObj, "length", { - value: { - toString: function () { - toStringAccessed = true; - return '2'; - }, +Object.defineProperty(arrObj, "length", { + value: { + toString: function() { + toStringAccessed = true; + return '2'; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - }); + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } +}); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-149.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-149.js index dbcbc3fa385f9d435a8820ee33fd19c096a37f6f..d00974ad72d0db9631fa8046fa5c4562a3a6afa7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-149.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-149.js @@ -9,23 +9,23 @@ description: > which has an own toString and valueOf method (15.4.5.1 step 3.c) ---*/ - var arrObj = []; - var toStringAccessed = false; - var valueOfAccessed = false; +var arrObj = []; +var toStringAccessed = false; +var valueOfAccessed = false; - Object.defineProperty(arrObj, "length", { - value: { - toString: function () { - toStringAccessed = true; - return '2'; - }, +Object.defineProperty(arrObj, "length", { + value: { + toString: function() { + toStringAccessed = true; + return '2'; + }, - valueOf: function () { - valueOfAccessed = true; - return 3; - } - } - }); + valueOf: function() { + valueOfAccessed = true; + return 3; + } + } +}); assert.sameValue(arrObj.length, 3, 'arrObj.length'); assert.sameValue(toStringAccessed, false, 'toStringAccessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js index 838309ba61ef206adc46d0dc73d2f7cdc8d54ef4..ce8de772aae2e69fb1a272cc931008eca0dc8afc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js @@ -12,21 +12,28 @@ description: > property for configurable properties ---*/ - var o = {}; +var o = {}; - // define an accessor property - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter, configurable: true }; - Object.defineProperty(o, "foo", d1); +// define an accessor property +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + configurable: true +}; +Object.defineProperty(o, "foo", d1); - // changing "foo" to be a data valued property should succeed, since - // [[Configurable]] on the original property will be true. Existing - // values of [[Configurable]] and [[Enumerable]] need to be preserved - // and the rest need to be set to their default values. - var desc = { value: 101 }; - Object.defineProperty(o, "foo", desc); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// changing "foo" to be a data valued property should succeed, since +// [[Configurable]] on the original property will be true. Existing +// values of [[Configurable]] and [[Enumerable]] need to be preserved +// and the rest need to be set to their default values. +var desc = { + value: 101 +}; +Object.defineProperty(o, "foo", desc); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.writable, false, 'd2.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js index caafe22910394380349a3c1e6468b5fb4a71521e..4aef28ab89f8285006eb82bb3f03111e4c8f0480 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js @@ -10,23 +10,23 @@ description: > return primitive value (15.4.5.1 step 3.c) ---*/ - var arrObj = []; - var toStringAccessed = false; - var valueOfAccessed = false; +var arrObj = []; +var toStringAccessed = false; +var valueOfAccessed = false; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { - value: { - toString: function () { - toStringAccessed = true; - return {}; - }, + Object.defineProperty(arrObj, "length", { + value: { + toString: function() { + toStringAccessed = true; + return {}; + }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - } - }); + valueOf: function() { + valueOfAccessed = true; + return {}; + } + } + }); }); assert(toStringAccessed, 'toStringAccessed !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-151.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-151.js index 4cce1420734c527860e525148f90b983c19cc5f5..ddddccf16227e7e5bec216bda1c94e0d871b00e9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-151.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-151.js @@ -10,29 +10,29 @@ description: > (15.4.5.1 step 3.c), test that the inherited valueOf method is used ---*/ - var arrObj = []; - var toStringAccessed = false; - var valueOfAccessed = false; +var arrObj = []; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - }; +var proto = { + valueOf: function() { + valueOfAccessed = true; + return 2; + } +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - child.toString = function () { - toStringAccessed = true; - return 3; - }; +var child = new ConstructFun(); +child.toString = function() { + toStringAccessed = true; + return 3; +}; - Object.defineProperty(arrObj, "length", { - value: child - }); +Object.defineProperty(arrObj, "length", { + value: child +}); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert.sameValue(toStringAccessed, false, 'toStringAccessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-152.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-152.js index e3975ad9efb8c0d5a402daab8d64996649a05abe..d9812947d23a286cc86ea0c9619516d620e693b1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-152.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-152.js @@ -10,9 +10,9 @@ description: > 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: 123.5 - }); + Object.defineProperty(arrObj, "length", { + value: 123.5 + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-153.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-153.js index dc60afadfc009b6bd11c6cd0b4f2f32fa1832198..dbaefd3385fcd7aaa29aff2eeeeb55bec3fb99d0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-153.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-153.js @@ -10,9 +10,9 @@ description: > 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: -4294967294.5 - }); + Object.defineProperty(arrObj, "length", { + value: -4294967294.5 + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-154.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-154.js index c499969dd60f43d1e7f3a69d4414b8f31ac13cac..b940cb001070230a3655e9f275794abfd6c6ee61 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-154.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-154.js @@ -9,10 +9,10 @@ description: > value 2^32 - 2 (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: 4294967294 - }); +Object.defineProperty(arrObj, "length", { + value: 4294967294 +}); assert.sameValue(arrObj.length, 4294967294, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-155.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-155.js index b9bfd06898b7301052b43534997b46195f022d1f..1801b334f85a7138ca37e79f935031e818a04770 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-155.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-155.js @@ -9,10 +9,10 @@ description: > value 2^32 - 1 (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - value: 4294967295 - }); +Object.defineProperty(arrObj, "length", { + value: 4294967295 +}); assert.sameValue(arrObj.length, 4294967295, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-156.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-156.js index 010a2237c7d7ec04a5e6380d093544ffb3504187..09db6bd97ed07ed45c157810339cc1111e5e4043 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-156.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-156.js @@ -9,9 +9,9 @@ description: > field of 'desc' is boundary value 2^32 (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: 4294967296 - }); + Object.defineProperty(arrObj, "length", { + value: 4294967296 + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-157.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-157.js index 24b4e08ee36f440fecaf14c41508a6a1fcb931ff..ecf1b7df371b9df3dbc162ae921265d5ba06a7b7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-157.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-157.js @@ -9,9 +9,9 @@ description: > field of 'desc' is boundary value 2^32 + 1 (15.4.5.1 step 3.c) ---*/ - var arrObj = []; +var arrObj = []; assert.throws(RangeError, function() { - Object.defineProperty(arrObj, "length", { - value: 4294967297 - }); + Object.defineProperty(arrObj, "length", { + value: 4294967297 + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-159.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-159.js index 06246ef3e2d8cfcf39c8207d0edceb1532d1c80e..7e143736b5f9161e4cf829adf7afd687faa0358e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-159.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-159.js @@ -9,11 +9,11 @@ description: > greater than the existing value of length (15.4.5.1 step 3.f) ---*/ - var arrObj = [0, , 2]; +var arrObj = [0, , 2]; - Object.defineProperty(arrObj, "length", { - value: 5 - }); +Object.defineProperty(arrObj, "length", { + value: 5 +}); assert.sameValue(arrObj.length, 5, 'arrObj.length'); assert.sameValue(arrObj[0], 0, 'arrObj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js index 4b7db063cad9ff8d8729833e4ab321bb479925cc..78b883a3fe8f8e20359482816c5e182586399c7b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js @@ -12,20 +12,25 @@ description: > on non-configurable data properties ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101 }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101 +}; +Object.defineProperty(o, "foo", d1); - // now, relaxing [[Writable]] on "foo" should fail, since both - // [[Configurable]] and [[Writable]] on the original property will be false. - var desc = { value: 101, writable: true }; +// now, relaxing [[Writable]] on "foo" should fail, since both +// [[Configurable]] and [[Writable]] on the original property will be false. +var desc = { + value: 101, + writable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.writable, false, 'd2.writable'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js index 889d911dfee4a1937cdc8656fc6366812d4bee49..db884901ea09ac24e5cb32c5715328a72e517e42 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js @@ -9,11 +9,11 @@ description: > equal to the existing value of length (15.4.5.1 step 3.f) ---*/ - var arrObj = [0, , 2]; +var arrObj = [0, , 2]; - Object.defineProperty(arrObj, "length", { - value: 3 - }); +Object.defineProperty(arrObj, "length", { + value: 3 +}); assert.sameValue(arrObj.length, 3, 'arrObj.length'); assert.sameValue(arrObj[0], 0, 'arrObj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-161.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-161.js index 881a01347c1da56328432620b24f946ae0e96219..5c0c453d613725b8fc70c3385fa22f9c5e096c26 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-161.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-161.js @@ -10,11 +10,11 @@ description: > beyond the new length are deleted(15.4.5.1 step 3.f) ---*/ - var arrObj = [0, 1]; - - Object.defineProperty(arrObj, "length", { - value: 1 - }); +var arrObj = [0, 1]; + +Object.defineProperty(arrObj, "length", { + value: 1 +}); assert.sameValue(arrObj.length, 1, 'arrObj.length'); assert.sameValue(arrObj.hasOwnProperty("1"), false, 'arrObj.hasOwnProperty("1")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-162.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-162.js index dd21806a7a83ea5622709ee8fdf5a5ccc916aa2b..d1103d1bbdd293bb7092a20d745f0ff84b27d084 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-162.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-162.js @@ -10,13 +10,13 @@ description: > length property is not writable (15.4.5.1 step 3.f.i) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - writable: false - }); +Object.defineProperty(arrObj, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { - value: 12 - }); + Object.defineProperty(arrObj, "length", { + value: 12 + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-163.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-163.js index 99ad98928cf39bac3e9c2e6443d0cbb17c128ba8..77c9324724a91a393e473aeceb03321568ea287b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-163.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-163.js @@ -10,12 +10,12 @@ description: > property is not writable (15.4.5.1 step 3.f.i) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "length", { - writable: false - }); +Object.defineProperty(arrObj, "length", { + writable: false +}); - Object.defineProperty(arrObj, "length", { - value: 0 - }); +Object.defineProperty(arrObj, "length", { + value: 0 +}); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-164.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-164.js index c8a0513c78437c9a86e5665e17513a1ffc301c66..73e614da22f90fb859fe3299062f62b28a4f72ae 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-164.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-164.js @@ -11,13 +11,13 @@ description: > step 3.g) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - writable: false - }); +Object.defineProperty(arrObj, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { - value: 0 - }); + Object.defineProperty(arrObj, "length", { + value: 0 + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-165.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-165.js index 4a72cda654d4daa6c259804a36563ba801a88da5..ffa15660d97a35f9cb18381ed4e974d620b163ce 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-165.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-165.js @@ -12,15 +12,15 @@ description: > (15.4.5.1 step 3.h) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - value: 1 - }); +Object.defineProperty(arrObj, "length", { + value: 1 +}); - var indexDeleted = !arrObj.hasOwnProperty("1"); +var indexDeleted = !arrObj.hasOwnProperty("1"); - arrObj.length = 10; +arrObj.length = 10; assert(indexDeleted, 'indexDeleted !== true'); assert.sameValue(arrObj.length, 10, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-166.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-166.js index 85c2e654df48654cd18b3ecfcfcd04314805e145..c080747efa70102bd03bd28c1d5f6825a1d62e07 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-166.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-166.js @@ -12,16 +12,16 @@ description: > (15.4.5.1 step 3.h) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - value: 1, - writable: true - }); +Object.defineProperty(arrObj, "length", { + value: 1, + writable: true +}); - var indexDeleted = !arrObj.hasOwnProperty("1"); +var indexDeleted = !arrObj.hasOwnProperty("1"); - arrObj.length = 10; +arrObj.length = 10; assert(indexDeleted, 'indexDeleted !== true'); assert.sameValue(arrObj.length, 10, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-167.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-167.js index 0a481d5c741876b6e10dbefbf2da7697af19d09e..a2de291b8afa978d8713c4f203a14b44992d0f6f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-167.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-167.js @@ -17,8 +17,8 @@ includes: [propertyHelper.js] var arrObj = [0, 1]; Object.defineProperty(arrObj, "length", { - value: 1, - writable: false + value: 1, + writable: false }); assert(!arrObj.hasOwnProperty("1")) diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-168.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-168.js index 1cb70eb370b9f759aead8f2ea7a012721f26f005..d03d1325a363df93275fa4adba09dedcb1bc1575 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-168.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-168.js @@ -14,15 +14,15 @@ description: > thrown (15.4.5.1 step 3.i.iii) ---*/ - var arrObj = [0, 1, 2]; +var arrObj = [0, 1, 2]; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "1", { - configurable: false - }); + Object.defineProperty(arrObj, "1", { + configurable: false + }); - Object.defineProperty(arrObj, "length", { - value: 0, - writable: false - }); + Object.defineProperty(arrObj, "length", { + value: 0, + writable: false + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-169.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-169.js index 15aff619002cc3748d82368530708404907bb1a7..ec14c9514550f39650c8a027be891f37af92ac99 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-169.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-169.js @@ -12,19 +12,19 @@ description: > TypeError is thrown (15.4.5.1 step 3.l.i) ---*/ - var arrObj = [0, 1, 2]; +var arrObj = [0, 1, 2]; - Object.defineProperty(arrObj, "1", { - configurable: false - }); +Object.defineProperty(arrObj, "1", { + configurable: false +}); - Object.defineProperty(arrObj, "2", { - configurable: true - }); +Object.defineProperty(arrObj, "2", { + configurable: true +}); assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert.sameValue(arrObj.hasOwnProperty("2"), false, 'arrObj.hasOwnProperty("2")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js index 8f4ad3a8580f61bd55f606ae198aafb87dc25175..9b93e9efbf27333f6c121350cd4c22ddbd8e3ea4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js @@ -12,20 +12,24 @@ description: > non-writable non-configurable data properties ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101 }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101 +}; +Object.defineProperty(o, "foo", d1); - // now, trying to change the value of "foo" should fail, since both - // [[Configurable]] and [[Writable]] on the original property will be false. - var desc = { value: 102 }; +// now, trying to change the value of "foo" should fail, since both +// [[Configurable]] and [[Writable]] on the original property will be false. +var desc = { + value: 102 +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.writable, false, 'd2.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js index 4650c357eb89793aee4095b5ec2b1351c19e32d5..3f9622bbbefa5016cb3732712aa7d5ddd80d8d36 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js @@ -13,15 +13,15 @@ description: > thrown (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "1", { - configurable: false - }); + Object.defineProperty(arrObj, "1", { + configurable: false + }); - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-171.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-171.js index 29cef1594f4317339b4b3e615925deccd1a2b6c6..f3283840ca10ad8dfbd9607a76ed942cdefba968 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-171.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-171.js @@ -11,12 +11,12 @@ description: > deleting index named properties (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Array.prototype[1] = 2; // Not setting the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable - Object.defineProperty(arrObj, "length", { - value: 1 - }); +Array.prototype[1] = 2; // Not setting the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable +Object.defineProperty(arrObj, "length", { + value: 1 +}); assert.sameValue(arrObj.length, 1, 'arrObj.length'); assert.sameValue(arrObj.hasOwnProperty("1"), false, 'arrObj.hasOwnProperty("1")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-172.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-172.js index 11e3ff7ffdf985a9240b16e40d9d631a255f9c0c..b6f14808a6b244321cb7230018e7611def7e1370 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-172.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-172.js @@ -12,17 +12,17 @@ description: > (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "1", { - configurable: false - }); - - Array.prototype[1] = 2; - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(arrObj, "1", { + configurable: false + }); + + Array.prototype[1] = 2; + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-173.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-173.js index 27a85d434a08575da78a637cf00a56c5dbc15b82..a0179d45a925fde21202ea9f029a52e03b47846c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-173.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-173.js @@ -12,23 +12,23 @@ description: > properties (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "1", { - configurable: false - }); + Object.defineProperty(arrObj, "1", { + configurable: false + }); - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 2; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 2; + }, + configurable: true + }); - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-174.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-174.js index 422632e805f9c5ac201e6e4385a34ee57b27827b..ee5deb2f9a8ed096192d30696952b814fdd77c9c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-174.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-174.js @@ -11,18 +11,18 @@ description: > deleting index named properties (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "1", { - get: function () { - return 1; - }, - configurable: false - }); + Object.defineProperty(arrObj, "1", { + get: function() { + return 1; + }, + configurable: false + }); - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-175.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-175.js index 4e7d05cebd1656448078f0feeab70903ba5c2791..23357a32c81516f5b609363ae39db3b5596f2693 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-175.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-175.js @@ -11,18 +11,18 @@ description: > stop deleting index named properties (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 1; - }, - configurable: true // Not setting the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable - }); +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 1; + }, + configurable: true // Not setting the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable +}); - Object.defineProperty(arrObj, "length", { - value: 1 - }); +Object.defineProperty(arrObj, "length", { + value: 1 +}); assert.sameValue(arrObj.length, 1, 'arrObj.length'); assert.sameValue(arrObj.hasOwnProperty("1"), false, 'arrObj.hasOwnProperty("1")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-176.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-176.js index 4d1d9ac03ef83948c0e1546fdbd06f7f656b690e..475d082d91acbfac93665d3c5b8444ef1abf1061 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-176.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-176.js @@ -12,20 +12,20 @@ description: > properties (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "1", { - get: function () { - return 2; - }, - configurable: false - }); - - Array.prototype[1] = 2; - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(arrObj, "1", { + get: function() { + return 2; + }, + configurable: false + }); + + Array.prototype[1] = 2; + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js index f9c666b271a47afb337292d1dbddf1960a192a82..c856a3d7b502fdb7a1939289a8b7b8eba141674a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js @@ -12,26 +12,26 @@ description: > properties (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "1", { - get: function () { - return 1; - }, - configurable: false - }); - - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 2; - }, - configurable: true - }); + Object.defineProperty(arrObj, "1", { + get: function() { + return 1; + }, + configurable: false + }); - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 2; + }, + configurable: true + }); + + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js index 10a208b9b4292c49ad17ab0077e0dda1965a81a2..4df1e5802ef8e335119f1cab7a55e54610b59129 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js @@ -10,10 +10,10 @@ description: > property of 'O' is deleted (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.defineProperty(arrObj, "length", { - value: 1 - }); +Object.defineProperty(arrObj, "length", { + value: 1 +}); assert.sameValue(arrObj.hasOwnProperty("1"), false, 'arrObj.hasOwnProperty("1")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js index d59c20d30df21bce422d97b9f58d8963d39fee6e..5026a63d9c36dae9b2be991b97fca84e21f8444c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-179-1.js @@ -10,14 +10,14 @@ description: > is same as [[Value]] (15.4.5.1 step 3.l.iii.1) ---*/ - var arrObj = [0, 1, 2, 3]; +var arrObj = [0, 1, 2, 3]; - Object.defineProperty(arrObj, "1", { - configurable: false - }); +Object.defineProperty(arrObj, "1", { + configurable: false +}); - Object.defineProperty(arrObj, "length", { - value: 3 - }); +Object.defineProperty(arrObj, "length", { + value: 3 +}); assert.sameValue(arrObj.length, 3, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js index 9701c6e9d5af3bac1aed6afe703b739a0eca9afa..36e9117d54780d1fd74991f0d7cfaf6734ea9b2a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js @@ -12,23 +12,29 @@ description: > non-configurable accessor properties(8.12.9 step 11.a.i) ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter - var getter = function () { return 1;} - var d1 = { get: getter }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter +}; +Object.defineProperty(o, "foo", d1); - // now, trying to change the setter should fail, since [[Configurable]] - // on the original property will be false. - var setter = function (x) {}; - var desc = { set: setter }; +// now, trying to change the setter should fail, since [[Configurable]] +// on the original property will be false. +var setter = function(x) {}; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.configurable, false, 'd2.configurable'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js index 68b0f0daafa7c25eb80c90260970881856b35cb4..11dcd7d4975dafee187fed0ed21b0d877fb53556 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js @@ -17,8 +17,8 @@ includes: [propertyHelper.js] var arrObj = [0, 1]; Object.defineProperty(arrObj, "length", { - value: 0, - writable: false + value: 0, + writable: false }); verifyNotWritable(arrObj, "length"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-182.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-182.js index 9f3e38ad089117548e6ca872a6f24438f78155d8..340149c4e1bf042c9887bb7b764e6ac89d13efa4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-182.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-182.js @@ -9,10 +9,10 @@ description: > numbers (15.4.5.1 step 4.a) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "0", { - value: 12 - }); +Object.defineProperty(arrObj, "0", { + value: 12 +}); assert.sameValue(arrObj[0], 12, 'arrObj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-183.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-183.js index 3fa0485ebd708b09945e24063e0818ef6a0ce854..7a668ddac41196bad1daf7f1e6d4e351933486a5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-183.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-183.js @@ -9,11 +9,11 @@ description: > 4.a) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, 4294967294, { - value: 100 - }); +Object.defineProperty(arrObj, 4294967294, { + value: 100 +}); assert(arrObj.hasOwnProperty("4294967294"), 'arrObj.hasOwnProperty("4294967294") !== true'); assert.sameValue(arrObj.length, 4294967295, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-184.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-184.js index b3678ae489cb740e28a0b0a9542a9d494e39a9b4..3e1ca6947bf8e5dd578cdaf5c650019f3b22ed0d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-184.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-184.js @@ -9,11 +9,11 @@ description: > 4.a) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, 4294967295, { - value: 100 - }); +Object.defineProperty(arrObj, 4294967295, { + value: 100 +}); assert(arrObj.hasOwnProperty("4294967295"), 'arrObj.hasOwnProperty("4294967295") !== true'); assert.sameValue(arrObj.length, 0, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-185.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-185.js index c99ce71065cd0e57a1be9bb090ac7d1d3197dcf3..69843271a59e10a9f3744f16d3856e8d9edda70b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-185.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-185.js @@ -8,11 +8,11 @@ description: > named property, 'name' is boundary value 2^32 (15.4.5.1 step 4.a) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, 4294967296, { - value: 100 - }); +Object.defineProperty(arrObj, 4294967296, { + value: 100 +}); assert(arrObj.hasOwnProperty("4294967296"), 'arrObj.hasOwnProperty("4294967296") !== true'); assert.sameValue(arrObj.length, 0, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-186.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-186.js index 0af8105b085d73b8214e7cf71a416aea22851118..560214a26e50755e99a709d768f42cb45146cf19 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-186.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-186.js @@ -9,11 +9,11 @@ description: > 4.a) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, 4294967297, { - value: 100 - }); +Object.defineProperty(arrObj, 4294967297, { + value: 100 +}); assert(arrObj.hasOwnProperty("4294967297"), 'arrObj.hasOwnProperty("4294967297") !== true'); assert.sameValue(arrObj.length, 0, 'arrObj.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js index e6050fceb0fac32546ab409101cf4869ff6e16e5..dd975e31a143f5997d3f83be1f9b10f49155e48a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js @@ -11,13 +11,12 @@ description: > 4.b) ---*/ - var arrObj = [1, 2, 3]; +var arrObj = [1, 2, 3]; - Object.defineProperty(arrObj, "length", { - writable: false - }); - - Object.defineProperty(arrObj, 1, { - value: "abc" - }); +Object.defineProperty(arrObj, "length", { + writable: false +}); +Object.defineProperty(arrObj, 1, { + value: "abc" +}); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js index 53b68caf95c108bd9cd5c40a51b15855f31f464d..889e6d237139c22d65d3c3553d64b83d4f6573e2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js @@ -10,13 +10,13 @@ description: > 'name' equals to value of the length property (15.4.5.1 step 4.b) ---*/ - var arrObj = [1, 2, 3]; +var arrObj = [1, 2, 3]; - Object.defineProperty(arrObj, "length", { - writable: false - }); +Object.defineProperty(arrObj, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(arrObj, 3, { - value: "abc" - }); + Object.defineProperty(arrObj, 3, { + value: "abc" + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-189.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-189.js index f67443f47580e1dda6edabf1ce9e9c2a655e6773..1c61ecf6f74b054608730958c882e5aaaeea40e0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-189.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-189.js @@ -11,13 +11,13 @@ description: > 4.b) ---*/ - var arrObj = [1, 2, 3]; +var arrObj = [1, 2, 3]; - Object.defineProperty(arrObj, "length", { - writable: false - }); +Object.defineProperty(arrObj, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(arrObj, 4, { - value: "abc" - }); + Object.defineProperty(arrObj, 4, { + value: "abc" + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js index 2758d9847d4f23b933ef81f8ce13b9757a7a98af..f148c9622327180839755ed4c077f0f6a505957f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js @@ -12,20 +12,26 @@ description: > non-configurable accessor properties(8.12.9 step 10.a.ii.1) ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter - var getter = function () { return 1;} - var d1 = { get: getter }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter +}; +Object.defineProperty(o, "foo", d1); - // now, trying to set the setter should succeed even though [[Configurable]] - // on the original property will be false. - var desc = { set: undefined }; - Object.defineProperty(o, "foo", desc); +// now, trying to set the setter should succeed even though [[Configurable]] +// on the original property will be false. +var desc = { + set: undefined +}; +Object.defineProperty(o, "foo", desc); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.set, undefined, 'd2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js index 438fe21f4b82a6eb2416d7b1f6ff38cc36613edb..098e05861cedf700542b09c8eb793037476e560f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js @@ -14,25 +14,25 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: "ownDataProperty", - configurable: false + value: "ownDataProperty", + configurable: false }); try { - Object.defineProperty(arrObj, 0, { - configurable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, 0, { + configurable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", "ownDataProperty"); + verifyEqualTo(arrObj, "0", "ownDataProperty"); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-191.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-191.js index 6f98b428d30e49123a45befc00ead521b4ecf8a0..1b4fb59bdd559de14ba48572925df2a57eb4fbe6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-191.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-191.js @@ -10,27 +10,27 @@ description: > ---*/ try { - Object.defineProperty(Array.prototype, "0", { - value: 11, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + value: 11, + configurable: true + }); - var arrObj = []; + var arrObj = []; - Object.defineProperty(arrObj, "0", { - configurable: false - }); + Object.defineProperty(arrObj, "0", { + configurable: false + }); - if (!arrObj.hasOwnProperty("0")) { - $ERROR("Expected arrObj.hasOwnProperty('0') === true, actually " + arrObj.hasOwnProperty("0")); - } - if (Array.prototype[0] !== 11) { - $ERROR("Expected Array.prototype[0] === 11), actually " + Array.prototype[0]); - } - if (typeof arrObj[0] !== "undefined") { - $ERROR("Expected typeof arrObj[0] === 'undefined'), actually " + typeof arrObj[0]); - } + if (!arrObj.hasOwnProperty("0")) { + $ERROR("Expected arrObj.hasOwnProperty('0') === true, actually " + arrObj.hasOwnProperty("0")); + } + if (Array.prototype[0] !== 11) { + $ERROR("Expected Array.prototype[0] === 11), actually " + Array.prototype[0]); + } + if (typeof arrObj[0] !== "undefined") { + $ERROR("Expected typeof arrObj[0] === 'undefined'), actually " + typeof arrObj[0]); + } } finally { - delete Array.prototype[0]; + delete Array.prototype[0]; } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-192.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-192.js index 5e28dc2d39cd73aad44d8a4667493db6c55de828..65c0025e152733fc6f1e2d85062183e50b69d013 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-192.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-192.js @@ -13,19 +13,19 @@ description: > var arrObj = []; assert.throws(TypeError, function() { - Object.defineProperty(Array.prototype, "0", { - value: 11, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + value: 11, + configurable: true + }); - Object.defineProperty(arrObj, "0", { - value: 12, - configurable: false - }); - - Object.defineProperty(arrObj, "0", { - configurable: true - }); + Object.defineProperty(arrObj, "0", { + value: 12, + configurable: false + }); + + Object.defineProperty(arrObj, "0", { + configurable: true + }); }); assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]'); assert.sameValue(arrObj[0], 12, 'arrObj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-193.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-193.js index 03c38b4dba41b02b78e10e3501be26cf4281547a..2507d3c33af907fe82551a4fb396aa91e8d7d4ab 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-193.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-193.js @@ -15,21 +15,21 @@ description: > var arrObj = []; assert.throws(TypeError, function() { - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true + }); - Object.defineProperty(arrObj, "0", { - value: 12, - configurable: false - }); + Object.defineProperty(arrObj, "0", { + value: 12, + configurable: false + }); - Object.defineProperty(arrObj, "0", { - configurable: true - }); + Object.defineProperty(arrObj, "0", { + configurable: true + }); }); assert.sameValue(Array.prototype[0], 11, 'Array.prototype[0]'); assert.sameValue(arrObj[0], 12, 'arrObj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-194.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-194.js index 7cacb2d47ca197d1cfd68d481606a05913759b0b..990f8f92bcfc9994de6873b835d3270886e9af8e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-194.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-194.js @@ -12,29 +12,29 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; -var getFunc = function () { - return 11; +var getFunc = function() { + return 11; }; Object.defineProperty(arrObj, "0", { - get: getFunc, - configurable: false + get: getFunc, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { - configurable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + configurable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", getFunc()); + verifyEqualTo(arrObj, "0", getFunc()); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e.name); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e.name); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js index 4181928c0f624fe3ef111a4ad230d7b22a1ea5f8..491372f016fd039834404094c607fafbf9c80e00 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js @@ -11,38 +11,39 @@ includes: [propertyHelper.js] ---*/ function getFunc() { - return arrObj.helpVerifySet; + return arrObj.helpVerifySet; } + function setFunc(value) { - arrObj.helpVerifySet = value; + arrObj.helpVerifySet = value; } try { - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true + }); - var arrObj = []; + var arrObj = []; - Object.defineProperty(arrObj, "0", { - get: getFunc, - set: setFunc, - configurable: false - }); + Object.defineProperty(arrObj, "0", { + get: getFunc, + set: setFunc, + configurable: false + }); - arrObj[0] = 13; + arrObj[0] = 13; - verifyEqualTo(arrObj, "0", getFunc()); + verifyEqualTo(arrObj, "0", getFunc()); - verifyWritable(arrObj, "0", "helpVerifySet"); + verifyWritable(arrObj, "0", "helpVerifySet"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); } finally { - delete Array.prototype[0]; + delete Array.prototype[0]; } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js index 7ddb2e1dd063a9202e0ac58fffb16e7caba30872..f40f1cfd4043492eb85dccf6f4b530022f977a9b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js @@ -11,18 +11,18 @@ description: > assert.throws(TypeError, function() { - Object.defineProperty(Array.prototype, "0", { - value: 11, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + value: 11, + configurable: true + }); - var arrObj = []; - Object.defineProperty(arrObj, "0", { - get: function () { }, - configurable: false - }); + var arrObj = []; + Object.defineProperty(arrObj, "0", { + get: function() {}, + configurable: false + }); - Object.defineProperty(arrObj, "0", { - configurable: true - }); + Object.defineProperty(arrObj, "0", { + configurable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-197.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-197.js index 4fc4f1e838e784c923914243f0141cca0cc706b3..5887be340a1a99c073b9ab84b9097d2ac768b3aa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-197.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-197.js @@ -11,18 +11,18 @@ description: > assert.throws(TypeError, function() { - Object.defineProperty(Array.prototype, "0", { - get: function () { }, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + get: function() {}, + configurable: true + }); - var arrObj = []; - Object.defineProperty(arrObj, "0", { - get: function () { }, - configurable: false - }); + var arrObj = []; + Object.defineProperty(arrObj, "0", { + get: function() {}, + configurable: false + }); - Object.defineProperty(arrObj, "0", { - configurable: true - }); + Object.defineProperty(arrObj, "0", { + configurable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js index 27354b58dd56d579d49ff8f5dda1ba066d5742de..0ecd59a2f42270da5c3c9c289fbbf93f43cc2c28 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js @@ -9,10 +9,12 @@ description: > TypeError is thrown when 'O' is not extensible (15.4.5.1 step 4.c) ---*/ - var arrObj = []; - Object.preventExtensions(arrObj); +var arrObj = []; +Object.preventExtensions(arrObj); assert.throws(TypeError, function() { - var desc = { value: 1 }; - Object.defineProperty(arrObj, "0", desc); + var desc = { + value: 1 + }; + Object.defineProperty(arrObj, "0", desc); }); assert.sameValue(arrObj.hasOwnProperty("0"), false, 'arrObj.hasOwnProperty("0")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js index 5052ac886123fd111819aa421c0a8aa568cd7614..58c486b4c47ef59844334d0233b7f571d6ae713a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js @@ -14,7 +14,7 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - enumerable: true + enumerable: true }); verifyEqualTo(arrObj, "0", undefined); @@ -24,4 +24,3 @@ verifyNotWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js index ef6d4e2e58c0a325e5d18a359cc3165577da35ea..a97cbedfc90e991ac8a7c9aec8c88e0d25a775b9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js @@ -12,14 +12,16 @@ description: > values (data properties)(8.12.9 step 4.a.i) ---*/ - var o = {}; +var o = {}; - var desc = { value: 1 }; - Object.defineProperty(o, "foo", desc); +var desc = { + value: 1 +}; +Object.defineProperty(o, "foo", desc); - var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); +var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); -assert.sameValue(propDesc.value, 1, 'propDesc.value'); // this is the value that was set -assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default -assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default -assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default +assert.sameValue(propDesc.value, 1, 'propDesc.value'); // this is the value that was set +assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default +assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default +assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js index d38088903658ebf448ffaf3cd8be50e232445491..d16ab047c6e997cd147911bcca4ef8621f1fe590 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js @@ -13,21 +13,28 @@ description: > 11.a.ii) ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter/setter - var getter = function () { return 1;} - var d1 = { get: getter, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter/setter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, trying to change the setter should fail, since [[Configurable]] - // on the original property will be false. - var desc = { get: undefined }; +// now, trying to change the setter should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + get: undefined +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js index 63077a0cbe7a50cf1400ee81d6e3088fc8fd180a..9f5256890b79b38085938a9d40442980087f04ab 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - writable: true, - enumerable: true, - configurable: false + writable: true, + enumerable: true, + configurable: false }); verifyEqualTo(arrObj, "0", undefined); @@ -27,4 +27,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js index 7b3f9f33a7d592766277d9908497a84e0626ee67..f0482af89be5530bb99e026fd1c7c1fe44906d42 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - value: 1001, - enumerable: true, - configurable: false + value: 1001, + enumerable: true, + configurable: false }); verifyEqualTo(arrObj, "0", 1001); @@ -26,4 +26,3 @@ verifyNotWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js index 0c987dfff27c9a479d505116d0e488f229288aa5..d6bdee22b19e0cb5e3bc93cd1fb880d2c486a429 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - value: 1001, - writable: true, - configurable: true + value: 1001, + writable: true, + configurable: true }); verifyEqualTo(arrObj, "0", 1001); @@ -26,4 +26,3 @@ verifyWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js index 82a8aeb457de62fe519d2c905c1f349002e1f110..abee7a278e7095243cc780897ba61a01ff3bbf6c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - value: 1001, - writable: true, - enumerable: true + value: 1001, + writable: true, + enumerable: true }); verifyEqualTo(arrObj, "0", 1001); @@ -26,4 +26,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js index 899fc6f99d4d314f4f1c2afea1fd7070a6e52623..e19e46508f99f65bf0e357f88b1f5edf8931e8af 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var arrObj = [1]; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(arrObj, "0", { - value: 1001, - writable: false, - enumerable: false, - configurable: false + value: 1001, + writable: false, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "0", 1001); @@ -26,4 +26,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js index 58020eb3b428f039ceae810d93bc61d2d3c0bc3c..04c926f70244e3116d3d3c788af686502a139ec7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js @@ -12,14 +12,14 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; -var setFunc = function (value) { - arrObj.setVerifyHelpProp = value; +var setFunc = function(value) { + arrObj.setVerifyHelpProp = value; }; Object.defineProperty(arrObj, "0", { - set: setFunc, - enumerable: true, - configurable: true + set: setFunc, + enumerable: true, + configurable: true }); verifyWritable(arrObj, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-206.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-206.js index 50a9bc2ad8dda31b317f14127d0a5d0acd6d6ebb..a21a365d1f2e346d3220416439fd9376d8f1bf06 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-206.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-206.js @@ -10,16 +10,16 @@ description: > is absent in accessor descriptor 'desc' (15.4.5.1 step 4.c) ---*/ - var arrObj = []; - var getFunc = function () { }; +var arrObj = []; +var getFunc = function() {}; - Object.defineProperty(arrObj, "0", { - get: getFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(arrObj, "0", { + get: getFunc, + enumerable: true, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(arrObj, "0"); +var desc = Object.getOwnPropertyDescriptor(arrObj, "0"); assert(arrObj.hasOwnProperty("0"), 'arrObj.hasOwnProperty("0") !== true'); assert(desc.hasOwnProperty("set"), 'desc.hasOwnProperty("set") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-207.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-207.js index 8f9c19117adbf29485df6c510637c3d2a6480e2a..338b788efffa34da3b986fd8917582309d016979 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-207.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-207.js @@ -14,15 +14,15 @@ includes: [propertyHelper.js] var arrObj = []; -var setFunc = function (value) { - arrObj.setVerifyHelpProp = value; +var setFunc = function(value) { + arrObj.setVerifyHelpProp = value; }; -var getFunc = function () { }; +var getFunc = function() {}; Object.defineProperty(arrObj, "0", { - set: setFunc, - get: getFunc, - configurable: true + set: setFunc, + get: getFunc, + configurable: true }); verifyEqualTo(arrObj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-208.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-208.js index 6c3814e9da0a5132917b6296e1b3907ff2328e93..540472ce31e916f6f6be71148cd4da415ff56203 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-208.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-208.js @@ -13,15 +13,15 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; -var setFunc = function (value) { - arrObj.setVerifyHelpProp = value; +var setFunc = function(value) { + arrObj.setVerifyHelpProp = value; }; -var getFunc = function () { }; +var getFunc = function() {}; Object.defineProperty(arrObj, "0", { - set: setFunc, - get: getFunc, - enumerable: true + set: setFunc, + get: getFunc, + enumerable: true }); verifyEqualTo(arrObj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-209.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-209.js index d9ce590c6531414e64a1b58df2f1e25af8223b3c..315efeb877b33047dbbdbef486e31c55037446b4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-209.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-209.js @@ -11,27 +11,27 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; -var setFunc = function (value) { - arrObj.setVerifyHelpProp = value; +var setFunc = function(value) { + arrObj.setVerifyHelpProp = value; }; -var getFunc = function () { - return 14; +var getFunc = function() { + return 14; }; Object.defineProperty(arrObj, "0", { - get: function () { - return 11; - }, - set: function () { }, - configurable: true, - enumerable: true + get: function() { + return 11; + }, + set: function() {}, + configurable: true, + enumerable: true }); Object.defineProperty(arrObj, "0", { - get: getFunc, - set: setFunc, - configurable: false, - enumerable: false + get: getFunc, + set: setFunc, + configurable: false, + enumerable: false }); verifyEqualTo(arrObj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js index 5fa94235bf87884044ba3eefa6c286afcd050bdf..5f357e7b3e262dda9713fac5a967df76731ade61 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js @@ -12,21 +12,25 @@ description: > non-configurable accessor properties(8.12.9 step 11.a.ii) ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy setter - var setter = function (x) {} - var d1 = { set: setter }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy setter +var setter = function(x) {} +var d1 = { + set: setter +}; +Object.defineProperty(o, "foo", d1); - // now, trying to set the getter should succeed even though [[Configurable]] - // on the original property will be false. Existing values of need to be preserved. - var getter = undefined; - var desc = { get: getter }; +// now, trying to set the getter should succeed even though [[Configurable]] +// on the original property will be false. Existing values of need to be preserved. +var getter = undefined; +var desc = { + get: getter +}; - Object.defineProperty(o, "foo", desc); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +Object.defineProperty(o, "foo", desc); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.set, setter, 'd2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js index 2c9c13ac61c08101e1401daa428fa7e7e1481097..0cd5779c47051193839fec753ce28b54b9d3d6b0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js @@ -22,4 +22,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js index e02b3584cfde05585c39077ea74d3729880418d9..030a92221cc244a4d145fee5bbce8b580701bda8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js @@ -13,17 +13,18 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 11; + return 11; } + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); Object.defineProperty(arrObj, "0", {}); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js index 1ba66515598aee137904d79628ff1de2b4023e83..a7abee3101ebd12c10e9df2b1530f4602716573e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js @@ -16,10 +16,10 @@ var arrObj = []; arrObj[0] = 100; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(arrObj, "0", { - value: 100, - writable: true, - enumerable: true, - configurable: true + value: 100, + writable: true, + enumerable: true, + configurable: true }); verifyEqualTo(arrObj, "0", 100); @@ -29,4 +29,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js index 96b57c408afcd346656d5c9efb929b5a07a1da13..2b691bf416d967ed5b39d998ec2e83e9158b1f36 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js @@ -12,25 +12,25 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; -var getFunc = function () { - return "100"; +var getFunc = function() { + return "100"; }; -var setFunc = function (value) { - arrObj.setVerifyHelpProp = value; +var setFunc = function(value) { + arrObj.setVerifyHelpProp = value; }; var desc = { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }; Object.defineProperty(arrObj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); Object.defineProperty(arrObj, "0", desc); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js index ec961abded61638dfb1365e6b41754b6ca633ef3..eacdbcdc47d27ad8d1e450aaded26a0c5a9df295 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js @@ -15,25 +15,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: 101, - writable: false, - configurable: false + value: 101, + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { value: "abc" }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: "abc" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", 101); + verifyEqualTo(arrObj, "0", 101); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js index 1ed17f2be0a609e6996c8fff3ac3c0eb3695817a..49bff01a3a0150f51cf7fd60731771c089445870 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: undefined }); +Object.defineProperty(arrObj, "0", { + value: undefined +}); -Object.defineProperty(arrObj, "0", { value: undefined }); +Object.defineProperty(arrObj, "0", { + value: undefined +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -22,4 +26,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js index b5efb6f804f709699c94331a5d98bfa7b4366db5..ec465e9c2818dd7c69edd2ecc1855df3e9a12971 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: null }); +Object.defineProperty(arrObj, "0", { + value: null +}); -Object.defineProperty(arrObj, "0", { value: null }); +Object.defineProperty(arrObj, "0", { + value: null +}); verifyEqualTo(arrObj, "0", null); verifyNotWritable(arrObj, "0"); @@ -22,4 +26,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js index c57e94ea6c038c5f81f525cec04fcc64a418568e..a8851cf79d8df939d3a267cd71e1d79b5b3261d7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: NaN }); +Object.defineProperty(arrObj, "0", { + value: NaN +}); -Object.defineProperty(arrObj, "0", { value: NaN }); +Object.defineProperty(arrObj, "0", { + value: NaN +}); assert(arrObj.hasOwnProperty("0")); assert(arrObj[0] !== arrObj[0]); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js index c393a72a739643b8de8062af6ae12d65df752ae6..c81c6c05559cf19a9da35a696a20ef5c084fd8b6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js @@ -13,22 +13,26 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: -0 }); +Object.defineProperty(arrObj, "0", { + value: -0 +}); try { - Object.defineProperty(arrObj, "0", { value: +0 }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: +0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", -0); + verifyEqualTo(arrObj, "0", -0); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js index 3e9acbdd01ed8632b25713f2db2ac7bf485a7506..d2f045ce5804e6329ee455b5d4cbdbe14bc2ae5f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js @@ -13,22 +13,26 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: +0 }); +Object.defineProperty(arrObj, "0", { + value: +0 +}); try { - Object.defineProperty(arrObj, "0", { value: -0 }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: -0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", +0); + verifyEqualTo(arrObj, "0", +0); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js index 6643da65d90a8255f3556f7351e00584157c011f..02e527405e7915567fa0b2aa47396fd478ddc8c3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js @@ -8,15 +8,15 @@ description: > (8.12.9 step 1) ---*/ - var obj = {}; - Object.defineProperty(obj, "foo", { - value: 11, - configurable: false - }); +var obj = {}; +Object.defineProperty(obj, "foo", { + value: 11, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - value: 12, - configurable: true - }); + Object.defineProperty(obj, "foo", { + value: 12, + configurable: true + }); }); assert.sameValue(obj.foo, 11, 'obj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js index e4a6b3aa38729677b6efb948a4b8b112284e9f65..10696ad39bb8f69719f7c9c7ff2e3ed105e433e8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: 101 }); +Object.defineProperty(arrObj, "0", { + value: 101 +}); -Object.defineProperty(arrObj, "0", { value: 101 }); +Object.defineProperty(arrObj, "0", { + value: 101 +}); verifyEqualTo(arrObj, "0", 101); verifyNotWritable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js index aff5f3150b9f907f3acf6a30da6e3f8bebb893a9..d2a4ae6adb9e213d689aab0ae7bab85d1e9e63e4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: 101, - writable: false, - configurable: false + value: 101, + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { value: 123 }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: 123 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", 101); + verifyEqualTo(arrObj, "0", 101); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js index f2e6a291b0b4ddaca5542563ab919be32490d26c..ed3c0936ccb8c85a103308096f44421e8bb68310 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: "abcd" }); +Object.defineProperty(arrObj, "0", { + value: "abcd" +}); -Object.defineProperty(arrObj, "0", { value: "abcd" }); +Object.defineProperty(arrObj, "0", { + value: "abcd" +}); verifyEqualTo(arrObj, "0", "abcd"); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js index 310795319bacd20c5698474151b6e2042ba71f76..03029236f246617ecc40f518545921924805884b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: "abcd", - writable: false, - configurable: false + value: "abcd", + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { value: "fghj" }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: "fghj" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", "abcd"); + verifyEqualTo(arrObj, "0", "abcd"); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js index 1751ddc12e9ce14bfddf482e2c3e1eb7952b6e61..de19df976cb97510034afe37536546f166f7abcf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: true }); +Object.defineProperty(arrObj, "0", { + value: true +}); -Object.defineProperty(arrObj, "0", { value: true }); +Object.defineProperty(arrObj, "0", { + value: true +}); verifyEqualTo(arrObj, "0", true); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js index a9ccc96f42d6505867a68d7f75f90c2b14dd1a75..c2da23fe643ca469db21b49cb26544c20e17bfeb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: true, - writable: false, - configurable: false + value: true, + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { value: false }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: false + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", true); + verifyEqualTo(arrObj, "0", true); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js index eec15afe1dbc4b80b0b28f388ec47b61ebb9dc6a..5b7e7edd28818f128c3bd258324dcfeaa8bb2af1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js @@ -13,11 +13,17 @@ includes: [propertyHelper.js] var arrObj = []; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; -Object.defineProperty(arrObj, "0", { value: obj1 }); +Object.defineProperty(arrObj, "0", { + value: obj1 +}); -Object.defineProperty(arrObj, "0", { value: obj1 }); +Object.defineProperty(arrObj, "0", { + value: obj1 +}); verifyEqualTo(arrObj, "0", obj1); verifyNotWritable(arrObj, "0"); @@ -25,4 +31,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js index 59184c3880fd474aef7386d776af4531399c8b02..7eabcaaad3655a17d74e7980f8cbf7e0b88fa7e2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js @@ -13,29 +13,35 @@ includes: [propertyHelper.js] var arrObj = []; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(arrObj, 0, { - value: obj1, - writable: false, - configurable: false + value: obj1, + writable: false, + configurable: false }); -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; try { - Object.defineProperty(arrObj, "0", { value: obj2 }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: obj2 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", obj1); + verifyEqualTo(arrObj, "0", obj1); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js index 4ad03d8e76bcb2776676dd971c14c6740c388679..3e873291d575b628cd360bc8d50e4304607bf1ca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { writable: false }); +Object.defineProperty(arrObj, "0", { + writable: false +}); -Object.defineProperty(arrObj, "0", { writable: false }); +Object.defineProperty(arrObj, "0", { + writable: false +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js index 90ece61c74ba1d9ebc649f0382754c578869ab12..859a41f62760a80debf07b3b12745c3eefc713f2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js @@ -13,9 +13,14 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { writable: false, configurable: true }); +Object.defineProperty(arrObj, "0", { + writable: false, + configurable: true +}); -Object.defineProperty(arrObj, "0", { writable: true }); +Object.defineProperty(arrObj, "0", { + writable: true +}); verifyEqualTo(arrObj, "0", undefined); verifyWritable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js index 6acf72daa3f2e5c4a74bb930f118634544d2b424..6b59c0e798120e22e315f2c28d12f22d88a7287b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js @@ -8,19 +8,19 @@ description: > property (8.12.9 step 1) ---*/ - var proto = {}; - Object.defineProperty(proto, "foo", { - value: 11, - configurable: false - }); +var proto = {}; +Object.defineProperty(proto, "foo", { + value: 11, + configurable: false +}); - var ConstructFun = function () {}; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); - Object.defineProperty(obj, "foo", { - configurable: true - }); +Object.defineProperty(obj, "foo", { + configurable: true +}); assert(obj.hasOwnProperty("foo"), 'obj.hasOwnProperty("foo") !== true'); assert.sameValue(typeof obj.foo, "undefined", 'typeof obj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js index 4f70bbbdc2fdeb79a35c6eb57a6387fecffddc2d..d2d6797a6bd3554ef216cf9a0408a204176a3e63 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js @@ -15,19 +15,20 @@ var arrObj = []; arrObj.helpVerifySet = 10; function getFunc() { - return arrObj.helpVerifySet; + return arrObj.helpVerifySet; } + function setFunc(value) { - arrObj.helpVerifySet = value; + arrObj.helpVerifySet = value; } Object.defineProperty(arrObj, "0", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); Object.defineProperty(arrObj, "0", { - get: getFunc + get: getFunc }); verifyEqualTo(arrObj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js index ed12f8ca58b57dbcad0aee18f562585be425dfef..b8cac4a63c2ae856c57e247f2726f5a94060e059 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js @@ -15,23 +15,25 @@ var arrObj = []; arrObj.helpVerifySet = 10; function getFunc1() { - return 20; + return 20; } + function getFunc2() { - return arrObj.helpVerifySet; + return arrObj.helpVerifySet; } + function setFunc(value) { - arrObj.helpVerifySet = value; + arrObj.helpVerifySet = value; } Object.defineProperty(arrObj, "0", { - get: getFunc1, - set: setFunc, - configurable: true + get: getFunc1, + set: setFunc, + configurable: true }); Object.defineProperty(arrObj, "0", { - get: getFunc2 + get: getFunc2 }); verifyEqualTo(arrObj, "0", getFunc2()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js index b814729f43c863533bed75ad7ff9b4299029683f..757da898b270acd92a3ba932a8fa26acded44798 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js @@ -14,12 +14,16 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } -Object.defineProperty(arrObj, "0", { set: setFunc }); +Object.defineProperty(arrObj, "0", { + set: setFunc +}); -Object.defineProperty(arrObj, "0", { set: setFunc }); +Object.defineProperty(arrObj, "0", { + set: setFunc +}); verifyWritable(arrObj, "0", "setVerifyHelpProp"); verifyNotEnumerable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js index e6ebeb8044a9470b60fdc39e159ce260643803b3..1fb647246b38af5d397885498b0f6c5c9fd50eb2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js @@ -13,18 +13,20 @@ includes: [propertyHelper.js] var arrObj = []; -function setFunc1() { } +function setFunc1() {} Object.defineProperty(arrObj, "0", { - set: setFunc1, - configurable: true + set: setFunc1, + configurable: true }); function setFunc2(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } -Object.defineProperty(arrObj, "0", { set: setFunc2 }); +Object.defineProperty(arrObj, "0", { + set: setFunc2 +}); verifyWritable(arrObj, "0", "setVerifyHelpProp"); verifyNotEnumerable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js index 4c622249d8872eb8dd4bd616c4050ae23cead976..20d6f364b4f767ce2025d5d7599cc009f9c05d90 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { enumerable: false }); +Object.defineProperty(arrObj, "0", { + enumerable: false +}); -Object.defineProperty(arrObj, "0", { enumerable: false }); +Object.defineProperty(arrObj, "0", { + enumerable: false +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js index 06e3e2c7b541ed5a2b856a1994234555e726b210..bc5cf2789951cd3ed94864f360bb420480bd00b8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js @@ -13,9 +13,14 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { enumerable: false, configurable: true }); - -Object.defineProperty(arrObj, "0", { enumerable: true }); +Object.defineProperty(arrObj, "0", { + enumerable: false, + configurable: true +}); + +Object.defineProperty(arrObj, "0", { + enumerable: true +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -23,4 +28,3 @@ verifyNotWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js index 29fc96410d56547474ae0f800e16b19f4b45acf3..3ca288600794a79f95816ce69f0a6fb808b36076 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { configurable: false }); +Object.defineProperty(arrObj, "0", { + configurable: false +}); -Object.defineProperty(arrObj, "0", { configurable: false }); +Object.defineProperty(arrObj, "0", { + configurable: false +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js index 5b17acde0e09344a4e4cc20b1ab8ec9713aaeef2..bbcd444370f04f37e87971b220116b94c7f92924 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { configurable: true }); +Object.defineProperty(arrObj, "0", { + configurable: true +}); -Object.defineProperty(arrObj, "0", { configurable: false }); +Object.defineProperty(arrObj, "0", { + configurable: false +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js index abdca9f4fdaad967c021c8101f709debad69ece5..bbcac3d555dc7cc0e1fd12e51bb37a5ae508d8f5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js @@ -15,30 +15,30 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: 3, - writable: true, - configurable: false + value: 3, + writable: true, + configurable: false }); try { - Object.defineProperty(arrObj, "1", { - value: 13, - writable: true, - configurable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: 13, + writable: true, + configurable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", 3); + verifyEqualTo(arrObj, "1", 3); - verifyWritable(arrObj, "1"); + verifyWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-239.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-239.js index c680ee224c4ff5da8dd3c84395713c51e74f04d8..0863f52f55ed1e3484aa9221e0905ff3b869a6ea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-239.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-239.js @@ -16,31 +16,31 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: 3, - writable: true, - configurable: false, - enumerable: false + value: 3, + writable: true, + configurable: false, + enumerable: false }); try { - Object.defineProperty(arrObj, "1", { - value: 13, - writable: true, - enumerable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: 13, + writable: true, + enumerable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", 3); + verifyEqualTo(arrObj, "1", 3); - verifyWritable(arrObj, "1"); + verifyWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js index a1e7f654f980948317040c01ccacb9d3b83a523a..0a0e6bd2755ab2adca984a430fcf3727e17686a0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js @@ -8,22 +8,22 @@ description: > an inherited data property (8.12.9 step 1) ---*/ - var proto = {}; - Object.defineProperty(proto, "foo", { - value: 12, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "foo", { + value: 12, + configurable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); - Object.defineProperty(obj, "foo", { - value: 11, - configurable: false - }); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); +Object.defineProperty(obj, "foo", { + value: 11, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - configurable: true - }); + Object.defineProperty(obj, "foo", { + configurable: true + }); }); assert.sameValue(obj.foo, 11, 'obj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-240.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-240.js index b5b0993cf69434a4a6a21fc39894ffba63d23443..4b6b824e86c63509459b6af2e003173759a30525 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-240.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-240.js @@ -15,29 +15,29 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "1", { - set: setFunc, - configurable: false + set: setFunc, + configurable: false }); try { - Object.defineProperty(arrObj, "1", { - value: 13 - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: 13 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arrObj, "1", "setVerifyHelpProp"); + verifyWritable(arrObj, "1", "setVerifyHelpProp"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-241.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-241.js index 3615552c35af2aeb3948b7846e876de88036d0eb..1cad6cfc8c1ab56667edcfcb641ac7b8217e3a0c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-241.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-241.js @@ -15,27 +15,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: 3, - configurable: false + value: 3, + configurable: false }); try { - Object.defineProperty(arrObj, "1", { - set: function () { } - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + set: function() {} + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", 3); + verifyEqualTo(arrObj, "1", 3); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js index 796c4d0bffbd0bd8f71da5c65444ff37a16c33a1..d0cd2bd479b38da07f91c938e3d9901ea75bbbb3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = [3]; Object.defineProperty(arrObj, "0", { - value: 1001, - writable: false, - enumerable: false + value: 1001, + writable: false, + enumerable: false }); verifyEqualTo(arrObj, "0", 1001); @@ -27,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js index 249a4b0ec364a0623fa0f6654e8ef132919f598c..862326c37efccde48d79f808fe93029bd5e04976 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js @@ -16,10 +16,10 @@ includes: [propertyHelper.js] var arrObj = [3]; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "0", { - set: setFunc + set: setFunc }); verifyWritable(arrObj, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js index 0f8a8ab4bd755ed4ca2b6ad991366147d7e2fd00..bca8f06069df722d1ffb681db161aa19ff445e93 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-1.js @@ -16,11 +16,11 @@ flags: [noStrict] var arrObj = []; function getFunc() { - return 3; + return 3; } Object.defineProperty(arrObj, "1", { - get: getFunc, - configurable: true + get: getFunc, + configurable: true }); arrObj[1] = 4; diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js index 94d5e325fd3827382fd31da8e0ef285a5f62ad5e..2e8572a9385f76f23bb500afcbb7da4fca0b217e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js @@ -16,25 +16,24 @@ flags: [onlyStrict] var arrObj = []; function getFunc() { - return 3; + return 3; } Object.defineProperty(arrObj, "1", { - get: getFunc, - configurable: true + get: getFunc, + configurable: true }); try { - arrObj[1] = 4; + arrObj[1] = 4; } catch (e) { - verifyEqualTo(arrObj, "1", getFunc()); + verifyEqualTo(arrObj, "1", getFunc()); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyConfigurable(arrObj, "1"); + verifyConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js index 993eba0fcab67fb87aaa74c75dddc09f09583c1f..1c9e01206b48f4fa511ab3c6955718f95e3cc786 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js @@ -16,15 +16,15 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 3; + return 3; } Object.defineProperty(arrObj, "1", { - get: getFunc, - configurable: true + get: getFunc, + configurable: true }); Object.defineProperty(arrObj, "1", { - value: 12 + value: 12 }); verifyEqualTo(arrObj, "1", 12); @@ -34,4 +34,3 @@ verifyNotWritable(arrObj, "1"); verifyNotEnumerable(arrObj, "1"); verifyConfigurable(arrObj, "1"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js index 44106866a0631b71305a584cb5767b7b326f775e..71a507f315b674441ec8be3a8e7f130d2c1fa0e8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js @@ -17,28 +17,28 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - writable: false, - configurable: false + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "1", { - writable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + writable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", undefined); + verifyEqualTo(arrObj, "1", undefined); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-245.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-245.js index ad2a61ac94c3df819b391dcdd630b199da5e80bb..9684f81e73d20bf3b66b12aa70eff89a98543ae3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-245.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-245.js @@ -18,27 +18,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: 3, - writable: false, - configurable: false + value: 3, + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "1", { - value: "abc" - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: "abc" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", 3); + verifyEqualTo(arrObj, "1", 3); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-246.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-246.js index 3d26d0479a59ab9ba47a3ab0c191f5a98aa540ed..caefee79ce0909d223aad041f207b3dd2779c36d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-246.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-246.js @@ -17,26 +17,26 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: -0 + value: -0 }); try { - Object.defineProperty(arrObj, "1", { - value: +0 - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: +0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", -0); + verifyEqualTo(arrObj, "1", -0); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-247.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-247.js index 91f7cec22c9c5653d3331786887426216985a6ca..0bec0191349380515ae24a36c044fd6dbf7cd059 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-247.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-247.js @@ -17,26 +17,26 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: +0 + value: +0 }); try { - Object.defineProperty(arrObj, "1", { - value: -0 - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: -0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", +0); + verifyEqualTo(arrObj, "1", +0); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-248.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-248.js index e30b88ebfb3d6ae484a0ad701b02c9fec48b1d7e..8467c4e60322b58886c7b2ee517dd31d8087dd15 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-248.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-248.js @@ -17,25 +17,25 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: 12 + value: 12 }); try { - Object.defineProperty(arrObj, "1", { - value: 15 - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: 15 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", 12); + verifyEqualTo(arrObj, "1", 12); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js index 6b3c2a88482ae1bdc10be3d5045a4b706dfd0e0c..5987bb65758fdef3039e3e196f4224e12e0fea52 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js @@ -17,26 +17,25 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: "abc" + value: "abc" }); try { - Object.defineProperty(arrObj, "1", { - value: "fgh" - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: "fgh" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", "abc"); + verifyEqualTo(arrObj, "1", "abc"); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js index 0dafb044a033c96feea7d37a65eb42748505ccf1..1d9d42a44487f9ecb6a2d65da430d24a258a6be1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js @@ -8,22 +8,22 @@ description: > an inherited accessor property (8.12.9 step 1) ---*/ - var proto = {}; - Object.defineProperty(proto, "foo", { - get: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "foo", { + get: function() {}, + configurable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); - Object.defineProperty(obj, "foo", { - value: 11, - configurable: false - }); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); +Object.defineProperty(obj, "foo", { + value: 11, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - configurable: true - }); + Object.defineProperty(obj, "foo", { + configurable: true + }); }); assert.sameValue(obj.foo, 11, 'obj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-250.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-250.js index 9a50cf7415ca45186c23772ad228b76de18bf433..607e0d752b7f725ec8156079be5003a04c39b0ec 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-250.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-250.js @@ -17,25 +17,25 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: false + value: false }); try { - Object.defineProperty(arrObj, "1", { - value: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", false); + verifyEqualTo(arrObj, "1", false); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js index 6d5de034372804e045c1bd08475b15717eeab781..23fdaab4c7f092a869a8cc1ddaa3601ae484d38b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js @@ -15,27 +15,30 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; -var obj = { length: 10 }; +var obj = { + length: 10 +}; Object.defineProperty(arrObj, "1", { - value: obj + value: obj }); try { - Object.defineProperty(arrObj, "1", { value: {} }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: {} + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", obj); + verifyEqualTo(arrObj, "1", obj); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js index 3454a5e9c5d2bccb9a54f58ef37a445767410acb..4d9f341fe601c210609255bc4f007bc74baf1af9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js @@ -17,27 +17,27 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "1", { - set: setFunc + set: setFunc }); try { - Object.defineProperty(arrObj, "1", { - set: function () { } - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + set: function() {} + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arrObj, "1", "setVerifyHelpProp"); + verifyWritable(arrObj, "1", "setVerifyHelpProp"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js index be181bb018f85bea052abf53f733e6da6ca4e2ab..3885a37c5e3bbad49a33f3c1596b89fa159a6423 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js @@ -14,29 +14,30 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; + function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "1", { - get: getFunc, - set: undefined + get: getFunc, + set: undefined }); try { - Object.defineProperty(arrObj, "1", { - set: function () { } - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + set: function() {} + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", getFunc()); + verifyEqualTo(arrObj, "1", getFunc()); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js index a12ad1cc8a5395ad3c5f3b049afe6d41da8e4f1c..233b2deac5bfa67588872654088809fe67af31f1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js @@ -16,12 +16,12 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - set: undefined + set: undefined }); assert(arrObj.hasOwnProperty("1")); Object.defineProperty(arrObj, "1", { - set: undefined + set: undefined }); var desc = Object.getOwnPropertyDescriptor(arrObj, "1"); @@ -31,4 +31,3 @@ assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined"); verifyNotEnumerable(arrObj, "1"); verifyNotConfigurable(arrObj, "1"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js index b82ea6fd240fd69a36cdbbcfddbce5d6d0762afc..054edeca852a5f8f23579d4e937fdb0312c5429e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js @@ -17,31 +17,30 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "1", { - get: getFunc + get: getFunc }); try { - Object.defineProperty(arrObj, "1", { - get: function () { - return 14; - } - }); + Object.defineProperty(arrObj, "1", { + get: function() { + return 14; + } + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - assert(arrObj.hasOwnProperty("1")); + assert(e instanceof TypeError); + assert(arrObj.hasOwnProperty("1")); - var desc = Object.getOwnPropertyDescriptor(arrObj, "1"); + var desc = Object.getOwnPropertyDescriptor(arrObj, "1"); - assert(arrObj[1] === getFunc()); + assert(arrObj[1] === getFunc()); - assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined"); + assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined"); - verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js index b362fd4c1f19c27f39316a96257428958fde6869..5082b79ff392de49536c9abd7f48f91e264307bc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js @@ -14,30 +14,30 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; + function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "1", { - get: getFunc + get: getFunc }); try { - Object.defineProperty(arrObj, "1", { - get: undefined - }); - $ERROR("Expected TypeError"); + Object.defineProperty(arrObj, "1", { + get: undefined + }); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - assert(arrObj.hasOwnProperty("1")); + assert(e instanceof TypeError); + assert(arrObj.hasOwnProperty("1")); - var desc = Object.getOwnPropertyDescriptor(arrObj, "1"); + var desc = Object.getOwnPropertyDescriptor(arrObj, "1"); - assert(arrObj[1] === getFunc()); - assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined"); + assert(arrObj[1] === getFunc()); + assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined"); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js index 37aafce3810365d240000e7b01a512b117776513..d8563de260202ccdfb868c399bafc7ce65afdb91 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js @@ -14,18 +14,19 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "1", { - get: undefined, - set: setFunc, - configurable: false + get: undefined, + set: setFunc, + configurable: false }); Object.defineProperty(arrObj, "1", { - get: undefined + get: undefined }); verifyWritable(arrObj, "1", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js index 53d53f56ea3700738ebd6a531b69aff6395bcfbc..fc823796a5ecf5a8ff24d0047a1c4ed981c50bfa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - value: 200 + value: 200 }); verifyEqualTo(arrObj, "0", 200); @@ -24,4 +24,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js index d7d3f6160da00b86c583ab06c35abf5dc437897c..11d17e6726e1a32f1038707627c4fcbdb8573c55 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - value: undefined + value: undefined }); verifyEqualTo(arrObj, "0", undefined); @@ -24,4 +24,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js index 5a6c52ba576b108aee22aff8b8b6c0a6a03391d0..42cd36095af6ba7ec4d9f242e3879f38782adcfc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js @@ -8,20 +8,20 @@ description: > step 1) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - get: function () { - return 11; - }, - configurable: false - }); +Object.defineProperty(obj, "property", { + get: function() { + return 11; + }, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "property", { - get: function () { - return 12; - }, - configurable: true - }); + Object.defineProperty(obj, "property", { + get: function() { + return 12; + }, + configurable: true + }); }); assert.sameValue(obj.property, 11, 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js index 53b6be800d5d324d203133e748a92928c917b987..81452c8a3cddbe6fa902b62718aa001640d4b5f8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js @@ -14,7 +14,7 @@ includes: [propertyHelper.js] var arrObj = [undefined]; Object.defineProperty(arrObj, "0", { - value: 100 + value: 100 }); verifyEqualTo(arrObj, "0", 100); @@ -23,4 +23,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js index 22b6bde12f89a431424f11ba75037f6fa809d7f5..00983ec92c15f47c261ec0aebb5be973e25f9f93 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js @@ -14,7 +14,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - writable: false + writable: false }); verifyEqualTo(arrObj, "0", 100); @@ -23,4 +23,3 @@ verifyNotWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js index 200656186ff4db8422a15dc8d1899b6b8ee87bb2..3ab254e83f650c9e671c1a9a0fe3ff7039f17213 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - enumerable: false + enumerable: false }); verifyEqualTo(arrObj, "0", 100); @@ -24,4 +24,3 @@ verifyWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js index 9572c45b8740d6d82637c2b315b0d3e35149ea4d..383acb95b1592e5f3cc3ddde3759bacc2a046a82 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - configurable: false + configurable: false }); verifyEqualTo(arrObj, "0", 100); @@ -24,4 +24,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js index 68c0c1b6b0e9440bc6c30aab903852d6dfd178ae..cff7a2c800166b34c33552c67898755ffdf73330 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js @@ -14,9 +14,9 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - writable: false, - enumerable: false, - configurable: false + writable: false, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "0", 100); @@ -25,4 +25,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js index ea1fe6a87b6441f17bd37148984d020b126750c5..e0c5c88cc648cd7a1690693a0dd543c9b7c93edc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js @@ -15,16 +15,16 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 100; + return 100; } Object.defineProperty(arrObj, "0", { - get: function () { - return 12; - }, - configurable: true + get: function() { + return 12; + }, + configurable: true }); Object.defineProperty(arrObj, "0", { - get: getFunc + get: getFunc }); verifyEqualTo(arrObj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js index 58c677ac68a2809191be12a621b4f7ce0a33a867..404c0b27bdc8c264e89773853bb6be0859773c0f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js @@ -13,17 +13,18 @@ includes: [propertyHelper.js] var arrObj = []; + function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "0", { - get: getFunc, - configurable: true + get: getFunc, + configurable: true }); Object.defineProperty(arrObj, "0", { - get: undefined + get: undefined }); verifyNotEnumerable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js index 22929edfa5090bacd2431c8fef91e13cec71514c..0b277d2b354137d9658edcead5b177570ddefcd6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js @@ -15,15 +15,15 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "0", { - get: undefined, - configurable: true + get: undefined, + configurable: true }); Object.defineProperty(arrObj, "0", { - get: getFunc + get: getFunc }); verifyEqualTo(arrObj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-268.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-268.js index 065e96b8a7f7a1cc644c6c26800c53264e5a2cc1..77eb277654eed15028cff0e6321e4eb8b43d1a75 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-268.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-268.js @@ -15,15 +15,15 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "0", { - set: function () { }, - configurable: true + set: function() {}, + configurable: true }); Object.defineProperty(arrObj, "0", { - set: setFunc + set: setFunc }); verifyWritable(arrObj, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-269.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-269.js index 377757089d804c1178be19c98c348f5aaa007df2..d745c8ec7a9e379fb29049a28fe1a5768bfed865 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-269.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-269.js @@ -15,12 +15,12 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - set: function () { }, - configurable: true + set: function() {}, + configurable: true }); Object.defineProperty(arrObj, "0", { - set: undefined + set: undefined }); verifyNotEnumerable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-27.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-27.js index 01f897d3b410c41b78b3fc58ac312b450fae2b50..b6064724d2de23e1f3c2df550a23d3b969958739 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-27.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-27.js @@ -8,24 +8,24 @@ description: > (8.12.9 step 1) ---*/ - var proto = {}; - Object.defineProperty(proto, "property", { - get: function () { - return 11; - }, - configurable: false - }); +var proto = {}; +Object.defineProperty(proto, "property", { + get: function() { + return 11; + }, + configurable: false +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); - Object.defineProperty(obj, "property", { - get: function () { - return 12; - }, - configurable: true - }); +Object.defineProperty(obj, "property", { + get: function() { + return 12; + }, + configurable: true +}); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(obj.property, 12, 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js index dcbb818968852982acffd5e513c2c52a4cf70a04..2139b32e7b41c3513ea5a1f77f59f7838c461138 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-270.js @@ -15,16 +15,16 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "0", { - set: undefined, - configurable: true + set: undefined, + configurable: true }); Object.defineProperty(arrObj, "0", { - set: setFunc + set: setFunc }); verifyWritable(arrObj, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-271.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-271.js index f61deec360f4d9489b8fb5ef71155c75f3e05435..b6e062cfa9d8c1cdb3301b2cf7abe613d724ebc4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-271.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-271.js @@ -15,17 +15,17 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "0", { - set: setFunc, - enumerable: true, - configurable: true + set: setFunc, + enumerable: true, + configurable: true }); Object.defineProperty(arrObj, "0", { - enumerable: false + enumerable: false }); verifyWritable(arrObj, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js index 9e3f26cc6485d0a0afec7134ea0d84805e6079ec..85c7d938e5cf437e27f2232b445b4f57eb952fac 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js @@ -13,17 +13,18 @@ includes: [propertyHelper.js] var arrObj = []; + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "0", { - set: setFunc, - configurable: true + set: setFunc, + configurable: true }); Object.defineProperty(arrObj, "0", { - configurable: false + configurable: false }); verifyWritable(arrObj, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js index bf3d1c439ed4b081b7b49a4335f3e57556a15c62..96cd481ae26f3e789a406ace05c1958d76c31153 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js @@ -15,24 +15,25 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } + function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "1", { - get: function () { - return 6; - }, - set: setFunc, - enumerable: true, - configurable: true + get: function() { + return 6; + }, + set: setFunc, + enumerable: true, + configurable: true }); Object.defineProperty(arrObj, "1", { - get: getFunc, - enumerable: false, - configurable: false + get: getFunc, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "1", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js index 3ffc0976aeb79212ca5627a1792c8b2e079620a4..fa14d9a5dfdd6ef5016b046f928416e62c3413ed 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js @@ -10,12 +10,12 @@ description: > (15.4.5.1 step 4.e) ---*/ - var arrObj = []; - arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false +var arrObj = []; +arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false - Object.defineProperty(arrObj, "1", { - value: 14 - }); +Object.defineProperty(arrObj, "1", { + value: 14 +}); assert.sameValue(arrObj.length, 3, 'arrObj.length'); assert.sameValue(arrObj[1], 14, 'arrObj[1]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-275.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-275.js index 314b3a9a67cfe9a8c4b12b9c7f4b2f062632d19a..54a9dc7c4787a1869fb40f8f341fa9636e6344a9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-275.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-275.js @@ -10,12 +10,12 @@ description: > length property in 'O' (15.4.5.1 step 4.e.ii) ---*/ - var arrObj = []; - arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false +var arrObj = []; +arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false - Object.defineProperty(arrObj, "3", { - value: 3 - }); +Object.defineProperty(arrObj, "3", { + value: 3 +}); assert.sameValue(arrObj.length, 4, 'arrObj.length'); assert.sameValue(arrObj[3], 3, 'arrObj[3]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-276.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-276.js index ec26b3097927d827ea256e8bfebc25324a544f4e..fc39726c9d48f3c75a29d8fad92ad65b737ff2d3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-276.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-276.js @@ -10,11 +10,11 @@ description: > the length property in 'O' (15.4.5.1 step 4.e.ii) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "5", { - value: 3 - }); +Object.defineProperty(arrObj, "5", { + value: 3 +}); assert.sameValue(arrObj.length, 6, 'arrObj.length'); assert.sameValue(arrObj[5], 3, 'arrObj[5]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js index 63ad1e663704fea2a2776e908489abeef61fdbab..bd2d31b6416f0cafb01b436a7bde6d0dec563e21 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js @@ -15,10 +15,10 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "property", { - value: 12, - writable: true, - enumerable: true, - configurable: true + value: 12, + writable: true, + enumerable: true, + configurable: true }); verifyEqualTo(arrObj, "property", 12); @@ -28,4 +28,3 @@ verifyWritable(arrObj, "property"); verifyEnumerable(arrObj, "property"); verifyConfigurable(arrObj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js index 663a41f2b3b99baefba51553e782f35c5efcbb76..1a2a67150c9f10487edf968bec8b15ddf21578dd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js @@ -14,17 +14,18 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); verifyEqualTo(arrObj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js index 38d117e60ce850dac5d130c65f20b993dd767680..cc89be68609b2506f448d4d63a598469bc4e8f5f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js @@ -14,23 +14,24 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - get: function () { - return 24; - }, - enumerable: true, - configurable: true + get: function() { + return 24; + }, + enumerable: true, + configurable: true }); Object.defineProperty(arrObj, "property", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js index e2918e4bb0e4a5d79ae0f1af7e2866e08f36bccd..8e4ce0c2721c77ac266c55034f48aa39a411adf5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js @@ -8,21 +8,21 @@ description: > overrides an inherited data property (8.12.9 step 1) ---*/ - var proto = {}; - Object.defineProperty(proto, "foo", { - value: 11, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "foo", { + value: 11, + configurable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); - Object.defineProperty(obj, "foo", { - get: function () { }, - configurable: false - }); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); +Object.defineProperty(obj, "foo", { + get: function() {}, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - configurable: true - }); + Object.defineProperty(obj, "foo", { + configurable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js index 49ff7a9284bc5e32421f418f150821f153f5821e..b6001dca17e2452a78fc33c0fed223563a30118f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js @@ -16,9 +16,9 @@ var arrObj = []; arrObj.property = 12; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(arrObj, "property", { - writable: false, - enumerable: false, - configurable: false + writable: false, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "property", 12); @@ -28,4 +28,3 @@ verifyNotWritable(arrObj, "property"); verifyNotEnumerable(arrObj, "property"); verifyNotConfigurable(arrObj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js index 8d56e858b14124d229d5831a7e0cd9d0f0b4ac44..e222043de116cce8e24d559f8edb6fc819c31601 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js @@ -15,24 +15,24 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "property", { - value: 12 + value: 12 }); try { - Object.defineProperty(arrObj, "property", { - value: 36 - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + value: 36 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "property", 12); + verifyEqualTo(arrObj, "property", 12); - verifyNotWritable(arrObj, "property"); + verifyNotWritable(arrObj, "property"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-282.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-282.js index 0d374be65f211e914e1f9afb488c3cd30086ba37..4aaa7cc070c83f74ba29c5d352acd4ee4155b363 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-282.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-282.js @@ -15,24 +15,24 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "property", { - writable: false + writable: false }); try { - Object.defineProperty(arrObj, "property", { - writable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + writable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "property", undefined); + verifyEqualTo(arrObj, "property", undefined); - verifyNotWritable(arrObj, "property"); + verifyNotWritable(arrObj, "property"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-283.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-283.js index ecc7280f6be0d7ba0f20ea47d5c65a62269a07dd..f86d1ce0e650298a82aa6a1d4aa847f9b4545a4d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-283.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-283.js @@ -14,25 +14,25 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "property", { - value: 12, - enumerable: false + value: 12, + enumerable: false }); try { - Object.defineProperty(arrObj, "property", { - enumerable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + enumerable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "property", 12); + verifyEqualTo(arrObj, "property", 12); - verifyNotWritable(arrObj, "property"); + verifyNotWritable(arrObj, "property"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-284.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-284.js index abc5fc8c97261aa75b3eae66f4c90a0a699b0b6f..1ef365e86e263986fee8853407d8caf48f22fc69 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-284.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-284.js @@ -15,24 +15,24 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "property", { - value: 12 + value: 12 }); try { - Object.defineProperty(arrObj, "property", { - configurable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + configurable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "property", 12); + verifyEqualTo(arrObj, "property", 12); - verifyNotWritable(arrObj, "property"); + verifyNotWritable(arrObj, "property"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js index 145ce3c7bd88850cd90e2b17bfb432f95f5f6640..1de36f3b1fb97200b90df288654a94e737c4d203 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js @@ -15,33 +15,34 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); try { - Object.defineProperty(arrObj, "property", { - get: function () { - return 36; - } - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + get: function() { + return 36; + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "property", getFunc()); + verifyEqualTo(arrObj, "property", getFunc()); - verifyWritable(arrObj, "property", "setVerifyHelpProp"); + verifyWritable(arrObj, "property", "setVerifyHelpProp"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js index 89daab9eb9d66f079db897c83874bbba3fb595ba..5299882040d24f17b0d9cdcb30ee5b36fb64950d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js @@ -15,25 +15,25 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - set: setFunc + set: setFunc }); try { - Object.defineProperty(arrObj, "property", { - set: function () {} - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + set: function() {} + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arrObj, "property", "setVerifyHelpProp"); + verifyWritable(arrObj, "property", "setVerifyHelpProp"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-287.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-287.js index e1f3ffda4dc95d1a2efbc0a2e6e46a7aeae64629..354519f6b9c042b04e5198203ba03e467f3f6564 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-287.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-287.js @@ -15,26 +15,26 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - set: setFunc, - enumerable: false + set: setFunc, + enumerable: false }); try { - Object.defineProperty(arrObj, "property", { - enumerable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + enumerable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arrObj, "property", "setVerifyHelpProp"); + verifyWritable(arrObj, "property", "setVerifyHelpProp"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-288.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-288.js index 0ab89201ae10954463399c163dce3a3a5aead60e..a0290cf044f369a3f8e0e081cb951b4fdf3395c8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-288.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-288.js @@ -15,26 +15,26 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - set: setFunc, - configurable: false + set: setFunc, + configurable: false }); try { - Object.defineProperty(arrObj, "property", { - configurable: true - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + configurable: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(arrObj, "property", "setVerifyHelpProp"); + verifyWritable(arrObj, "property", "setVerifyHelpProp"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js index 1549e47f42c4f28ab5797b09708e62fd2c7347b3..e254dc76f74bd5ef56734ea662d0cbc436f3debe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js @@ -13,25 +13,26 @@ description: > includes: [propertyHelper.js] ---*/ -;(function (a, b, c) { - delete arguments[0]; +; +(function(a, b, c) { + delete arguments[0]; - Object.defineProperty(arguments, "0", { - value: 10, - writable: true, - enumerable: true, - configurable: true - }); + Object.defineProperty(arguments, "0", { + value: 10, + writable: true, + enumerable: true, + configurable: true + }); - if (a !== 0) { - $ERROR("Expected a === 0, actually " + a); - } - - verifyEqualTo(arguments, "0", 10); + if (a !== 0) { + $ERROR("Expected a === 0, actually " + a); + } - verifyWritable(arguments, "0"); + verifyEqualTo(arguments, "0", 10); - verifyEnumerable(arguments, "0"); + verifyWritable(arguments, "0"); - verifyConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); + + verifyConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js index 084dc93ef0b8ba425d9caccb47d110fd17adead0..feef9e44ea6eebb28647938205afb1a14b7931d6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js @@ -11,20 +11,19 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - delete arguments[0]; - Object.defineProperty(arguments, "0", { - value: 10, - writable: true, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "0", 10); +(function() { + delete arguments[0]; + Object.defineProperty(arguments, "0", { + value: 10, + writable: true, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "0", 10); - verifyWritable(arguments, "0"); + verifyWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyConfigurable(arguments, "0"); + verifyConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js index 249380afc906ca887172aa5a22f2e14d78302b5f..e2553691a5d4e7f585f0986ecc66eda768c08539 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js @@ -8,21 +8,21 @@ description: > overrides an inherited accessor property (8.12.9 step 1) ---*/ - var proto = {}; - Object.defineProperty(proto, "foo", { - get: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "foo", { + get: function() {}, + configurable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); - Object.defineProperty(obj, "foo", { - get: function () { }, - configurable: false - }); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); +Object.defineProperty(obj, "foo", { + get: function() {}, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - configurable: true - }); + Object.defineProperty(obj, "foo", { + configurable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js index 303a2570ddad4793eb904b427fc4b2b9c6799a64..0cd20ff34afa8564cc8fbc01d4095de4d3b344fd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js @@ -13,29 +13,31 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - - verifyEqualTo(arguments, "0", getFunc()); - - verifyWritable(arguments, "0", "setVerifyHelpProp"); - - verifyEnumerable(arguments, "0"); - - verifyConfigurable(arguments, "0"); +(function(a, b, c) { + delete arguments[0]; + + function getFunc() { + return 10; + } + + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }); + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + + verifyEqualTo(arguments, "0", getFunc()); + + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyEnumerable(arguments, "0"); + + verifyConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js index 6214d72d3d84acdb530abbc597379e00bee55282..bb6143ac58984717d0fbba2792095a5a07e76bea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js @@ -11,25 +11,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "0", getFunc()); +(function() { + delete arguments[0]; - verifyWritable(arguments, "0", "setVerifyHelpProp"); + function getFunc() { + return 10; + } - verifyEnumerable(arguments, "0"); + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "0", getFunc()); - verifyConfigurable(arguments, "0"); -}(0, 1, 2)); + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyEnumerable(arguments, "0"); + + verifyConfigurable(arguments, "0"); +}(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js index bbb1c94d7d7acd658594dc14382cadb59481632c..4b75da8ade45ac90e18d1d08e64c860efad6eed0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js @@ -12,30 +12,31 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc1() { - return 10; - } - Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: true, - configurable: true - }); - function getFunc2() { - return 20; - } - Object.defineProperty(arguments, "0", { - get: getFunc2, - enumerable: false, - configurable: false - }); - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } +(function(a, b, c) { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: true, + configurable: true + }); - verifyEqualTo(arguments, "0", getFunc2()); + function getFunc2() { + return 20; + } + Object.defineProperty(arguments, "0", { + get: getFunc2, + enumerable: false, + configurable: false + }); + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } - verifyNotEnumerable(arguments, "0"); + verifyEqualTo(arguments, "0", getFunc2()); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js index d63f267c7fb5caac73f6bdebab37a7692650aedd..17755a5de462c5c5504eaad278e00a9a07d234a5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js @@ -11,26 +11,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc1() { - return 10; - } - Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: true, - configurable: true - }); - function getFunc2() { - return 20; - } - Object.defineProperty(arguments, "0", { - get: getFunc2, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", getFunc2()); +(function() { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: true, + configurable: true + }); - verifyNotEnumerable(arguments, "0"); + function getFunc2() { + return 20; + } + Object.defineProperty(arguments, "0", { + get: getFunc2, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", getFunc2()); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js index a3d45777b96f8eb5561ef4971a5174b3f4429dc9..9c20ee4590b9a6c4ed0c7e7a22be489ece931a20 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js @@ -13,23 +13,23 @@ includes: [propertyHelper.js] flags: [noStrict] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "0", { - value: 20, - writable: false, - enumerable: false, - configurable: false - }); +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 20, + writable: false, + enumerable: false, + configurable: false + }); - if (a !== 20) { - $ERROR('Expected a === 20, actually ' + a); - } + if (a !== 20) { + $ERROR('Expected a === 20, actually ' + a); + } - verifyEqualTo(arguments, "0", 20); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js index d76c7156d0bb4703ab42fe9f7a34bac9548ebd8c..1e9fec466f68abba6a08c0c68269c57f507c1e9f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-2.js @@ -13,23 +13,23 @@ includes: [propertyHelper.js] flags: [onlyStrict] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "0", { - value: 20, - writable: false, - enumerable: false, - configurable: false - }); +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 20, + writable: false, + enumerable: false, + configurable: false + }); - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } - verifyEqualTo(arguments, "0", 20); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js index 7af204af1daeb7276b26909e17d16f5e42ffa8a9..97aec8b7ca29af73c5c623ed598557c205793038 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js @@ -11,19 +11,18 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "0", { - value: 20, - writable: false, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", 20); +(function() { + Object.defineProperty(arguments, "0", { + value: 20, + writable: false, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js index 34617245be7b736a4eaa18441696ebc6b68f095e..b9e13227ae70367f2ce486ac5428a7ad53e2c1a5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js @@ -12,20 +12,19 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "0", { - value: 10, - writable: false - }); - Object.defineProperty(arguments, "0", { - value: 20 - }); - verifyEqualTo(arguments, "0", 20); +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false + }); + Object.defineProperty(arguments, "0", { + value: 20 + }); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyConfigurable(arguments, "0"); + verifyConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js index d994ce03ee8620323ce3073d57e5979225655633..10e87a7fbb8cfb863c4d18cd0f774e66a438cfa3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js @@ -14,36 +14,36 @@ includes: [propertyHelper.js] flags: [noStrict] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + value: 20 }); - try { - Object.defineProperty(arguments, "0", { - value: 20 - }); - $ERROR("Expected an exception."); - - } catch (e) { + $ERROR("Expected an exception."); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + } catch (e) { - verifyEqualTo(arguments, "0", 10); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } - verifyNotWritable(arguments, "0"); + verifyEqualTo(arguments, "0", 10); - verifyNotEnumerable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } + verifyNotConfigurable(arguments, "0"); + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js index 20aa562ffd43c73f5a4cbd79802e0e174d91556c..9ba1c6d058fa42486db6b424645953d5828c36d2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js @@ -14,23 +14,23 @@ includes: [propertyHelper.js] flags: [noStrict] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - }); - Object.defineProperty(arguments, "0", { - value: 20 - }); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + }); + Object.defineProperty(arguments, "0", { + value: 20 + }); + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); + } - verifyEqualTo(arguments, "0", 20); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyConfigurable(arguments, "0"); + verifyConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js index 2396c2d7be5c52f153ac8adc2f9f805e2a81b05d..384e59654f58c217799ab460afbcda99c9e61a32 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-4.js @@ -14,23 +14,23 @@ includes: [propertyHelper.js] flags: [onlyStrict] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - }); - Object.defineProperty(arguments, "0", { - value: 20 - }); - if (a !== 0) { - $ERROR('Expected "a === 0", actually ' + a); - } +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + }); + Object.defineProperty(arguments, "0", { + value: 20 + }); + if (a !== 0) { + $ERROR('Expected "a === 0", actually ' + a); + } - verifyEqualTo(arguments, "0", 20); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyConfigurable(arguments, "0"); + verifyConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js index 14c60ff602bb21afe16f4e246d99d732b6506019..4f42459319a3d5c2867e089ddf1775b56b535825 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + value: 20 }); - try { - Object.defineProperty(arguments, "0", { - value: 20 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 10); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js index ad6a9bd02064e1991b11e33e65bf68a831c4d1c8..7ece96050d547e27946603cea38f58fc8293acf1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js @@ -14,37 +14,36 @@ includes: [propertyHelper.js] flags: [noStrict] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "0", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { + $ERROR("Expected an exception."); + } catch (e) { - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } - - verifyEqualTo(arguments, "0", 10); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } - verifyNotWritable(arguments, "0"); + verifyEqualTo(arguments, "0", 10); - verifyNotEnumerable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } + verifyNotConfigurable(arguments, "0"); + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); } -}(0, 1, 2)); + } +}(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js index e2447d157b018c71df0d0942f4773de4c76d9aad..33567f400441ce1d1575369f8198e73077241d25 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "0", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 10); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js index 55fca4ff6435b32b1dd37924d015cc54068b14fb..c430603b432280ffd0c350be1ae8330df32e5278 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js @@ -15,33 +15,33 @@ flags: [noStrict] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + $ERROR("Expected an exception."); + } catch (e) { + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } - verifyEqualTo(arguments, "0", 10); + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); } + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js index 0b224a8cf291ea2d45931c4bb126c4ada8b9e9c2..1aec126bbebf0f51a516b4f67136f5d9ab85236e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 10); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js index 32abc599d4dab6c5ceac36e6eb246197af051060..6c092c6ee4b41a17772abc00623d464c08cf133a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js @@ -14,33 +14,33 @@ includes: [propertyHelper.js] flags: [noStrict] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + $ERROR("Expected an exception."); + } catch (e) { + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } - verifyEqualTo(arguments, "0", 10); + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); } + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js index 0903bade78b0c8f9fb9d41e41d506140e9721302..6791a73d72788a5ce365ce0c94417a2916bbfe78 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 10); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js index f5236683fb0626202cdb35946a442db66a264698..184c9a58cee35a38a296103ab1be649064af4e39 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js @@ -13,37 +13,38 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc1() { - return 10; - } +(function(a, b, c) { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: false, + configurable: false + }); + + function getFunc2() { + return 20; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: false, - configurable: false + get: getFunc2 }); - function getFunc2() { - return 20; + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); } - try { - Object.defineProperty(arguments, "0", { - get: getFunc2 - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc1()); + verifyEqualTo(arguments, "0", getFunc1()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js index 55c7428fbec422b7b44d8c18421db3cd0f5ab7a4..974e8ecdbb8a6d4022ef6a0248276bed61feaf85 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js @@ -11,33 +11,34 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc1() { - return 10; - } +(function() { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: false, + configurable: false + }); + + function getFunc2() { + return 20; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: false, - configurable: false + get: getFunc2 }); - function getFunc2() { - return 20; - } - try { - Object.defineProperty(arguments, "0", { - get: getFunc2 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc1()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc1()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js index bddc9dde731cd73e639cb22343b8249cc9625c7e..0b2827750e8e0c11398b09449c71399f1c582c1e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js @@ -13,38 +13,39 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return 10; - } +(function(a, b, c) { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false + }); + + function setFunc(value) { + this.setVerifyHelpProp = value; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + set: setFunc }); - function setFunc(value) { - this.setVerifyHelpProp = value; + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); } - try { - Object.defineProperty(arguments, "0", { - set: setFunc - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); + verifyEqualTo(arguments, "0", getFunc()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js index 1036ffbd67f2cfb7dd967f9e8b19eb73c6cf3a53..14ac5ab6af9f1d09c0ddd21f65528f858a6d636d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js @@ -11,34 +11,35 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 10; - } +(function() { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false + }); + + function setFunc(value) { + this.setVerifyHelpProp = value; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + set: setFunc }); - function setFunc(value) { - this.setVerifyHelpProp = value; - } - try { - Object.defineProperty(arguments, "0", { - set: setFunc - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js index 544a70266341214fdf137a406e666959b4f7ed3d..671be86441f94d14991930ffff59f74ba12f3b33 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js @@ -13,33 +13,33 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return 10; - } +(function(a, b, c) { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js index 0075afdc5e2203af12c41fe3213ff5f75d46ea8d..38c23592e7f51de0dde07cb626bc32ff9247508a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 10; - } +(function() { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js index 0eb4b575672a8d5dae657aa5c2c3ffd09d993c6b..845cc01730ceae9c084c50bb66c1e53c5914ba91 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js @@ -12,17 +12,21 @@ description: > values (accessor)(8.12.9 step 4.b.i) ---*/ - var o = {}; +var o = {}; - var getter = function () { return 1; }; - var desc = { get: getter }; +var getter = function() { + return 1; +}; +var desc = { + get: getter +}; - Object.defineProperty(o, "foo", desc); +Object.defineProperty(o, "foo", desc); - var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); +var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(typeof(propDesc.get), "function", 'typeof(propDesc.get)'); -assert.sameValue(propDesc.get, getter, 'propDesc.get'); // the getter must be the function that was provided -assert.sameValue(propDesc.set, undefined, 'propDesc.set'); // undefined by default -assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default -assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default \ No newline at end of file +assert.sameValue(propDesc.get, getter, 'propDesc.get'); // the getter must be the function that was provided +assert.sameValue(propDesc.set, undefined, 'propDesc.set'); // undefined by default +assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default +assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js index 3c42e298dd6964803b688b0ccbef43d7b412f760..de6eda2294fb753e91de0bf54e0baf3c376af158 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js @@ -8,13 +8,13 @@ description: > get function (8.12.9 step 1) ---*/ - var obj = {}; - Object.defineProperty(obj, "foo", { - set: function () { }, - configurable: false - }); +var obj = {}; +Object.defineProperty(obj, "foo", { + set: function() {}, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - configurable: true - }); + Object.defineProperty(obj, "foo", { + configurable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js index 4f28e9379c8e795782f1cc19e0658631261f43bc..04174e0bceb813d795dae380ac2bb980842e4352 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js @@ -13,33 +13,33 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return 0; - } +(function(a, b, c) { + function getFunc() { + return 0; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js index 2b7c8baaf88cedad55ad2ac7f7dc499b81933e1f..89f3607be8eddb233daacb2e5b16376016096653 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 10; - } +(function() { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js index 205a5dc25e75c2276c3c309ae6812b9fc3e03c21..68f714814f9497e58b262026f53bf5297bf83fcd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js @@ -12,23 +12,22 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - delete arguments[0]; - Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false - }); - if (a !== 0) { - $ERROR("Expected a === 0, actually " + a); - } - verifyEqualTo(arguments, "0", 10); +(function(a, b, c) { + delete arguments[0]; + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + if (a !== 0) { + $ERROR("Expected a === 0, actually " + a); + } + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js index 8bfc2369c7089fffde152866a320a965191ae3c6..6dc4637f910a3c780ee1b9e9b1ebf554909a70bb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js @@ -12,20 +12,19 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - delete arguments[0]; - Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", 10); +(function() { + delete arguments[0]; + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js index 6d81eb5f81aada8295f6927e03ccb6f05c66b4d6..2abc9a5ca27645f242e8a368f242ef43379fba79 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js @@ -13,28 +13,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); +(function(a, b, c) { + delete arguments[0]; - verifyWritable(arguments, "0", "setVerifyHelpProp"); + function getFunc() { + return 10; + } - verifyNotEnumerable(arguments, "0"); + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js index 516c7d377d44be736b4941f270f26863c1e45caa..fd92a564fba8c34f940ec861a5fe157489f351d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js @@ -12,25 +12,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", getFunc()); +(function() { + delete arguments[0]; - verifyWritable(arguments, "0", "setVerifyHelpProp"); + function getFunc() { + return 10; + } - verifyNotEnumerable(arguments, "0"); + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js index 2b8de6f016adfedd1210f7c1c5f5f1033afb3729..33605ec77ab390d8caadaf2bc0d2163369243861 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js @@ -12,26 +12,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc1() { - return 10; - } - Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: true, - configurable: true - }); - function getFunc2() { - return 20; - } - Object.defineProperty(arguments, "0", { - get: getFunc2, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", getFunc2()); +(function() { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: true, + configurable: true + }); - verifyNotEnumerable(arguments, "0"); + function getFunc2() { + return 20; + } + Object.defineProperty(arguments, "0", { + get: getFunc2, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", getFunc2()); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js index 0700b56e08c386146fc1ffd63901d311e45b2f65..c775554aebfef06e5421b52a44badebe981e8606 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js @@ -12,19 +12,18 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "0", { - value: 20, - writable: false, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", 20); +(function() { + Object.defineProperty(arguments, "0", { + value: 20, + writable: false, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }()); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js index 4c719320148f092527cca2b22c404f3902b8c45e..e02038bfa1247e2023709a1e3542ed4f87eb7d48 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 0, + writable: false, + configurable: false + }); + + try { Object.defineProperty(arguments, "0", { - value: 0, - writable: false, - configurable: false + value: 10 }); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 0); - try { - Object.defineProperty(arguments, "0", { - value: 10 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 0); + verifyNotWritable(arguments, "0"); - verifyNotWritable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); - - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js index 93ba566f100383ee486604259091469c276811a6..5cd489d478b8b55b725635b6fb479c8b4c4b1046 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 0, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 0, - writable: false, - enumerable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "0", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 0); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 0); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js index 82bdebdbffb552491544cbaeb0fa25f7f235370e..043ae972ff88fee854e0f6beed837d18e48f0005 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 0, + writable: false, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 0, - writable: false, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 0); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 0); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js index d38bd2a2a221e52cbd4fc4671a529388670607a6..33aff6bdbbbb78d4636fe4ac9c73d94b14d7ca87 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 0, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 0, - writable: false, - enumerable: false, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 0); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 0); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js index cc26f96be10cca6398e29d853a920d52f1f005d3..f35c9908c15c6a7fab7e2349558577ca7da9ba8f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js @@ -12,33 +12,34 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc1() { - return 0; - } +(function() { + function getFunc1() { + return 0; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: false, + configurable: false + }); + + function getFunc2() { + return 10; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: false, - configurable: false + get: getFunc2 }); - function getFunc2() { - return 10; - } - try { - Object.defineProperty(arguments, "0", { - get: getFunc2 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc1()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc1()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js index 3a2098e1e0a6dc9e1a5e8e83ed64a0067269db74..5ba147afa80715515766763be5c4366613c6e7b4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js @@ -9,21 +9,21 @@ description: > step 1) ---*/ - var proto = {}; - Object.defineProperty(proto, "foo", { - get: function () { }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "foo", { + get: function() {}, + configurable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); - Object.defineProperty(obj, "foo", { - set: function () { }, - configurable: false - }); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); +Object.defineProperty(obj, "foo", { + set: function() {}, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - configurable: true - }); + Object.defineProperty(obj, "foo", { + configurable: true + }); }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js index bc48c6d5ca25b8b0935a7a68b1cb76709a712bc9..69301af5fa1c74c8b73d9fc7f66e8eb6efb513a0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js @@ -12,34 +12,35 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 0; - } +(function() { + function getFunc() { + return 0; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false + }); + + function setFunc(value) { + this.setVerifyHelpProp = value; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + set: setFunc }); - function setFunc(value) { - this.setVerifyHelpProp = value; - } - try { - Object.defineProperty(arguments, "0", { - set: setFunc - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js index ab56a5addb7729714647c3246e3e107e90d47ffb..4d574987ccb6eca2297aabef16954f8eb727aace 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 0; - } +(function() { + function getFunc() { + return 0; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js index 68a0e447978efb943c53c3b67662b77d39aa0d95..a78e3f2c57f31e39b95100b5460cc0c8d5821e5b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js @@ -12,29 +12,28 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - } +(function() { + function getFunc() {} + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js index 7385b374df3782d4b845460ea61c4b80df259a22..7e90583b83234beaadd880d6177e52827d8b11fe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js @@ -11,19 +11,18 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "genericProperty", 1001); +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: true, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "genericProperty", 1001); - verifyWritable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty"); - verifyEnumerable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - verifyConfigurable(arguments, "genericProperty"); + verifyConfigurable(arguments, "genericProperty"); }(1, 2, 3)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js index cbe180e1701e6f01e5a9da3cd349272580ddac10..05d378ee262cbe9df115356ba160ae02904f8a1c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js @@ -11,19 +11,18 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "genericProperty", 1001); +(function() { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: true, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "genericProperty", 1001); - verifyWritable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty"); - verifyEnumerable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - verifyConfigurable(arguments, "genericProperty"); + verifyConfigurable(arguments, "genericProperty"); }(1, 2, 3)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js index 97b466ce62ea7dc2c73edd82ff509413f35e999c..8ed0c58c0652c6e4aa3093c496723298fe183eab 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js @@ -11,24 +11,25 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return "getFunctionString"; - } - function setFunc(value) { - this.testgetFunction = value; - } - Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "genericProperty", getFunc()); +(function(a, b, c) { + function getFunc() { + return "getFunctionString"; + } - verifyWritable(arguments, "genericProperty", "testgetFunction"); + function setFunc(value) { + this.testgetFunction = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyEnumerable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty", "testgetFunction"); - verifyConfigurable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); + + verifyConfigurable(arguments, "genericProperty"); }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js index a7ea9e9575365edaf7578feb73e952c821f7bad2..9167077974260148b774be943333ef63b1df24bb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js @@ -11,24 +11,25 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return "getFunctionString"; - } - function setFunc(value) { - this.testgetFunction = value; - } - Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "genericProperty", getFunc()); +(function() { + function getFunc() { + return "getFunctionString"; + } - verifyWritable(arguments, "genericProperty", "testgetFunction"); + function setFunc(value) { + this.testgetFunction = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyEnumerable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty", "testgetFunction"); - verifyConfigurable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); + + verifyConfigurable(arguments, "genericProperty"); }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js index d809fe96babb2c47d36d54783daddcacaf768911..a223dc3d46a569192d659860e8c5ccde1ae3fee7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js @@ -11,38 +11,40 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "genericProperty", { - get: function () { - return 1001; - }, - set: function (value) { - this.testgetFunction1 = value; - }, - enumerable: true, - configurable: true - }); - function getFunc() { - return "getFunctionString"; - } - function setFunc(value) { - this.testgetFunction = value; - } - Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - if (c !== 3) { - $ERROR('Expected c === 3, actually ' + c); - } - - verifyEqualTo(arguments, "genericProperty", getFunc()); - - verifyWritable(arguments, "genericProperty", "testgetFunction"); - - verifyNotEnumerable(arguments, "genericProperty"); - - verifyNotConfigurable(arguments, "genericProperty"); +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + get: function() { + return 1001; + }, + set: function(value) { + this.testgetFunction1 = value; + }, + enumerable: true, + configurable: true + }); + + function getFunc() { + return "getFunctionString"; + } + + function setFunc(value) { + this.testgetFunction = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + if (c !== 3) { + $ERROR('Expected c === 3, actually ' + c); + } + + verifyEqualTo(arguments, "genericProperty", getFunc()); + + verifyWritable(arguments, "genericProperty", "testgetFunction"); + + verifyNotEnumerable(arguments, "genericProperty"); + + verifyNotConfigurable(arguments, "genericProperty"); }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js index a6986d75b573cf9da11db299cf250df175939478..023026644b25396c2c84b381d04fc44cd20b5c47 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js @@ -11,34 +11,36 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "genericProperty", { - get: function () { - return 1001; - }, - set: function (value) { - this.testgetFunction1 = value; - }, - enumerable: true, - configurable: true - }); - function getFunc() { - return "getFunctionString"; - } - function setFunc(value) { - this.testgetFunction = value; - } - Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "genericProperty", getFunc()); +(function() { + Object.defineProperty(arguments, "genericProperty", { + get: function() { + return 1001; + }, + set: function(value) { + this.testgetFunction1 = value; + }, + enumerable: true, + configurable: true + }); - verifyWritable(arguments, "genericProperty", "testgetFunction"); + function getFunc() { + return "getFunctionString"; + } - verifyNotEnumerable(arguments, "genericProperty"); + function setFunc(value) { + this.testgetFunction = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyNotConfigurable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty", "testgetFunction"); + + verifyNotEnumerable(arguments, "genericProperty"); + + verifyNotConfigurable(arguments, "genericProperty"); }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js index e412d2e31252f4e66711f6145c6aadc115747cf5..3b84cf6e32d7ea032aa7363582834d71ab5c6398 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js @@ -11,24 +11,23 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - Object.defineProperty(arguments, "genericProperty", { - value: 1002, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "genericProperty", 1002); +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: true, + enumerable: true, + configurable: true + }); + Object.defineProperty(arguments, "genericProperty", { + value: 1002, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "genericProperty", 1002); - verifyWritable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); }(1, 2, 3)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js index 0b80a5b244c83901f5918d85e1a1e25528b3b87d..5383d137e2e0fbebd615260333f21872f14d1473 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js @@ -11,24 +11,23 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - Object.defineProperty(arguments, "genericProperty", { - value: 1002, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "genericProperty", 1002); +(function() { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: true, + enumerable: true, + configurable: true + }); + Object.defineProperty(arguments, "genericProperty", { + value: 1002, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "genericProperty", 1002); - verifyWritable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); }(1, 2, 3)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js index 542b7ca837e30be2a960284bb2df63d9a6b145b8..b8263cf93fef416a72a92ae7e6b4f88d4e693a2e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js @@ -12,33 +12,33 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: false, - configurable: false + value: 1002 }); - try { - Object.defineProperty(arguments, "genericProperty", { - value: 1002 - }); - $ERROR("Expected an exception."); - } catch (e) { - if (b !== 2) { - $ERROR('Expected "b === 2;", actually ' + b); - } - - verifyEqualTo(arguments, "genericProperty", 1001); + $ERROR("Expected an exception."); + } catch (e) { + if (b !== 2) { + $ERROR('Expected "b === 2;", actually ' + b); + } - verifyNotWritable(arguments, "genericProperty"); + verifyEqualTo(arguments, "genericProperty", 1001); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js index 829f23872d102b30f11c2092443b9bafd57cba01..737aa02bdef0e7ab3afc5d60dc247e03624d1936 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js @@ -11,29 +11,29 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: false, - configurable: false + value: 1002 }); - try { - Object.defineProperty(arguments, "genericProperty", { - value: 1002 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", 1001); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", 1001); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js index 15a8a573a03101a08bf2de98e2aa6f2b9efe245e..563f91211902d474b3728630356f5b82079e52fd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js @@ -12,28 +12,28 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + writable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - writable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js index 68dd7dd69be1f5d4273a0b7655de3f972fd64cb7..8ffe4fac99ab39a6ec8799aff6214d71f07e1bd8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "genericProperty", { + writable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - writable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } - + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + } + }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js index 070ea10a95d71826de0ebfeb472483212357f87e..43ba1dee9fd20f90c2aab95e296d4dadcb7d6905 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js @@ -12,29 +12,29 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "genericProperty", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyEnumerable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } - + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js index 50697d9d29ed244473f9680dbc3c5ea2f26714ab..4df5a0c9bc81ca203f713a3dc2be74b5518aa46d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js @@ -11,28 +11,28 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "genericProperty", { + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "genericProperty", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyEnumerable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js index 858591bc5d38700d31e7071fae74e593c0f0b614..127cf711d37cf56f46774f6383a3d91443e7d4e4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js @@ -8,19 +8,19 @@ description: > without a get function (8.12.9 step 1) ---*/ - var proto = {}; - Object.defineProperty(proto, "foo", { - set: function () { }, - configurable: false - }); +var proto = {}; +Object.defineProperty(proto, "foo", { + set: function() {}, + configurable: false +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); - Object.defineProperty(obj, "foo", { - configurable: true - }); +Object.defineProperty(obj, "foo", { + configurable: true +}); assert(obj.hasOwnProperty("foo"), 'obj.hasOwnProperty("foo") !== true'); assert.sameValue(typeof obj.foo, "undefined", 'typeof obj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js index aa9cb3e7f95534ec192659a8ebec89fc74d66ae7..abf523f65ef6e61ca283a126045ad9807588d538 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js @@ -12,27 +12,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js index a1d0b731802613ecff6f5871ec6cf84802648b2c..67d041b9fe9bb19c472febf2b9e1b49e8970b95a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js @@ -11,29 +11,29 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "genericProperty", { + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } - + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + } + }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js index 5b8195c0f0c07f2805ee92d092675dd5b0fc0939..c1cd750ee2e07e3b5f73e680659221f2cea3665e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js @@ -12,41 +12,42 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return "genericPropertyString"; - } - function setFunc(value) { - this.helpVerifyGet = value; - } +(function(a, b, c) { + function getFunc() { + return "genericPropertyString"; + } + + function setFunc(value) { + this.helpVerifyGet = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - configurable: false + get: function() { + return "overideGenericPropertyString"; + } }); - try { - Object.defineProperty(arguments, "genericProperty", { - get: function () { - return "overideGenericPropertyString"; - } - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 1) { - $ERROR('Expected a === 1, actually ' + a); - } - - verifyEqualTo(arguments, "genericProperty", getFunc()); + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 1) { + $ERROR('Expected a === 1, actually ' + a); + } - verifyWritable(arguments, "genericProperty", "helpVerifyGet"); + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyNotEnumerable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty", "helpVerifyGet"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js index 66a537da7936422cc7672375be17354afe3d8c79..18efcbf7e19b5d0c15ac5d1e04dc75af066e1217 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js @@ -11,37 +11,38 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return "genericPropertyString"; - } - function setFunc(value) { - this.helpVerifyGet = value; - } +(function() { + function getFunc() { + return "genericPropertyString"; + } + + function setFunc(value) { + this.helpVerifyGet = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - configurable: false + get: function() { + return "overideGenericPropertyString"; + } }); - try { - Object.defineProperty(arguments, "genericProperty", { - get: function () { - return "overideGenericPropertyString"; - } - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", getFunc()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyWritable(arguments, "genericProperty", "helpVerifyGet"); + verifyWritable(arguments, "genericProperty", "helpVerifyGet"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js index 16a87c95484ec26352f8b4de218e705f462f4790..b4da0dc39fdd48dc51d3ecb4bd55246daae6d6f6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js @@ -12,31 +12,31 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function setFunc(value) { - this.genericPropertyString = value; - } +(function(a, b, c) { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - configurable: false + set: function(value) { + this.genericPropertyString1 = value; + } }); - try { - Object.defineProperty(arguments, "genericProperty", { - set: function (value) { - this.genericPropertyString1 = value; - } - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyNotEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js index f8597ced1d3f2d38c52929e0ab61e5469814dec3..b14567fe799520b794ecc202e0163cbf978097e8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js @@ -11,31 +11,31 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function setFunc(value) { - this.genericPropertyString = value; - } +(function() { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - configurable: false + set: function(value) { + this.genericPropertyString1 = value; + } }); - try { - Object.defineProperty(arguments, "genericProperty", { - set: function (value) { - this.genericPropertyString1 = value; - } - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyNotEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js index 14ce76e95bb093f631cbb8424ed805f677dd14a5..9f6c3f0e91b61316582e4328480b12c0ae3d75f2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js @@ -12,34 +12,34 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function setFunc(value) { - this.genericPropertyString = value; - } +(function(a, b, c) { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "genericProperty", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - if (c !== 3) { - $ERROR('Expected c === 3, actually ' + c); - } - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + if (c !== 3) { + $ERROR('Expected c === 3, actually ' + c); + } + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + } + }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js index 905770f05338e7c7cc9ed69d18a12aeae69e5810..b7104257deb649d53e919560e5a266fd7ec24f9d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function setFunc(value) { - this.genericPropertyString = value; - } +(function() { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "genericProperty", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js index 846f093a5f4772c3937a600116c78a8d23b167fe..ef6ec1c0daa0a465ca991cecbd44ea71657ebbcd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js @@ -12,29 +12,29 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function setFunc(value) { - this.genericPropertyString = value; - } +(function(a, b, c) { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyNotEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js index 7d5eacf71256661534e313e090c20944a55f6d21..0986e4a5bb9680fc713c950fa9cb4cb125f859bd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function setFunc(value) { - this.genericPropertyString = value; - } +(function() { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyNotEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } - false; + + } + false; }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js index e91a4651ce5275fd098009f3bc7002f5d3978be4..2c3f0c6534f6004236d024057558dfa7f53f4543 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js @@ -11,15 +11,17 @@ description: > [[DefineOwnProperty]] step 5.a.i) ---*/ - var argObj = (function (a, b, c) { return arguments; })(1, 2, 3); - var accessed = false; +var argObj = (function(a, b, c) { + return arguments; +})(1, 2, 3); +var accessed = false; - Object.defineProperty(argObj, 0, { - get: function () { - accessed = true; - return 12; - } - }); +Object.defineProperty(argObj, 0, { + get: function() { + accessed = true; + return 12; + } +}); assert.sameValue(argObj[0], 12, 'argObj[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js index b0204f081fd57d73db4bc3b0909961aaa90d8a58..f710f39c04c951c5960b39a4be0160b23efe5b16 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js @@ -10,15 +10,17 @@ description: > [[DefineOwnProperty]] step 5.a.i) ---*/ - var argObj = (function () { return arguments; })(1, 2, 3); - var accessed = false; +var argObj = (function() { + return arguments; +})(1, 2, 3); +var accessed = false; - Object.defineProperty(argObj, 0, { - get: function () { - accessed = true; - return 12; - } - }); +Object.defineProperty(argObj, 0, { + get: function() { + accessed = true; + return 12; + } +}); assert.sameValue(argObj[0], 12, 'argObj[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js index 4ec0121f36d45d84fdf6a02404f7e0d41543625f..64001fbf341379ae279f03d801a0909d2d7abca6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js @@ -8,16 +8,16 @@ description: > true, [[Configurable]] is true) is writable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = (obj.prop === 2010); - obj.prop = 1001; +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = (obj.prop === 2010); +obj.prop = 1001; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(obj.prop, 1001, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-327.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-327.js index 97d2ddcc78e1ee5ed677f164928378cb8c4fa0cf..b23770c5b29945a3c960cae28a31e281b4143265 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-327.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-327.js @@ -10,22 +10,22 @@ description: > var propertyFound = false; - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var property in obj) { - if (property === "prop") { - propertyFound = true; - break; - } - } +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var property in obj) { + if (property === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-328.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-328.js index 70c4b266935ad7fc09371185e172743eb45635a3..88c5d364141dfb0ec4fdaa81524ade07ba79de7e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-328.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-328.js @@ -8,17 +8,17 @@ description: > true, [[Configurable]] is true) is deletable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: true - }); - var beforeDelete = obj.hasOwnProperty("prop"); - delete obj.prop; - var afterDelete = obj.hasOwnProperty("prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: true +}); +var beforeDelete = obj.hasOwnProperty("prop"); +delete obj.prop; +var afterDelete = obj.hasOwnProperty("prop"); assert(beforeDelete, 'beforeDelete !== true'); assert.sameValue(afterDelete, false, 'afterDelete'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-329.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-329.js index b184812e7e1c668e73d68849a36fe3ce1237e4e6..adbb6100a93bbe899e9833e0f464123d066064a4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-329.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-329.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - writable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + writable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.writable, true, 'desc1.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-33.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-33.js index 0f95d6cf57a5724683916f12e7565b8872afdcde..e5f3df8a818d62bce7545aa190d32d77a5532b02 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-33.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-33.js @@ -9,16 +9,16 @@ description: > (8.12.9 step 1) ---*/ - var fun = function () { }; +var fun = function() {}; - Object.defineProperty(fun, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(fun, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(fun, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(fun, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(fun.foo, 12, 'fun.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-330.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-330.js index 98ef3f69fadadc7dc5964ea55f83122d2f71e735..aeebc3870ff375e7c161f9dd15107db1e5429208 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-330.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-330.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - enumerable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + enumerable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, true, 'desc1.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-331.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-331.js index 86300a83e5bc9bd27bd333f53eb4656bef2566cb..7f7a95b71b2dfb2ec1a14df3d05ff90d00caeeca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-331.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-331.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - configurable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + configurable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.configurable, true, 'desc1.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-332.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-332.js index 80b01079f0ffae3e056c7e6268f378d34d5c47bb..9bea7a897875c67a150f12962e302211b42ff407 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-332.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-332.js @@ -9,23 +9,23 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "prop", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +function getFunc() { + return 20; +} +Object.defineProperty(obj, "prop", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert.sameValue(desc2.get, getFunc, 'desc2.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js index b67a2a2e225dbe7b6a5a4133f8466b3f901d84f7..40a30010e5751dad533170d4dc833d054f0e4eb9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "property", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "property", 1002); @@ -31,4 +31,3 @@ verifyWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js index 226f17c35fafbcf2ad5271d47bcedc7a7a1d8903..672ddb6d7f528036e497db877b3d2a7147c6b8f9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js @@ -9,18 +9,18 @@ description: > is writable using simple assignment, 'O' is an Arguments object ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - Object.defineProperty(obj, "0", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var verifyValue = (obj[0] === 2010); - obj[0] = 1001; +Object.defineProperty(obj, "0", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var verifyValue = (obj[0] === 2010); +obj[0] = 1001; assert(verifyValue, 'verifyValue !== true'); assert.sameValue(obj[0], 1001, 'obj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js index e8a45d3f68baf656b00a9428917ed71cd1e12000..a52e55457998f07d10d8e477c7efc3fbb113c9c9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-11.js @@ -9,16 +9,16 @@ description: > is writable using simple assignment, 'O' is an Arguments object ---*/ - var obj = (function (x) { - return arguments; - }(1001)); +var obj = (function(x) { + return arguments; +}(1001)); - Object.defineProperty(obj, "0", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var verifyValue = (obj[0] === 2010); +Object.defineProperty(obj, "0", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var verifyValue = (obj[0] === 2010); assert(verifyValue, 'verifyValue !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js index d9129278862a4872a2702083ecc72b253c4b2752..b6353b226be5d55eb75b97541004bd9cf3409491 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -31,4 +31,3 @@ verifyWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyNotConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js index a74dc8fdaa18b40670445d3e67ef160b120b8c40..5b416a7602cb016fc1b51f154b409c549f2327bb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js @@ -12,18 +12,18 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "property", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "property", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "property", 1002); @@ -33,4 +33,3 @@ verifyWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js index 1779e740bb25cee804b23007ce319b0813a87e94..e5f4c63c37085b2b4ed3d7483bf6263e8f6e1411 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js @@ -9,16 +9,16 @@ description: > simple assignment, 'A' is an Array Object ---*/ - var obj = []; +var obj = []; - Object.defineProperty(obj, "0", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var verifyValue = (obj[0] === 2010); - obj[0] = 1001; +Object.defineProperty(obj, "0", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var verifyValue = (obj[0] === 2010); +obj[0] = 1001; assert(verifyValue, 'verifyValue !== true'); assert.sameValue(obj[0], 1001, 'obj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js index cb4f8fa5efb3265454019669ba8a5814de4bb723..cff0a8b7e31715cf0b2bd203727017d32937f78d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-5.js @@ -9,18 +9,18 @@ description: > is writable using simple assignment, 'O' is an Arguments object ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var verifyValue = (obj.prop === 2010); - obj.prop = 1001; +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var verifyValue = (obj.prop === 2010); +obj.prop = 1001; assert(verifyValue, 'verifyValue !== true'); assert.sameValue(obj.prop, 1001, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js index 955b03487ed2155133ef032ff4d28a5af6e3e6bf..0d2f0a3a2e9cba56081c471a2cbcb0a7447d7da9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -31,4 +31,3 @@ verifyWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyNotConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js index 128da1b7dcea2cbc9d42167a5ae39bf5618740ae..b32f5fc53310e266298aeb4d2fb2fb11252a81e1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "prop", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "prop", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "prop", 1002); @@ -31,4 +31,3 @@ verifyWritable(obj, "prop"); verifyNotEnumerable(obj, "prop"); verifyNotConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js index da792059fb3456bc37d2d00972ca1ab9be77084b..4cebcc068e6f613786d7e7e3a4ba2834bb8bd7fc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js @@ -12,18 +12,18 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -33,4 +33,3 @@ verifyWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyNotConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js index de964513d2861f77a5adb9faf58fd340160e116e..7d87b54c01312173a6498c24005d0c02f3ab894d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js @@ -9,16 +9,16 @@ description: > writable using simple assignment, 'A' is an Array Object ---*/ - var obj = []; +var obj = []; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var verifyValue = (obj.prop === 2010); - obj.prop = 1001; +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var verifyValue = (obj.prop === 2010); +obj.prop = 1001; assert(verifyValue, 'verifyValue !== true'); assert.sameValue(obj.prop, 1001, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333.js index fc22ccde71e2c7cdadf247f17c8d5b032f84ced1..cfe91358e1f38cf68011083364a3e0f708838028 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333.js @@ -8,16 +8,16 @@ description: > true, [[Configurable]] is false) is writable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = (obj.prop === 2010); - obj.prop = 1001; +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = (obj.prop === 2010); +obj.prop = 1001; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(obj.prop, 1001, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-334.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-334.js index f4322915ec1f1dea938b95c01d4bd667cb1e063b..b6e4a6cf456979ae275526954103b26ffb045611 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-334.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-334.js @@ -10,22 +10,22 @@ description: > var propertyFound = false; - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-335.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-335.js index d7a4f1ec51113e3c1350be924727e903041534e2..eebfebf57aa578ef090a4d6de919c68ad152c7a5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-335.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-335.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false + value: 2010, + writable: true, + enumerable: true, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-336.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-336.js index 61256748e551543e4ef6308e8d70f7aa1c4d1636..e672280412a0a7cfe98788bace5317f5a97b8765 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-336.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-336.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - writable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + writable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.writable, true, 'desc1.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-337.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-337.js index a09c71134b9cbdb380c7b98dd86fc08d036d0120..c62c50d2f78190c2efed2bdc26aea0931f15a28b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-337.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-337.js @@ -9,23 +9,23 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: false - }); + Object.defineProperty(obj, "prop", { + enumerable: false + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, true, 'desc1.enumerable'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-338.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-338.js index 45425687a7511a919120a577de37f2cc47590d8e..356445fd64f3da11558ab4b49f18ed9dfa92519a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-338.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-338.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.configurable, false, 'desc1.configurable'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js index f4523b9af9e3a861694d9d6f97eb2c602e135770..5cbb3950ecc4697a21b5fd9264daad38861d151d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-1.js @@ -10,26 +10,26 @@ description: > 'A' is an Array object (8.12.9 - step 9.a) ---*/ - var obj = []; +var obj = []; - Object.defineProperty(obj, "0", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("0"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); +Object.defineProperty(obj, "0", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("0"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); - function getFunc() { - return 20; - } +function getFunc() { + return 20; +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "0", { - get: getFunc - }); + Object.defineProperty(obj, "0", { + get: getFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.value, 2010, 'desc1.value'); assert.sameValue(obj[0], 2010, 'obj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js index d2efb019b8246477586326b8d39c684c8cec2f3c..2694ee1944e235117ba216fb42b1070f05587fb9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-2.js @@ -10,28 +10,28 @@ description: > 'O' is an Arguments object (8.12.9 - step 9.a) ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } +function getFunc() { + return 20; +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.value, 2010, 'desc1.value'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js index dedf8ce8f5b5d6356620442f7d4660da1b199f97..4188ac5df92447ba8d33d9bcedf742ffae587be5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-3.js @@ -10,26 +10,26 @@ description: > 'A' is an Array object (8.12.9 - step 9.a) ---*/ - var obj = []; +var obj = []; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } +function getFunc() { + return 20; +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.value, 2010, 'desc1.value'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js index 35d2aa61491f3eb03090df423e28411e860cc1a6..ce959873bc18c04988c2d3193261bd409651afed 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339-4.js @@ -10,28 +10,28 @@ description: > 'O' is an Arguments object (8.12.9 - step 9.a) ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - Object.defineProperty(obj, "0", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("0"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); +Object.defineProperty(obj, "0", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("0"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); - function getFunc() { - return 20; - } +function getFunc() { + return 20; +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "0", { - get: getFunc - }); + Object.defineProperty(obj, "0", { + get: getFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.value, 2010, 'desc1.value'); assert.sameValue(obj[0], 2010, 'obj[0]'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-339.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-339.js index 1cce212b23b379e50399a5ed577a4c52b9e9532d..8a1123417fada896ebdeee457c57f3363420f618 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-339.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-339.js @@ -9,26 +9,26 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } +function getFunc() { + return 20; +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.value, 2010, 'desc1.value'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-34.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-34.js index 323bd5e01b91cea8c2d54967e8ab5574cb30518d..b275043fb108538dafabc4346a897df155d4ec45 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-34.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-34.js @@ -9,16 +9,16 @@ description: > step 1) ---*/ - var arrObj = []; +var arrObj = []; - Object.defineProperty(arrObj, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(arrObj, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(arrObj, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(arrObj.foo, 12, 'arrObj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-340.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-340.js index d54903654ef2c54cd2bdd5a0e90efb25d39da068..f87c237ebb21212443ebda871a2c449acc008ad5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-340.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-340.js @@ -8,16 +8,16 @@ description: > false, [[Configurable]] is true) is writable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = (obj.prop === 2010); - obj.prop = 1001; +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = (obj.prop === 2010); +obj.prop = 1001; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(obj.prop, 1001, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-341.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-341.js index 1a2324b5f1602e4f7f6791135f31d042379f394f..c2515c4539e8db5319925670165448eca8c091c4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-341.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-341.js @@ -8,19 +8,19 @@ description: > false, [[Configurable]] is true) is non-enumerable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-342.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-342.js index 3ccac9871975882df822fef5101d026a4f4deeee..6544fcaf9f7353041c0ce860ed469bc74ef54e02 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-342.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-342.js @@ -8,17 +8,17 @@ description: > false, [[Configurable]] is true) is deletable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: true - }); - var beforeDelete = obj.hasOwnProperty("prop"); - delete obj.prop; - var afterDelete = obj.hasOwnProperty("prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: true +}); +var beforeDelete = obj.hasOwnProperty("prop"); +delete obj.prop; +var afterDelete = obj.hasOwnProperty("prop"); assert(beforeDelete, 'beforeDelete !== true'); assert.sameValue(afterDelete, false, 'afterDelete'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-343.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-343.js index 7d9169e97878e30fc5e370b9588140134a6f0b50..c3bfa8cb8a07815c9d8c2695e9d6aa894976b44c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-343.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-343.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - writable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + writable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.writable, true, 'desc1.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-344.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-344.js index 6e61cad2d5743ea01e5d6699c38773fcbb52d529..c78933d70d05668609476c866c16e4caa0112422 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-344.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-344.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - enumerable: true - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + enumerable: true +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, false, 'desc1.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-345.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-345.js index 8909632d9b305cc835b56a5eb41a5b819f5c77aa..367859f22c340c2da84d5940ba74dd1431eaa373 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-345.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-345.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - configurable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + configurable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.configurable, true, 'desc1.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-346.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-346.js index ecd43d652c6dc7095579ef31379fbee50b2ea530..edbeeae3bd35ab190cf80527c740ea64bc536c0d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-346.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-346.js @@ -9,23 +9,23 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "prop", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +function getFunc() { + return 20; +} +Object.defineProperty(obj, "prop", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-347.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-347.js index dcefdd01178433007d15c750d532fe64b4d555aa..5356d0e82cebc22356cb4ac1e3d4119e94bf5dd1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-347.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-347.js @@ -8,16 +8,16 @@ description: > false, [[Configurable]] is false) is writable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = (obj.prop === 2010); - obj.prop = 1001; +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = (obj.prop === 2010); +obj.prop = 1001; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(obj.prop, 1001, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-348.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-348.js index 90804ded55aad452aea624f986f7b51915e09a8a..fb067ad3aee5eacbc773a537dada3ecfda0aa532 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-348.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-348.js @@ -8,19 +8,19 @@ description: > false, [[Configurable]] is false) is non-enumerable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-349.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-349.js index 5572ca864cb1902263c42f118d937890fa63fab9..bbcfa17b5177b30fd7f9d6cee74d1fdd48f04042 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-349.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-349.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: false + value: 2010, + writable: true, + enumerable: false, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-35.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-35.js index b6f3fb3b3568ce6ec4f74d69c82c60951d223411..19807499472d8226ca191a8a02c300cea6d730f1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-35.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-35.js @@ -9,16 +9,16 @@ description: > (8.12.9 step 1) ---*/ - var str = new String("abc"); +var str = new String("abc"); - Object.defineProperty(str, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(str, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(str, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(str, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(str.foo, 12, 'str.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-350.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-350.js index ad0446494d9cc8dfb0af9d0d503c0b9904276126..bdc583e44eb08bbda41626a839b267b2f70124e6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-350.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-350.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - writable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + writable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.writable, true, 'desc1.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-351.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-351.js index 4007343fa01f67b52cbf4dde7ecc8ca8c5372731..a4a48f90bccea69fe55098183af48bca9c2796b4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-351.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-351.js @@ -9,23 +9,23 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: true - }); + Object.defineProperty(obj, "prop", { + enumerable: true + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, false, 'desc1.enumerable'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-352.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-352.js index e06bcef7a81f74cbf56833a07718569fcca3f6dc..c3a7ec650d43cd5aaca217c6cf5a15d1206e2194 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-352.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-352.js @@ -9,23 +9,23 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.configurable, false, 'desc1.configurable'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-353.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-353.js index 7f90efce203323b2a6d81f8cee4cd6788cd10130..f6ce4a25636904c1023f6c22f821ba60b113102c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-353.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-353.js @@ -9,26 +9,26 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: true, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: true, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } +function getFunc() { + return 20; +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.value, 2010, 'desc1.value'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js index ec5df9f4e6db4a71c3366bcd298cccf4f14b4cd8..250dde1b08475ddc83d07803b23a367916f685cc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "property", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "property", 1002); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js index 6d6912d72e096985ec019e0881d027e6254fc0c2..61ff2684d7d42194f71aa55224e2e225a872aa2b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js index 1e2c2184e04ffc5d5b4ca766e7ce004d2745b6e3..0ee0d5a4ea64b8e8733e7d0cbf578990a33e251f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "prop", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "prop", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "prop", 1002); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "prop"); verifyNotEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js index ac85dafe09895d622161e1cf03581ce401ddf8b4..780fee5e5eabf5ea9daff934ba5915a63a880eaa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js @@ -12,18 +12,18 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "0", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -33,4 +33,3 @@ verifyNotWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js index 597b7454a96f1c705117e64d1f4d01fa28da78ea..ad1e8d85eba338cf77e294e34c21af5e03259d3c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js @@ -13,12 +13,11 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true + value: 2010, + writable: false, + enumerable: true, + configurable: true }); assert.sameValue(obj.prop, 2010); verifyNotWritable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js index 351aab70e0cb39c51b23bfdb90b93ffe596e4602..7432ccdd394db6a474b9d8f5ddcbdc8218d2858d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js @@ -11,15 +11,15 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "0", { - value: 2010, - writable: false, - enumerable: true, - configurable: true + value: 2010, + writable: false, + enumerable: true, + configurable: true }); assert.sameValue(obj[0], 2010); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js index 5ee6d41a8365ef0643bcbe2401ad77f9f7057f40..46bf18f41713654b11e748c7aeef4308e372132d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "0", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js index 6a32d0ca0e90373aec6c2ede1780cd6d3cfc07e2..f1f5cb86c60d2d07139a48ae8d93fcf5c737638a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js @@ -11,18 +11,18 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "property", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "property", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "property", 1002); @@ -32,4 +32,3 @@ verifyNotWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js index 641f44ad276a7b568b7cd81f7b3e00475c50b7e8..0b48c16cce71e92eea84690608feb24874ebc676 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "0", { - value: 2010, - writable: false, - enumerable: true, - configurable: true + value: 2010, + writable: false, + enumerable: true, + configurable: true }); assert.sameValue(obj[0], 2010); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js index 5755ad6d15a483b7bf6e7e29e09821834a1ad8a7..81fb76e8937deefe123e4405c87d64e205968d9b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-7.js @@ -10,15 +10,15 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true + value: 2010, + writable: false, + enumerable: true, + configurable: true }); assert.sameValue(obj.prop, 2010); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354.js index ffe8e1a3ba7ebed80b5c3d955ea9c5bee3c5ee14..712fde363c6d8c4b2f63454083cb0b4cb3a2a98d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true + value: 2010, + writable: false, + enumerable: true, + configurable: true }); assert.sameValue(obj.prop, 2010); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-355.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-355.js index 7b08f6ee6970a9728372d1fceedf75f5d239849b..e764e8b28c0153e3204fb5a58ce71558736c1dea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-355.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-355.js @@ -10,22 +10,22 @@ description: > var propertyFound = false; - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var property in obj) { - if (property === "prop") { - propertyFound = true; - break; - } - } +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var property in obj) { + if (property === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-356.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-356.js index c31bf7e1b6e9023a01c0a4d93c3e6ba91b4c0568..abcbdcef60d4fbdbfb3d23aa9250cfaf8821805d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-356.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-356.js @@ -8,17 +8,17 @@ description: > is true, [[Configurable]] is true) is deletable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var beforeDelete = obj.hasOwnProperty("prop"); - delete obj.prop; - var afterDelete = obj.hasOwnProperty("prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var beforeDelete = obj.hasOwnProperty("prop"); +delete obj.prop; +var afterDelete = obj.hasOwnProperty("prop"); assert(beforeDelete, 'beforeDelete !== true'); assert.sameValue(afterDelete, false, 'afterDelete'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-357.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-357.js index 7af95b48c26f5ca2a2849a83ac7099300bc8bbf5..88a79a479ff6bcf57a465b165bd4d124fd1ef22b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-357.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-357.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - writable: true - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + writable: true +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.writable, false, 'desc1.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-358.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-358.js index e475c264e1b8160b7e5ceefe910ea9291dc5b4e3..86741480282602a09ca5b980dfc02d2463b394ec 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-358.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-358.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - enumerable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + enumerable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, true, 'desc1.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-359.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-359.js index cae4f4c7fd6f6877900d15783fabc1966f5d6f19..6536821e172b2d89d04a3faacff4aaafff422b40 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-359.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-359.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - configurable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + configurable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.configurable, true, 'desc1.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-36.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-36.js index 207e87585cc07c4c338e405c4f8424f0e863d8ee..ab6dedcd9fe176fc01ed2039d2cbd284fe513710 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-36.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-36.js @@ -9,16 +9,16 @@ description: > step 1) ---*/ - var obj = new Boolean(true); +var obj = new Boolean(true); - Object.defineProperty(obj, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(obj, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(obj, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(obj.foo, 12, 'obj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js index 68d77e7cc4d1adc6f3b3cdcf16946083eeb040a9..1d4d3db750a6ff278c09362f874f59e314c58269 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-1.js @@ -10,23 +10,23 @@ description: > object (8.12.9 - step 9.b.i) ---*/ - var obj = []; +var obj = []; - Object.defineProperty(obj, "0", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); +Object.defineProperty(obj, "0", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "0", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); +function getFunc() { + return 20; +} +Object.defineProperty(obj, "0", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js index c7cf7e7f286749e42d7468b794bb89828ec422c0..ca58ca4fb341209904bf25b7eb2a2f695eb7251c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-2.js @@ -10,25 +10,25 @@ description: > 9.b.i) ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "prop", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +function getFunc() { + return 20; +} +Object.defineProperty(obj, "prop", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js index 29ab089dcef1bd3b8d8f281ad4d6f9a703d6f917..b47a620775582ad82bc010ad9d00b069797e6aba 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-5.js @@ -10,23 +10,23 @@ description: > step 9.b.i) ---*/ - var obj = []; +var obj = []; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "prop", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +function getFunc() { + return 20; +} +Object.defineProperty(obj, "prop", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js index 87d14d4fb14d6e8c38c1aacb8f8973216d10cf00..ea0f6506d02e855d869cfcb0ab744ba099f57c49 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360-6.js @@ -10,25 +10,25 @@ description: > Arguments object (8.12.9 - step 9.b.i) ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - Object.defineProperty(obj, "0", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); +Object.defineProperty(obj, "0", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "0", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); +function getFunc() { + return 20; +} +Object.defineProperty(obj, "0", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-360.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-360.js index 3e68d2ec7e77d630488189f8b6f971de6463da1d..bee8167d394b612282dc8445ba65200ae97cd519 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-360.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-360.js @@ -9,23 +9,23 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "prop", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +function getFunc() { + return 20; +} +Object.defineProperty(obj, "prop", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert(desc2.hasOwnProperty("get"), 'desc2.hasOwnProperty("get") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-361.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-361.js index 72b34e7d02d6962dcb5fe1cd5a0d4ea2ba493fb3..069e007cf6e8a84da6a8690c36f8971545485413 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-361.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-361.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: false + value: 2010, + writable: false, + enumerable: true, + configurable: false }); assert.sameValue(obj.prop, 2010); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-362.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-362.js index 1e5d40c2e2f6ce8fe3a79090304df50ee0c5aec8..d13e35646b7a5d07ea3d3f30d1b74a23e9c8c2c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-362.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-362.js @@ -10,21 +10,21 @@ description: > var propertyFound = false; - var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var property in obj) { - if (property === "prop") { - propertyFound = true; - break; - } - } +var obj = {}; +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var property in obj) { + if (property === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-363.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-363.js index 0a34bd053d98cc7c2b44c1f11d3ef739bcefe5f2..17f928bda2b4225ab0f2810d29d7561a94c1e46c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-363.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-363.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: false + value: 2010, + writable: false, + enumerable: true, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js index 2bca77ac775b6b856237087da67ab21222f123fa..75f086e410533e4a58651240de905f73e1c1c276 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - writable: true - }); + Object.defineProperty(obj, "prop", { + writable: true + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.writable, false, 'desc1.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js index e64f411e992625e7752f89595598eca14a6b1386..81006c4b8e36b2e51473eed9d991d58f73247510 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: false - }); + Object.defineProperty(obj, "prop", { + enumerable: false + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, true, 'desc1.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-366.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-366.js index 1b83099163824a54569107b8711d0de78674b948..95b7014a511a794a37b098dc96b37d22c5a8bd76 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-366.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-366.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.configurable, false, 'desc1.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-367.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-367.js index 2626b69fa34dcf7a52e93f2292aa29429482de7e..9b9e0cb181a7ad8e52a7bb9c298af3b85664aa52 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-367.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-367.js @@ -9,26 +9,26 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } +function getFunc() { + return 20; +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.value, 2010, 'desc1.value'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-368.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-368.js index a9caeef642fdc93b21766d9cd3901f83ba27fca8..96db2fbedd8a705482952a6483aea34e18712357 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-368.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-368.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: true + value: 2010, + writable: false, + enumerable: false, + configurable: true }); assert.sameValue(obj.prop, 2010); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-369.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-369.js index 1950c4a80abcfef42a8e275ff3732067331c7b0b..d0a0fb9bb4332f5178b15d75867be6b742d6cdae 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-369.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-369.js @@ -8,19 +8,19 @@ description: > is false, [[Configurable]] is true) is non-enumerable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-37.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-37.js index c27cbbc780f8f67a3204e9cc3db35c53a1c5b1cd..96bbf30e28e12cc57b49c2d27d2ede2d43b68385 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-37.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-37.js @@ -9,16 +9,16 @@ description: > step 1) ---*/ - var obj = new Number(-2); +var obj = new Number(-2); - Object.defineProperty(obj, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(obj, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(obj, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(obj, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(obj.foo, 12, 'obj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-370.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-370.js index 96e8bc9e2eda783078961c148417945c20a7d0de..84042d5028e4751b59bcf76b07bacd5cab25b940 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-370.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-370.js @@ -8,17 +8,17 @@ description: > is false, [[Configurable]] is true) is deletable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: true - }); - var beforeDelete = obj.hasOwnProperty("prop"); - delete obj.prop; - var afterDelete = obj.hasOwnProperty("prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: true +}); +var beforeDelete = obj.hasOwnProperty("prop"); +delete obj.prop; +var afterDelete = obj.hasOwnProperty("prop"); assert(beforeDelete, 'beforeDelete !== true'); assert.sameValue(afterDelete, false, 'afterDelete'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-371.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-371.js index ce74180fde8b30a39db6d57ce340d7c6e2ef802f..9cff1582071cb53fe388659d1beb604c63ad7a3b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-371.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-371.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - writable: true - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + writable: true +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.writable, false, 'desc1.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-372.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-372.js index 23d887263e91d503e97f00f653e2272003e3bda3..706fe0181560c9e01d299b3a2714791d5f4b57b2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-372.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-372.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - enumerable: true - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + enumerable: true +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, false, 'desc1.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-373.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-373.js index 7e32a7a11b402607447016fb0317e5dc4c3cb60e..f430e1e2bc5498d32e23c58dfb653ca7bb771cfd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-373.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-373.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: true - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: true +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - configurable: false - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + configurable: false +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.configurable, true, 'desc1.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js index 90e0d9d9f041f1cccb9e833f6a1c2c7ed1fd363b..8e7e19a67779ff46fc5a52b617f32da318d16e3d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js @@ -9,22 +9,23 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "prop", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); + +function getFunc() { + return 20; +} +Object.defineProperty(obj, "prop", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert.sameValue(desc2.get, getFunc, 'desc2.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js index 1af36793208caf580c029ef54396f1bb292f9420..93537a5aebdbae1438ac5ddee90ad15a7434d900 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: false + value: 2010, + writable: false, + enumerable: false, + configurable: false }); assert.sameValue(obj.prop, 2010); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-376.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-376.js index 310fee16eb5d4915ba8700300056471f9d69a3b3..96651adc6c826d0bd07b47f740e7e730ff684e01 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-376.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-376.js @@ -8,19 +8,19 @@ description: > is false, [[Configurable]] is false) is non-enumerable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-377.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-377.js index 068452b19a316713b090520f86be4c690e1d0d53..7e748275db00907fdfc29d60e5098cd7d66059d9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-377.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-377.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: false + value: 2010, + writable: false, + enumerable: false, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-378.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-378.js index ca9b1ab784d52e52f2b4f6212b3f70363d6ae90a..52430b44d41cd1184b85eeda0fb6e2ab0b78cd19 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-378.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-378.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - writable: true - }); + Object.defineProperty(obj, "prop", { + writable: true + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.writable, false, 'desc1.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-379.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-379.js index 8d52b1bb0e9ac75683a1588d736e7514e7ce6817..d7b5f4561d1a67b5527490ff05f369e9ae05ea2f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-379.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-379.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: true - }); + Object.defineProperty(obj, "prop", { + enumerable: true + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, false, 'desc1.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js index 0489a3548d2d56b6d74de1b0e4cefd2e89928db4..8a2d9ccfd209c163e9345ca81be0fab7f3269b0f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js @@ -11,19 +11,18 @@ includes: [propertyHelper.js] ---*/ try { - Object.defineProperty(Math, "foo", { - value: 12, - configurable: true - }); - - verifyEqualTo(Math, "foo", 12); + Object.defineProperty(Math, "foo", { + value: 12, + configurable: true + }); - verifyNotWritable(Math, "foo"); + verifyEqualTo(Math, "foo", 12); - verifyNotEnumerable(Math, "foo"); + verifyNotWritable(Math, "foo"); - verifyConfigurable(Math, "foo"); + verifyNotEnumerable(Math, "foo"); + + verifyConfigurable(Math, "foo"); } finally { - delete Math.foo; + delete Math.foo; } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js index 8797d6d55497f3e7ca94ecd89ae0633a790af213..5cb1518695feeb7f5c6bc9a57c967a0c01185e40 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) to different value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.configurable, false, 'desc1.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-381.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-381.js index 93a371d4159f76005e212df191769f5770e26af6..51ed16c609ada66e31e2f3e04eb28715f8931ed8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-381.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-381.js @@ -9,26 +9,26 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: false - }); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: false +}); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } +function getFunc() { + return 20; +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.value, 2010, 'desc1.value'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-382.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-382.js index 6a13ff50372871f7a20a5b288a3e5d8741444cd8..705e91afddd0e525a97aa6943fd800581eef6959 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-382.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-382.js @@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-382 description: ES5 Attributes - [[Value]] attribute of data property is a number ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 1001 - }); +Object.defineProperty(obj, "prop", { + value: 1001 +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, 1001, 'obj.prop'); assert.sameValue(desc.value, 1001, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-383.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-383.js index 16e5e19d05784f52d907c270965d27a4d4e722cc..38d55b2789aec661ba577687d3e435ef9f1b6f3a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-383.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-383.js @@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-383 description: ES5 Attributes - [[Value]] attribute of data property is a string ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: "ThisIsAString" - }); +Object.defineProperty(obj, "prop", { + value: "ThisIsAString" +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, "ThisIsAString", 'obj.prop'); assert.sameValue(desc.value, "ThisIsAString", 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-384.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-384.js index cf51444dd56c79bd124c50e5a26c8cd798128fbe..e7a3c51c813c789312a466737c5ca334cbe1a008 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-384.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-384.js @@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-384 description: ES5 Attributes - [[Value]] attribute of data property is a boolean ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: false - }); +Object.defineProperty(obj, "prop", { + value: false +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, false, 'obj.prop'); assert.sameValue(desc.value, false, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js index 397487f5c206eccbcccf5648a65771fa8fe807cb..d4dc8814d8891a4eb3f164b915d8d453c3599084 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js @@ -8,14 +8,16 @@ description: > object ---*/ - var obj = {}; - var tempObj = { testproperty: 100 }; +var obj = {}; +var tempObj = { + testproperty: 100 +}; - Object.defineProperty(obj, "prop", { - value: tempObj - }); +Object.defineProperty(obj, "prop", { + value: tempObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, tempObj, 'obj.prop'); assert.sameValue(desc.value, tempObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js index 44f100f09122a968a634b3a6c0f9fb89202fdffa..112cd69ddd6b35516c8f5238627c8754b6b9eaa0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js @@ -8,14 +8,14 @@ description: > object ---*/ - var obj = {}; - var arrObj = []; +var obj = {}; +var arrObj = []; - Object.defineProperty(obj, "prop", { - value: arrObj - }); +Object.defineProperty(obj, "prop", { + value: arrObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, arrObj, 'obj.prop'); assert.sameValue(desc.value, arrObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-387.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-387.js index 0e8c8b77d2f8853a2fd567b39a62b6920ffdd156..8da74faf37bbb196fcd0222cddaab2a560707f4a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-387.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-387.js @@ -8,14 +8,14 @@ description: > object ---*/ - var obj = {}; - var strObj = new String(); +var obj = {}; +var strObj = new String(); - Object.defineProperty(obj, "prop", { - value: strObj - }); +Object.defineProperty(obj, "prop", { + value: strObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, strObj, 'obj.prop'); assert.sameValue(desc.value, strObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-388.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-388.js index cef375818ba6aeae32392b78ce1b4a97f332ec9b..9287bc6752d278da1f93387e2d689c8dd49c8de5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-388.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-388.js @@ -8,14 +8,14 @@ description: > object ---*/ - var obj = {}; - var numObj = new Number(); +var obj = {}; +var numObj = new Number(); - Object.defineProperty(obj, "prop", { - value: numObj - }); +Object.defineProperty(obj, "prop", { + value: numObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, numObj, 'obj.prop'); assert.sameValue(desc.value, numObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-389.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-389.js index 4777b4566984ec4ed0eb6520849503c202f9ca32..464ff9ea7dce1163652d584762646c2150bf48a5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-389.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-389.js @@ -8,14 +8,14 @@ description: > Object ---*/ - var obj = {}; - var boolObj = new Boolean(); +var obj = {}; +var boolObj = new Boolean(); - Object.defineProperty(obj, "prop", { - value: boolObj - }); +Object.defineProperty(obj, "prop", { + value: boolObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, boolObj, 'obj.prop'); assert.sameValue(desc.value, boolObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-39.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-39.js index 8e26fa4422f87c66c25e02b765976be035f93e6a..62173de61a471d679f3b8d04fa9084ba45400b4e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-39.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-39.js @@ -9,16 +9,16 @@ description: > step 1) ---*/ - var desc = new Date(); +var desc = new Date(); - Object.defineProperty(desc, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(desc, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(desc, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(desc, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(desc.foo, 12, 'desc.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-390.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-390.js index c60d8330b9e5388943333a619b2ca9043bd0485f..6025d9fae98a3edf4752b6514cf9204a5112d0da 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-390.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-390.js @@ -8,14 +8,14 @@ description: > Function object ---*/ - var obj = {}; - var funObj = function () { }; +var obj = {}; +var funObj = function() {}; - Object.defineProperty(obj, "prop", { - value: funObj - }); +Object.defineProperty(obj, "prop", { + value: funObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, funObj, 'obj.prop'); assert.sameValue(desc.value, funObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-391.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-391.js index 4d8b67005d1e8b91af7130fb95e65c86d8693f97..d43ce76555d1525d5d3ae8cf0a736ab488a91c90 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-391.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-391.js @@ -8,14 +8,14 @@ description: > object ---*/ - var obj = {}; - var errObj = new Error(); +var obj = {}; +var errObj = new Error(); - Object.defineProperty(obj, "prop", { - value: errObj - }); +Object.defineProperty(obj, "prop", { + value: errObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, errObj, 'obj.prop'); assert.sameValue(desc.value, errObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-392.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-392.js index dd614a6235634f2b9edd93aa416613b05f0a9f62..79cf9e516466a0f2f4a52a6ec8fc18ae66a2eb2c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-392.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-392.js @@ -8,14 +8,14 @@ description: > object ---*/ - var obj = {}; - var dateObj = new Date(); +var obj = {}; +var dateObj = new Date(); - Object.defineProperty(obj, "prop", { - value: dateObj - }); +Object.defineProperty(obj, "prop", { + value: dateObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, dateObj, 'obj.prop'); assert.sameValue(desc.value, dateObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-393.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-393.js index 2d00d4687e368a495745515f0ce6c9c289016f7d..8d32bbf8771ec18111bea1a97ff0f7cf89f09fa2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-393.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-393.js @@ -8,14 +8,14 @@ description: > object ---*/ - var obj = {}; - var regObj = new RegExp(); +var obj = {}; +var regObj = new RegExp(); - Object.defineProperty(obj, "prop", { - value: regObj - }); +Object.defineProperty(obj, "prop", { + value: regObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, regObj, 'obj.prop'); assert.sameValue(desc.value, regObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-394.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-394.js index f5e858877b97729dd46f921ef8c232ee55a199bc..51fdeaec1d21061dd9d5863daaa5b979a99a14de 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-394.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-394.js @@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-394 description: ES5 Attributes - [[Value]] attribute of data property is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: undefined - }); +Object.defineProperty(obj, "prop", { + value: undefined +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(typeof obj.prop, "undefined", 'typeof obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-395.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-395.js index de734ce6dfc456931e2a37b8e3e1682cd242836d..a37d12bb3acac01c0634c9f146e1ec4e5dbd3c91 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-395.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-395.js @@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-395 description: ES5 Attributes - [[Value]] attribute of data property is null ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: null - }); +Object.defineProperty(obj, "prop", { + value: null +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, null, 'obj.prop'); assert.sameValue(desc.value, null, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-396.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-396.js index 2fb0eff84635e0b8ad1af7a336e5ee956b7050fb..165689aee2cf77a6d20e77c3764f050289f0a1c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-396.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-396.js @@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-396 description: ES5 Attributes - [[Value]] attribute of data property is NaN ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: NaN - }); +Object.defineProperty(obj, "prop", { + value: NaN +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.prop !== obj.prop, 'obj.prop !== obj.prop !== true'); assert(desc.value !== desc.value, 'desc.value !== desc.value !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-397.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-397.js index e368a8e9b70a97d46cec920f85fed6222fe9f77f..92f7a3531a7e5648e477c079477dfe153e4f2d6c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-397.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-397.js @@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-397 description: ES5 Attributes - [[Value]] attribute of data property is Infinity ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: Infinity - }); +Object.defineProperty(obj, "prop", { + value: Infinity +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, Infinity, 'obj.prop'); assert.sameValue(desc.value, Infinity, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js index c3aadc10899096a084bdc2873a6a5c8db4f34184..62911ed65185c1c37374399e363f8e9c5a630801 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js @@ -6,13 +6,13 @@ es5id: 15.2.3.6-4-398 description: ES5 Attributes - [[Value]] attribute of data property is -Infinity ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: -Infinity - }); +Object.defineProperty(obj, "prop", { + value: -Infinity +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, -Infinity, 'obj.prop'); assert.sameValue(desc.value, -Infinity, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-399.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-399.js index 0967e3d188e798f107e1f63193781de2f547b614..00ce0467782aef8e3395af34c087eb914e1cd5bc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-399.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-399.js @@ -8,13 +8,13 @@ description: > global object ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: this - }); +Object.defineProperty(obj, "prop", { + value: this +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, this, 'obj.prop'); assert.sameValue(desc.value, this, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js index 83d8922f68fba357bc5ca0d65c97686e464e6b51..8cbf79c1109e3ec93a2245b4d9e51c70ebcca9bb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js @@ -12,14 +12,14 @@ description: > desc(8.12.9 step 4.a.i) ---*/ - var o = {}; - - var desc = {}; - Object.defineProperty(o, "foo", desc); +var o = {}; - var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); +var desc = {}; +Object.defineProperty(o, "foo", desc); -assert.sameValue(propDesc.value, undefined, 'propDesc.value'); // undefined by default -assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default -assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default -assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default +var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); + +assert.sameValue(propDesc.value, undefined, 'propDesc.value'); // undefined by default +assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default +assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default +assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js index bfff5ac93d80904abfdd9f8331f0ac699391458f..1ce25343176c99a7833bde0176d5b7cbbce45592 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js @@ -9,16 +9,16 @@ description: > step 1) ---*/ - var desc = new RegExp(); +var desc = new RegExp(); - Object.defineProperty(desc, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(desc, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(desc, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(desc, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(desc.foo, 12, 'desc.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js index 1ef35f2bc916e1d395003503a392e92f4065c4a7..13ebd7a1f401d277b8a8b9779b527948591b10ca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js @@ -8,13 +8,13 @@ description: > [[Prototype]] internal property is correct (String instance) ---*/ - Object.defineProperty(String.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - var strObj = new String(); +Object.defineProperty(String.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +var strObj = new String(); assert.sameValue(strObj.hasOwnProperty("prop"), false, 'strObj.hasOwnProperty("prop")'); assert.sameValue(strObj.prop, 1001, 'strObj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-403.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-403.js index 989f5d5e99e52a3b343640feee5e2b2c59c7bccf..9039016e7ec91ba152d80610f1caeaee49e827b2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-403.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-403.js @@ -9,14 +9,14 @@ description: > attribute is set to true (Array instance) ---*/ - Object.defineProperty(Array.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - var arrObj = []; - arrObj.prop = 1002; +Object.defineProperty(Array.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +var arrObj = []; +arrObj.prop = 1002; assert(arrObj.hasOwnProperty("prop"), 'arrObj.hasOwnProperty("prop") !== true'); assert.sameValue(arrObj.prop, 1002, 'arrObj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-404.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-404.js index 5cd57989220de8431690bd9b32fe85a504faebb4..bae93ad81a5b69d1582ef5053d0cb17815b8692e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-404.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-404.js @@ -8,20 +8,20 @@ description: > is set to true is enumerable (Boolean instance) ---*/ - Object.defineProperty(Boolean.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - var boolObj = new Boolean(); +Object.defineProperty(Boolean.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +var boolObj = new Boolean(); - var verifyEnumerable = false; - for (var p in boolObj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in boolObj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(boolObj.hasOwnProperty("prop"), false, 'boolObj.hasOwnProperty("prop")'); assert(verifyEnumerable, 'verifyEnumerable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js index 3f7a504386cebf5281e181ab687905d25d56d7e4..a6baa72529b72309fd2f3896aa79e1d6186653fa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js @@ -10,14 +10,14 @@ description: > includes: [propertyHelper.js] ---*/ - Object.defineProperty(Number.prototype, "prop", { - value: 1001, - writable: false, - enumerable: false, - configurable: true - }); - - var numObj = new Number(); +Object.defineProperty(Number.prototype, "prop", { + value: 1001, + writable: false, + enumerable: false, + configurable: true +}); - assert(!numObj.hasOwnProperty("prop")); - verifyNotWritable(numObj, "prop", "noCheckOwnProp"); +var numObj = new Number(); + +assert(!numObj.hasOwnProperty("prop")); +verifyNotWritable(numObj, "prop", "noCheckOwnProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js index 25ede11d5cd33adcbc6f71556e71a34f434807bd..b68b6c4cc55113b94d53c978961b23371e2344ff 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js @@ -8,20 +8,20 @@ description: > is set to false is non-enumerable (Function instance) ---*/ - Object.defineProperty(Function.prototype, "prop", { - value: 1001, - writable: false, - enumerable: false, - configurable: true - }); - var funObj = function () { }; +Object.defineProperty(Function.prototype, "prop", { + value: 1001, + writable: false, + enumerable: false, + configurable: true +}); +var funObj = function() {}; - var verifyEnumerable = false; - for (var p in funObj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in funObj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(funObj.hasOwnProperty("prop"), false, 'funObj.hasOwnProperty("prop")'); assert.sameValue(verifyEnumerable, false, 'verifyEnumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-407.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-407.js index eeabd495e88b18839eb86e95db3abc34dfab5e75..4b5f67bb6cee5b37e93bfbe726e9de40c7c5cfa8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-407.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-407.js @@ -8,13 +8,13 @@ description: > [[Prototype]] internal property is correct (Error Instance) ---*/ - Object.defineProperty(Error.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - var errObj = new Error(); +Object.defineProperty(Error.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +var errObj = new Error(); assert.sameValue(errObj.hasOwnProperty("prop"), false, 'errObj.hasOwnProperty("prop")'); assert.sameValue(errObj.prop, 1001, 'errObj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-408.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-408.js index c1223a55c360aad0541d353c7a4e31d78a1048ad..d7d291df0d69f925b89232945cff23bf4897431e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-408.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-408.js @@ -9,14 +9,14 @@ description: > attribute is set to true (Date instance) ---*/ - Object.defineProperty(Date.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - var dateObj = new Date(); - dateObj.prop = 1002; +Object.defineProperty(Date.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +var dateObj = new Date(); +dateObj.prop = 1002; assert(dateObj.hasOwnProperty("prop"), 'dateObj.hasOwnProperty("prop") !== true'); assert.sameValue(dateObj.prop, 1002, 'dateObj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-409.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-409.js index 8dd96da0bcdc5c5467c349762e88fa7019f7f4f4..3966b302f0d5b5d296f91093e526ce08d94dce09 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-409.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-409.js @@ -8,20 +8,20 @@ description: > is set to false is enumerable (RegExp instance) ---*/ - Object.defineProperty(RegExp.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - var regObj = new RegExp(); +Object.defineProperty(RegExp.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +var regObj = new RegExp(); - var verifyEnumerable = false; - for (var p in regObj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in regObj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(regObj.hasOwnProperty("prop"), false, 'regObj.hasOwnProperty("prop")'); assert(verifyEnumerable, 'verifyEnumerable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js index 83b86dbd76850bb2a2fd97ac74ec9c3e2986092b..b9c4cb1be71f8a8a7859343ee9bd68648826ccfd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js @@ -12,8 +12,8 @@ includes: [propertyHelper.js] Object.defineProperty(JSON, "foo", { -value: 12, -configurable: true + value: 12, + configurable: true }); verifyEqualTo(JSON, "foo", 12); @@ -25,4 +25,3 @@ verifyNotEnumerable(JSON, "foo"); verifyConfigurable(JSON, "foo"); delete JSON.foo; - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js index 7c7a842561995666e5af4033670752e91881fbc1..d8efd15d94619c3e22e7bfe798e5f82e5f0e30ec 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js @@ -10,13 +10,13 @@ description: > includes: [propertyHelper.js] ---*/ - Object.defineProperty(Object.prototype, "prop", { - value: 1001, - writable: false, - enumerable: false, - configurable: true - }); +Object.defineProperty(Object.prototype, "prop", { + value: 1001, + writable: false, + enumerable: false, + configurable: true +}); - assert(!JSON.hasOwnProperty("prop")); - verifyNotWritable(JSON, "prop", "noCheckOwnProp"); - assert.sameValue(JSON.prop, 1001); +assert(!JSON.hasOwnProperty("prop")); +verifyNotWritable(JSON, "prop", "noCheckOwnProp"); +assert.sameValue(JSON.prop, 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-411.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-411.js index b8d82ce406c0b1a3be83bbfc6458f509ce703583..c19bd7905a235e64233b37db1b96bf61a5df9ce1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-411.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-411.js @@ -8,19 +8,19 @@ description: > is set to false is non-enumerable (Math) ---*/ - Object.defineProperty(Object.prototype, "prop", { - value: 1001, - writable: false, - enumerable: false, - configurable: true - }); +Object.defineProperty(Object.prototype, "prop", { + value: 1001, + writable: false, + enumerable: false, + configurable: true +}); - var verifyEnumerable = false; - for (var p in Math) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in Math) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(Math.hasOwnProperty("prop"), false, 'Math.hasOwnProperty("prop")'); assert.sameValue(verifyEnumerable, false, 'verifyEnumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-412.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-412.js index 03459242fcf9479eee64866175ccb5988324cd8b..e9fc6384288394aee0aa36a2e4de8d895f82ffe3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-412.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-412.js @@ -8,34 +8,34 @@ description: > [[Prototype]] internal property is correct(Object.create) ---*/ - var appointment = {}; +var appointment = {}; - Object.defineProperty(appointment, "startTime", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - Object.defineProperty(appointment, "name", { - value: "NAME", - writable: true, - enumerable: true, - configurable: true - }); +Object.defineProperty(appointment, "startTime", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +Object.defineProperty(appointment, "name", { + value: "NAME", + writable: true, + enumerable: true, + configurable: true +}); - var meeting = Object.create(appointment); - Object.defineProperty(meeting, "conferenceCall", { - value: "In-person meeting", - writable: true, - enumerable: true, - configurable: true - }); +var meeting = Object.create(appointment); +Object.defineProperty(meeting, "conferenceCall", { + value: "In-person meeting", + writable: true, + enumerable: true, + configurable: true +}); - var teamMeeting = Object.create(meeting); +var teamMeeting = Object.create(meeting); - var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && - !teamMeeting.hasOwnProperty("startTime") && - !teamMeeting.hasOwnProperty('conferenceCall'); +var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && + !teamMeeting.hasOwnProperty("startTime") && + !teamMeeting.hasOwnProperty('conferenceCall'); assert(hasOwnProperty, 'hasOwnProperty !== true'); assert.sameValue(teamMeeting.name, "NAME", 'teamMeeting.name'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-413.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-413.js index 9c832eed18122ed0760c98383ff79d7e0fda3016..c168e5eb8151591ce63680fa63cd4ac66e12fffb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-413.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-413.js @@ -9,38 +9,38 @@ description: > [[Writable]] set to true (Object.create) ---*/ - var appointment = {}; +var appointment = {}; - Object.defineProperty(appointment, "startTime", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - Object.defineProperty(appointment, "name", { - value: "NAME", - writable: true, - enumerable: true, - configurable: true - }); +Object.defineProperty(appointment, "startTime", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +Object.defineProperty(appointment, "name", { + value: "NAME", + writable: true, + enumerable: true, + configurable: true +}); - var meeting = Object.create(appointment); - Object.defineProperty(meeting, "conferenceCall", { - value: "In-person meeting", - writable: true, - enumerable: true, - configurable: true - }); +var meeting = Object.create(appointment); +Object.defineProperty(meeting, "conferenceCall", { + value: "In-person meeting", + writable: true, + enumerable: true, + configurable: true +}); - var teamMeeting = Object.create(meeting); - teamMeeting.name = "Team Meeting"; - var dateObj = new Date("10/31/2010 08:00"); - teamMeeting.startTime = dateObj; - teamMeeting.conferenceCall = "4255551212"; +var teamMeeting = Object.create(meeting); +teamMeeting.name = "Team Meeting"; +var dateObj = new Date("10/31/2010 08:00"); +teamMeeting.startTime = dateObj; +teamMeeting.conferenceCall = "4255551212"; - var hasOwnProperty = teamMeeting.hasOwnProperty("name") && - teamMeeting.hasOwnProperty("startTime") && - teamMeeting.hasOwnProperty('conferenceCall'); +var hasOwnProperty = teamMeeting.hasOwnProperty("name") && + teamMeeting.hasOwnProperty("startTime") && + teamMeeting.hasOwnProperty('conferenceCall'); assert(hasOwnProperty, 'hasOwnProperty !== true'); assert.sameValue(teamMeeting.name, "Team Meeting", 'teamMeeting.name'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-414.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-414.js index d0d7f1ea4e92e7232d75eaca58a7d4cd6cbf4666..801915c957a84a5d49b1a00bb1c4a9fa725b250e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-414.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-414.js @@ -8,49 +8,49 @@ description: > is set to true is enumerable (Object.create) ---*/ - var appointment = new Object(); - - Object.defineProperty(appointment, "startTime", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - Object.defineProperty(appointment, "name", { - value: "NAME", - writable: true, - enumerable: true, - configurable: true - }); - - var meeting = Object.create(appointment); - Object.defineProperty(meeting, "conferenceCall", { - value: "In-person meeting", - writable: true, - enumerable: true, - configurable: true - }); - - var teamMeeting = Object.create(meeting); - - var verifyTimeProp = false; - var verifyNameProp = false; - var verifyCallProp = false; - for (var p in teamMeeting) { - if (p === "startTime") { - verifyTimeProp = true; - } - if (p === "name") { - verifyNameProp = true; - } - if (p === "conferenceCall") { - verifyCallProp = true; - } - } - - var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && - !teamMeeting.hasOwnProperty("startTime") && - !teamMeeting.hasOwnProperty("conferenceCall"); +var appointment = new Object(); + +Object.defineProperty(appointment, "startTime", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); +Object.defineProperty(appointment, "name", { + value: "NAME", + writable: true, + enumerable: true, + configurable: true +}); + +var meeting = Object.create(appointment); +Object.defineProperty(meeting, "conferenceCall", { + value: "In-person meeting", + writable: true, + enumerable: true, + configurable: true +}); + +var teamMeeting = Object.create(meeting); + +var verifyTimeProp = false; +var verifyNameProp = false; +var verifyCallProp = false; +for (var p in teamMeeting) { + if (p === "startTime") { + verifyTimeProp = true; + } + if (p === "name") { + verifyNameProp = true; + } + if (p === "conferenceCall") { + verifyCallProp = true; + } +} + +var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && + !teamMeeting.hasOwnProperty("startTime") && + !teamMeeting.hasOwnProperty("conferenceCall"); assert(hasOwnProperty, 'hasOwnProperty !== true'); assert(verifyTimeProp, 'verifyTimeProp !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-415.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-415.js index fa7a07c407b976fd7d6c3ffcd3ce62f602dbd841..74596c8c6bb6a2f7582dacb43fb068d351bfd028 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-415.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-415.js @@ -13,24 +13,24 @@ includes: [propertyHelper.js] var appointment = new Object(); Object.defineProperty(appointment, "startTime", { - value: 1001, - writable: false, - enumerable: false, - configurable: true + value: 1001, + writable: false, + enumerable: false, + configurable: true }); Object.defineProperty(appointment, "name", { - value: "NAME", - writable: false, - enumerable: false, - configurable: true + value: "NAME", + writable: false, + enumerable: false, + configurable: true }); var meeting = Object.create(appointment); Object.defineProperty(meeting, "conferenceCall", { - value: "In-person meeting", - writable: false, - enumerable: false, - configurable: true + value: "In-person meeting", + writable: false, + enumerable: false, + configurable: true }); var teamMeeting = Object.create(meeting); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-416.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-416.js index 5106627668b5b232806f3db6343d5cab802380f5..2d8308868c9433033f0558991dde71d13e355ffe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-416.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-416.js @@ -8,49 +8,49 @@ description: > attribute is set to false is non-enumerable (Object.create) ---*/ - var appointment = {}; - - Object.defineProperty(appointment, "startTime", { - value: 1001, - writable: false, - enumerable: false, - configurable: true - }); - Object.defineProperty(appointment, "name", { - value: "NAME", - writable: false, - enumerable: false, - configurable: true - }); - - var meeting = Object.create(appointment); - Object.defineProperty(meeting, "conferenceCall", { - value: "In-person meeting", - writable: false, - enumerable: false, - configurable: true - }); - - var teamMeeting = Object.create(meeting); - - var verifyTimeProp = false; - var verifyNameProp = false; - var verifyCallProp = false; - for (var p in teamMeeting) { - if (p === "startTime") { - verifyTimeProp = true; - } - if (p === "name") { - verifyNameProp = true; - } - if (p === "conferenceCall") { - verifyCallProp = true; - } - } - - var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && - !teamMeeting.hasOwnProperty("startTime") && - !teamMeeting.hasOwnProperty("conferenceCall"); +var appointment = {}; + +Object.defineProperty(appointment, "startTime", { + value: 1001, + writable: false, + enumerable: false, + configurable: true +}); +Object.defineProperty(appointment, "name", { + value: "NAME", + writable: false, + enumerable: false, + configurable: true +}); + +var meeting = Object.create(appointment); +Object.defineProperty(meeting, "conferenceCall", { + value: "In-person meeting", + writable: false, + enumerable: false, + configurable: true +}); + +var teamMeeting = Object.create(meeting); + +var verifyTimeProp = false; +var verifyNameProp = false; +var verifyCallProp = false; +for (var p in teamMeeting) { + if (p === "startTime") { + verifyTimeProp = true; + } + if (p === "name") { + verifyNameProp = true; + } + if (p === "conferenceCall") { + verifyCallProp = true; + } +} + +var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && + !teamMeeting.hasOwnProperty("startTime") && + !teamMeeting.hasOwnProperty("conferenceCall"); assert(hasOwnProperty, 'hasOwnProperty !== true'); assert.sameValue(verifyTimeProp, false, 'verifyTimeProp'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-417.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-417.js index 6df596d40f50f4176d5d7cebeae1da0fb1beb56f..d43581a35bbaa69fbe47ff31045f1558ed4d3ac7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-417.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-417.js @@ -8,16 +8,16 @@ description: > [[Prototype]] internal property is correct(Function.prototype.bind) ---*/ - var foo = function () { }; +var foo = function() {}; - Object.defineProperty(Function.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); - var obj = foo.bind({}); +var obj = foo.bind({}); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); assert.sameValue(obj.prop, 1001, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-418.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-418.js index d2c0ab532f5aa24638838dcab1197776fdcc6394..cf49b910a87eb59b7dc455d2a18a6eb7ec3370bc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-418.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-418.js @@ -9,17 +9,17 @@ description: > [[Writable]] set to true (Function.prototype.bind) ---*/ - var foo = function () { }; +var foo = function() {}; - Object.defineProperty(Function.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); - var obj = foo.bind({}); - obj.prop = 1002; +var obj = foo.bind({}); +obj.prop = 1002; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 1002, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-419.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-419.js index e175d090fabfeabd7731fa1ad45cc8b293ca4745..b1ff3a222ed0b746c3a24f7791ccf7b1f3df6476 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-419.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-419.js @@ -8,22 +8,22 @@ description: > is set to true is enumerable (Function.prototype.bind) ---*/ - var foo = function () { }; +var foo = function() {}; - Object.defineProperty(Function.prototype, "prop", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + value: 1001, + writable: true, + enumerable: true, + configurable: true +}); - var obj = foo.bind({}); - var verifyEnumerable = false; - for (var p in obj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var obj = foo.bind({}); +var verifyEnumerable = false; +for (var p in obj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); assert(verifyEnumerable, 'verifyEnumerable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-42.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-42.js index 2ca95325b31e937cb7e07e3868362c4337692c98..94147d9ee8249763a8f28b8e9cc560526f6d5451 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-42.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-42.js @@ -9,16 +9,16 @@ description: > step 1) ---*/ - var desc = new Error(); +var desc = new Error(); - Object.defineProperty(desc, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(desc, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(desc, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(desc, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(desc.foo, 12, 'desc.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-420.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-420.js index f403f9b34d2867a9b9109818efedb32025186763..61e0d7a4a116bb1dc1603dca4aba52d63837e793 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-420.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-420.js @@ -10,15 +10,15 @@ description: > includes: [propertyHelper.js] ---*/ -var foo = function () { }; +var foo = function() {}; - Object.defineProperty(Function.prototype, "prop", { - value: 1001, - writable: false, - enumerable: false, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + value: 1001, + writable: false, + enumerable: false, + configurable: true +}); - var obj = foo.bind({}); - assert(!obj.hasOwnProperty("prop")); - verifyNotWritable(foo, "prop", "noCheckOwnProp"); +var obj = foo.bind({}); +assert(!obj.hasOwnProperty("prop")); +verifyNotWritable(foo, "prop", "noCheckOwnProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-421.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-421.js index 120ffe0fd40a997f3f7e9cb29ce2b9b69dbca1d9..8bfc1a45941030b4a7435ad1a20cdc2f43c3e24b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-421.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-421.js @@ -8,22 +8,22 @@ description: > is set to false is non-enumerable (Function.prototype.bind) ---*/ - var foo = function () { }; +var foo = function() {}; - Object.defineProperty(Function.prototype, "prop", { - value: 1001, - writable: false, - enumerable: false, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + value: 1001, + writable: false, + enumerable: false, + configurable: true +}); - var obj = foo.bind({}); - var verifyEnumerable = false; - for (var p in obj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var obj = foo.bind({}); +var verifyEnumerable = false; +for (var p in obj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); assert.sameValue(verifyEnumerable, false, 'verifyEnumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-422.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-422.js index af1d6671499bba638c25b4f42dbb17989b6eee8d..d616795c43adbd62190928da07c485e0ca875294 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-422.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-422.js @@ -9,17 +9,17 @@ description: > [[Configurable]] is true) is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-423.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-423.js index 8f3e9ae5b0eeac3429469a65a847b57f72dcb12b..22145fef601df14e47cf9e0be3839779185996d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-423.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-423.js @@ -9,17 +9,17 @@ description: > [[Configurable]] is true) is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js index 1cfca488ebd880b6513a0a1c302591da0adbbe62..ef50f24f1c86748dbe4a7030cacbe5f013a1d299 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-424.js @@ -11,24 +11,24 @@ description: > var propertyFound = false; - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-425.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-425.js index f088516cc0bc35d3a6fe6b2c5a90c2da5d3b060f..86e8a7d0d05876ae83a0c12c4bd69d4c2c903929 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-425.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-425.js @@ -9,19 +9,19 @@ description: > deletable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - delete obj.prop; +delete obj.prop; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-426.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-426.js index 645d4286b12c5f968788b331cf87cf92a37d5fa8..f8d02fa4490573f286667ac2e3825ed2799c7c52 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-426.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-426.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: true +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var result2 = obj.prop === 1001; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = obj.prop === 1001; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-427.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-427.js index 0aad297c2c650acb500c0bd6c5ac5ddf36df0284..e891baa3013db203ac840047bdb056922d022133 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-427.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-427.js @@ -10,28 +10,28 @@ description: > value ---*/ - var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var obj = {}; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: true +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - set: setFunc - }); +Object.defineProperty(obj, "prop", { + set: setFunc +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-428.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-428.js index 1e52d201bdd368e775eb5333ff3f2f79963b2241..df07ef3195ff0e85f4c7f025dd825327bc186154 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-428.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-428.js @@ -10,32 +10,32 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: true +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} - Object.defineProperty(obj, "prop", { - enumerable: false - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +Object.defineProperty(obj, "prop", { + enumerable: false +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-429.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-429.js index 3501ac6691c16e2947fd656ddc96fb9834b6bf17..a81c5f63d335ee7b95cd17af7792c14846f35189 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-429.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-429.js @@ -14,15 +14,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true + get: undefined, + set: undefined, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - configurable: false + configurable: false }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js index 4146385ecb5eba5c0e32c5d43eb31f04406842ee..bf28f6e87ebb375329b467986cff04435592afca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js @@ -9,16 +9,18 @@ description: > property (8.12.9 step 1) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(argObj, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(argObj, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(argObj, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(argObj, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(argObj.foo, 12, 'argObj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js index 315581b82bd9c17e728c7b90e262d207d3cf974b..bd0f2560df59b4dd63b10e2f8a556b5f96f62b0c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js @@ -9,20 +9,20 @@ description: > [[Configurable]] is true) to a data property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - value: 1001 - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 1001 +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-431.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-431.js index ad0e57ba92689cf71059b95d125c644160a46cad..f80f41183979f68bc0c6d655c750d543579e4f87 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-431.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-431.js @@ -9,17 +9,17 @@ description: > [[Configurable]] is false) is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-432.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-432.js index dc57d00b1484e4366265b11226554fecf62fbd48..6e03e42e4ce927cf891a179551c321a22d736b64 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-432.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-432.js @@ -9,17 +9,17 @@ description: > [[Configurable]] is false) is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-433.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-433.js index e374de5ab649d87a653465c80a44a997279751c4..8cf33d7cd7b9088701b94df63daf80dc11ebe14f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-433.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-433.js @@ -11,24 +11,24 @@ description: > var propertyFound = false; - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-434.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-434.js index b767db80106aaa9be4bff0d3f271840d80cb45f7..30d4a32574f2ee47842e27f4a980c3c7b9c65f3b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-434.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-434.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false + get: undefined, + set: undefined, + enumerable: true, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-435.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-435.js index c9537916865baa55fb68551c5b4093a1d6ce35a8..3ed0e6ee88c8bd7d28285f674fb04e72cdaf5045 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-435.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-435.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: false +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); assert.sameValue(typeof desc1.get, "undefined", 'typeof desc1.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-436.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-436.js index 56a8768029905116695600bbf92d7eb4753f3a95..2bdca2dc7c93103e7090c282ce398b3a11edf7f3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-436.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-436.js @@ -10,25 +10,25 @@ description: > value ---*/ - var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var obj = {}; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: false +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - set: setFunc - }); + Object.defineProperty(obj, "prop", { + set: setFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set'); assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-437.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-437.js index 1ad84c659bc07588034683f80b3a952ae537bf30..b12de9e8b1190903cfda694997f59cddbeac131f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-437.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-437.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: false +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: false - }); + Object.defineProperty(obj, "prop", { + enumerable: false + }); }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-438.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-438.js index 54ea036a574620ab74254af284ab65bdc1ff60f5..68fc319294dd0c98b9f554663aa810e1b5f39f46 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-438.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-438.js @@ -14,28 +14,28 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false + get: undefined, + set: undefined, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - assert.sameValue(desc1.configurable, false); - assert.sameValue(desc2.configurable, false); + assert.sameValue(desc1.configurable, false); + assert.sameValue(desc2.configurable, false); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - assert(obj.hasOwnProperty("prop")); + assert(obj.hasOwnProperty("prop")); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-439.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-439.js index ce40ec27b3d42dc8b1d8a00025fb56180476daa8..885ea7fad18c5ccb830b22a84e5a072e031f49ea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-439.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-439.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is false) to a data property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: true, - configurable: false - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: true, + configurable: false +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-440.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-440.js index cbdec5470c0bc378826decd6a3dc7d0ee88b40c4..3f07f5fad4096034f8c634076f048be8cf06ffaf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-440.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-440.js @@ -9,17 +9,17 @@ description: > [[Configurable]] is true) is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-441.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-441.js index 2a44e2278af28a459de6c033e1e968dcf6a461f4..03999347722d5eae67c864a13d519cb9c07cf4ee 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-441.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-441.js @@ -9,17 +9,17 @@ description: > [[Configurable]] is true) is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-442.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-442.js index 72f9bf32ff29f2d088713ac69d327b678a065d07..2faca9506ecbae4d89772ea8514b6a8c8559f209 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-442.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-442.js @@ -9,21 +9,21 @@ description: > non-enumerable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-443.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-443.js index b20c7d664cee52c7f31401c4b6acba9ec2b92325..c1ebaabbefd2674ed15a4e5546f56237f188b1c4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-443.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-443.js @@ -9,19 +9,19 @@ description: > deletable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - delete obj.prop; +delete obj.prop; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-444.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-444.js index 06fe5d84f2561a610a3a8e5b72a84b91526533fe..8868623ca36ff7db6559f188761ae91e63381ec5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-444.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-444.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: true +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var result2 = obj.prop === 1001; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = obj.prop === 1001; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-445.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-445.js index 2e29668de70d3deffa6938522f6a72c2cdc74749..80cf088404ee74992df36952d2b498b49840653b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-445.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-445.js @@ -10,29 +10,29 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: true +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); - Object.defineProperty(obj, "prop", { - set: setFunc - }); +Object.defineProperty(obj, "prop", { + set: setFunc +}); - obj.prop = "overrideData"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-446.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-446.js index 83a537a9ca6e3bb085c73a1c8d3877f7713f2af9..5d4b94e6a7dacc3b6be6645f45ce0e1c384c1f5d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-446.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-446.js @@ -10,32 +10,32 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: true +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} - Object.defineProperty(obj, "prop", { - enumerable: true - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +Object.defineProperty(obj, "prop", { + enumerable: true +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert.sameValue(result1, false, 'result1'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-447.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-447.js index 9e464a5eba92e259259324df36d251f8037aa5fb..29400f464f4935612ef63e308b5376eff0b331b7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-447.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-447.js @@ -14,15 +14,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true + get: undefined, + set: undefined, + enumerable: false, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - configurable: false + configurable: false }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-448.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-448.js index c86437c689e58e30ce1521697eb1d281b7f0441b..890d97d882d4dfc60a0d22af14afd8fbe4dae513 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-448.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-448.js @@ -9,20 +9,20 @@ description: > [[Configurable]] is true) to a data property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - value: 1001 - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 1001 +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js index 8454c88fe08a4def9d265d6ad9f6a73094f467d3..3a3fb7f0d8ac524bb370ccad89caf217a5173cf2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js @@ -9,17 +9,17 @@ description: > [[Configurable]] is false) is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-45.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-45.js index 8f846042ffe248281cbf48eb96f1f17cf7135d0b..20fabf0abd0078541f91c19f8cb416155df62afa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-45.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-45.js @@ -11,8 +11,8 @@ includes: [propertyHelper.js] ---*/ Object.defineProperty(this, "foo", { - value: 12, - configurable: true + value: 12, + configurable: true }); verifyEqualTo(this, "foo", 12); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-450.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-450.js index 8b3da549b1042c13596b5922638f2e36470f9bd4..879174ee570ae9f0421739003a98888b1520a70a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-450.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-450.js @@ -9,17 +9,17 @@ description: > [[Configurable]] is false) is undefined ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-451.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-451.js index ef9fb05c2931c7c9e542016e3ec2105785a5a528..01ccab6985ce9eba172ba586332b943a001ec39d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-451.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-451.js @@ -9,21 +9,21 @@ description: > non-enumerable ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-452.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-452.js index c673a5394014d1ea7b9b53c033b4e17c3c631b49..e180f9c4c377b7251d5ba390ed909ec251069985 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-452.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-452.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false + get: undefined, + set: undefined, + enumerable: false, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js index c0780c55bbf3d2545cdf03a19ad122b7a01affcf..1dc9a7a403684aaeba67cb8ff01a1685c3486888 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: false +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); assert.sameValue(typeof desc1.get, "undefined", 'typeof desc1.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-454.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-454.js index 52e445972a3011d73e6470bf47c7d63fb8ecebf0..80fc87b8b86083ecaf4aef6aa85b48e7b79b6a1b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-454.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-454.js @@ -10,26 +10,26 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: false +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - set: setFunc - }); + Object.defineProperty(obj, "prop", { + set: setFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set'); assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-455.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-455.js index baad8246678a531798aec6d6db9954fa9de527ba..8626d014308b05f52899ba3bb7d52469235c7cc3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-455.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-455.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: false +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: true - }); + Object.defineProperty(obj, "prop", { + enumerable: true + }); }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert.sameValue(result1, false, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js index d909bfd1dc1dac45ae17d6220f949468dd8898a9..e6c68365483cb7388c430135e08228e91cbf02f2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js @@ -14,28 +14,28 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false + get: undefined, + set: undefined, + enumerable: false, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + assert(e instanceof TypeError); - assert.sameValue(desc1.configurable, false); - assert.sameValue(desc2.configurable, false); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + assert.sameValue(desc1.configurable, false); + assert.sameValue(desc2.configurable, false); - assert(obj.hasOwnProperty("prop")); + verifyNotConfigurable(obj, "prop"); + + assert(obj.hasOwnProperty("prop")); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js index 7f90aa37970cb9290f2fd3660d8cedb749721157..9cdb490ad5ce2b8e9cba5edef6af1d330ea38906 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is false) to a data property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: false +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-458.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-458.js index 97868514ad7d6403b50581ad388d78696ac28cb3..c069ec8e464ef03d7b92f30f28fbe6930f6aff18 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-458.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-458.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is true) is undefined ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-459.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-459.js index 7f5fbeb97c33fa93e49394e200b7b81b54c5bb1a..e0c30c91f22d01bd1d7887c48a2e0addd30e7bfb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-459.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-459.js @@ -9,23 +9,23 @@ description: > [[Configurable]] is true) is the expected function ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: true +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-46.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-46.js index 6bb80f60890ae45d7b5ba530e834b42800e9fa52..4fbc77bcfb2921c296b67b31c897b8d99cf8ff4c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-46.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-46.js @@ -9,18 +9,18 @@ description: > descriptor (8.12.9 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { - enumerable: true - }); +Object.defineProperty(obj, "property", { + enumerable: true +}); - var isEnumerable = false; - for (var item in obj) { - if (obj.hasOwnProperty(item) && item === "property") { - isEnumerable = true; - } - } +var isEnumerable = false; +for (var item in obj) { + if (obj.hasOwnProperty(item) && item === "property") { + isEnumerable = true; + } +} assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert(isEnumerable, 'isEnumerable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-460.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-460.js index 0ff4a8016ebde70b0f026dddc848dc55c8a05480..fdae5fabf07070285f0a5928765df0073830c9e4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-460.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-460.js @@ -11,29 +11,29 @@ description: > var propertyFound = false; - var obj = {}; - - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true - }); - - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +var obj = {}; + +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; + +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: true +}); + +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); + +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-461.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-461.js index 0def8453a79776cbcb2c2b1ae2c7c72d3a567d89..95a8fa78c74b8315dc6dd9666ac830848de175f2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-461.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-461.js @@ -9,24 +9,24 @@ description: > deletable ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - delete obj.prop; +delete obj.prop; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-462.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-462.js index 3e1a0de3b59506b9f9d77a5868770406804d6a15..63380aa1b9f61949ac7371b2702c1be52e14d7be 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-462.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-462.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: true +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var result2 = obj.prop === 1001; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = obj.prop === 1001; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-463.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-463.js index 2df1dddc75a45e0de1c661e80ec286ca287e9510..c238984241d0923529c3e731b4e7b854ac69355a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-463.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-463.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: true +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - set: undefined - }); +Object.defineProperty(obj, "prop", { + set: undefined +}); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.set, setFunc, 'desc1.set'); assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-464.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-464.js index bd4d6d7095d1280e964930cda2a1665a76e44e0a..28eecc8f052d4aed238566eb3a054fb63bce8224 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-464.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-464.js @@ -10,38 +10,38 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: true +}); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} - Object.defineProperty(obj, "prop", { - enumerable: false - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +Object.defineProperty(obj, "prop", { + enumerable: false +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-465.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-465.js index a3f5ed2ea19153d47fa03d34cdce59e54bfb2905..52e31f678ea12402d143c1956fffab7c431b77ad 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-465.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-465.js @@ -14,20 +14,20 @@ includes: [propertyHelper.js] var obj = {}; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true + get: undefined, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - configurable: false + configurable: false }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-466.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-466.js index 9bbd3affe68eda60f66d4408e778389abf1507c9..b89d8d49de3d93869e3fa67d14a9615413e993cc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-466.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-466.js @@ -9,25 +9,25 @@ description: > [[Configurable]] is true) to a data property ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - value: 1001 - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 1001 +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-467.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-467.js index 9bd1e448e4ca3e62d4f3a5b76f8a264f8e477a77..66de51eda54dc43a019fc8eb1f06e27f8874b35b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-467.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-467.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) is undefined ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-468.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-468.js index 0ad4ce43678457cabf5b68f8c0dee2f9d270761f..f79b26f7e1bbc75c885885b5d2d9307bb852ad5d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-468.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-468.js @@ -9,23 +9,23 @@ description: > [[Configurable]] is false) is the expected function ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: false +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-469.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-469.js index 391bbf7aedfab9e5a32f58d3b4c95f4d1c2f93f1..b492d13ca892b05b584f0faf9609960dd622e572 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-469.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-469.js @@ -11,29 +11,29 @@ description: > var propertyFound = false; - var obj = {}; - - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false - }); - - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +var obj = {}; + +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; + +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: false +}); + +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); + +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js index 2dc07f0c544aaf1594e3eb764019bb61cae79a2c..079b5051709c46c484908a61678632805ed21351 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js @@ -13,9 +13,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - writable: true, - enumerable: true, - configurable: false + writable: true, + enumerable: true, + configurable: false }); verifyEqualTo(obj, "property", undefined); @@ -25,4 +25,3 @@ verifyWritable(obj, "property"); verifyEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js index 9686379c521591176d3c54408477c3022285af33..d725daa9965ea5ce7d9999981b4ce7edcd5bb16d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js @@ -13,15 +13,15 @@ includes: [propertyHelper.js] var obj = {}; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false + get: undefined, + set: setFunc, + enumerable: true, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-471.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-471.js index 1d0099628761d5a2b7194343b68513efaff22366..1edb26951dd82e029c6f10b230f1275b136ef2f0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-471.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-471.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: false +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-472.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-472.js index 1502c79c168d98b553bfb1d05fdc3e7571c83902..c22ce621ad65c792f594c88c36c1360fb37fef12 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-472.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-472.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: false +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - set: undefined - }); + Object.defineProperty(obj, "prop", { + set: undefined + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.set, setFunc, 'desc1.set'); assert.sameValue(desc2.set, setFunc, 'desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-473.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-473.js index a9c65d14d7f58eb63c4393b063cf6d4f2dbc8991..ab525133f829cdbecd20a21c8e14b51280d5ba8f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-473.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-473.js @@ -10,39 +10,39 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: false +}); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: false - }); + Object.defineProperty(obj, "prop", { + enumerable: false + }); }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-474.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-474.js index c3b2af60e7a15d4380386453dd2cb605be085fde..27355b6c5cc85b03c3a7bb362fec6d952e37fcb7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-474.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-474.js @@ -14,33 +14,33 @@ includes: [propertyHelper.js] var obj = {}; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false + get: undefined, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - assert.sameValue(desc1.configurable, false); - assert.sameValue(desc2.configurable, false); + assert.sameValue(desc1.configurable, false); + assert.sameValue(desc2.configurable, false); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - assert(obj.hasOwnProperty("prop")); + assert(obj.hasOwnProperty("prop")); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-475.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-475.js index 1ea58556c10d2a80f5ad32fdd851ad4957cbcca0..77b5946d7e48aa08785b83f74cc58dd81552d813 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-475.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-475.js @@ -9,26 +9,26 @@ description: > [[Configurable]] is false) to a data property ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: true, - configurable: false - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: true, + configurable: false +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-476.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-476.js index c9203cdd733800e1a9091b49701faeb6c46c2c77..5ca6b3223f8f61d8883fd469eaf60b6af00e5edd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-476.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-476.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is true) is undefined ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-477.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-477.js index 0285a1f9b7419c392836d6fd07e88c8ce703eeca..965e6c0f9931e75b673f00a58e60689f4397ae10 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-477.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-477.js @@ -9,23 +9,23 @@ description: > [[Configurable]] is true) is the expected function ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: true +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-478.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-478.js index 519d80e7bfc6c078e952f698447777f15f1e2692..8d604495fd741e8781ef7c98c5e0b1a5088ce52c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-478.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-478.js @@ -9,26 +9,26 @@ description: > non-enumerable ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-479.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-479.js index 8faf0c6c133018293d6bdcc2155f1e62e61e4cf4..2625d302c070238fb2b0f990a849f1ee24005205 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-479.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-479.js @@ -9,24 +9,24 @@ description: > deletable ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - delete obj.prop; +delete obj.prop; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js index 6b57a7c2c851bda39f5d4465204bd9f8128956d2..14b658aad749a2caf6d11bb9ae0c1e106a0c2f18 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js @@ -13,9 +13,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - enumerable: true, - configurable: false + value: 1001, + enumerable: true, + configurable: false }); verifyEqualTo(obj, "property", 1001); @@ -25,4 +25,3 @@ verifyNotWritable(obj, "property"); verifyEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js index d3c67c8024412eb2b33931fcc1296023dd8f396b..0fdba161c43ef8615b1e10db039c154a3e4aa6e9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: true +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var result2 = obj.prop === 1001; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = obj.prop === 1001; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-481.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-481.js index a876dad7eb71f741199cf20f677ee8e4a22c9a90..f9219bfc3db69ca7715ac89b09f19f3a2aea3d09 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-481.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-481.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: true +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - set: undefined - }); +Object.defineProperty(obj, "prop", { + set: undefined +}); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.set, setFunc, 'desc1.set'); assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-482.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-482.js index a0ed01131eee0024ed27fbe697eda7a5f336c9ff..502550fcfe48d32a3b3de655c756e0c3cb2e85ad 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-482.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-482.js @@ -10,38 +10,38 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: true +}); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} - Object.defineProperty(obj, "prop", { - enumerable: true - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +Object.defineProperty(obj, "prop", { + enumerable: true +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert.sameValue(result1, false, 'result1'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-483.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-483.js index 5ff0c4423eafe4055260d0a68e84565e4e0eac73..f957a1dd03b1af5b43a5a3bd59dee6a16e9d9978 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-483.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-483.js @@ -14,20 +14,20 @@ includes: [propertyHelper.js] var obj = {}; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true + get: undefined, + set: setFunc, + enumerable: false, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - configurable: false + configurable: false }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-484.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-484.js index 92329f3d790a43cc8df98fdf7bbee49ea43353c1..000f16cd3e41d2c1cedbce2ec91575de5fcab4fe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-484.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-484.js @@ -9,25 +9,25 @@ description: > [[Configurable]] is true) to a data property ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - value: 1001 - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 1001 +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-485.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-485.js index 2a1a18a85edd5b2cfff5648d8070102bfcdc1ee6..de21112f77c585e3735ad29ab31f298490935eb1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-485.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-485.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) is undefined ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-486.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-486.js index 2f5f0e3b065ea9c2462eabcd66c04ea523da8bae..40f2608fa7fb2f1d288db43f71507c4bb37e3ad3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-486.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-486.js @@ -9,23 +9,23 @@ description: > [[Configurable]] is false) is the expected function ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: false +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-487.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-487.js index 8aaf8e2ba221c63f526bc213d7107100fc4c1605..d3f9ccc5de344110c99caeb731fa9d91b7a284ea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-487.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-487.js @@ -9,26 +9,26 @@ description: > non-enumerable ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-488.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-488.js index 1f310fae32952c28d39958cf3137c7ca350839fd..feb1564289617c8b8d464452f8f9535e2fe73f19 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-488.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-488.js @@ -13,15 +13,15 @@ includes: [propertyHelper.js] var obj = {}; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false + get: undefined, + set: setFunc, + enumerable: false, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-489.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-489.js index 18e561052b3f50a12f7f2ed58189f45c9740f7e2..8b09d6cc8b3b78f14626e695cb299665c619d8f4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-489.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-489.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: false +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js index 8bbe80ad43032d05f17f711dc789c13b39372f28..98db24fdda0903aea6bfcd7d17470f889c3c93e1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js @@ -13,9 +13,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: true, - configurable: true + value: 1001, + writable: true, + configurable: true }); verifyEqualTo(obj, "property", 1001); @@ -24,4 +24,3 @@ verifyWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js index a397f74ee90ac5a5f78f51052c0a1bd9e71433a6..2ce9c72765514a74dadc04ffe67240baacdba96c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: false +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - set: undefined - }); + Object.defineProperty(obj, "prop", { + set: undefined + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.set, setFunc, 'desc1.set'); assert.sameValue(desc2.set, setFunc, 'desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js index 04c26899b302979878f4f5ef785009857f827912..db3c1fba4b47d854a1aeabb7792e099f0bf18f91 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-491.js @@ -10,39 +10,39 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: false +}); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: true - }); + Object.defineProperty(obj, "prop", { + enumerable: true + }); }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert.sameValue(result1, false, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-492.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-492.js index 8365a46aac30335e0a550223812d21783456b642..1cdf9be44be17f2342907524b31047ea626f73b2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-492.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-492.js @@ -14,33 +14,33 @@ includes: [propertyHelper.js] var obj = {}; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false + get: undefined, + set: setFunc, + enumerable: false, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - assert.sameValue(desc1.configurable, false); - assert.sameValue(desc2.configurable, false); + assert.sameValue(desc1.configurable, false); + assert.sameValue(desc2.configurable, false); - assert(obj.hasOwnProperty("prop")); + assert(obj.hasOwnProperty("prop")); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-493.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-493.js index 8e51a7fd8024139ee292f8daab4637b9557aa4e6..6d9039cb3ffcac5ee7d444613bf40420f2245d63 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-493.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-493.js @@ -9,26 +9,26 @@ description: > [[Configurable]] is false) to a data property ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: setFunc, - enumerable: false, - configurable: false - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: undefined, + set: setFunc, + enumerable: false, + configurable: false +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-494.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-494.js index 307059771de4b8cf110988356c7bb208178e417c..aa2ca2bc554b30ec28ae716dae72cfe180489169 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-494.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-494.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-495.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-495.js index 924720e5e7defbaee15b19974a8b189249da4548..88e0b13c09e48c1265d5d30aa8a9d990994ad8d8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-495.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-495.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) is undefined ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-496.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-496.js index 2e63e773ba2520b6e6b4cfb06ea96992cdcc67c5..01e69ac78fa60df0b607525689a0e7a1145d6535 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-496.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-496.js @@ -11,28 +11,28 @@ description: > var propertyFound = false; - var obj = {}; - - var getFunc = function () { - return 1001; - }; - - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); - - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +var obj = {}; + +var getFunc = function() { + return 1001; +}; + +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); + +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); + +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-497.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-497.js index f2079be323c8dde66114f5c69d75feae10e4c947..56cd7c4d04c18b65f401baf31000b538d5441c12 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-497.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-497.js @@ -9,23 +9,23 @@ description: > deletable ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - delete obj.prop; +delete obj.prop; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-498.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-498.js index 2289b4393d81e09b6ee5b41e968a9cfdf7ee3112..dc83bf088eae70684a3a9f60281e3ceba1833117 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-498.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-498.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); - var result1 = obj.prop === 1001; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = obj.prop === 1001; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - get: undefined - }); +Object.defineProperty(obj, "prop", { + get: undefined +}); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-499.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-499.js index d07f5281043fea2871ba69cba82bda13936f845c..23e5d1856b74b3558348f4d5373b6388f9f66033 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-499.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-499.js @@ -10,32 +10,32 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - set: setFunc - }); +Object.defineProperty(obj, "prop", { + set: setFunc +}); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - obj.prop = "overrideData"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set'); assert.sameValue(desc2.set, setFunc, 'desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js index 1bafed8ada055b689add54c5cec8d6fc692208ee..8ce00687bf1d842ea616fd0e9e4adc6238ae88ef 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js @@ -13,28 +13,33 @@ description: > data desc ---*/ - function sameDataDescriptorValues(d1, d2) { - return (d1.value === d2.value && - d1.enumerable === d2.enumerable && - d1.writable === d2.writable && - d1.configurable === d2.configurable); - } - - var o = {}; - - // create a data valued property with the following attributes: - // value: 101, enumerable: true, writable: true, configurable: true - o["foo"] = 101; - - // query for, and save, the desc. A subsequent call to defineProperty - // with the same desc should not disturb the property definition. - var d1 = Object.getOwnPropertyDescriptor(o, "foo"); - - // now, redefine the property with the same descriptor - // the property defintion should not get disturbed. - var desc = { value: 101, enumerable: true, writable: true, configurable: true }; - Object.defineProperty(o, "foo", desc); - - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +function sameDataDescriptorValues(d1, d2) { + return (d1.value === d2.value && + d1.enumerable === d2.enumerable && + d1.writable === d2.writable && + d1.configurable === d2.configurable); +} + +var o = {}; + +// create a data valued property with the following attributes: +// value: 101, enumerable: true, writable: true, configurable: true +o["foo"] = 101; + +// query for, and save, the desc. A subsequent call to defineProperty +// with the same desc should not disturb the property definition. +var d1 = Object.getOwnPropertyDescriptor(o, "foo"); + +// now, redefine the property with the same descriptor +// the property defintion should not get disturbed. +var desc = { + value: 101, + enumerable: true, + writable: true, + configurable: true +}; +Object.defineProperty(o, "foo", desc); + +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(sameDataDescriptorValues(d1, d2), true, 'sameDataDescriptorValues(d1, d2)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js index efe6ef67f21b5de0b911fccdfb03e8595f3cad18..71b2c8d1ab089de1169a31874d6880179d512645 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js @@ -13,9 +13,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: true, - enumerable: true + value: 1001, + writable: true, + enumerable: true }); verifyEqualTo(obj, "property", 1001); @@ -24,4 +24,3 @@ verifyWritable(obj, "property"); verifyEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js index ed20f1ac788e7be6179880dcdc751792bd71b24b..aee530e205e0633ca56acd2b135b8b647f74fddc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js @@ -10,36 +10,36 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} - Object.defineProperty(obj, "prop", { - enumerable: false - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +Object.defineProperty(obj, "prop", { + enumerable: false +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-501.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-501.js index 6e0b509f6d0b4bd6d1fb6b951a2fbfffd64399fa..8e08bb9076ee98def2b1807e16bc96b8bc337468 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-501.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-501.js @@ -13,20 +13,20 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true + get: getFunc, + set: undefined, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - configurable: false + configurable: false }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-502.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-502.js index 7a2ef983994e7635a78cb54abc457af0f5416ee2..e34e339b3f1e5c0c6836e7801fdfa0874437f0dd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-502.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-502.js @@ -9,24 +9,24 @@ description: > [[Configurable]] is true) to a data property ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - value: 1001 - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 1001 +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js index 76320b7049897bf9797ad3601ad25893b9e6d4be..88f45cc232d3118729e5ed3c7d3168a910135ac3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-503.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is false) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-504.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-504.js index f1534efb079c87d472375544b7bd1882380000d6..9de8384ee28874be4382e46e9382ab1da841d753 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-504.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-504.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is false) is undefined ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-505.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-505.js index f15171ddcd669392c8c3e705babac34f14f7c9f3..0d4931588841a8f66dee815f388a0e940c5899de 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-505.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-505.js @@ -11,28 +11,28 @@ description: > var propertyFound = false; - var obj = {}; - - var getFunc = function () { - return 1001; - }; - - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false - }); - - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +var obj = {}; + +var getFunc = function() { + return 1001; +}; + +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: false +}); + +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); + +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-506.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-506.js index 402a338618008ba222c8918b89efa8a1be4cda54..0156fa1bae2fe6390fe32d86427dccba51335bba 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-506.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-506.js @@ -12,15 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false + get: getFunc, + set: undefined, + enumerable: true, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-507.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-507.js index f5ffda634d96f7fd56f501ed295c3a7e3290592c..96f2c3ff33c6b17e041b711fca8c015585534b11 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-507.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-507.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: false +}); - var result1 = obj.prop === 1001; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = obj.prop === 1001; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: undefined - }); + Object.defineProperty(obj, "prop", { + get: undefined + }); }); - var result2 = obj.prop === 1001; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = obj.prop === 1001; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-508.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-508.js index 5aba3d35e16765777a7c39703941930688efcec5..c355e64e14e097ad44077e33b9245d4e6790935f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-508.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-508.js @@ -10,31 +10,31 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: false +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - set: setFunc - }); + Object.defineProperty(obj, "prop", { + set: setFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set'); assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-509.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-509.js index 697a1b3c4b9dfa1a81f0b6f4f8a87c3f2957c819..4a5aaa08051dde83c76d67ae294537fc3591989f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-509.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-509.js @@ -10,37 +10,37 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: false +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: false - }); + Object.defineProperty(obj, "prop", { + enumerable: false + }); }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js index c5866cbeed2c15e931371ecbd978a7634f24ca58..58b2ff240ad9ad72c79a5ce242cea811bdae05ad 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js @@ -9,13 +9,15 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { "property": 1 }; // default value of attributes: writable: true, configurable: true, enumerable: true +var obj = { + "property": 1 +}; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(obj, "property", { - value: 1001, - writable: false, - enumerable: false, - configurable: false + value: 1001, + writable: false, + enumerable: false, + configurable: false }); verifyEqualTo(obj, "property", 1001); @@ -25,4 +27,3 @@ verifyNotWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js index 41e43cbeb1f455f24b74687c90224745abca2d08..1ca3ab85a05e8f329477a19fc767b1f416410651 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js @@ -13,33 +13,33 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false + get: getFunc, + set: undefined, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - assert.sameValue(desc1.configurable, false); - assert.sameValue(desc2.configurable, false); + assert.sameValue(desc1.configurable, false); + assert.sameValue(desc2.configurable, false); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - assert(obj.hasOwnProperty("prop")); + assert(obj.hasOwnProperty("prop")); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-511.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-511.js index d3c44cf0bf414d43772b8a534e6454d41f57d859..04577039c8477badda1b2c9e4c696a800815c9d2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-511.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-511.js @@ -9,25 +9,25 @@ description: > [[Configurable]] is false) to a data property ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: false - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: false +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-512.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-512.js index c7627d864c1f68d04e154517c4d744fe3240acf6..3aae360992074887702ca6f8a8c98d4bcf91f55c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-512.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-512.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-513.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-513.js index f44cb451a9cf4723d9b7e0f7f51774c7901973fc..8e7a5afc6417aadc0a03b902719c48d17fd8681c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-513.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-513.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is true) is undefined ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-514.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-514.js index 6b80aa137434cf23ccd041c6c12dce1c1c93cf69..09ea483b5e9a8268ddb6aef0e7f4698f7949a642 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-514.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-514.js @@ -9,25 +9,25 @@ description: > non-enumerable ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js index b87f8abd502b1d4e27811760ddc70ffec28e895c..68f8ec750de5f737c4f0686c2119d9c2c7d791d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-515.js @@ -9,23 +9,23 @@ description: > deletable ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - delete obj.prop; +delete obj.prop; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-516.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-516.js index 5232041098ab70df0fe0e8669aa8196893c04fce..29e30b240ed256927148cbbbaa32dbef7d4e65fb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-516.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-516.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: true +}); - var result1 = obj.prop === 1001; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = obj.prop === 1001; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - get: undefined - }); +Object.defineProperty(obj, "prop", { + get: undefined +}); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js index d47836e41fa1debc11968ac2fdb2999ca18a22a9..fd7bd5d4782708497ec4805fcaa4e71ed5147dfb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-517.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: true +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); - Object.defineProperty(obj, "prop", { - set: setFunc - }); +Object.defineProperty(obj, "prop", { + set: setFunc +}); - obj.prop = "overrideData"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-518.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-518.js index bbf3dbf0c525f2cf24a6045008c9c4e6f798da63..2c04a1f9706a158f44986e3d63dca1054e94e6d4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-518.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-518.js @@ -10,36 +10,36 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: true +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} - Object.defineProperty(obj, "prop", { - enumerable: true - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +Object.defineProperty(obj, "prop", { + enumerable: true +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert.sameValue(result1, false, 'result1'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-519.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-519.js index ee0a43eab3690a1924c7fcefb412d71b0b99b718..98382e84f36a8b9f4096f3729f8fdd86065142e7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-519.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-519.js @@ -13,20 +13,20 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true + get: getFunc, + set: undefined, + enumerable: false, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - configurable: false + configurable: false }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js index 171df640cde658069731003cb2e4c363c8c718b7..1908bdf0155ca9da6408b9ccbe508d38a9e6d0bf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js @@ -21,4 +21,3 @@ verifyNotWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js index 166779005a1085934cfe968f7b536ad4db448156..241b8ba74e0215336eed8bd4033a597b513b08ec 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js @@ -9,24 +9,24 @@ description: > [[Configurable]] is true) to a data property ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - value: 1001 - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 1001 +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-521.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-521.js index 26ed78b257e7e07508729c7300f828b93fe4e76b..56745554abaafb80ec47f1d1a296eabb9fd239d8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-521.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-521.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is false) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-522.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-522.js index 7b4a2b78a1210972f0cc6a2bc522812bc34e1ce5..95715c56e8436f5f49b5d3c109f74fa8c183bfac 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-522.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-522.js @@ -9,21 +9,21 @@ description: > [[Configurable]] is false) is undefined ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(typeof desc.set, "undefined", 'typeof desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-523.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-523.js index 8c1377dc0ef6436d9db6dde8ed311451438046ac..2423be8bfb2ea961f6dd7108043f8cfee90dba0f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-523.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-523.js @@ -9,25 +9,25 @@ description: > non-enumerable ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-524.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-524.js index 2bdc20ca6e3492dd9afc60ca6c3fff172ba0653a..0020bc962ebda0a201cb01c6261a6bb591e81c19 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-524.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-524.js @@ -12,15 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + get: getFunc, + set: undefined, + enumerable: false, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-525.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-525.js index 1ac4af8f8c5739ff49d4cc976da98c2bebdab98f..c1320bc657b1c54e6d227d9cddac7c1d292a2b92 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-525.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-525.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false +}); - var result1 = obj.prop === 1001; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = obj.prop === 1001; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: undefined - }); + Object.defineProperty(obj, "prop", { + get: undefined + }); }); - var result2 = obj.prop === 1001; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = obj.prop === 1001; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-526.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-526.js index 620c61a24fbd20a29c22189972b93bd5e4d9ea54..f861fa1c018b3c01d735ff4a6d176b51f54e4232 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-526.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-526.js @@ -10,31 +10,31 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - set: setFunc - }); + Object.defineProperty(obj, "prop", { + set: setFunc + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(typeof desc1.set, "undefined", 'typeof desc1.set'); assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-527.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-527.js index a1cc85f9ab429b636595b4534d15eae4051104a7..d7174363bc533bbdcff8d68b9521d9b7bb993cc1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-527.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-527.js @@ -10,37 +10,37 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: true - }); + Object.defineProperty(obj, "prop", { + enumerable: true + }); }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert.sameValue(result1, false, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js index 31510895a25be58248c2b721437bb279aad645a9..12189aeb17031a8d247435c994276f7523b9de0a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js @@ -13,33 +13,33 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + get: getFunc, + set: undefined, + enumerable: false, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - assert.sameValue(desc1.configurable, false); - assert.sameValue(desc2.configurable, false); - - verifyNotConfigurable(obj, "prop"); + assert.sameValue(desc1.configurable, false); + assert.sameValue(desc2.configurable, false); - assert(obj.hasOwnProperty("prop")); + verifyNotConfigurable(obj, "prop"); + + assert(obj.hasOwnProperty("prop")); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js index 891797eb9cfdfe1be9f0f29319062c53d98817e9..6c13790416d93428d875da92c5179025853eb317 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js @@ -9,25 +9,25 @@ description: > [[Configurable]] is false) to a data property ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-53.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-53.js index 784f6499cacce2d225715125d4964586cf44e09f..454f0f8f5f0b034a36c09189ae389deb82dfd88f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-53.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-53.js @@ -11,14 +11,14 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var setFunc = function (value) { - obj.setVerifyHelpProp = value; +var setFunc = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperty(obj, "property", { - set: setFunc, - enumerable: true, - configurable: true + set: setFunc, + enumerable: true, + configurable: true }); verifyWritable(obj, "property", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-530.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-530.js index 794b0bdc744acdcd0a6edb9ae278f4bea50ad770..2a56207403cba8816fd0c142b70e5c3241af4f42 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-530.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-530.js @@ -9,26 +9,26 @@ description: > [[Configurable]] is true) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js index aec2d504de03c64776bf4301a6debc9eb407e8bd..e24cd71d19d2f88c2c7b3094c12b9bf9d5ae7262 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-1.js @@ -14,26 +14,26 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; Object.defineProperty(obj, "property", { - get: function () { - return obj.verifySetFunction; - }, - set: function (value) { - obj.verifySetFunction = value; - }, - configurable: true + get: function() { + return obj.verifySetFunction; + }, + set: function(value) { + obj.verifySetFunction = value; + }, + configurable: true }); obj.verifySetFunction1 = "data1"; -var getFunc = function () { - return obj.verifySetFunction1; +var getFunc = function() { + return obj.verifySetFunction1; }; -var setFunc = function (value) { - obj.verifySetFunction1 = value; +var setFunc = function(value) { + obj.verifySetFunction1 = value; }; Object.defineProperty(obj, "property", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); verifyEqualTo(obj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js index 39aec7cfab0e74bfad9291a702b7202392cbb244..9d6ac91a6caa1056d1a6a579b5a5bdd86d19b8b9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-10.js @@ -16,26 +16,26 @@ var obj = {}; obj.verifySetFunction = "data"; Object.defineProperty(obj, "0", { - get: function () { - return obj.verifySetFunction; - }, - set: function (value) { - obj.verifySetFunction = value; - }, - configurable: true + get: function() { + return obj.verifySetFunction; + }, + set: function(value) { + obj.verifySetFunction = value; + }, + configurable: true }); obj.verifySetFunction1 = "data1"; -var getFunc = function () { - return obj.verifySetFunction1; +var getFunc = function() { + return obj.verifySetFunction1; }; -var setFunc = function (value) { - obj.verifySetFunction1 = value; +var setFunc = function(value) { + obj.verifySetFunction1 = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); verifyEqualTo(obj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js index 006eba6b0c9d4688c615f910a8c71432f67e19d7..ed85b1d9609105f83747c936569e29d0f25357cb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-11.js @@ -15,26 +15,26 @@ var obj = []; obj.verifySetFunction = "data"; Object.defineProperty(obj, "prop", { - get: function () { - return obj.verifySetFunction; - }, - set: function (value) { - obj.verifySetFunction = value; - }, - configurable: true + get: function() { + return obj.verifySetFunction; + }, + set: function(value) { + obj.verifySetFunction = value; + }, + configurable: true }); obj.verifySetFunction1 = "data1"; -var getFunc = function () { - return obj.verifySetFunction1; +var getFunc = function() { + return obj.verifySetFunction1; }; -var setFunc = function (value) { - obj.verifySetFunction1 = value; +var setFunc = function(value) { + obj.verifySetFunction1 = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); verifyEqualTo(obj, "prop", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js index ab79cd60ebe2f2c3de9ff6d8d7ac7fcb94f15f5c..2cb8b6a77c8e7846271f5e1ca556e732c992836a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-12.js @@ -11,32 +11,32 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunction = "data"; Object.defineProperty(obj, "0", { - get: function () { - return obj.verifySetFunction; - }, - set: function (value) { - obj.verifySetFunction = value; - }, - configurable: true + get: function() { + return obj.verifySetFunction; + }, + set: function(value) { + obj.verifySetFunction = value; + }, + configurable: true }); obj.verifySetFunction1 = "data1"; -var getFunc = function () { - return obj.verifySetFunction1; +var getFunc = function() { + return obj.verifySetFunction1; }; -var setFunc = function (value) { - obj.verifySetFunction1 = value; +var setFunc = function(value) { + obj.verifySetFunction1 = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); verifyEqualTo(obj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js index eec71d69487c367d6b2ca78fbecb8f86d74056b2..7d290be2dee264cd50c02d3b4ef89c3d10343203 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-15.js @@ -9,26 +9,26 @@ description: > step 5.b) ---*/ - var obj = []; +var obj = []; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - var getFunc = function () { - return verifySetFunc; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; +var getFunc = function() { + return verifySetFunc; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js index 18edd69aec9414308688a9be1ddd96df014cbe1b..5016c0b406bf420557d61eb83f121ba69f7e912d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-16.js @@ -8,28 +8,28 @@ description: > simple assignment, 'O' is an Arguments object (8.12.5 step 5.b) ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - var getFunc = function () { - return verifySetFunc; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; +var getFunc = function() { + return verifySetFunc; +}; - Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); - obj[0] = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("0"); - var desc = Object.getOwnPropertyDescriptor(obj, "0"); +obj[0] = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("0"); +var desc = Object.getOwnPropertyDescriptor(obj, "0"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js index e0e3eded817018f741b76b9e6df87c1366eef685..16bd7a199441c97553903a919c149226a4e8d227 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-2.js @@ -16,26 +16,26 @@ var obj = []; obj.verifySetFunction = "data"; Object.defineProperty(obj, "0", { - get: function () { - return obj.verifySetFunction; - }, - set: function (value) { - obj.verifySetFunction = value; - }, - configurable: true + get: function() { + return obj.verifySetFunction; + }, + set: function(value) { + obj.verifySetFunction = value; + }, + configurable: true }); obj.verifySetFunction1 = "data1"; -var getFunc = function () { - return obj.verifySetFunction1; +var getFunc = function() { + return obj.verifySetFunction1; }; -var setFunc = function (value) { - obj.verifySetFunction1 = value; +var setFunc = function(value) { + obj.verifySetFunction1 = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); verifyEqualTo(obj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js index 8f6b3eaa06d565b3b42181cebc350ee5c89e2308..cc97b6371a7a646d172ce52880a23e13457fd114 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-3.js @@ -11,32 +11,32 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunction = "data"; Object.defineProperty(obj, "property", { - get: function () { - return obj.verifySetFunction; - }, - set: function (value) { - obj.verifySetFunction = value; - }, - configurable: true + get: function() { + return obj.verifySetFunction; + }, + set: function(value) { + obj.verifySetFunction = value; + }, + configurable: true }); obj.verifySetFunction1 = "data1"; -var getFunc = function () { - return obj.verifySetFunction1; +var getFunc = function() { + return obj.verifySetFunction1; }; -var setFunc = function (value) { - obj.verifySetFunction1 = value; +var setFunc = function(value) { + obj.verifySetFunction1 = value; }; Object.defineProperty(obj, "property", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); verifyEqualTo(obj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js index 8bb261f1fd39e5be3ea3bd3d141333e8e43b0612..64e8ede81b830c4460ff9449255e8dd30d982c53 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var obj = []; var verifySetFunc = "data"; -var getFunc = function () { - return verifySetFunc; +var getFunc = function() { + return verifySetFunc; }; Object.defineProperty(obj, "0", { - get: getFunc, - enumerable: true, - configurable: true + get: getFunc, + enumerable: true, + configurable: true }); verifyNotWritable(obj, "0"); @@ -29,4 +29,3 @@ assert(obj.hasOwnProperty("0")); var desc = Object.getOwnPropertyDescriptor(obj, "0"); assert.sameValue(typeof desc.set, "undefined"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js index ebd0d7c6cc00822d0bc801aec914d1346dee729e..f120c9fe5c6069138188a7f08db018a799b13715 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js @@ -10,19 +10,19 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); var verifySetFunc = "data"; -var getFunc = function () { - return verifySetFunc; +var getFunc = function() { + return verifySetFunc; }; Object.defineProperty(obj, "prop", { - get: getFunc, - enumerable: true, - configurable: true + get: getFunc, + enumerable: true, + configurable: true }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531.js index dcb124023f31bb3f549920d1aa32f0786ee53976..bf61045fe1e98150b0bd83c879388fadfd2c32ac 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531.js @@ -9,27 +9,27 @@ description: > [[Configurable]] is true) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-532.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-532.js index ee3370eaf545889cd58e9999fe1f92ead485bd49..69e40185671d32540611396e61aa5d56dd3d09b2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-532.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-532.js @@ -11,33 +11,33 @@ description: > var propertyFound = false; - var obj = {}; - - var getFunc = function () { - return 1001; - }; - - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +var obj = {}; + +var getFunc = function() { + return 1001; +}; + +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; + +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); + +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); + +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-533.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-533.js index 7c26ccedbac586e2f45c555e53597ddb70c9c8ee..e750f0f51f111992621be8b1a1ec0226825b6e5a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-533.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-533.js @@ -9,28 +9,28 @@ description: > deletable ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - delete obj.prop; +delete obj.prop; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-534.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-534.js index c6acdc49d9e2db7fc0f5677100ff1dcfff595059..0bed7486f5c4f6edf2a200b67ce0c813ff3aa1d9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-534.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-534.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); - var result1 = obj.prop === 1001; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = obj.prop === 1001; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - get: undefined - }); +Object.defineProperty(obj, "prop", { + get: undefined +}); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-535.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-535.js index 7235c3f789f1595cff373580d847039b76c373ce..9dc369ef8e80e35894e16f661fbc5729da4af730 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-535.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-535.js @@ -10,31 +10,31 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - set: undefined - }); +Object.defineProperty(obj, "prop", { + set: undefined +}); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.set, setFunc, 'desc1.set'); assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-536.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-536.js index f3ff2e36a3cf73e289ba9517d053d2409b7c0d86..93ad10992b5ff507d22605e7ff1c84993b62bb93 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-536.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-536.js @@ -10,41 +10,41 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} - Object.defineProperty(obj, "prop", { - enumerable: false - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +Object.defineProperty(obj, "prop", { + enumerable: false +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-537.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-537.js index 06c2d5faf156e25ff13e5fc9e0ddee5405c8b9df..15de96a3d02d053a65b8f5233723c553efd48ac4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-537.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-537.js @@ -13,26 +13,26 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - configurable: false + configurable: false }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js index 21426bfe9a170a80da29a3e32d888fd0a3ccd31f..3b65218cca063504dc5d4da46f8c761906adde0b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-1.js @@ -13,41 +13,41 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); Object.defineProperty(obj, "0", { - value: 1001 + value: 1001 }); var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); } if (!desc2.hasOwnProperty("value")) { - $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); + $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); } if (typeof desc2.get !== "undefined") { - $ERROR('Expected typeof desc2.get === "undefined", actually ' + typeof desc2.get); + $ERROR('Expected typeof desc2.get === "undefined", actually ' + typeof desc2.get); } if (typeof desc2.set !== "undefined") { - $ERROR('Expected typeof desc2.set === "undefined", actually ' + typeof desc2.set); + $ERROR('Expected typeof desc2.set === "undefined", actually ' + typeof desc2.set); } verifyEqualTo(obj, "0", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js index e33824934ebff0909ec57d41c30820083eea76bb..78d2ca97b490a2ebe067e9d7c60dca1a009465a0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js @@ -10,46 +10,46 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - value: 1001 + value: 1001 }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); -if (!desc1.hasOwnProperty("get") ) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); +if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); } -if (!desc2.hasOwnProperty("value") ) { - $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); +if (!desc2.hasOwnProperty("value")) { + $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); } -if (typeof desc2.get !== "undefined" ) { - $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get ); +if (typeof desc2.get !== "undefined") { + $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); } -if (typeof desc2.set !== "undefined" ) { - $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set ); +if (typeof desc2.set !== "undefined") { + $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set); } verifyEqualTo(obj, "prop", 1001); @@ -59,5 +59,3 @@ verifyNotWritable(obj, "prop"); verifyEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js index 010ad008e7870e95d557251399ebd7019c7142cc..fdc987cfdcd39e6de113c22b59c010872bdb1289 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js @@ -13,41 +13,41 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - value: 1001 + value: 1001 }); -var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); -if (!desc1.hasOwnProperty("get") ) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); +if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); } -if (!desc2.hasOwnProperty("value") ) { - $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); +if (!desc2.hasOwnProperty("value")) { + $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); } -if (typeof desc2.get !== "undefined" ) { - $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); +if (typeof desc2.get !== "undefined") { + $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); } -if (typeof desc2.set !== "undefined" ) { - $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set); +if (typeof desc2.set !== "undefined") { + $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set); } @@ -58,5 +58,3 @@ verifyNotWritable(obj, "prop"); verifyEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js index c991bea6277e48cfea9f3b7bfe2c0b0b7870099e..5c90ba8f9efc12d9cabdb7b910337d6f33aacd7a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js @@ -10,46 +10,46 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); Object.defineProperty(obj, "0", { - value: 1001 + value: 1001 }); var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); -if (!desc1.hasOwnProperty("get") ) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); +if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); } -if (!desc2.hasOwnProperty("value") ) { - $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); +if (!desc2.hasOwnProperty("value")) { + $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); } -if (typeof desc2.get !== "undefined" ) { - $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); +if (typeof desc2.get !== "undefined") { + $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); } -if (typeof desc2.set !== "undefined" ) { - $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set); +if (typeof desc2.set !== "undefined") { + $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set); } verifyEqualTo(obj, "0", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js index ee5808341c1adc5427fdf110031bb4ec66e7788a..3b97da4a8c20612f80aefb59360eac1853dac064 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js @@ -12,38 +12,38 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - value: 1001 + value: 1001 }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); -if (!desc1.hasOwnProperty("get") ) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); +if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); } -if (!desc2.hasOwnProperty("value") ) { - $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); +if (!desc2.hasOwnProperty("value")) { + $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); } -if (typeof desc2.get !== "undefined" ) { - $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get ); +if (typeof desc2.get !== "undefined") { + $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); } @@ -54,6 +54,3 @@ verifyNotWritable(obj, "prop"); verifyEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - - - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js index 6d06b7a1f66889d0658472bcac00207b786f085b..d1ee1d3a310aec4f54e3d48b234e14b6b3006667 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js @@ -9,26 +9,26 @@ description: > [[Configurable]] is false) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-54.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-54.js index 3d6c34dba3ef5e81cfffff786a93dbcda8b3a069..6fa06bee3b96e4d2a2089e7a164f05c7977177e6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-54.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-54.js @@ -13,11 +13,11 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - get: function () { - return "property"; - }, - enumerable: false, - configurable: false + get: function() { + return "property"; + }, + enumerable: false, + configurable: false }); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js index 65219f6d34470b39a7ef6ea8217d6a9586a15233..396bcfba3e8524ab83a0816ff2fb0592df088bdc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js @@ -14,57 +14,57 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "property", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "property", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "property", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "property", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "property", getFunc()); - verifyWritable(obj, "property", "verifySetFunction"); + verifyWritable(obj, "property", "verifySetFunction"); - verifyNotEnumerable(obj, "property"); + verifyNotEnumerable(obj, "property"); - verifyNotConfigurable(obj, "property"); + verifyNotConfigurable(obj, "property"); } try { - Object.defineProperty(obj, "property", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e) { - if (!result) { - $ERROR('Expected result to be true, actually ' + result); + Object.defineProperty(obj, "property", { + set: function(value) { + obj.verifySetFunction1 = value; } - - verifyEqualTo(obj, "property", getFunc()); + }); +} catch (e) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyWritable(obj, "property", "verifySetFunction"); + verifyEqualTo(obj, "property", getFunc()); - verifyNotEnumerable(obj, "property"); + verifyWritable(obj, "property", "verifySetFunction"); - verifyNotConfigurable(obj, "property"); + verifyNotEnumerable(obj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "property"); + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js index 42279065bc687f354e13ed56e4dfdb54457df119..9b05fab44cc0572e34411a1dfffce8f05295db7b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js @@ -9,29 +9,29 @@ description: > (8.12.5 step 5.b) ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - obj.verifySetFunc = "data"; - var getFunc = function () { - return obj.verifySetFunc; - }; +obj.verifySetFunc = "data"; +var getFunc = function() { + return obj.verifySetFunc; +}; - var setFunc = function (value) { - obj.verifySetFunc = value; - }; +var setFunc = function(value) { + obj.verifySetFunc = value; +}; - Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "0", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - obj[0] = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("0"); - var desc = Object.getOwnPropertyDescriptor(obj, "0"); +obj[0] = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("0"); +var desc = Object.getOwnPropertyDescriptor(obj, "0"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js index 52c2bfe09dd900531ff6b8f9c45401c8b5fdbec4..6d5e5a4fd0a11708b728c844afa7270b0db6aeef 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js @@ -14,57 +14,57 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "0", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "0", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "0", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "0", getFunc()); - verifyWritable(obj, "0", "verifySetFunction"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotEnumerable(obj, "0"); + verifyNotEnumerable(obj, "0"); - verifyNotConfigurable(obj, "0"); + verifyNotConfigurable(obj, "0"); } try { - Object.defineProperty(obj, "0", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e) { - if (!result ) { - $ERROR('Expected result to be true, actually ' + result ); + Object.defineProperty(obj, "0", { + set: function(value) { + obj.verifySetFunction1 = value; } - - verifyEqualTo(obj, "0", getFunc()); + }); +} catch (e) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyWritable(obj, "0", "verifySetFunction"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotEnumerable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotConfigurable(obj, "0"); + verifyNotEnumerable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "0"); + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js index 011fb4fbb58cb919190e608e38dac9b8dc387fcc..0b7b5bcdc170573a0c10a784cf6771ad414136e8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js @@ -10,63 +10,63 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "property", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "property", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "property", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "property", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "property", getFunc()); - verifyWritable(obj, "property", "verifySetFunction"); + verifyWritable(obj, "property", "verifySetFunction"); - verifyNotEnumerable(obj, "property"); + verifyNotEnumerable(obj, "property"); - verifyNotConfigurable(obj, "property"); + verifyNotConfigurable(obj, "property"); } try { - Object.defineProperty(obj, "property", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); + Object.defineProperty(obj, "property", { + set: function(value) { + obj.verifySetFunction1 = value; + } + }); } catch (e) { - if (!result) { - $ERROR('Expected result to be true, actually ' + result); - } + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyEqualTo(obj, "property", getFunc()); + verifyEqualTo(obj, "property", getFunc()); - verifyWritable(obj, "property", "verifySetFunction"); + verifyWritable(obj, "property", "verifySetFunction"); - verifyNotEnumerable(obj, "property"); + verifyNotEnumerable(obj, "property"); - verifyNotConfigurable(obj, "property"); + verifyNotConfigurable(obj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js index 7db3da87696d8a48c3e140a5997c146a65550bb7..4ab77fa5f41ee2199d35bd47a17639db29c48a62 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js @@ -9,27 +9,27 @@ description: > step 5.b) ---*/ - var obj = []; +var obj = []; - obj.verifySetFunc = "data"; - var getFunc = function () { - return obj.verifySetFunc; - }; +obj.verifySetFunc = "data"; +var getFunc = function() { + return obj.verifySetFunc; +}; - var setFunc = function (value) { - obj.verifySetFunc = value; - }; +var setFunc = function(value) { + obj.verifySetFunc = value; +}; - Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "0", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - obj[0] = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("0"); - var desc = Object.getOwnPropertyDescriptor(obj, "0"); +obj[0] = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("0"); +var desc = Object.getOwnPropertyDescriptor(obj, "0"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js index 04d92161400894e93b4c6397ef14fcfde1cb2d6e..945dc58d89b87b6e82cbc241fcc138431fd47008 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-5.js @@ -9,29 +9,29 @@ description: > (8.12.5 step 5.b) ---*/ - var obj = (function () { - return arguments; - }()); +var obj = (function() { + return arguments; +}()); - obj.verifySetFunc = "data"; - var getFunc = function () { - return obj.verifySetFunc; - }; +obj.verifySetFunc = "data"; +var getFunc = function() { + return obj.verifySetFunc; +}; - var setFunc = function (value) { - obj.verifySetFunc = value; - }; +var setFunc = function(value) { + obj.verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js index 26a9524cc8510d671199ca19e0445bd862e9afb0..778a22ac5cc011c9fdc9ddf596e4bc24760acf5b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js @@ -14,59 +14,59 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "0", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "0", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; + result = e instanceof TypeError; - verifyEqualTo(obj, "0", getFunc()); + verifyEqualTo(obj, "0", getFunc()); - verifyWritable(obj, "0", "verifySetFunction"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotEnumerable(obj, "0"); + verifyNotEnumerable(obj, "0"); - verifyNotConfigurable(obj, "0"); + verifyNotConfigurable(obj, "0"); } try { - Object.defineProperty(obj, "0", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e) { - if (!result) { - $ERROR('Expected result to be true, actually ' + result); + Object.defineProperty(obj, "0", { + set: function(value) { + obj.verifySetFunction1 = value; } - - verifyEqualTo(obj, "0", getFunc()); + }); +} catch (e) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyWritable(obj, "0", "verifySetFunction"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotEnumerable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotConfigurable(obj, "0"); + verifyNotEnumerable(obj, "0"); + verifyNotConfigurable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js index c67b0e58166fbb12c26d008daa6cf3210e4a3b49..b953deb29d71b1e5d8bea8797ec9514a837a22f3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js @@ -14,59 +14,59 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "prop", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "prop", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "prop", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "prop", getFunc()); - verifyWritable(obj, "prop", "verifySetFunction"); + verifyWritable(obj, "prop", "verifySetFunction"); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); } try { - Object.defineProperty(obj, "prop", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e1) { - if (!result) { - $ERROR('Expected result to be true, actually ' + result); + Object.defineProperty(obj, "prop", { + set: function(value) { + obj.verifySetFunction1 = value; } - + }); +} catch (e1) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyEqualTo(obj, "prop", getFunc()); - verifyWritable(obj, "prop", "verifySetFunction"); + verifyEqualTo(obj, "prop", getFunc()); - verifyNotEnumerable(obj, "prop"); + verifyWritable(obj, "prop", "verifySetFunction"); - verifyNotConfigurable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e1 instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e1); - } + + if (!(e1 instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e1); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js index f59421aa93261bf1d0116ded347635d0c4188540..d9df97b880d82005d64dbc00d8ed3f21ab5006c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js @@ -11,62 +11,62 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "0", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "0", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "0", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "0", getFunc()); - verifyWritable(obj, "0", "verifySetFunction"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotEnumerable(obj, "0"); + verifyNotEnumerable(obj, "0"); - verifyNotConfigurable(obj, "0"); + verifyNotConfigurable(obj, "0"); } try { - Object.defineProperty(obj, "0", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e) { - if (!result ) { - $ERROR('Expected result to be true, actually ' + result ); + Object.defineProperty(obj, "0", { + set: function(value) { + obj.verifySetFunction1 = value; } - - verifyEqualTo(obj, "0", getFunc()); + }); +} catch (e) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyWritable(obj, "0", "verifySetFunction"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotEnumerable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotConfigurable(obj, "0"); + verifyNotEnumerable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "0"); + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js index b2354b2e195478619ec1f777d2ee0bb263a9ee43..b0259ddce438a133d25721ed2f1b8714afa1e1a0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js @@ -9,27 +9,27 @@ description: > step 5.b) ---*/ - var obj = []; +var obj = []; - obj.verifySetFunc = "data"; - var getFunc = function () { - return obj.verifySetFunc; - }; +obj.verifySetFunc = "data"; +var getFunc = function() { + return obj.verifySetFunc; +}; - var setFunc = function (value) { - obj.verifySetFunc = value; - }; +var setFunc = function(value) { + obj.verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540.js index 141ecc9f56a32c70955d46b144c810951ad68c9e..6ca07a414e8cf4e8ee17ca88ef2a802030944897 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540.js @@ -9,27 +9,27 @@ description: > [[Configurable]] is false) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-541.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-541.js index 4651f86e435c2381cb04bda705033a25a1ba7340..46d603d74dcbed344a8153fd6a843792bf35f998 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-541.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-541.js @@ -11,33 +11,33 @@ description: > var propertyFound = false; - var obj = {}; - - var getFunc = function () { - return 1001; - }; - - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); - - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - - for (var p in obj) { - if (p === "prop") { - propertyFound = true; - break; - } - } +var obj = {}; + +var getFunc = function() { + return 1001; +}; + +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; + +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); + +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); + +for (var p in obj) { + if (p === "prop") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-542.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-542.js index 8382e3cec14886951c7b5f0cfca636f325f56ac6..900872e59df3506f7ec38ea5c7d0d9170d399d39 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-542.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-542.js @@ -12,20 +12,20 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-543.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-543.js index 7afe42f31a9c48b5a76896323ebe4a26baeb1f54..4f57461d95e042af2d80bbbef6839061925f0f90 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-543.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-543.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - var result1 = obj.prop === 1001; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = obj.prop === 1001; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: undefined - }); + Object.defineProperty(obj, "prop", { + get: undefined + }); }); - var result2 = obj.prop === 1001; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = obj.prop === 1001; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-544.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-544.js index c8b18272fe4f7a220be3469cf6cf3bd482c9b818..7e74c4f8d031815e6740afa8711d291d17afc6d0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-544.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-544.js @@ -10,31 +10,31 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - set: undefined - }); + Object.defineProperty(obj, "prop", { + set: undefined + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.set, setFunc, 'desc1.set'); assert.sameValue(desc2.set, setFunc, 'desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-545.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-545.js index f6150509a02b2b4f410de823760dabb32580464f..d166513f3d9516e9a5013a9c3aee1204348c8b1a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-545.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-545.js @@ -10,42 +10,42 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: false - }); + Object.defineProperty(obj, "prop", { + enumerable: false + }); }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-546.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-546.js index ce460d2c0c1a47d37c00d2023799541224100422..74dca6bda0e9f945e5c3494366e30fecce2a284d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-546.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-546.js @@ -13,35 +13,35 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - assert.sameValue(desc1.configurable, false); + assert(e instanceof TypeError); + assert.sameValue(desc1.configurable, false); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - assert.sameValue(desc2.configurable, false); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + assert.sameValue(desc2.configurable, false); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js index 9c0d1cc4c0d7985b96f1f10dc7ffce8cdc67b1cf..359362b8612f40dcb90b284f376bd056a07684a2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js @@ -13,51 +13,51 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); try { - Object.defineProperty(obj, "0", { - value: 1001 - }); + Object.defineProperty(obj, "0", { + value: 1001 + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); - if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); - } - - if (desc2.hasOwnProperty("value")) { - $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); - } - + if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + } - verifyEqualTo(obj, "0", getFunc()); + if (desc2.hasOwnProperty("value")) { + $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); + } - verifyWritable(obj, "0", "verifySetFunc"); - verifyEnumerable(obj, "0"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotConfigurable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunc"); + verifyEnumerable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "0"); + + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js index dbb08ef9c6d15797d1584011e0473047bc9d32b3..6a08c62d6f2b7e3963174590cd6419b9f623279e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js @@ -10,56 +10,56 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); - } - - if (desc2.hasOwnProperty("value")) { - $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); - } - + if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + } - verifyEqualTo(obj, "prop", getFunc()); + if (desc2.hasOwnProperty("value")) { + $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); + } - verifyWritable(obj, "prop", "verifySetFunc"); - verifyEnumerable(obj, "prop"); + verifyEqualTo(obj, "prop", getFunc()); - verifyNotConfigurable(obj, "prop"); - + verifyWritable(obj, "prop", "verifySetFunc"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyEnumerable(obj, "prop"); + + verifyNotConfigurable(obj, "prop"); + + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js index 3caf081e495b329293befbbca2eb61f6e392c29f..db807f2b64f830631aeac462278f3402d12ce025 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js @@ -13,50 +13,50 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); - } - - if (desc2.hasOwnProperty("value")) { - $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); - } - + if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + } - verifyEqualTo(obj, "prop", getFunc()); + if (desc2.hasOwnProperty("value")) { + $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); + } - verifyWritable(obj, "prop", "verifySetFunc"); - verifyEnumerable(obj, "prop"); + verifyEqualTo(obj, "prop", getFunc()); - verifyNotConfigurable(obj, "prop"); + verifyWritable(obj, "prop", "verifySetFunc"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyEnumerable(obj, "prop"); + + verifyNotConfigurable(obj, "prop"); + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js index c7ab2851c387964d5bf2fdc6e7191499ab094659..fd8fe6f5b594567350591bcccbdf09350f267535 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js @@ -10,54 +10,54 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); try { - Object.defineProperty(obj, "0", { - value: 1001 - }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "0", { + value: 1001 + }); + $ERROR("Expected an exception."); } catch (e) { - var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); - if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); - } - - if (desc2.hasOwnProperty("value")) { - $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); - } - - verifyEqualTo(obj, "0", getFunc()); + if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + } - verifyWritable(obj, "0", "verifySetFunc"); + if (desc2.hasOwnProperty("value")) { + $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); + } - verifyEnumerable(obj, "0"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotConfigurable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunc"); + verifyEnumerable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "0"); + + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js index a75fb8782e68ec691b8c72eb90c85c846fe5c2d4..ee342321cf4ac942c77a224cf62fdb7f59230687 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js @@ -9,30 +9,30 @@ description: > [[Configurable]] is false) to a data property ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-548.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-548.js index fc6d76d4724858220c368444d7a5041dd7d97a4a..06148ad7fc394cb3f6d0487e6a5b6a2ad4fded78 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-548.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-548.js @@ -9,26 +9,26 @@ description: > [[Configurable]] is true) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-549.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-549.js index a8cd117d9c6f549c8f78601391ad1af70af89f30..4448f293a62a45996e2a3eba174bd8bb46f76bb2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-549.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-549.js @@ -9,27 +9,27 @@ description: > [[Configurable]] is true) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-55.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-55.js index 4c3747d7b34068c6e2c36a9d653173d5d84fc23c..3453d91984abe50553feec2625025c8070291238 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-55.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-55.js @@ -12,17 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -var setFunc = function (value) { - obj.setVerifyHelpProp = value; +var setFunc = function(value) { + obj.setVerifyHelpProp = value; }; -var getFunc = function () { - return 10; +var getFunc = function() { + return 10; }; Object.defineProperty(obj, "property", { - set: setFunc, - get: getFunc, - configurable: true + set: setFunc, + get: getFunc, + configurable: true }); verifyEqualTo(obj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-550.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-550.js index bb17ddc1b5eae74448a0d49af987e9f7d0451296..e61cb23e64f35948d99e40ab0c74e577a2f268f5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-550.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-550.js @@ -9,30 +9,30 @@ description: > non-enumerable ---*/ - var obj = {}; - - var getFunc = function () { - return 1001; - }; - - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true - }); - - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +var obj = {}; + +var getFunc = function() { + return 1001; +}; + +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; + +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true +}); + +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); + +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-551.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-551.js index 1cd7d71c713c5c3a646029766865e2d7cbc11e81..6002a2509fd7dc89b94105b0215b8f4072ca8992 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-551.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-551.js @@ -9,28 +9,28 @@ description: > deletable ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - delete obj.prop; +delete obj.prop; assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-552.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-552.js index 34fe59a869d1a6b2e78b0d5b8eadb9b0311b4677..edb2b6cb86da3d96d1c6ee7c7763f1e2168596ed 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-552.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-552.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true +}); - var result1 = obj.prop === 1001; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = obj.prop === 1001; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - get: undefined - }); +Object.defineProperty(obj, "prop", { + get: undefined +}); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-553.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-553.js index 62695097dd57ebe98fa44ab11d7dfbe77953273e..ef243fdd9dc0d8259b89622a3f0dcf831a629b12 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-553.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-553.js @@ -10,31 +10,31 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - Object.defineProperty(obj, "prop", { - set: undefined - }); +Object.defineProperty(obj, "prop", { + set: undefined +}); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.set, setFunc, 'desc1.set'); assert.sameValue(typeof desc2.set, "undefined", 'typeof desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-554.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-554.js index 2486116154ec8936e5fca7e3b74590f3fe29f75a..608f5f42fd4a12f88214c4b8e97fd55fe4670993 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-554.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-554.js @@ -10,42 +10,42 @@ description: > value ---*/ - var obj = {}; - - var getFunc = function () { - return 1001; - }; - - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true - }); - - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } - - Object.defineProperty(obj, "prop", { - enumerable: true - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var obj = {}; + +var getFunc = function() { + return 1001; +}; + +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; + +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true +}); + +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} + +Object.defineProperty(obj, "prop", { + enumerable: true +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert.sameValue(result1, false, 'result1'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-555.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-555.js index aa5eda936dbe97c70f03fa56bf439b860bad91ee..89dbef084e13ed34257b364a3464db2ae5347fa4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-555.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-555.js @@ -13,27 +13,27 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.configurable, true); Object.defineProperty(obj, "prop", { - configurable: false + configurable: false }); verifyNotConfigurable(obj, "prop"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-556.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-556.js index 0e91ba3b536ffd674214c82be9afc7e4bf0faa28..2ff92d6d11e3d256fd05391f26ab278492ab0082 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-556.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-556.js @@ -9,30 +9,30 @@ description: > [[Configurable]] is true) to a data property ---*/ - var obj = {}; - - var getFunc = function () { - return 1001; - }; - - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: true - }); - - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - - Object.defineProperty(obj, "prop", { - value: 1001 - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var obj = {}; + +var getFunc = function() { + return 1001; +}; + +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; + +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: true +}); + +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); + +Object.defineProperty(obj, "prop", { + value: 1001 +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert(desc2.hasOwnProperty("value"), 'desc2.hasOwnProperty("value") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-557.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-557.js index be2d5d46c75ffbf4df45399539c11a324e130863..1c3312d016d435013e7ba78a1c9fbc64b537cb91 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-557.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-557.js @@ -9,26 +9,26 @@ description: > [[Configurable]] is false) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false +}); - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-558.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-558.js index 1bcd85f7c18bfe5581dc7d18da1454f85d77627f..9eae2cd02d5d49c21696471ca4901d610447cc38 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-558.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-558.js @@ -9,27 +9,27 @@ description: > [[Configurable]] is false) is the expected function ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false +}); - obj.prop = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +obj.prop = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-559.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-559.js index f2f308b34d6c7c314e7fa1f47440161e3de3b4c8..f0a3b8c51fd934e606853695c944adf38833823d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-559.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-559.js @@ -9,30 +9,30 @@ description: > non-enumerable ---*/ - var obj = {}; - - var getFunc = function () { - return 1001; - }; - - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; - - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - - var propertyDefineCorrect = obj.hasOwnProperty("prop"); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - - for (var p in obj) { - assert.notSameValue(p, "prop", 'p'); - } +var obj = {}; + +var getFunc = function() { + return 1001; +}; + +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; + +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false +}); + +var propertyDefineCorrect = obj.hasOwnProperty("prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); + +for (var p in obj) { + assert.notSameValue(p, "prop", 'p'); +} assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-56.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-56.js index dd42a9569cd65607c874aff418c6de25d2098b29..6e0ccaa92e60e55d4aa91d90fea65065f85ce1c0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-56.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-56.js @@ -11,17 +11,17 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var setFunc = function (value) { - obj.setVerifyHelpProp = value; +var setFunc = function(value) { + obj.setVerifyHelpProp = value; }; -var getFunc = function () { - return 10; +var getFunc = function() { + return 10; }; Object.defineProperty(obj, "property", { - set: setFunc, - get: getFunc, - enumerable: true + set: setFunc, + get: getFunc, + enumerable: true }); verifyEqualTo(obj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-560.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-560.js index 40a31583ec77962db601b4e399cbb6e45812f802..75751e6f3916b06fbc2786a875d057fe3739488b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-560.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-560.js @@ -12,20 +12,20 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false }); assert(obj.hasOwnProperty("prop")); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-561.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-561.js index 376507ea1617b0a550d76677b036f4fc8f7e8e6d..077cfdfb45a8b547afaf15031f78c3ca7bcbea61 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-561.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-561.js @@ -10,33 +10,33 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false +}); - var result1 = obj.prop === 1001; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = obj.prop === 1001; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: undefined - }); + Object.defineProperty(obj, "prop", { + get: undefined + }); }); - var result2 = obj.prop === 1001; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = obj.prop === 1001; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-562.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-562.js index 874f22ea29f7143830e75675898a6e840cf48756..7591887dc55913f8dfbbcf6b3001a1fc902fabb2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-562.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-562.js @@ -10,31 +10,31 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false +}); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - set: undefined - }); + Object.defineProperty(obj, "prop", { + set: undefined + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(desc1.set, setFunc, 'desc1.set'); assert.sameValue(desc2.set, setFunc, 'desc2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-563.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-563.js index 56423191a57013d4c1b115c71810cdab8c1c4ad5..a4bc20ffa64072f45c4435d173934b5cc79f58b4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-563.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-563.js @@ -10,42 +10,42 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: true - }); + Object.defineProperty(obj, "prop", { + enumerable: true + }); }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert.sameValue(result1, false, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-564.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-564.js index 6b205e636337b1ca8cf3b4a9bc10c5af8743a1df..81f0cc5a539b56c43ab4e2416dc666007f36a6bc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-564.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-564.js @@ -13,31 +13,31 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - assert.sameValue(desc1.configurable, false); - verifyNotConfigurable(obj, "prop"); + assert(e instanceof TypeError); + assert.sameValue(desc1.configurable, false); + verifyNotConfigurable(obj, "prop"); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-565.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-565.js index 6876df4153ea1daea56f7b7f9812ceba7b49fbd8..ad1c54da44f8e02fd65d7aa3796d35a9a491f84d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-565.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-565.js @@ -9,30 +9,30 @@ description: > [[Configurable]] is false) to a data property ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - var verifySetFunc = "data"; - var setFunc = function (value) { - verifySetFunc = value; - }; +var verifySetFunc = "data"; +var setFunc = function(value) { + verifySetFunc = value; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("get"), 'desc1.hasOwnProperty("get") !== true'); assert.sameValue(desc2.hasOwnProperty("value"), false, 'desc2.hasOwnProperty("value")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-566.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-566.js index f3deecae487c879e1f3ec027e55c3826e5d2d305..b878b5e1f50e98ab52d8792080ed4782c3edac81 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-566.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-566.js @@ -8,16 +8,16 @@ description: > argument ---*/ - var obj = {}; - var getFunc = function () { - return 2010; - }; +var obj = {}; +var getFunc = function() { + return 2010; +}; - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-567.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-567.js index b61e13a1f4ac339586376fc3fd3b554215a5980c..65022ccabc02b1e21f62ac19a472963fa7b7c2de 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-567.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-567.js @@ -8,16 +8,16 @@ description: > argument ---*/ - var obj = {}; - var getFunc = function (arg1) { - return 2010; - }; +var obj = {}; +var getFunc = function(arg1) { + return 2010; +}; - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-568.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-568.js index 9a37b39d547907b7646f1a92f3fba9a413dcb008..6277ce348e33f04bd1c6909a0c854255c6690967 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-568.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-568.js @@ -8,16 +8,16 @@ description: > arguments ---*/ - var obj = {}; - var getFunc = function (arg1, arg2) { - return 2010; - }; +var obj = {}; +var getFunc = function(arg1, arg2) { + return 2010; +}; - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, 2010, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-569.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-569.js index 9c1564a68325e8ab42bbb1faedc26679d95e373a..555136872aec394daea2d36f2542c66931c11d94 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-569.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-569.js @@ -8,17 +8,17 @@ description: > global variable ---*/ - var obj = {}; - var globalVariable = 20; - var getFunc = function () { - globalVariable = 2010; - return globalVariable; - }; +var obj = {}; +var globalVariable = 20; +var getFunc = function() { + globalVariable = 2010; + return globalVariable; +}; - Object.defineProperty(obj, "prop", { - get: getFunc - }); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + get: getFunc +}); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-57.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-57.js index dc56011a0f909a8942e36e415e17b3a4ed865eb5..e94a09d884f95f0cff05bffb07195b7fc221575b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-57.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-57.js @@ -10,27 +10,27 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var setFunc = function (value) { - obj.setVerifyHelpProp = value; +var setFunc = function(value) { + obj.setVerifyHelpProp = value; }; -var getFunc = function () { - return 14; +var getFunc = function() { + return 14; }; Object.defineProperty(obj, "property", { - get: function () { - return 11; - }, - set: function (value) { }, - configurable: true, - enumerable: true + get: function() { + return 11; + }, + set: function(value) {}, + configurable: true, + enumerable: true }); Object.defineProperty(obj, "property", { - get: getFunc, - set: setFunc, - configurable: false, - enumerable: false + get: getFunc, + set: setFunc, + configurable: false, + enumerable: false }); verifyEqualTo(obj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-570.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-570.js index 5aa6cada3525aa77545999adf19b3d508d1aa2f3..c06f383b745079340f7452501ee7a685d6325d1d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-570.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-570.js @@ -8,17 +8,17 @@ description: > contains return statement ---*/ - var obj = {}; - var verifyExecute = false; - var getFunc = function () { - verifyExecute = true; - }; +var obj = {}; +var verifyExecute = false; +var getFunc = function() { + verifyExecute = true; +}; - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(desc.get, getFunc, 'desc.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-571.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-571.js index 308b6693b1f6d8c1e341b3657235595a005f4c61..7037e7c8d3e3ca0fe5e4506cac9defdb5d1f5771 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-571.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-571.js @@ -8,18 +8,18 @@ description: > 'this' object into statement(s) ---*/ - var obj = { - len: 2010 - }; - var getFunc = function () { - return this; - }; +var obj = { + len: 2010 +}; +var getFunc = function() { + return this; +}; - Object.defineProperty(obj, "prop", { - get: getFunc - }); +Object.defineProperty(obj, "prop", { + get: getFunc +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(obj.prop, obj, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js index 74d43c55a95f748fd32fb365ffda691e3eb059eb..84e9e1ffdd380fa14001efbb98687a6f7409d73a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js @@ -8,15 +8,15 @@ description: > argument ---*/ - var obj = {}; +var obj = {}; - var setFunc = function () { }; +var setFunc = function() {}; - Object.defineProperty(obj, "prop", { - set: setFunc - }); +Object.defineProperty(obj, "prop", { + set: setFunc +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-573.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-573.js index f6d79774d5d4b95e1383d3372c43bbffc84cbd49..6dff586f78efe741e865c5c2808ab728c764a103 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-573.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-573.js @@ -8,17 +8,17 @@ description: > argument ---*/ - var obj = {}; +var obj = {}; - var verifySetFunc = 20; - var setFunc = function (value) { - verifySetFunc = value; - }; - Object.defineProperty(obj, "prop", { - set: setFunc - }); - obj.prop = 2010; - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var verifySetFunc = 20; +var setFunc = function(value) { + verifySetFunc = value; +}; +Object.defineProperty(obj, "prop", { + set: setFunc +}); +obj.prop = 2010; +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-574.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-574.js index 0d63001c646d0cbdfd4d845edd891aab38c59fd6..ea9a74c7b1a73bf93c4fcc3948477e4f8e2a4e4d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-574.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-574.js @@ -8,19 +8,19 @@ description: > arguments ---*/ - var obj = {}; - var firstArg = 12; - var secondArg = 12; +var obj = {}; +var firstArg = 12; +var secondArg = 12; - var setFunc = function (a, b) { - firstArg = a; - secondArg = b; - }; - Object.defineProperty(obj, "prop", { - set: setFunc - }); - obj.prop = 100; - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var setFunc = function(a, b) { + firstArg = a; + secondArg = b; +}; +Object.defineProperty(obj, "prop", { + set: setFunc +}); +obj.prop = 100; +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-575.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-575.js index 7a0601c564c5fff5e96f42af055f726774797acf..d2eb6b26c65e3edf0189aacd0c71f6dcf3961a15 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-575.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-575.js @@ -8,17 +8,17 @@ description: > global variable ---*/ - var obj = {}; - var globalVariable = 20; - var setFunc = function () { - globalVariable = 2010; - }; +var obj = {}; +var globalVariable = 20; +var setFunc = function() { + globalVariable = 2010; +}; - Object.defineProperty(obj, "prop", { - set: setFunc - }); - obj.prop = 10; - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + set: setFunc +}); +obj.prop = 10; +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js index 36c181458287b3ca9651a24e5925a2a99660cbc7..2723d7053949fbbda0f65633e856cacb1a15def3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js @@ -8,17 +8,17 @@ description: > return statement ---*/ - var obj = {}; +var obj = {}; - var setFunc = function () { - return 2010; - }; +var setFunc = function() { + return 2010; +}; - Object.defineProperty(obj, "prop", { - set: setFunc - }); +Object.defineProperty(obj, "prop", { + set: setFunc +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-577.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-577.js index a7bba5a0e2219b1e363c7e67c6cb9f95fbb01109..5d3156e76dfa25e062b87352891cae6efdeb4bfb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-577.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-577.js @@ -8,18 +8,18 @@ description: > 'this' object into statement(s) ---*/ - var obj = {}; +var obj = {}; - var setFunc = function (value) { - this.len = value; - }; +var setFunc = function(value) { + this.len = value; +}; - Object.defineProperty(obj, "prop", { - set: setFunc - }); - obj.prop = 2010; +Object.defineProperty(obj, "prop", { + set: setFunc +}); +obj.prop = 2010; - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-578.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-578.js index eee9a7cfefec9d7f837910ac943b3c2a49b3b2c4..7b5c723c8c7f074847cbeccfde359dccffb60f31 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-578.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-578.js @@ -8,19 +8,19 @@ description: > [[Prototype]] internal property is correct (String instance) ---*/ - var data = "data"; +var data = "data"; - Object.defineProperty(String.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); - var strObj = new String(); +Object.defineProperty(String.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); +var strObj = new String(); assert.sameValue(strObj.hasOwnProperty("prop"), false, 'strObj.hasOwnProperty("prop")'); assert.sameValue(strObj.prop, "data", 'strObj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-579.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-579.js index e910f3335826df7ab336615a031ed563b1da8717..c8ecdb820e7756438bf09097963edb79fb16229c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-579.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-579.js @@ -8,20 +8,20 @@ description: > instance) ---*/ - var data = "data"; +var data = "data"; - Object.defineProperty(Array.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); - var arrObj = []; - arrObj.prop = "myOwnProperty"; +Object.defineProperty(Array.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); +var arrObj = []; +arrObj.prop = "myOwnProperty"; assert.sameValue(arrObj.hasOwnProperty("prop"), false, 'arrObj.hasOwnProperty("prop")'); assert.sameValue(arrObj.prop, "myOwnProperty", 'arrObj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js index 2870587d239de301916f8710b968eb09fa8e1387..4fa1be7baaa38b77647530261beb7aa372501422 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js @@ -22,4 +22,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js index d4c99db0701837005ade6b797512d6a6ba300c5d..b88e32e565f711ef0a0a309a7209767d18903149 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js @@ -8,25 +8,25 @@ description: > instance) ---*/ - var data = "data"; +var data = "data"; - Object.defineProperty(Boolean.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); - var boolObj = new Boolean(); - var verifyEnumerable = false; - for (var p in boolObj) { - if(p === "prop") { - verifyEnumerable = true; - } - } +Object.defineProperty(Boolean.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); +var boolObj = new Boolean(); +var verifyEnumerable = false; +for (var p in boolObj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(boolObj.hasOwnProperty("prop"), false, 'boolObj.hasOwnProperty("prop")'); assert(verifyEnumerable, 'verifyEnumerable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-581.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-581.js index 2931f9c8f4a6e27207a6320357d51bc302f6b661..9df0254a22b0220539c5fbfb0908c63d759c8068 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-581.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-581.js @@ -9,17 +9,17 @@ includes: [propertyHelper.js] var data = "data"; - Object.defineProperty(Number.prototype, "prop", { - get: function () { - return data; - }, - enumerable: false, - configurable: true - }); - var numObj = new Number(); +Object.defineProperty(Number.prototype, "prop", { + get: function() { + return data; + }, + enumerable: false, + configurable: true +}); +var numObj = new Number(); - verifyNotWritable(numObj, "prop", "nocheck"); +verifyNotWritable(numObj, "prop", "nocheck"); - assert(!numObj.hasOwnProperty("prop")); - assert.sameValue(numObj.prop, "data"); - assert.sameValue(data, "data"); +assert(!numObj.hasOwnProperty("prop")); +assert.sameValue(numObj.prop, "data"); +assert.sameValue(data, "data"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-582.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-582.js index 7895b7455278e91665f9bcfe9e8c3f88ae1035c6..af5292564162aaaf09281312d047db8e459d98be 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-582.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-582.js @@ -8,22 +8,22 @@ description: > instance) ---*/ - var data = "data"; +var data = "data"; - Object.defineProperty(Function.prototype, "prop", { - get: function () { - return data; - }, - enumerable: false, - configurable: true - }); - var funObj = function () { }; - var verifyEnumerable = false; - for (var p in funObj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +Object.defineProperty(Function.prototype, "prop", { + get: function() { + return data; + }, + enumerable: false, + configurable: true +}); +var funObj = function() {}; +var verifyEnumerable = false; +for (var p in funObj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(funObj.hasOwnProperty("prop"), false, 'funObj.hasOwnProperty("prop")'); assert.sameValue(verifyEnumerable, false, 'verifyEnumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-583.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-583.js index 97b7352fde3e0b3be2853db05232e44ca2a7a679..88590d4b9db6b82eed4955f25c1b4d4d656c8b10 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-583.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-583.js @@ -8,19 +8,19 @@ description: > [[Prototype]] internal property is correct (Error Instance) ---*/ - var data = "data"; +var data = "data"; - Object.defineProperty(Error.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); - var errObj = new Error(); +Object.defineProperty(Error.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); +var errObj = new Error(); assert.sameValue(errObj.hasOwnProperty("prop"), false, 'errObj.hasOwnProperty("prop")'); assert.sameValue(errObj.prop, "data", 'errObj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-584.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-584.js index 716431a7bbf24c9744a348762f59a2c3af954f0b..c12f8d01363b2bdab2191cf8f1f313b2bf631b00 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-584.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-584.js @@ -6,20 +6,20 @@ es5id: 15.2.3.6-4-584 description: ES5 Attributes - Failed to add property into object (Date instance) ---*/ - var data = "data"; +var data = "data"; - Object.defineProperty(Date.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); - var dateObj = new Date(); - dateObj.prop = "myOwnProperty"; +Object.defineProperty(Date.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); +var dateObj = new Date(); +dateObj.prop = "myOwnProperty"; assert.sameValue(dateObj.hasOwnProperty("prop"), false, 'dateObj.hasOwnProperty("prop")'); assert.sameValue(dateObj.prop, "myOwnProperty", 'dateObj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-585.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-585.js index b58e5941696fe9532c205e04f2fcbba0e53ff5a8..7a292295a07d8c6465044da421a58b1749fcb76f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-585.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-585.js @@ -6,25 +6,25 @@ es5id: 15.2.3.6-4-585 description: ES5 Attributes - Inherited property is enumerable (RegExp instance) ---*/ - var data = "data"; +var data = "data"; - Object.defineProperty(RegExp.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); - var regObj = new RegExp(); - var verifyEnumerable = false; - for (var p in regObj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +Object.defineProperty(RegExp.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); +var regObj = new RegExp(); +var verifyEnumerable = false; +for (var p in regObj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(regObj.hasOwnProperty("prop"), false, 'regObj.hasOwnProperty("prop")'); assert(verifyEnumerable, 'verifyEnumerable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-586.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-586.js index 37c718de92e39bea8f939f4b0cf0a94506c989a9..44fdf51918e53b350c08f19f451ede9a61c9838c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-586.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-586.js @@ -11,15 +11,15 @@ includes: [propertyHelper.js] var data = "data"; - Object.defineProperty(Object.prototype, "prop", { - get: function () { - return data; - }, - enumerable: false, - configurable: true - }); - verifyNotWritable(JSON, "prop", "nocheck"); +Object.defineProperty(Object.prototype, "prop", { + get: function() { + return data; + }, + enumerable: false, + configurable: true +}); +verifyNotWritable(JSON, "prop", "nocheck"); - assert(!JSON.hasOwnProperty("prop")); - assert.sameValue(JSON.prop, "data"); - assert.sameValue(data, "data"); +assert(!JSON.hasOwnProperty("prop")); +assert.sameValue(JSON.prop, "data"); +assert.sameValue(data, "data"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-587.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-587.js index 441dfe023fe7c6df5bb174733ece6b363bd61642..2994155b00608a4ea65620dcf8ef55dca08433b2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-587.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-587.js @@ -6,21 +6,21 @@ es5id: 15.2.3.6-4-587 description: ES5 Attributes - Inherited property is non-enumerable (Math) ---*/ - var data = "data"; +var data = "data"; - Object.defineProperty(Object.prototype, "prop", { - get: function () { - return data; - }, - enumerable: false, - configurable: true - }); - var verifyEnumerable = false; - for (var p in Math) { - if (p === "prop") { - verifyEnumerable = true; - } - } +Object.defineProperty(Object.prototype, "prop", { + get: function() { + return data; + }, + enumerable: false, + configurable: true +}); +var verifyEnumerable = false; +for (var p in Math) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(Math.hasOwnProperty("prop"), false, 'Math.hasOwnProperty("prop")'); assert.sameValue(verifyEnumerable, false, 'verifyEnumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-588.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-588.js index 09d635b6400aaf1c43cf7fd39847dfbc4686af62..38cb3ff2c8405192a2905467ac99bcc30264087c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-588.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-588.js @@ -8,43 +8,43 @@ description: > [[Prototype]] internal property is correct (Object.create) ---*/ - var appointment = {}; +var appointment = {}; - var data1 = 1001; - Object.defineProperty(appointment, "startTime", { - get: function () { - return data1; - }, - enumerable: true, - configurable: false - }); - var data2 = "NAME"; - Object.defineProperty(appointment, "name", { - get: function () { - return data2; - }, - set: function (value) { - data2 = value; - }, - enumerable: true, - configurable: true - }); +var data1 = 1001; +Object.defineProperty(appointment, "startTime", { + get: function() { + return data1; + }, + enumerable: true, + configurable: false +}); +var data2 = "NAME"; +Object.defineProperty(appointment, "name", { + get: function() { + return data2; + }, + set: function(value) { + data2 = value; + }, + enumerable: true, + configurable: true +}); - var meeting = Object.create(appointment); - var data3 = "In-person meeting"; - Object.defineProperty(meeting, "conferenceCall", { - get: function () { - return data3; - }, - enumerable: true, - configurable: false - }); +var meeting = Object.create(appointment); +var data3 = "In-person meeting"; +Object.defineProperty(meeting, "conferenceCall", { + get: function() { + return data3; + }, + enumerable: true, + configurable: false +}); - var teamMeeting = Object.create(meeting); +var teamMeeting = Object.create(meeting); - var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && - !teamMeeting.hasOwnProperty("startTime") && - !teamMeeting.hasOwnProperty('conferenceCall'); +var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && + !teamMeeting.hasOwnProperty("startTime") && + !teamMeeting.hasOwnProperty('conferenceCall'); assert(hasOwnProperty, 'hasOwnProperty !== true'); assert.sameValue(teamMeeting.name, "NAME", 'teamMeeting.name'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-589.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-589.js index d3c303a973edf0d5e00fb243a0818495fa9c99f9..6bfcba31730971330474ab33d5f5fbbdec88080b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-589.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-589.js @@ -8,53 +8,53 @@ description: > [[Proptotype]] internal property (Object.create) ---*/ - var appointment = {}; +var appointment = {}; - var data1 = 1001; - Object.defineProperty(appointment, "startTime", { - get: function () { - return data1; - }, - set: function (value) { - data1 = value; - }, - enumerable: true, - configurable: true - }); - var data2 = "NAME"; - Object.defineProperty(appointment, "name", { - get: function () { - return data2; - }, - set: function (value) { - data2 = value; - }, - enumerable: true, - configurable: false - }); +var data1 = 1001; +Object.defineProperty(appointment, "startTime", { + get: function() { + return data1; + }, + set: function(value) { + data1 = value; + }, + enumerable: true, + configurable: true +}); +var data2 = "NAME"; +Object.defineProperty(appointment, "name", { + get: function() { + return data2; + }, + set: function(value) { + data2 = value; + }, + enumerable: true, + configurable: false +}); - var meeting = Object.create(appointment); - var data3 = "In-person meeting"; - Object.defineProperty(meeting, "conferenceCall", { - get: function () { - return data3; - }, - set: function (value) { - data3 = value; - }, - enumerable: true, - configurable: false - }); +var meeting = Object.create(appointment); +var data3 = "In-person meeting"; +Object.defineProperty(meeting, "conferenceCall", { + get: function() { + return data3; + }, + set: function(value) { + data3 = value; + }, + enumerable: true, + configurable: false +}); - var teamMeeting = Object.create(meeting); - teamMeeting.name = "Team Meeting"; - var dateObj = new Date("10/31/2010 08:00"); - teamMeeting.startTime = dateObj; - teamMeeting.conferenceCall = "4255551212"; +var teamMeeting = Object.create(meeting); +teamMeeting.name = "Team Meeting"; +var dateObj = new Date("10/31/2010 08:00"); +teamMeeting.startTime = dateObj; +teamMeeting.conferenceCall = "4255551212"; - var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && - !teamMeeting.hasOwnProperty("startTime") && - !teamMeeting.hasOwnProperty('conferenceCall'); +var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && + !teamMeeting.hasOwnProperty("startTime") && + !teamMeeting.hasOwnProperty('conferenceCall'); assert(hasOwnProperty, 'hasOwnProperty !== true'); assert.sameValue(teamMeeting.name, "Team Meeting", 'teamMeeting.name'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js index f8928ac1f1f4163f32727b6da2f58cdcc36677c1..e8eeb3ca6d2408154281f0b0f8418f26eff6053f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js @@ -13,15 +13,16 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 0; + return 0; } + function setFunc(value) { - obj.helpVerifySet = value; + obj.helpVerifySet = value; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); Object.defineProperty(obj, "foo", {}); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js index 3e326be2e60f0094100d6ea8ede968892097ee1f..58b2a46f9e52d22222ac2b85eb739b4415fa251b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js @@ -6,64 +6,64 @@ es5id: 15.2.3.6-4-590 description: ES5 Attributes - Inherited property is enumerable (Object.create) ---*/ - var appointment = {}; +var appointment = {}; - var data1 = 1001; - Object.defineProperty(appointment, "startTime", { - get: function () { - return data1; - }, - set: function (value) { - data1 = value; - }, - enumerable: true, - configurable: true - }); - var data2 = "NAME"; - Object.defineProperty(appointment, "name", { - get: function () { - return data2; - }, - set: function (value) { - data2 = value; - }, - enumerable: true, - configurable: false - }); +var data1 = 1001; +Object.defineProperty(appointment, "startTime", { + get: function() { + return data1; + }, + set: function(value) { + data1 = value; + }, + enumerable: true, + configurable: true +}); +var data2 = "NAME"; +Object.defineProperty(appointment, "name", { + get: function() { + return data2; + }, + set: function(value) { + data2 = value; + }, + enumerable: true, + configurable: false +}); - var meeting = Object.create(appointment); - var data3 = "In-person meeting"; - Object.defineProperty(meeting, "conferenceCall", { - get: function () { - return data3; - }, - set: function (value) { - data3 = value; - }, - enumerable: true, - configurable: false - }); +var meeting = Object.create(appointment); +var data3 = "In-person meeting"; +Object.defineProperty(meeting, "conferenceCall", { + get: function() { + return data3; + }, + set: function(value) { + data3 = value; + }, + enumerable: true, + configurable: false +}); - var teamMeeting = Object.create(meeting); +var teamMeeting = Object.create(meeting); - var verifyTimeProp = false; - var verifyNameProp = false; - var verifyCallProp = false; - for (var p in teamMeeting) { - if (p === "startTime") { - verifyTimeProp = true; - } - if (p === "name") { - verifyNameProp = true; - } - if (p === "conferenceCall") { - verifyCallProp = true; - } - } +var verifyTimeProp = false; +var verifyNameProp = false; +var verifyCallProp = false; +for (var p in teamMeeting) { + if (p === "startTime") { + verifyTimeProp = true; + } + if (p === "name") { + verifyNameProp = true; + } + if (p === "conferenceCall") { + verifyCallProp = true; + } +} - var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && - !teamMeeting.hasOwnProperty("startTime") && - !teamMeeting.hasOwnProperty('conferenceCall'); +var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && + !teamMeeting.hasOwnProperty("startTime") && + !teamMeeting.hasOwnProperty('conferenceCall'); assert(hasOwnProperty, 'hasOwnProperty !== true'); assert(verifyTimeProp, 'verifyTimeProp !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-591.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-591.js index fd0e921993ff66cd3851eb4169b14d3fa9677864..8b1eb7312835477bf5c872b882b8ddea00ba17e2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-591.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-591.js @@ -13,29 +13,29 @@ var appointment = {}; var data1 = 1001; Object.defineProperty(appointment, "startTime", { - get: function () { - return data1; - }, - enumerable: false, - configurable: false + get: function() { + return data1; + }, + enumerable: false, + configurable: false }); var data2 = "NAME"; Object.defineProperty(appointment, "name", { - get: function () { - return data2; - }, - enumerable: false, - configurable: true + get: function() { + return data2; + }, + enumerable: false, + configurable: true }); var meeting = Object.create(appointment); var data3 = "In-person meeting"; Object.defineProperty(meeting, "conferenceCall", { - get: function () { - return data3; - }, - enumerable: false, - configurable: false + get: function() { + return data3; + }, + enumerable: false, + configurable: false }); var teamMeeting = Object.create(meeting); @@ -45,22 +45,22 @@ verifyNotWritable(teamMeeting, "startTime", "nocheck"); verifyNotWritable(teamMeeting, "conferenceCall", "nocheck"); try { - teamMeeting.name = "IE Team Meeting"; + teamMeeting.name = "IE Team Meeting"; } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); } try { - var dateObj = new Date("10/31/2010 08:00"); - teamMeeting.startTime = dateObj; + var dateObj = new Date("10/31/2010 08:00"); + teamMeeting.startTime = dateObj; } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); } try { - teamMeeting.conferenceCall = "4255551212"; + teamMeeting.conferenceCall = "4255551212"; } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-592.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-592.js index 40784147f2e4ef56ace5b57416022d1fcd945e2a..26d450b26a882a40e6d8b99d43857b908b0fa8e6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-592.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-592.js @@ -8,55 +8,55 @@ description: > (Object.create) ---*/ - var appointment = {}; +var appointment = {}; - var data1 = 1001; - Object.defineProperty(appointment, "startTime", { - get: function () { - return data1; - }, - enumerable: false, - configurable: true - }); - var data2 = "NAME"; - Object.defineProperty(appointment, "name", { - get: function () { - return data2; - }, - enumerable: false, - configurable: false - }); +var data1 = 1001; +Object.defineProperty(appointment, "startTime", { + get: function() { + return data1; + }, + enumerable: false, + configurable: true +}); +var data2 = "NAME"; +Object.defineProperty(appointment, "name", { + get: function() { + return data2; + }, + enumerable: false, + configurable: false +}); - var meeting = Object.create(appointment); - var data3 = "In-person meeting"; - Object.defineProperty(meeting, "conferenceCall", { - get: function () { - return data3; - }, - enumerable: false, - configurable: true - }); +var meeting = Object.create(appointment); +var data3 = "In-person meeting"; +Object.defineProperty(meeting, "conferenceCall", { + get: function() { + return data3; + }, + enumerable: false, + configurable: true +}); - var teamMeeting = Object.create(meeting); +var teamMeeting = Object.create(meeting); - var verifyTimeProp = false; - var verifyNameProp = false; - var verifyCallProp = false; - for (var p in teamMeeting) { - if (p === "startTime") { - verifyTimeProp = true; - } - if (p === "name") { - verifyNameProp = true; - } - if (p === "conferenceCall") { - verifyCallProp = true; - } - } +var verifyTimeProp = false; +var verifyNameProp = false; +var verifyCallProp = false; +for (var p in teamMeeting) { + if (p === "startTime") { + verifyTimeProp = true; + } + if (p === "name") { + verifyNameProp = true; + } + if (p === "conferenceCall") { + verifyCallProp = true; + } +} - var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && - !teamMeeting.hasOwnProperty("startTime") && - !teamMeeting.hasOwnProperty('conferenceCall'); +var hasOwnProperty = !teamMeeting.hasOwnProperty("name") && + !teamMeeting.hasOwnProperty("startTime") && + !teamMeeting.hasOwnProperty('conferenceCall'); assert(hasOwnProperty, 'hasOwnProperty !== true'); assert.sameValue(verifyTimeProp, false, 'verifyTimeProp'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-593.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-593.js index 877f17efb02b36a445c2a296afb90f3a936c3aaa..7d53609fafaf3dd2288e7dd07a09b234216e459f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-593.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-593.js @@ -9,21 +9,21 @@ description: > (Function.prototype.bind) ---*/ - var foo = function () { }; - var data = "data"; +var foo = function() {}; +var data = "data"; - Object.defineProperty(Function.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); - var obj = foo.bind({}); +var obj = foo.bind({}); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); assert.sameValue(obj.prop, data, 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-594.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-594.js index 8d572667987337ae3945d7607b51ea3450254b06..f3194743e6eb3c1d541b972ef15881f622d2a8fe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-594.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-594.js @@ -8,22 +8,22 @@ description: > [[Proptotype]] internal property (Function.prototype.bind) ---*/ - var foo = function () { }; - var data = "data"; +var foo = function() {}; +var data = "data"; - Object.defineProperty(Function.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); - var obj = foo.bind({}); - obj.prop = "overrideData"; +var obj = foo.bind({}); +obj.prop = "overrideData"; assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); assert.sameValue(obj.prop, "overrideData", 'obj.prop'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-595.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-595.js index 2f800ac1cd9481e5cb942bb4752b677b86ced8c9..f533cbdc611179b951c6d88c1a4c0215bcbc8ccf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-595.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-595.js @@ -8,28 +8,28 @@ description: > (Function.prototype.bind) ---*/ - var foo = function () { }; - var data = "data"; +var foo = function() {}; +var data = "data"; - Object.defineProperty(Function.prototype, "prop", { - get: function () { - return data; - }, - set: function (value) { - data = value; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + get: function() { + return data; + }, + set: function(value) { + data = value; + }, + enumerable: true, + configurable: true +}); - var obj = foo.bind({}); +var obj = foo.bind({}); - var verifyEnumerable = false; - for (var p in obj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in obj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); assert(verifyEnumerable, 'verifyEnumerable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-596.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-596.js index 5489deaa0a87737140ea1de7077072f9cf81b9a5..98ba76b3dbbf1e40cd577dbbb41f1db71064fed4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-596.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-596.js @@ -9,19 +9,19 @@ description: > includes: [propertyHelper.js] ---*/ -var foo = function () { }; +var foo = function() {}; var data = "data"; - Object.defineProperty(Function.prototype, "prop", { - get: function () { - return data; - }, - enumerable: false, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + get: function() { + return data; + }, + enumerable: false, + configurable: true +}); - var obj = foo.bind({}); +var obj = foo.bind({}); - assert(!obj.hasOwnProperty("prop")); - verifyNotWritable(obj, "prop", "nocheck"); - assert.sameValue(obj.prop, "data");; +assert(!obj.hasOwnProperty("prop")); +verifyNotWritable(obj, "prop", "nocheck"); +assert.sameValue(obj.prop, "data");; diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-597.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-597.js index 9a46c54cd9064d0f4b8d37895432f535f7a7b1ee..83200856004a39747769386a08568ba2c1816c21 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-597.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-597.js @@ -8,25 +8,25 @@ description: > (Function.prototype.bind) ---*/ - var foo = function () { }; - var data = "data"; +var foo = function() {}; +var data = "data"; - Object.defineProperty(Function.prototype, "prop", { - get: function () { - return data; - }, - enumerable: false, - configurable: true - }); +Object.defineProperty(Function.prototype, "prop", { + get: function() { + return data; + }, + enumerable: false, + configurable: true +}); - var obj = foo.bind({}); +var obj = foo.bind({}); - var verifyEnumerable = false; - for (var p in obj) { - if (p === "prop") { - verifyEnumerable = true; - } - } +var verifyEnumerable = false; +for (var p in obj) { + if (p === "prop") { + verifyEnumerable = true; + } +} assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); assert.sameValue(verifyEnumerable, false, 'verifyEnumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js index 55420c69fc75f695dfdf47e68ab84b87def969d1..b1a5e8a5c73a1c5de1067f25b7182e7fb3651cd5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf"); +var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.getPrototypeOf; +var temp = Object.getPrototypeOf; - Object.getPrototypeOf = "2010"; +Object.getPrototypeOf = "2010"; - var isWritable = (Object.getPrototypeOf === "2010"); +var isWritable = (Object.getPrototypeOf === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "getPrototypeOf") { - isEnumerable = true; - } - } - - delete Object.getPrototypeOf; +for (var prop in Object) { + if (prop === "getPrototypeOf") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("getPrototypeOf"); +delete Object.getPrototypeOf; + +var isConfigurable = !Object.hasOwnProperty("getPrototypeOf"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js index 00e61a739d90799e7e1d84e3bac7185f0a48df56..129ad540293fdb3e3c5208a539146061b32cdb17 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js @@ -8,27 +8,27 @@ description: > are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor"); +var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.getOwnPropertyDescriptor; +var temp = Object.getOwnPropertyDescriptor; - Object.getOwnPropertyDescriptor = "2010"; +Object.getOwnPropertyDescriptor = "2010"; - var isWritable = (Object.getOwnPropertyDescriptor === "2010"); +var isWritable = (Object.getOwnPropertyDescriptor === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "getOwnPropertyDescriptor") { - isEnumerable = true; - } - } +for (var prop in Object) { + if (prop === "getOwnPropertyDescriptor") { + isEnumerable = true; + } +} - delete Object.getOwnPropertyDescriptor; +delete Object.getOwnPropertyDescriptor; - var isConfigurable = !Object.hasOwnProperty("getOwnPropertyDescriptor"); +var isConfigurable = !Object.hasOwnProperty("getOwnPropertyDescriptor"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-6.js index f96e56cab045c3e873e58150698c9e7c15b9316e..0d4c3e19f78644f073de48d14a1aa5bdda55f6cc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-6.js @@ -13,32 +13,32 @@ description: > accessor desc ---*/ - function sameAccessorDescriptorValues(d1, d2) { - return (d1.get == d2.get && - d1.enumerable == d2.enumerable && - d1.configurable == d2.configurable); - } +function sameAccessorDescriptorValues(d1, d2) { + return (d1.get == d2.get && + d1.enumerable == d2.enumerable && + d1.configurable == d2.configurable); +} - var o = {}; +var o = {}; - // create an accessor property with the following attributes: - // enumerable: true, configurable: true - var desc = { - get: function () {}, - enumerable: true, - configurable: true - }; +// create an accessor property with the following attributes: +// enumerable: true, configurable: true +var desc = { + get: function() {}, + enumerable: true, + configurable: true +}; - Object.defineProperty(o, "foo", desc); +Object.defineProperty(o, "foo", desc); - // query for, and save, the desc. A subsequent call to defineProperty - // with the same desc should not disturb the property definition. - var d1 = Object.getOwnPropertyDescriptor(o, "foo"); +// query for, and save, the desc. A subsequent call to defineProperty +// with the same desc should not disturb the property definition. +var d1 = Object.getOwnPropertyDescriptor(o, "foo"); - // now, redefine the property with the same descriptor - // the property defintion should not get disturbed. - Object.defineProperty(o, "foo", desc); +// now, redefine the property with the same descriptor +// the property defintion should not get disturbed. +Object.defineProperty(o, "foo", desc); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(sameAccessorDescriptorValues(d1, d2), true, 'sameAccessorDescriptorValues(d1, d2)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js index 906ae5460753077191737648f575a216bb799eca..12e6d66daa78eee7c88485da641758abe2ffee50 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js @@ -14,7 +14,9 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: "abc" }); +Object.defineProperty(obj, "foo", { + value: "abc" +}); verifyEqualTo(obj, "foo", "abc"); verifyWritable(obj, "foo"); @@ -22,4 +24,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js index 7f1ab0b27baad49bcd930379398be912bf1c6349..c9775c52fa77594c6d8430452b0639778fc1560b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames"); +var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.getOwnPropertyNames; +var temp = Object.getOwnPropertyNames; - Object.getOwnPropertyNames = "2010"; +Object.getOwnPropertyNames = "2010"; - var isWritable = (Object.getOwnPropertyNames === "2010"); +var isWritable = (Object.getOwnPropertyNames === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "getOwnPropertyNames") { - isEnumerable = true; - } - } - - delete Object.getOwnPropertyNames; +for (var prop in Object) { + if (prop === "getOwnPropertyNames") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("getOwnPropertyNames"); +delete Object.getOwnPropertyNames; + +var isConfigurable = !Object.hasOwnProperty("getOwnPropertyNames"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js index b9bcd8dc3928241455b4f0f8d4883c28781b9da2..930b2b84190c380979f65520261de63d6f81b051 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-601 description: ES5 Attributes - all attributes in Object.create are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "create"); +var desc = Object.getOwnPropertyDescriptor(Object, "create"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.create; +var temp = Object.create; - Object.create = "2010"; +Object.create = "2010"; - var isWritable = (Object.create === "2010"); +var isWritable = (Object.create === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "create") { - isEnumerable = true; - } - } - - delete Object.create; +for (var prop in Object) { + if (prop === "create") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("create"); +delete Object.create; + +var isConfigurable = !Object.hasOwnProperty("create"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js index d2f6f0de24d6a6929e061db82b799f97ff0c53c0..61eb16bb601eaca80b188558703807b1018df6f5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js @@ -8,26 +8,26 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty"); +var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.defineProperty; +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var temp = Object.defineProperty; - Object.defineProperty = "2010"; +Object.defineProperty = "2010"; - var isWritable = (Object.defineProperty === "2010"); +var isWritable = (Object.defineProperty === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "defineProperty") { - isEnumerable = true; - } - } +for (var prop in Object) { + if (prop === "defineProperty") { + isEnumerable = true; + } +} - delete Object.defineProperty; +delete Object.defineProperty; - var isConfigurable = !Object.hasOwnProperty("defineProperty"); +var isConfigurable = !Object.hasOwnProperty("defineProperty"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js index 7959a39ee2d3621cd781ff4541c35de3a40d5a11..0fb05283a4b4d801d405227bde31fab0939686ac 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties"); +var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.defineProperties; +var temp = Object.defineProperties; - Object.defineProperties = "2010"; +Object.defineProperties = "2010"; - var isWritable = (Object.defineProperties === "2010"); +var isWritable = (Object.defineProperties === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "defineProperties") { - isEnumerable = true; - } - } - - delete Object.defineProperties; +for (var prop in Object) { + if (prop === "defineProperties") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("defineProperties"); +delete Object.defineProperties; + +var isConfigurable = !Object.hasOwnProperty("defineProperties"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js index 497ebad757995270f6b0c99459abd2ba88d03996..ec234ccef855ac08ace4d2f42157392ea66a3223 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-604 description: ES5 Attributes - all attributes in Object.seal are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "seal"); +var desc = Object.getOwnPropertyDescriptor(Object, "seal"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.seal; +var temp = Object.seal; - Object.seal = "2010"; +Object.seal = "2010"; - var isWritable = (Object.seal === "2010"); +var isWritable = (Object.seal === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "seal") { - isEnumerable = true; - } - } - - delete Object.seal; +for (var prop in Object) { + if (prop === "seal") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("seal"); +delete Object.seal; + +var isConfigurable = !Object.hasOwnProperty("seal"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js index 45952f26c75646f187b6eb57ba8c45615c250941..bf120a7f0a896d869fcfca351ee98c9e61050d79 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-605 description: ES5 Attributes - all attributes in Object.freeze are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "freeze"); +var desc = Object.getOwnPropertyDescriptor(Object, "freeze"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.freeze; +var temp = Object.freeze; - Object.freeze = "2010"; +Object.freeze = "2010"; - var isWritable = (Object.freeze === "2010"); +var isWritable = (Object.freeze === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "freeze") { - isEnumerable = true; - } - } - - delete Object.freeze; +for (var prop in Object) { + if (prop === "freeze") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("freeze"); +delete Object.freeze; + +var isConfigurable = !Object.hasOwnProperty("freeze"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js index a3621fdd101ebde86bfbeb3a10e52d2fc8a106e3..7a6a177e2efcd14f07f73cc1d41208afb731af40 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions"); +var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.preventExtensions; +var temp = Object.preventExtensions; - Object.preventExtensions = "2010"; +Object.preventExtensions = "2010"; - var isWritable = (Object.preventExtensions === "2010"); +var isWritable = (Object.preventExtensions === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "preventExtensions") { - isEnumerable = true; - } - } - - delete Object.preventExtensions; +for (var prop in Object) { + if (prop === "preventExtensions") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("preventExtensions"); +delete Object.preventExtensions; + +var isConfigurable = !Object.hasOwnProperty("preventExtensions"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js index 88beb3e67604cf1655be610d0dd776ad99b03aee..0713aace05ba034e557cd0b5955fd93a13c4a3f6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-607 description: ES5 Attributes - all attributes in Object.isSealed are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isSealed"); +var desc = Object.getOwnPropertyDescriptor(Object, "isSealed"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.isSealed; +var temp = Object.isSealed; - Object.isSealed = "2010"; +Object.isSealed = "2010"; - var isWritable = (Object.isSealed === "2010"); +var isWritable = (Object.isSealed === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "isSealed") { - isEnumerable = true; - } - } - - delete Object.isSealed; +for (var prop in Object) { + if (prop === "isSealed") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("isSealed"); +delete Object.isSealed; + +var isConfigurable = !Object.hasOwnProperty("isSealed"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js index f752bc678059a27d8a3291ed5d62b00d536af387..c16a7ad9c03e2a3b09d7b4c92810e0bc575bad76 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-608 description: ES5 Attributes - all attributes in Object.isFrozen are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen"); +var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.isFrozen; +var temp = Object.isFrozen; - Object.isFrozen = "2010"; +Object.isFrozen = "2010"; - var isWritable = (Object.isFrozen === "2010"); +var isWritable = (Object.isFrozen === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "isFrozen") { - isEnumerable = true; - } - } - - delete Object.isFrozen; +for (var prop in Object) { + if (prop === "isFrozen") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("isFrozen"); +delete Object.isFrozen; + +var isConfigurable = !Object.hasOwnProperty("isFrozen"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js index aa12befa7e19235ccc87dbbe4e7064643db8c759..767111461519369cec45013d54358b05e3a7d1e9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-609 description: ES5 Attributes - all attributes in Object.isExtensible are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible"); +var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.isExtensible; +var temp = Object.isExtensible; - Object.isExtensible = "2010"; +Object.isExtensible = "2010"; - var isWritable = (Object.isExtensible === "2010"); +var isWritable = (Object.isExtensible === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "isExtensible") { - isEnumerable = true; - } - } - - delete Object.isExtensible; +for (var prop in Object) { + if (prop === "isExtensible") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("isExtensible"); +delete Object.isExtensible; + +var isConfigurable = !Object.hasOwnProperty("isExtensible"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js index a07c7e4dd8f2ea2a0b8111e6b94f0bfb5c3a49f0..59ece60977b7f78284413721dbc83089d65ae10d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: undefined }); +Object.defineProperty(obj, "foo", { + value: undefined +}); -Object.defineProperty(obj, "foo", { value: undefined }); +Object.defineProperty(obj, "foo", { + value: undefined +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js index 07cc6c4d878ea4f3fe8ddeb6e3778ce691a23c13..36a508a2382f8f5fa6723faec0aeca1f7e6c9164 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-610 description: ES5 Attributes - all attributes in Object.keys are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "keys"); +var desc = Object.getOwnPropertyDescriptor(Object, "keys"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.keys; +var temp = Object.keys; - Object.keys = "2010"; +Object.keys = "2010"; - var isWritable = (Object.keys === "2010"); +var isWritable = (Object.keys === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "keys") { - isEnumerable = true; - } - } - - delete Object.keys; +for (var prop in Object) { + if (prop === "keys") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("keys"); +delete Object.keys; + +var isConfigurable = !Object.hasOwnProperty("keys"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js index aa0a5b9ce82bd714d43ec4738662dc4454421f28..65d279313c8506c8ce755b646745148dcd3db19e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind"); +var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Function.prototype.bind; +var temp = Function.prototype.bind; - Function.prototype.bind = "2010"; +Function.prototype.bind = "2010"; - var isWritable = (Function.prototype.bind === "2010"); +var isWritable = (Function.prototype.bind === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Function.prototype) { - if (prop === "bind") { - isEnumerable = true; - } - } - - delete Function.prototype.bind; +for (var prop in Function.prototype) { + if (prop === "bind") { + isEnumerable = true; + } +} - var isConfigurable = !Function.prototype.hasOwnProperty("bind"); +delete Function.prototype.bind; + +var isConfigurable = !Function.prototype.hasOwnProperty("bind"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js index 74ff9cba3a633f03c160beb163ddc435ab0d23cf..d643c1b2084502db9c359824eb7222a04a83565d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.indexOf; +var temp = Array.prototype.indexOf; - Array.prototype.indexOf = "2010"; +Array.prototype.indexOf = "2010"; - var isWritable = (Array.prototype.indexOf === "2010"); +var isWritable = (Array.prototype.indexOf === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "indexOf") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "indexOf") { + isEnumerable = true; + } +} - delete Array.prototype.indexOf; +delete Array.prototype.indexOf; - var isConfigurable = !Array.prototype.hasOwnProperty("indexOf"); +var isConfigurable = !Array.prototype.hasOwnProperty("indexOf"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-613.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-613.js index 58bf1afa629abd793de5a5fd307ecd798b9fb689..b775e09e94f3db90e6688958b406be92957a1d95 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-613.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-613.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-613 description: ES5 Attributes - all attributes in Object.lastIndexOf are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.lastIndexOf; +var temp = Array.prototype.lastIndexOf; - Array.prototype.lastIndexOf = "2010"; +Array.prototype.lastIndexOf = "2010"; - var isWritable = (Array.prototype.lastIndexOf === "2010"); +var isWritable = (Array.prototype.lastIndexOf === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "lastIndexOf") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "lastIndexOf") { + isEnumerable = true; + } +} - delete Array.prototype.lastIndexOf; +delete Array.prototype.lastIndexOf; - var isConfigurable = !Array.prototype.hasOwnProperty("lastIndexOf"); +var isConfigurable = !Array.prototype.hasOwnProperty("lastIndexOf"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-614.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-614.js index cd393df4cf0091050f95daec7d6d63ec733cc497..1a4b20786f945bac4cb7c4442b9813b5fae94dc9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-614.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-614.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.every; +var temp = Array.prototype.every; - Array.prototype.every = "2010"; +Array.prototype.every = "2010"; - var isWritable = (Array.prototype.every === "2010"); +var isWritable = (Array.prototype.every === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "every") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "every") { + isEnumerable = true; + } +} - delete Array.prototype.every; +delete Array.prototype.every; - var isConfigurable = !Array.prototype.hasOwnProperty("every"); +var isConfigurable = !Array.prototype.hasOwnProperty("every"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-615.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-615.js index 172758c2c60d59d80d1ff53d2b20fb0383c879cc..837e8922f6b3efb888c66aa1f73a2dda2fab10f9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-615.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-615.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-615 description: ES5 Attributes - all attributes in Array.prototype.some are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.some; +var temp = Array.prototype.some; - Array.prototype.some = "2010"; +Array.prototype.some = "2010"; - var isWritable = (Array.prototype.some === "2010"); +var isWritable = (Array.prototype.some === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "some") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "some") { + isEnumerable = true; + } +} - delete Array.prototype.some; +delete Array.prototype.some; - var isConfigurable = !Array.prototype.hasOwnProperty("some"); +var isConfigurable = !Array.prototype.hasOwnProperty("some"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-616.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-616.js index 4a53ab993a5a172e6f5e58376ddc23d9372f70a5..73a58e8dd624fa3e90436bac0af7101af0ea11ef 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-616.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-616.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.forEach; +var temp = Array.prototype.forEach; - Array.prototype.forEach = "2010"; +Array.prototype.forEach = "2010"; - var isWritable = (Array.prototype.forEach === "2010"); +var isWritable = (Array.prototype.forEach === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "forEach") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "forEach") { + isEnumerable = true; + } +} - delete Array.prototype.forEach; +delete Array.prototype.forEach; - var isConfigurable = !Array.prototype.hasOwnProperty("forEach"); +var isConfigurable = !Array.prototype.hasOwnProperty("forEach"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-617.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-617.js index 7e41f46c4e4ed3db3358667205ffffec8b4e133c..64509a0a09e0235611b8031c05877931886016cd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-617.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-617.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-617 description: ES5 Attributes - all attributes in Array.prototype.map are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.map; +var temp = Array.prototype.map; - Array.prototype.map = "2010"; +Array.prototype.map = "2010"; - var isWritable = (Array.prototype.map === "2010"); +var isWritable = (Array.prototype.map === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "map") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "map") { + isEnumerable = true; + } +} - delete Array.prototype.map; +delete Array.prototype.map; - var isConfigurable = !Array.prototype.hasOwnProperty("map"); +var isConfigurable = !Array.prototype.hasOwnProperty("map"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-618.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-618.js index 27492e2e35cde18ab4b56d596829c31c1e83ba16..1bac706cdc6f25b42bca3ae5fced950cddb24e98 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-618.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-618.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.filter; +var temp = Array.prototype.filter; - Array.prototype.filter = "2010"; +Array.prototype.filter = "2010"; - var isWritable = (Array.prototype.filter === "2010"); +var isWritable = (Array.prototype.filter === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "filter") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "filter") { + isEnumerable = true; + } +} - delete Array.prototype.filter; +delete Array.prototype.filter; - var isConfigurable = !Array.prototype.hasOwnProperty("filter"); +var isConfigurable = !Array.prototype.hasOwnProperty("filter"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-619.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-619.js index 408f1417da6b64b18827a15b6e767ad915961234..7a16d04bd19241df322ac96330852b1fa38f8aff 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-619.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-619.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.reduce; +var temp = Array.prototype.reduce; - Array.prototype.reduce = "2010"; +Array.prototype.reduce = "2010"; - var isWritable = (Array.prototype.reduce === "2010"); +var isWritable = (Array.prototype.reduce === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "reduce") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "reduce") { + isEnumerable = true; + } +} - delete Array.prototype.reduce; +delete Array.prototype.reduce; - var isConfigurable = !Array.prototype.hasOwnProperty("reduce"); +var isConfigurable = !Array.prototype.hasOwnProperty("reduce"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js index 6e1344b5ba77d0670e2d1f181073307df7f3633b..34ae7d592b7dda3d077d7b441a91c029ed493fb4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: null }); +Object.defineProperty(obj, "foo", { + value: null +}); -Object.defineProperty(obj, "foo", { value: null }); +Object.defineProperty(obj, "foo", { + value: null +}); verifyEqualTo(obj, "foo", null); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js index e2a9f56f50474435d33d6bbe7a04d3808f011075..dc134044bc2cda6116d1953fe5cc9f6b2f8b51c0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Array.prototype.reduceRight; +var temp = Array.prototype.reduceRight; - Array.prototype.reduceRight = "2010"; +Array.prototype.reduceRight = "2010"; - var isWritable = (Array.prototype.reduceRight === "2010"); +var isWritable = (Array.prototype.reduceRight === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Array.prototype) { - if (prop === "reduceRight") { - isEnumerable = true; - } - } +for (var prop in Array.prototype) { + if (prop === "reduceRight") { + isEnumerable = true; + } +} - delete Array.prototype.reduceRight; +delete Array.prototype.reduceRight; - var isConfigurable = !Array.prototype.hasOwnProperty("reduceRight"); +var isConfigurable = !Array.prototype.hasOwnProperty("reduceRight"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-621.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-621.js index b7e2ebf5cbe9294a09027e734ca2f60f4d19b529..547d0f7f2990160a92a45258b8357afe530a2a9a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-621.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-621.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = String.prototype.trim; +var temp = String.prototype.trim; - String.prototype.trim = "2010"; +String.prototype.trim = "2010"; - var isWritable = (String.prototype.trim === "2010"); +var isWritable = (String.prototype.trim === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in String.prototype) { - if (prop === "trim") { - isEnumerable = true; - } - } +for (var prop in String.prototype) { + if (prop === "trim") { + isEnumerable = true; + } +} - delete String.prototype.trim; +delete String.prototype.trim; - var isConfigurable = !String.prototype.hasOwnProperty("trim"); +var isConfigurable = !String.prototype.hasOwnProperty("trim"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-622.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-622.js index c587d33d4e86cc9d9f1d52a448534724de35b639..6a537f6b99eaf51034147282e915bb4f49e643b6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-622.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-622.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-622 description: ES5 Attributes - all attributes in Date.now are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Date, "now"); +var desc = Object.getOwnPropertyDescriptor(Date, "now"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Date.now; +var temp = Date.now; - Date.now = "2010"; +Date.now = "2010"; - var isWritable = (Date.now === "2010"); +var isWritable = (Date.now === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Date) { - if (prop === "now") { - isEnumerable = true; - } - } +for (var prop in Date) { + if (prop === "now") { + isEnumerable = true; + } +} - delete Date.now; +delete Date.now; - var isConfigurable = !Date.hasOwnProperty("now"); +var isConfigurable = !Date.hasOwnProperty("now"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-623.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-623.js index f96eb0c02e5f18ba8e9ab9c345caebfb8600840b..d36c2cb57e15014bc66509311690d7893448085d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-623.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-623.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Date.prototype.toISOString; +var temp = Date.prototype.toISOString; - Date.prototype.toISOString = "2010"; +Date.prototype.toISOString = "2010"; - var isWritable = (Date.prototype.toISOString === "2010"); +var isWritable = (Date.prototype.toISOString === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Date.prototype) { - if (prop === "toISOString") { - isEnumerable = true; - } - } +for (var prop in Date.prototype) { + if (prop === "toISOString") { + isEnumerable = true; + } +} - delete Date.prototype.toISOString; +delete Date.prototype.toISOString; - var isConfigurable = !Date.prototype.hasOwnProperty("toISOString"); +var isConfigurable = !Date.prototype.hasOwnProperty("toISOString"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-624.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-624.js index 5b6abba13f8a59b42da072388533827902522fb8..e95f78499bafb74c567a1d48e6eb2c8621408979 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-624.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-624.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Date.prototype.toJSON; +var temp = Date.prototype.toJSON; - Date.prototype.toJSON = "2010"; +Date.prototype.toJSON = "2010"; - var isWritable = (Date.prototype.toJSON === "2010"); +var isWritable = (Date.prototype.toJSON === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Date.prototype) { - if (prop === "toJSON") { - isEnumerable = true; - } - } +for (var prop in Date.prototype) { + if (prop === "toJSON") { + isEnumerable = true; + } +} - delete Date.prototype.toJSON; +delete Date.prototype.toJSON; - var isConfigurable = !Date.prototype.hasOwnProperty("toJSON"); +var isConfigurable = !Date.prototype.hasOwnProperty("toJSON"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js index e5285a4b9b3f44b2074d2883c539415f0304327c..bef1e27b4d322b23215f4eaf2234781fe4dc9cbf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js @@ -8,12 +8,17 @@ description: > Object.prototype property of the same name ---*/ -Object.defineProperty(Object.prototype, - "prop", - { value: 1001, writable: false, enumerable: false, configurable: false} - ); +Object.defineProperty(Object.prototype, + "prop", + { + value: 1001, + writable: false, + enumerable: false, + configurable: false + } +); var prop = 1002; -if (! (this.hasOwnProperty("prop") && prop === 1002)) { - throw "this.prop should take precedence over Object.prototype.prop"; +if (!(this.hasOwnProperty("prop") && prop === 1002)) { + throw "this.prop should take precedence over Object.prototype.prop"; } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js index 0c89597d361bfcb03f74085cf40b66abef56f282..a336364bb119eb04b7d7b8c04d82509b56a50599 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js @@ -11,9 +11,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: NaN }); +Object.defineProperty(obj, "foo", { + value: NaN +}); -Object.defineProperty(obj, "foo", { value: NaN }); +Object.defineProperty(obj, "foo", { + value: NaN +}); assert.sameValue(obj.foo, NaN); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js index 05cf0f67d6320f591783f5b282acf1a04e32091e..b079432a35202d7cdbe34acafa3b22805764008e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js @@ -12,23 +12,27 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: -0 }); +Object.defineProperty(obj, "foo", { + value: -0 +}); try { - Object.defineProperty(obj, "foo", { value: +0 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: +0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", -0); + verifyEqualTo(obj, "foo", -0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js index 329a9293a86f44713d0894cdd6fa30ab038e772b..d420ffa4e8e168b075c26ee4e90fe56b87f8fe33 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js @@ -12,22 +12,26 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: +0 }); +Object.defineProperty(obj, "foo", { + value: +0 +}); try { - Object.defineProperty(obj, "foo", { value: -0 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: -0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", +0); + verifyEqualTo(obj, "foo", +0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js index 128e8a6071a2ce5b36cccf89d5aace9e1dc73d36..457c20314accab9b7c3f3d93e9a46bd12100fd2c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js @@ -14,7 +14,9 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: 102 }); +Object.defineProperty(obj, "foo", { + value: 102 +}); verifyEqualTo(obj, "foo", 102); verifyWritable(obj, "foo"); @@ -22,4 +24,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js index b681149f407750d15f6393462447e8d888fc5248..5331d82f41630c4e51f208cea66cfd0424f34e5f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: "abcd" }); +Object.defineProperty(obj, "foo", { + value: "abcd" +}); -Object.defineProperty(obj, "foo", { value: "abcd" }); +Object.defineProperty(obj, "foo", { + value: "abcd" +}); verifyEqualTo(obj, "foo", "abcd"); verifyNotWritable(obj, "foo"); @@ -23,4 +27,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js index b2892e41b77c0eb69b25e39eb9fc78a1f01622f4..8f3f2a3acccf6fd382fabec4ca4b9866144b4a97 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js @@ -14,7 +14,9 @@ var obj = {}; obj.foo = "abcd"; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: "fghj" }); +Object.defineProperty(obj, "foo", { + value: "fghj" +}); verifyEqualTo(obj, "foo", "fghj"); verifyWritable(obj, "foo"); @@ -22,4 +24,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js index ca1faa8681b41bb0fc6b3b2176b4b07db5adaab5..a7b26daf98ba5dac34b79728ed00171c65a647f1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: true }); +Object.defineProperty(obj, "foo", { + value: true +}); -Object.defineProperty(obj, "foo", { value: true }); +Object.defineProperty(obj, "foo", { + value: true +}); verifyEqualTo(obj, "foo", true); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js index 036161d3a132bb5055f35d23d8aef2fa36d41898..1c0cf64e9b1d9f62d42b5051cd2c4c9607bfbabb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js @@ -12,17 +12,23 @@ description: > [[Configurable]] from false to true ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - var desc = { value: 101, configurable: true }; +var desc = { + value: 101, + configurable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js index cc5354fdb2e12abfa418695fe07d3b83c38d03dc..716f34d96fa283cdfeb61fe6c5ab5a6694db2b3c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js @@ -14,7 +14,9 @@ var obj = {}; obj.foo = true; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: false }); +Object.defineProperty(obj, "foo", { + value: false +}); verifyEqualTo(obj, "foo", false); verifyWritable(obj, "foo"); @@ -22,4 +24,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js index e2d5ae2e378bdcc2fd5b7e3fbe546daa5a6ed89e..ec1d4d9b925d453ec40685ede7903fdb57ade2d9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js @@ -12,11 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; -Object.defineProperty(obj, "foo", { value: obj1 }); +Object.defineProperty(obj, "foo", { + value: obj1 +}); -Object.defineProperty(obj, "foo", { value: obj1 }); +Object.defineProperty(obj, "foo", { + value: obj1 +}); verifyEqualTo(obj, "foo", obj1); verifyNotWritable(obj, "foo"); @@ -24,4 +30,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js index 1ee4fd7e515e785a6190d0a92f4839fcdb655571..c0acc806fd59d2ea34a247f596590c6c3ac88b4b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js @@ -12,12 +12,18 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; obj.foo = obj1; // default value of attributes: writable: true, configurable: true, enumerable: true -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; -Object.defineProperty(obj, "foo", { value: obj2 }); +Object.defineProperty(obj, "foo", { + value: obj2 +}); verifyEqualTo(obj, "foo", obj2); verifyWritable(obj, "foo"); @@ -25,4 +31,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js index 0a478b234a942c47735f33161dec8b5b50e4bc82..eb436b8ff40b58c1a04a4f6c680d02a79de5b69d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { writable: false}); +Object.defineProperty(obj, "foo", { + writable: false +}); -Object.defineProperty(obj, "foo", { writable: false }); +Object.defineProperty(obj, "foo", { + writable: false +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js index 4f20edeeec4728c189ae96075eb70a32af48834b..6a413f5ab69ba70499ceb006e3e5c4dbda3d0296 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js @@ -12,9 +12,14 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { writable: false, configurable: true }); - -Object.defineProperty(obj, "foo", { writable: true }); +Object.defineProperty(obj, "foo", { + writable: false, + configurable: true +}); + +Object.defineProperty(obj, "foo", { + writable: true +}); verifyEqualTo(obj, "foo", undefined); verifyWritable(obj, "foo"); @@ -22,4 +27,3 @@ verifyWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js index ab6aa88b3af7f12b353faacdb3c9f85a187a53a6..833298e2a99579946b53de20ac7ba5886c801808 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js @@ -13,18 +13,21 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 10; + return 10; } + function setFunc(value) { - obj.helpVerifySet = value; + obj.helpVerifySet = value; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); -Object.defineProperty(obj, "foo", { get: getFunc }); +Object.defineProperty(obj, "foo", { + get: getFunc +}); verifyEqualTo(obj, "foo", getFunc()); verifyWritable(obj, "foo", "helpVerifySet"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js index 7be62f266c6df9f120141f00b341885a73004506..7473dbac8e183f34dd7a9f2430f8bebe7e06b237 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js @@ -13,23 +13,26 @@ includes: [propertyHelper.js] var obj = {}; function getFunc1() { - return 10; + return 10; } + function setFunc1(value) { - obj.helpVerifySet = value; + obj.helpVerifySet = value; } Object.defineProperty(obj, "foo", { - get: getFunc1, - set: setFunc1, - configurable: true + get: getFunc1, + set: setFunc1, + configurable: true }); function getFunc2() { - return 20; + return 20; } -Object.defineProperty(obj, "foo", { get: getFunc2 }); +Object.defineProperty(obj, "foo", { + get: getFunc2 +}); verifyEqualTo(obj, "foo", getFunc2()); verifyWritable(obj, "foo", "helpVerifySet"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js index 2573a5b5884b4276ca18f321423577f58a5ae38b..4dbddfefabe71064d04702a0a20bce317ca72032 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js @@ -13,12 +13,16 @@ includes: [propertyHelper.js] var obj = {}; function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } -Object.defineProperty(obj, "foo", { set: setFunc }); +Object.defineProperty(obj, "foo", { + set: setFunc +}); -Object.defineProperty(obj, "foo", { set: setFunc }); +Object.defineProperty(obj, "foo", { + set: setFunc +}); verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyNotEnumerable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js index 773592d735f3699d913d7821e6a0139b28ca9b1f..e49b9787dbcc00063f33aaa6956cd8befee22864 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js @@ -12,18 +12,20 @@ includes: [propertyHelper.js] var obj = {}; -function setFunc1() { } +function setFunc1() {} Object.defineProperty(obj, "foo", { - set: setFunc1, - configurable: true + set: setFunc1, + configurable: true }); function setFunc2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } -Object.defineProperty(obj, "foo", { set: setFunc2 }); +Object.defineProperty(obj, "foo", { + set: setFunc2 +}); verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyNotEnumerable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js index b88d4b83940e81f068b5a0355b7915d21d90c62d..62476d0bc9d12b3bd13f2fe78e0e2274b85ca13d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { enumerable: false }); +Object.defineProperty(obj, "foo", { + enumerable: false +}); -Object.defineProperty(obj, "foo", { enumerable: false }); +Object.defineProperty(obj, "foo", { + enumerable: false +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js index f9467c09653f4d6697bde0336386d02484b2e87b..90115f997f3d05c728ca84dd7ed6e51b3e8f1f60 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js @@ -14,20 +14,27 @@ description: > properties ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101, enumerable: false, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101, + enumerable: false, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, setting enumerable to true should fail, since [[Configurable]] - // on the original property will be false. - var desc = { value: 101, enumerable: true }; +// now, setting enumerable to true should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + value: 101, + enumerable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js index 71050073a5b8cb594b635f575660282f8f9fd1e2..c71b320e5fb1db725c53481a7cbd008845ca7f4a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js @@ -12,9 +12,14 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { enumerable: false, configurable: true }); - -Object.defineProperty(obj, "foo", { enumerable: true }); +Object.defineProperty(obj, "foo", { + enumerable: false, + configurable: true +}); + +Object.defineProperty(obj, "foo", { + enumerable: true +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); @@ -22,4 +27,3 @@ verifyNotWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js index 5a7c25ec97fbd828adec9e3d344b37ae1b45d163..26939a862f19aa94ff3359c6d07cc54170c713bc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { configurable: false }); +Object.defineProperty(obj, "foo", { + configurable: false +}); -Object.defineProperty(obj, "foo", { configurable: false }); +Object.defineProperty(obj, "foo", { + configurable: false +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js index 7cafbaa6f098977005e4c1f8829bc70a54f42f69..f7e965c621e96e109e4bdbaf04ab7ff46430c967 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js @@ -17,14 +17,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: false + enumerable: false }); verifyEqualTo(obj, "foo", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js index ff1075e574ef5e214f0a80f538e86d874e283219..ee190b02421509440fd27641b69a66fc93e31ab0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-10.js @@ -16,22 +16,22 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: true, - configurable: false + enumerable: true, + configurable: false }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js index e4f8e8ce9345a0b7b723795454a57f7802ebbc4f..293711b6184fb3c4f3af89c562db36cc438765af 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-11.js @@ -16,22 +16,22 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: false, - configurable: false + enumerable: false, + configurable: false }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js index 34294da076279bae694523ab62ba54d1426cd762..7c20a6c1aea5bcf62d546c65b55c5acdd611a938 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-12.js @@ -16,21 +16,21 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: false, - configurable: true + get: get_func, + set: set_func, + enumerable: false, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: true + enumerable: true }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js index 120a65e49f1abcaae90ee651872f8b2ded6e1bda..d7905a3f120ef2b8fe1d1001587b0a06c0b93c51 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-13.js @@ -17,14 +17,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: false + enumerable: false }); verifyEqualTo(obj, "0", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js index c53a47d8446e59cb9edbc916dd54628933edb985..d3c9a5a46c66bebbed9e2f77314be5bae4acb57f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-14.js @@ -17,15 +17,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: false, - configurable: true + enumerable: false, + configurable: true }); verifyEqualTo(obj, "0", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js index fb191540cd82f2420e70e1cf69044445393241f6..d03591c065bf1c8c9c358cb7a834401e02be0609 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-15.js @@ -16,14 +16,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - configurable: false + configurable: false }); verifyEqualTo(obj, "0", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js index c3362692ea0e20eecf29214cf219c7b8c505d32c..5f2f3bf393e32b7dce188bae4df76559c06d51e8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-16.js @@ -17,15 +17,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: true, - configurable: false + enumerable: true, + configurable: false }); verifyEqualTo(obj, "0", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js index 608f07aee1ac3493cc980657ff158a1430333f31..c999cf1bbd864abe86454d637c1927fcbe7f9ed6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-17.js @@ -17,15 +17,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: false, - configurable: false + enumerable: false, + configurable: false }); verifyEqualTo(obj, "0", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js index 80c1c7ce0dc886c1ffe64d8c2391aa5e4922249b..7aead07eef4afe6931b7cadca5710874582c4d5c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-18.js @@ -17,14 +17,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - enumerable: false, - configurable: true + value: 1001, + writable: true, + enumerable: false, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: true + enumerable: true }); verifyEqualTo(obj, "0", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js index 6e704bbbda497b54ff4dfa29c959b56046e6e683..54fcb81c56ece2d602322e47c6518149473f6bf0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-19.js @@ -16,21 +16,21 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: false + enumerable: false }); verifyEqualTo(obj, "0", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js index 9eead22a11b6b8fc6294e83d12270ba3d754ac4a..be511113501ae2fdfb2bee69c692c7e9c3dbc62e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-2.js @@ -17,15 +17,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: false, - configurable: true + enumerable: false, + configurable: true }); verifyEqualTo(obj, "foo", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js index 89e42a486dd75bb4980a12a1cd63607774be2cdf..7ab7217985a337bfe783ad17f670547997e50373 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-20.js @@ -16,22 +16,22 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: false, - configurable: true + enumerable: false, + configurable: true }); verifyEqualTo(obj, "0", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js index 0aa8831138ab63fefade3b394d5ab401f97cd17a..629a5e9dfed814b2aaee52a719f41a6a891bcd31 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-21.js @@ -16,21 +16,21 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - configurable: false + configurable: false }); verifyEqualTo(obj, "0", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js index d0f960060e3b987242cd5f098d052fecca0e570a..cd26dfba0d9897d18ff1ce9f967bed90fe4775bb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-22.js @@ -16,22 +16,22 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: true, - configurable: false + enumerable: true, + configurable: false }); verifyEqualTo(obj, "0", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js index 1fa1daa88d975fe8c8382b0fbe94fd6629c0ccb7..137b1ba4ce2bac3fd7a4d1e6c501ee079e974a01 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-23.js @@ -16,22 +16,22 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: false, - configurable: false + enumerable: false, + configurable: false }); verifyEqualTo(obj, "0", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js index 676cd48a58d817423131cc4fc7e43fcdbc055e98..8bb814914489be5f8d7e31bc500ca826baa1cf77 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-24.js @@ -16,21 +16,21 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: get_func, - set: set_func, - enumerable: false, - configurable: true + get: get_func, + set: set_func, + enumerable: false, + configurable: true }); Object.defineProperty(obj, "0", { - enumerable: true + enumerable: true }); verifyEqualTo(obj, "0", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js index bf0880cb3a17eea469977a43d1afdfe415c2b668..af0980148aa53c5dfe3034efe6e6e5d2daaf48a7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-3.js @@ -16,14 +16,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - configurable: false + configurable: false }); verifyEqualTo(obj, "foo", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js index 5a3da0fb0d5a23cafd8046b2cde2db5319922faf..0d11ba790ca16f81f62bb9e06985dcf689cf488b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-4.js @@ -17,15 +17,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: true, - configurable: false + enumerable: true, + configurable: false }); verifyEqualTo(obj, "foo", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js index 86cb8b09bb12c91aec4f0b555745dc6bb431eb7b..cc9bb95f2250f600dddf2625bc144f007b399171 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-5.js @@ -17,15 +17,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 1001, - writable: true, - enumerable: true, - configurable: true + value: 1001, + writable: true, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: false, - configurable: false + enumerable: false, + configurable: false }); verifyEqualTo(obj, "foo", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js index 818f0afebe6ceb33e6a3be7f08283cc563175f70..15ee855b7c3fdaa1aff5fb3cc7caf0cfaa7c058c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-6.js @@ -17,14 +17,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 1001, - writable: true, - enumerable: false, - configurable: true + value: 1001, + writable: true, + enumerable: false, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: true + enumerable: true }); verifyEqualTo(obj, "foo", 1001); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js index a18058bdf488feb90c470ddddaf647ad6bf497ae..9d6c0c23bfe319a25e9098f9cc60db1e692acd97 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-7.js @@ -16,21 +16,21 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: false + enumerable: false }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js index 56794eab390c65949f885e479f0bb848ee761616..230531fd86cf301e55af416c23c97f83c8e99eb8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-8.js @@ -16,22 +16,22 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: false, - configurable: true + enumerable: false, + configurable: true }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js index fd9beee2c099275c613f56a755a1c149f008ad77..2d660c23c441eb6264bf85d5b88f4a32c3082fe9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-9.js @@ -16,21 +16,21 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var get_func = function () { - return obj.verifySetFunction; +var get_func = function() { + return obj.verifySetFunction; }; -var set_func = function (value) { - obj.verifySetFunction = value; +var set_func = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - configurable: false + configurable: false }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js index ceb54f6c440196e7847415a7c7c6d38e1698133c..71081cb23f907ccbe9dd79536eb41c0930d76eef 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { configurable: true }); +Object.defineProperty(obj, "foo", { + configurable: true +}); -Object.defineProperty(obj, "foo", { configurable: false }); +Object.defineProperty(obj, "foo", { + configurable: false +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js index dd76c7c3614a66e6671d6ccc1a7435bf37a71c2f..6bcec607fb70654c50d7adbaba085d882cb73650 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js @@ -13,16 +13,16 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: undefined, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: undefined, + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { - value: undefined, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: undefined, + writable: false, + configurable: false }); verifyEqualTo(obj, "foo", undefined); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-84.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-84.js index 1fc19e563420347bb5b6d95b164dee482ab377c6..701d3ef4640b936f07565d4a517a871c5e36135c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-84.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-84.js @@ -13,16 +13,16 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: null, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: null, + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { - value: null, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: null, + writable: false, + configurable: false }); verifyEqualTo(obj, "foo", null); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-85.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-85.js index 1c8a8381001b064aeb00418d2a68b130f2bbde43..7499fb8b5af9488b2f89832f699b282ccf93cd02 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-85.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-85.js @@ -13,15 +13,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: NaN, - writable: false, - configurable: false + value: NaN, + writable: false, + configurable: false }); Object.defineProperty(obj, "foo", { - value: NaN, - writable: false, - configurable: false + value: NaN, + writable: false, + configurable: false }); assert.sameValue(obj.foo, NaN); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js index 5d58e5e4a2365d09678216bb24611c91fd14f12a..e302bff64eb5e8b30979ebb92f9ba5f9857ff561 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js @@ -13,26 +13,28 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: -0, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: -0, + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: +0 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: +0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", -0); + verifyEqualTo(obj, "foo", -0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js index 658c02738172275c7e48e12cb2fdc59cf378dbbc..a7edd420c5aaba10a0b920e0e9a5d2b8bdcc45c4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js @@ -13,26 +13,28 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: +0, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: +0, + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: -0 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: -0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", +0); + verifyEqualTo(obj, "foo", +0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js index df0b9cce9fb31b8fdfa72331e03b75436c7bea8a..fb949aa3493368626e744f356a02208406b172a9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js @@ -14,13 +14,15 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 100, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: 100, + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { value: 100 }); +Object.defineProperty(obj, "foo", { + value: 100 +}); verifyEqualTo(obj, "foo", 100); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js index 84efee09b7f91deab7b14f45be8e4fdbd9d74804..dbbf9c6199dfb7a62647a5745b3539df7db9b194 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js @@ -13,26 +13,28 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: 10, + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: 20 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: 20 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js index 4b1db5430ed574755e3775c88f88b0107e152841..2c3b16687d7a53ef9dbd9bbe813b89e8fa729e45 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js @@ -14,21 +14,28 @@ description: > properties ---*/ - var o = {}; +var o = {}; - // create a data valued property with [[Enumerable]] explicitly set to true; - // all other attributes default to false. - var d1 = { value: 101, enumerable: true, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property with [[Enumerable]] explicitly set to true; +// all other attributes default to false. +var d1 = { + value: 101, + enumerable: true, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, setting enumerable to false should fail, since [[Configurable]] - // on the original property will be false. - var desc = { value: 101, enumerable: false }; +// now, setting enumerable to false should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + value: 101, + enumerable: false +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.enumerable, true, 'd2.enumerable'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js index 76fd36ba7e38b430f02f6006eec977ad36881b22..9466f4b07060e4e2088f6fa7fac4a66e39929cf8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js @@ -15,12 +15,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: "abcd", - writable: false, - configurable: false + value: "abcd", + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { value: "abcd" }); +Object.defineProperty(obj, "foo", { + value: "abcd" +}); verifyEqualTo(obj, "foo", "abcd"); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js index 22b598ddb6732440c9b50c5379a5f20ee749df3d..0f9ae100eb5685b9139e78fe1bcb7218c21db2f5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: "abcd", - writable: false, - configurable: false + value: "abcd", + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: "fghj" }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: "fghj" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", "abcd"); + verifyEqualTo(obj, "foo", "abcd"); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js index 407a8636588ca8526307c69abbf9c32b0edacc30..925c95364cc20c8d9ddc125586cfb43bb5dceac0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js @@ -15,12 +15,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: false, - writable: false, - configurable: false + value: false, + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { value: false }); +Object.defineProperty(obj, "foo", { + value: false +}); verifyEqualTo(obj, "foo", false); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js index d9cbc756321fa27b22a3a1e7957ea850112da9ac..867b24e24d198da03b8cae388de401217744f62b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: false, - writable: false, - configurable: false + value: false, + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: true }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", false); + verifyEqualTo(obj, "foo", false); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js index d348eb05a91a4e4585ebb9df7ad0b6a8b020734f..ab9e265987dd9dcd9c3485639cfd30351227485f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js @@ -14,15 +14,19 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false + value: obj1, + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { value: obj1 }); +Object.defineProperty(obj, "foo", { + value: obj1 +}); verifyEqualTo(obj, "foo", obj1); verifyNotWritable(obj, "foo"); @@ -30,4 +34,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js index 593676afcf42800b4ca7f956621725b91b0c49b9..4157be577963c9607638f9f52e20dbf2f957bad1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js @@ -14,30 +14,36 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false + value: obj1, + writable: false, + configurable: false }); -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; try { - Object.defineProperty(obj, "foo", { value: obj2 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: obj2 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", obj1); + verifyEqualTo(obj, "foo", obj1); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js index db6e38287f34f270a02587c445fdceaaa7e5a192..0f8ebadfaded6901e2e3deede0aa773ed47a660e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js @@ -14,15 +14,17 @@ includes: [propertyHelper.js] var obj = {}; function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: setFunc, - configurable: false + set: setFunc, + configurable: false }); -Object.defineProperty(obj, "foo", { set: setFunc }); +Object.defineProperty(obj, "foo", { + set: setFunc +}); verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyNotEnumerable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js index 4203a94f07c0f984285921c91e9fd54f9419f4bd..501e58cb3460877ceb998e3d221613f04b1edb41 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js @@ -14,31 +14,31 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return "property"; + return "property"; } Object.defineProperty(obj, "property", { - get: getFunc, - configurable: false + get: getFunc, + configurable: false }); try { - Object.defineProperty(obj, "property", { - get: getFunc, - set: function () { }, - configurable: false - }); + Object.defineProperty(obj, "property", { + get: getFunc, + set: function() {}, + configurable: false + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "property", getFunc()); + verifyEqualTo(obj, "property", getFunc()); - verifyNotEnumerable(obj, "property"); + verifyNotEnumerable(obj, "property"); - verifyNotConfigurable(obj, "property"); + verifyNotConfigurable(obj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js index b849e29703a0606768f4baa4dbca269150d110be..eb0f2a07cf53b83e706add387e1559562bceebd7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js @@ -14,19 +14,22 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 10; + return 10; } + function setFunc(value) { - obj.verifyGetHelpMethod = value; + obj.verifyGetHelpMethod = value; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); -Object.defineProperty(obj, "foo", { get: getFunc }); +Object.defineProperty(obj, "foo", { + get: getFunc +}); verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js index 5991d786c8a5fb38855f84abc78e790109668960..ee0111080ef9225c2afda7c600ddafd6f2fdcd84 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js @@ -14,33 +14,33 @@ includes: [propertyHelper.js] var obj = {}; function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: setFunc, - configurable: false + set: setFunc, + configurable: false }); function getFunc() { - return 10; + return 10; } try { - Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc - }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + get: getFunc, + set: setFunc + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(obj, "foo", "setVerifyHelpProp"); + verifyWritable(obj, "foo", "setVerifyHelpProp"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js index 17e8b1667f805eec56d33817bd546246f4f07893..75235214691d76328d9c441b321e181319970118 100644 --- a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js +++ b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js @@ -8,17 +8,23 @@ description: > on a newly non-extensible object ---*/ - var o = {}; - Object.defineProperty(o, "foo", - { value: "hello", - configurable: true}); - Object.preventExtensions(o); - Object.defineProperty(o, "foo", { get: function() { return 5;} }); +var o = {}; +Object.defineProperty(o, "foo", +{ + value: "hello", + configurable: true +}); +Object.preventExtensions(o); +Object.defineProperty(o, "foo", { + get: function() { + return 5; + } +}); - var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); +var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(o.foo, 5, 'o.foo'); -assert(fooDescrip.get!==undefined, 'fooDescrip.get!==undefined !== true'); +assert(fooDescrip.get !== undefined, 'fooDescrip.get!==undefined !== true'); assert.sameValue(fooDescrip.set, undefined, 'fooDescrip.set'); assert.sameValue(fooDescrip.value, undefined, 'fooDescrip.value'); assert.sameValue(fooDescrip.configurable, true, 'fooDescrip.configurable'); diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js index 00ab01527bb3eab4a9662468aa5e07d4ea97f16a..57e52924785a10b05ae92611ce8301d602731422 100644 --- a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js +++ b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js @@ -8,19 +8,25 @@ description: > on a newly non-extensible object ---*/ - var o = {}; - Object.defineProperty(o, "foo", - { value: "hello", - configurable: true, - enumerable: true, - writable: true}); - Object.preventExtensions(o); - Object.defineProperty(o, "foo", { get: function() { return 5;} }); +var o = {}; +Object.defineProperty(o, "foo", +{ + value: "hello", + configurable: true, + enumerable: true, + writable: true +}); +Object.preventExtensions(o); +Object.defineProperty(o, "foo", { + get: function() { + return 5; + } +}); - var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); +var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(o.foo, 5, 'o.foo'); -assert(fooDescrip.get!==undefined, 'fooDescrip.get!==undefined !== true'); +assert(fooDescrip.get !== undefined, 'fooDescrip.get!==undefined !== true'); assert.sameValue(fooDescrip.set, undefined, 'fooDescrip.set'); assert.sameValue(fooDescrip.value, undefined, 'fooDescrip.value'); assert.sameValue(fooDescrip.configurable, true, 'fooDescrip.configurable'); diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js index f64da3594d7a3f17dc0381cd28df8dbb26bb9d35..b74d2533dd97b44050f40e12d7b8f518bfd0dd52 100644 --- a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js +++ b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js @@ -8,14 +8,20 @@ description: > a non-extensible object ---*/ - var o = {}; - Object.defineProperty(o, "foo", - { get: function() { return 5;}, - configurable: true}); - Object.preventExtensions(o); - Object.defineProperty(o, "foo", { value: "hello"}); +var o = {}; +Object.defineProperty(o, "foo", +{ + get: function() { + return 5; + }, + configurable: true +}); +Object.preventExtensions(o); +Object.defineProperty(o, "foo", { + value: "hello" +}); - var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); +var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(o.foo, "hello", 'o.foo'); assert.sameValue(fooDescrip.get, undefined, 'fooDescrip.get'); diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js index 118ff856fe6f7bbe3a04454dc07f8cdaea202e17..e99ebffe54bf82f04bcf190f4447da426fff3b67 100644 --- a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js +++ b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js @@ -8,16 +8,22 @@ description: > a non-extensible object ---*/ - var o = {}; - Object.defineProperty(o, "foo", - { get: function() { return 5;}, - configurable: true}); - Object.preventExtensions(o); - Object.defineProperty(o, "foo", - { value: "hello", - writable: true}); +var o = {}; +Object.defineProperty(o, "foo", +{ + get: function() { + return 5; + }, + configurable: true +}); +Object.preventExtensions(o); +Object.defineProperty(o, "foo", +{ + value: "hello", + writable: true +}); - var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); +var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(o.foo, "hello", 'o.foo'); assert.sameValue(fooDescrip.get, undefined, 'fooDescrip.get'); diff --git a/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js b/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js index 4042dd3da64566399b77db831eeb4b57d7270558..151157c4844ac6866808973db5ca1b02bc18e38b 100644 --- a/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js +++ b/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js @@ -12,10 +12,12 @@ es5id: 15.2.3.6_A1 description: Do getters on HTMLFormElements disappear? ---*/ -function getter() { return 'gotten'; } +function getter() { + return 'gotten'; +} if (typeof document !== 'undefined' && - typeof document.createElement === 'function') { + typeof document.createElement === 'function') { var f = document.createElement("form"); var refused = false; try { diff --git a/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js b/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js index b672f9b85ddb4d2bbb41a85a360b7faed9490620..05e6aa3c19c7d55f1a17103f21c83c2c81e898e0 100644 --- a/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js +++ b/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js @@ -10,8 +10,13 @@ description: > var base = {}; var derived = Object.create(base); -function getter() { return 'gotten'; } -Object.defineProperty(base, 'foo', {get: getter}); + +function getter() { + return 'gotten'; +} +Object.defineProperty(base, 'foo', { + get: getter +}); if (derived.hasOwnProperty('foo')) { $ERROR('Accessor properties inherit as own properties'); } diff --git a/test/built-ins/Object/entries/exception-during-enumeration.js b/test/built-ins/Object/entries/exception-during-enumeration.js index 0720a47f0f60be4eaa58268c11052d36af1af6d4..c4dba3f55822922a704d77ab732748711e55b325 100644 --- a/test/built-ins/Object/entries/exception-during-enumeration.js +++ b/test/built-ins/Object/entries/exception-during-enumeration.js @@ -8,14 +8,14 @@ author: Jordan Harband ---*/ var trappedKey = { - get a() { - throw new RangeError('This error should be re-thrown'); - }, - get b() { - $ERROR('Should not try to get the second element'); - } + get a() { + throw new RangeError('This error should be re-thrown'); + }, + get b() { + $ERROR('Should not try to get the second element'); + } }; -assert.throws(RangeError, function () { - Object.entries(trappedKey); +assert.throws(RangeError, function() { + Object.entries(trappedKey); }); diff --git a/test/built-ins/Object/entries/exception-not-object-coercible.js b/test/built-ins/Object/entries/exception-not-object-coercible.js index de90d9d6c52781824972f333142c1e37d7024679..75e73145e7a9d9a112af019346b87a14b643770e 100644 --- a/test/built-ins/Object/entries/exception-not-object-coercible.js +++ b/test/built-ins/Object/entries/exception-not-object-coercible.js @@ -7,10 +7,10 @@ description: Object.entries should fail if given a null or undefined value author: Jordan Harband ---*/ -assert.throws(TypeError, function () { - Object.entries(null); +assert.throws(TypeError, function() { + Object.entries(null); }); -assert.throws(TypeError, function () { - Object.entries(undefined); +assert.throws(TypeError, function() { + Object.entries(undefined); }); diff --git a/test/built-ins/Object/entries/function-name.js b/test/built-ins/Object/entries/function-name.js index ec6db2ffce7a5ce209d4e5b52f6e5ebf70a1bf5e..7f336d253065d0fe95748177e77f2727029cc86f 100644 --- a/test/built-ins/Object/entries/function-name.js +++ b/test/built-ins/Object/entries/function-name.js @@ -9,9 +9,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - Object.entries.name, - 'entries', - 'Expected Object.entries.name to be "entries"' + Object.entries.name, + 'entries', + 'Expected Object.entries.name to be "entries"' ); verifyNotEnumerable(Object.entries, 'name'); diff --git a/test/built-ins/Object/entries/getter-adding-key.js b/test/built-ins/Object/entries/getter-adding-key.js index 09eca7b1639ba0284a0d24e989aa9a3da86e625e..f8843919aa01dea7a83c4498d462a715da9eb35b 100644 --- a/test/built-ins/Object/entries/getter-adding-key.js +++ b/test/built-ins/Object/entries/getter-adding-key.js @@ -8,11 +8,11 @@ author: Jordan Harband ---*/ var bAddsC = { - a: 'A', - get b() { - this.c = 'C'; - return 'B'; - } + a: 'A', + get b() { + this.c = 'C'; + return 'B'; + } }; var result = Object.entries(bAddsC); diff --git a/test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js b/test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js index c3e3cc721c6b4d25fd0891cfb60ffbe2c4d68a61..3007fe051882ec7b3a7fd487bacf934a9643e8ed 100644 --- a/test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js +++ b/test/built-ins/Object/entries/getter-making-future-key-nonenumerable.js @@ -8,14 +8,14 @@ author: Jordan Harband ---*/ var bDeletesC = { - a: 'A', - get b() { - Object.defineProperty(this, 'c', { - enumerable: false - }); - return 'B'; - }, - c: 'C' + a: 'A', + get b() { + Object.defineProperty(this, 'c', { + enumerable: false + }); + return 'B'; + }, + c: 'C' }; var result = Object.entries(bDeletesC); diff --git a/test/built-ins/Object/entries/getter-removing-future-key.js b/test/built-ins/Object/entries/getter-removing-future-key.js index 05ef0d512f48926164bb9a6e81b51119645b9d6f..7953236d172f3a8215ed9ec1f4d4d71305f6b4ea 100644 --- a/test/built-ins/Object/entries/getter-removing-future-key.js +++ b/test/built-ins/Object/entries/getter-removing-future-key.js @@ -8,12 +8,12 @@ author: Jordan Harband ---*/ var bDeletesC = { - a: 'A', - get b() { - delete this.c; - return 'B'; - }, - c: 'C' + a: 'A', + get b() { + delete this.c; + return 'B'; + }, + c: 'C' }; var result = Object.entries(bDeletesC); diff --git a/test/built-ins/Object/entries/observable-operations.js b/test/built-ins/Object/entries/observable-operations.js index d80b50651316bdeaf3b712f262f2d0785dd25d06..d43cc5530ecddce5a3cde6e84221ec9c608056f5 100644 --- a/test/built-ins/Object/entries/observable-operations.js +++ b/test/built-ins/Object/entries/observable-operations.js @@ -10,27 +10,31 @@ includes: [proxyTrapsHelper.js] ---*/ var log = ""; -var object = { a: 0, b: 0, c: 0 }; +var object = { + a: 0, + b: 0, + c: 0 +}; var handler = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert.sameValue(target, object, "get target"); assert.sameValue(receiver, proxy, "get receiver"); log += "|get:" + propertyKey; return target[propertyKey]; }, - getOwnPropertyDescriptor: function (target, propertyKey) { + getOwnPropertyDescriptor: function(target, propertyKey) { assert.sameValue(target, object, "getOwnPropertyDescriptor"); log += "|getOwnPropertyDescriptor:" + propertyKey; return Object.getOwnPropertyDescriptor(target, propertyKey); }, - ownKeys: function (target) { + ownKeys: function(target) { assert.sameValue(target, object, "ownKeys"); log += "|ownKeys"; return Object.getOwnPropertyNames(target); } }); var check = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert(propertyKey in target, "handler check: " + propertyKey); return target[propertyKey]; } diff --git a/test/built-ins/Object/entries/symbols-omitted.js b/test/built-ins/Object/entries/symbols-omitted.js index 076c16777118bddb2dcbc62e1e29935c080a167b..d753ee64e46d890e82236b278412519133ceb22b 100644 --- a/test/built-ins/Object/entries/symbols-omitted.js +++ b/test/built-ins/Object/entries/symbols-omitted.js @@ -13,9 +13,14 @@ var enumSym = Symbol('enum'); var nonEnumSym = Symbol('nonenum'); var symValue = Symbol('value'); -var obj = { key: symValue }; +var obj = { + key: symValue +}; obj[enumSym] = value; -Object.defineProperty(obj, nonEnumSym, { enumerable: false, value: value }); +Object.defineProperty(obj, nonEnumSym, { + enumerable: false, + value: value +}); var result = Object.entries(obj); diff --git a/test/built-ins/Object/entries/tamper-with-global-object.js b/test/built-ins/Object/entries/tamper-with-global-object.js index 1ad4e18a2f38e42cc37a7a7e96b1682efe9e020e..cea8a87bb492d767ceb1ca4a42d5b5f7ddb0843f 100644 --- a/test/built-ins/Object/entries/tamper-with-global-object.js +++ b/test/built-ins/Object/entries/tamper-with-global-object.js @@ -9,7 +9,7 @@ author: Jordan Harband ---*/ function fakeObject() { - $ERROR('The overriden version of Object was called!'); + $ERROR('The overriden version of Object was called!'); } fakeObject.entries = Object.entries; diff --git a/test/built-ins/Object/entries/tamper-with-object-keys.js b/test/built-ins/Object/entries/tamper-with-object-keys.js index 10e8a6d5f000b3313d244e56217ffd264fd1c80e..7217292f0f468ae425609846a74cae289a888c59 100644 --- a/test/built-ins/Object/entries/tamper-with-object-keys.js +++ b/test/built-ins/Object/entries/tamper-with-object-keys.js @@ -9,10 +9,12 @@ author: Jordan Harband ---*/ function fakeObjectKeys() { - $ERROR('The overriden version of Object.keys was called!'); + $ERROR('The overriden version of Object.keys was called!'); } Object.keys = fakeObjectKeys; assert.sameValue(Object.keys, fakeObjectKeys, 'Sanity check failed: could not modify the global Object.keys'); -assert.sameValue(Object.entries({ a: 1 }).length, 1, 'Expected object with 1 key to have 1 entry'); +assert.sameValue(Object.entries({ + a: 1 +}).length, 1, 'Expected object with 1 key to have 1 entry'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-0-1.js b/test/built-ins/Object/freeze/15.2.3.9-0-1.js index 45b5cd8245f3f067f03d62aed5fd4626f7c1382e..261f61d80f41ba76c073f8222ac1966dea5daa06 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-0-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.9-0-1 description: Object.freeze must exist as a function ---*/ - var f = Object.freeze; +var f = Object.freeze; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-1.js b/test/built-ins/Object/freeze/15.2.3.9-1-1.js index 76978ce78503f0c8f965d79fa8c54efb7e4dd645..0d8e14854be543e02601f1b92e0947970956030a 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1-1.js @@ -8,4 +8,4 @@ description: > undefined ---*/ - Object.freeze(undefined); +Object.freeze(undefined); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-2.js b/test/built-ins/Object/freeze/15.2.3.9-1-2.js index 9249c022abc611e788eeef78b0c0a260003b9367..91a2e93a14d400a269bfe93e976988709a3fabb9 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1-2.js @@ -8,4 +8,4 @@ description: > null ---*/ - Object.freeze(null); +Object.freeze(null); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-3.js b/test/built-ins/Object/freeze/15.2.3.9-1-3.js index 81c279ee800843b6b0199a007a321574ec84e58a..6a97759d838ffa7a3af1e64bd674eaa7f43b6bde 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1-3.js @@ -8,5 +8,5 @@ description: > boolean primitive ---*/ - Object.freeze(false); - Object.freeze(true); +Object.freeze(false); +Object.freeze(true); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1-4.js b/test/built-ins/Object/freeze/15.2.3.9-1-4.js index 067469bccbd0ca60b534034e7436944448539144..cd3b224034f81b11096be2acfa7d30656474000b 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1-4.js @@ -8,4 +8,4 @@ description: > string primitive ---*/ - Object.freeze("abc"); +Object.freeze("abc"); diff --git a/test/built-ins/Object/freeze/15.2.3.9-1.js b/test/built-ins/Object/freeze/15.2.3.9-1.js index a60b13e989f54d1700b5face4b3f3d0fd5749dc1..d606706a2a2ca1017885c98d56bde36e8860d786 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-1.js @@ -8,4 +8,4 @@ description: > not Object ---*/ - Object.freeze(0); +Object.freeze(0); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-1.js index 18d4ea2213eaa1c87df3ed36a580521348e38552..8dc4b46580ea402c011b80a7995e90491123c986 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-1.js @@ -8,8 +8,8 @@ description: > no own property ---*/ - var obj = {}; +var obj = {}; - Object.freeze(obj); +Object.freeze(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-2.js index 61ebe20c15deb29b27abe9cfb43ba1490fe07669..ba48691d6dc8a6faeab3cd3db7ebc7c619ff9d07 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-2.js @@ -6,22 +6,22 @@ es5id: 15.2.3.9-2-2 description: Object.freeze - inherited data properties are not frozen ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "Father", { - value: 10, - configurable: true - }); +Object.defineProperty(proto, "Father", { + value: 10, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.freeze(child); +var child = new Con(); +Object.freeze(child); - var beforeDeleted = proto.hasOwnProperty("Father"); - delete proto.Father; - var afterDeleted = proto.hasOwnProperty("Father"); +var beforeDeleted = proto.hasOwnProperty("Father"); +delete proto.Father; +var afterDeleted = proto.hasOwnProperty("Father"); assert(beforeDeleted, 'beforeDeleted !== true'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-3.js index 19114667e20169c8cca45fc87494276d8defb631..5c171f1ac550178cce5e8e7da13116541d0b9e69 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-3.js @@ -6,24 +6,24 @@ es5id: 15.2.3.9-2-3 description: Object.freeze - inherited accessor properties are not frozen ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "Father", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(proto, "Father", { + get: function() { + return 10; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - Object.freeze(child); +var child = new Con(); +Object.freeze(child); - var beforeDeleted = proto.hasOwnProperty("Father"); - delete proto.Father; - var afterDeleted = proto.hasOwnProperty("Father"); +var beforeDeleted = proto.hasOwnProperty("Father"); +delete proto.Father; +var afterDeleted = proto.hasOwnProperty("Father"); assert(beforeDeleted, 'beforeDeleted !== true'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-4.js index 2de41643aa52aca12aeef861012928d6b4ff0425..ba3d34bae3bdb609904cc72e682780d29f2c1dac 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-4.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - enumerable: false, - configurable: true + value: 10, + enumerable: false, + configurable: true }); Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js index 91f1c1a01ef0ce47884f15071ad83fa8e59f7651..9148948646c9bfbdae94585e438803cca2227435 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js @@ -11,7 +11,9 @@ includes: [propertyHelper.js] // default [[Configurable]] attribute value of "0": true -var argObj = (function () { return arguments; }(1, 2, 3)); +var argObj = (function() { + return arguments; +}(1, 2, 3)); Object.freeze(argObj); @@ -20,4 +22,3 @@ var desc = Object.getOwnPropertyDescriptor(argObj, "0"); verifyNotWritable(argObj, "0"); verifyNotConfigurable(argObj, "0"); assert.sameValue(argObj[0], 1); - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js index 1abca86d87d4c12818fb52ef61f06c0177f2fde9..ed8efa0fd62bd398d283d27b533e19c48d66f841 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js @@ -9,7 +9,11 @@ includes: [propertyHelper.js] // default [[Configurable]] attribute value of "0": true -var obj = { 0: 0, 1: 1, length: 2}; +var obj = { + 0: 0, + 1: 1, + length: 2 +}; Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js index b5a0f75369d5eaffc4cc3d924cfe3cd447f51601..23e20c4256e940d06ba699f0896c4a9f58a39df6 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js @@ -10,9 +10,11 @@ includes: [propertyHelper.js] ---*/ -var proto = { foo: 0 }; // default [[Configurable]] attribute value of foo: true +var proto = { + foo: 0 +}; // default [[Configurable]] attribute value of foo: true -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js index f623c5e935a8d34e1f8a2f3b676fb5923c49a22d..f84894b00edba65481364537de75362063591deb 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js @@ -12,19 +12,19 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "foo", { - get: function () { - return 0; - }, - configurable: true + get: function() { + return 0; + }, + configurable: true }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "foo", { - value: 10, - configurable: true + value: 10, + configurable: true }); Object.freeze(child); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js index 6a5212d0233cb6f10654b013453e65390712d2a1..e8d22fca04779e4ceee7976a2e09afb09764c706 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-4.js @@ -10,10 +10,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - get: function () { - return 10; - }, - configurable: true + get: function() { + return 10; + }, + configurable: true }); Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js index 1ffa486a134634caa5a53552f50ce8c3ab75fd49..598187ff974abda6e363a15427c030179c743b0d 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-5.js @@ -14,16 +14,16 @@ var proto = {}; proto.foo = 0; // default [[Configurable]] attribute value of foo: true -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "foo", { - get: function () { - return 10; - }, - configurable: true + get: function() { + return 10; + }, + configurable: true }); Object.freeze(child); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js index 3f5bb5c037de6df688adb878966ec6d1a3d668d4..6295b1f0875c3e772ce9cbffe0739f850e8fcd87 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-6.js @@ -12,22 +12,22 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "foo", { - get: function () { - return 0; - }, - configurable: true + get: function() { + return 0; + }, + configurable: true }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "foo", { - get: function () { - return 10; - }, - configurable: true + get: function() { + return 10; + }, + configurable: true }); Object.freeze(child); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js index 4f24b0f6322e4fee52ac3818178bef14e9694ffa..75024a84bcfab217b8968038315d5ebd76180d2f 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js @@ -9,7 +9,9 @@ description: > includes: [propertyHelper.js] ---*/ -var argObj = (function () { return arguments; }()); +var argObj = (function() { + return arguments; +}()); argObj.foo = 10; // default [[Configurable]] attribute value of foo: true diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js index c7dcdf73c331931c4d9cacd4e4506e9c49c3916b..e4b21256b0897fea41e5785b61e79a82596bb195 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var funObj = function () { }; +var funObj = function() {}; funObj.foo = 10; // default [[Configurable]] attribute value of foo: true diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js index 46362bcd353e0e9775ce3b29d2c680cf20e69d5c..96de0e1f7d5775095ee3425a82eeacefacac5c8f 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - writable: true, - enumerable: true, - configurable: false + value: 10, + writable: true, + enumerable: true, + configurable: false }); Object.freeze(obj); @@ -30,10 +30,9 @@ verifyEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); if (desc.writable !== false) { - $ERROR('Expected desc.writable === false, actually ' + desc.writable); + $ERROR('Expected desc.writable === false, actually ' + desc.writable); } if (desc.configurable !== false) { - $ERROR('Expected desc.configurable === false, actually ' + desc.configurable); + $ERROR('Expected desc.configurable === false, actually ' + desc.configurable); } - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js index 5c6f4c28a5d159c37dae1d1b91eb57b9ec2b6744..150f18635c8a6e2c53d6275a5df0117043888529 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js @@ -13,17 +13,17 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo1", { - value: 10, - writable: false, - enumerable: true, - configurable: false + value: 10, + writable: false, + enumerable: true, + configurable: false }); Object.defineProperty(obj, "foo2", { - value: 20, - writable: true, - enumerable: false, - configurable: false + value: 20, + writable: true, + enumerable: false, + configurable: false }); Object.freeze(obj); @@ -48,18 +48,17 @@ verifyNotEnumerable(obj, "foo2"); verifyNotConfigurable(obj, "foo2"); if (desc1.configurable !== false) { - $ERROR('Expected desc1.configurable === false, actually ' + desc1.configurable); + $ERROR('Expected desc1.configurable === false, actually ' + desc1.configurable); } if (desc1.writable !== false) { - $ERROR('Expected desc1.writable === false, actually ' + desc1.writable); + $ERROR('Expected desc1.writable === false, actually ' + desc1.writable); } if (desc2.configurable !== false) { - $ERROR('Expected desc2.configurable === false, actually ' + desc2.configurable); + $ERROR('Expected desc2.configurable === false, actually ' + desc2.configurable); } if (desc2.writable !== false) { - $ERROR('Expected desc2.writable === false, actually ' + desc2.writable); + $ERROR('Expected desc2.writable === false, actually ' + desc2.writable); } - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js index 12bd46769e57d6a8c4243263ffbe5e4644a42b7c..ea4ad70eac063262e76bd881b7be5f30c3b8321c 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - enumerable: true, - configurable: true + value: 10, + writable: false, + enumerable: true, + configurable: true }); Object.freeze(obj); @@ -24,10 +24,10 @@ Object.freeze(obj); var desc = Object.getOwnPropertyDescriptor(obj, "foo"); if (desc.configurable !== false) { - $ERROR("Expected desc.configurable to be false, actually " + desc.configurable); + $ERROR("Expected desc.configurable to be false, actually " + desc.configurable); } if (desc.writable !== false) { - $ERROR("Expected desc.writable to be false, actually " + desc.writable); + $ERROR("Expected desc.writable to be false, actually " + desc.writable); } verifyEqualTo(obj, "foo", 10); @@ -37,4 +37,3 @@ verifyNotWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js index e40f69a8d237600916ec8f19ca48f89b9a961acb..59bdbad51bc1f400898b3cd1c1edb629b1fb63db 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js @@ -13,19 +13,20 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } var set_funcCalled = false; + function set_func() { - set_funcCalled = true; + set_funcCalled = true; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js index 06f74d5b64be209c0186ea5d568735bb730b6f1e..5f0d7c1d23cf8b7795c46d336d067d59757f63e4 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js @@ -14,25 +14,25 @@ var obj = {}; var resultSetFun = false; Object.defineProperty(obj, "foo1", { - value: 10, - writable: false, - enumerable: true, - configurable: true + value: 10, + writable: false, + enumerable: true, + configurable: true }); function get_func() { - return 10; + return 10; } function set_func() { - resultSetFun = true; + resultSetFun = true; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.freeze(obj); @@ -42,21 +42,21 @@ verifyEqualTo(obj, "foo2", 10); obj.foo2 = 12; if (!resultSetFun) { - $ERROR('Expected obj["foo2"] set() to be called, but was not.'); + $ERROR('Expected obj["foo2"] set() to be called, but was not.'); } if (!isEnumerable(obj, "foo2")) { - $ERROR('Expected obj["foo2"] to be enumerable.'); + $ERROR('Expected obj["foo2"] to be enumerable.'); } var desc1 = Object.getOwnPropertyDescriptor(obj, "foo1"); if (desc1.configurable || desc1.writable) { - $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); + $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); } var desc2 = Object.getOwnPropertyDescriptor(obj, "foo2"); if (desc2.configurable || desc2.writable) { - $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); + $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); } verifyEqualTo(obj, "foo1", 10); @@ -66,4 +66,3 @@ verifyNotWritable(obj, "foo1"); verifyEnumerable(obj, "foo1"); verifyNotConfigurable(obj, "foo1"); - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js index 53cfacb6502f8b563a7c1fd9eba9dff8bdc9ec79..6723c16f0566a4870eaf46c7a2d307bf4922f2ba 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js @@ -13,25 +13,25 @@ var obj = {}; var resultSetFun = false; Object.defineProperty(obj, "foo1", { - value: 10, - writable: false, - enumerable: true, - configurable: false + value: 10, + writable: false, + enumerable: true, + configurable: false }); function get_func() { - return 10; + return 10; } function set_func() { - resultSetFun = true; + resultSetFun = true; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.freeze(obj); @@ -42,19 +42,19 @@ verifyNotConfigurable(obj, "foo2"); obj.foo2 = 12; if (!resultSetFun) { - $ERROR('Expected obj["foo2"] set() to be called, but was not.'); + $ERROR('Expected obj["foo2"] set() to be called, but was not.'); } verifyEnumerable(obj, "foo2"); var desc1 = Object.getOwnPropertyDescriptor(obj, "foo1"); if (desc1.configurable || desc1.writable) { - $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); + $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); } var desc2 = Object.getOwnPropertyDescriptor(obj, "foo2"); if (desc2.configurable || desc2.writable) { - $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); + $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); } verifyEqualTo(obj, "foo1", 10); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js index 5a7b953d7d4da518998b757f3dcc189e4f9be173..08e133137d5c446f82a83f72259bac443f518cb6 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-1.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-1 description: Object.freeze - 'O' is a Function object ---*/ - var funObj = function () { }; +var funObj = function() {}; - Object.freeze(funObj); +Object.freeze(funObj); assert(Object.isFrozen(funObj), 'Object.isFrozen(funObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js index 00b492ac870c0965fbd1c53dc3dedeb5ca44bff3..4476444b0033e1989aef4214ec4fe79560566345 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-2.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-2 description: Object.freeze - 'O' is an Array object ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; - Object.freeze(arrObj); +Object.freeze(arrObj); assert(Object.isFrozen(arrObj), 'Object.isFrozen(arrObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js index 0abb0a7eec01dc25431944c638eec6e12a66bc9f..e361b904fcec20197c831eaeb084b8bed88b1e64 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-3.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-3 description: Object.freeze - 'O' is a String object ---*/ - var strObj = new String("a"); +var strObj = new String("a"); - Object.freeze(strObj); +Object.freeze(strObj); assert(Object.isFrozen(strObj), 'Object.isFrozen(strObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js index 02994757cd455c8940226fff36b6ae4f58f4be75..160f139698cbfa8b3800a955ee1e001ec0feea4b 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-4.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-4 description: Object.freeze - 'O' is a Boolean object ---*/ - var boolObj = new Boolean(false); +var boolObj = new Boolean(false); - Object.freeze(boolObj); +Object.freeze(boolObj); assert(Object.isFrozen(boolObj), 'Object.isFrozen(boolObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js index 3b22cfa1093bcffca7582c0cf8eda3660fac221b..bd55c8c7e60ec50a69ce6b6914e166ac7cad149f 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-5.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-5 description: Object.freeze - 'O' is a Number object ---*/ - var numObj = new Number(3); +var numObj = new Number(3); - Object.freeze(numObj); +Object.freeze(numObj); assert(Object.isFrozen(numObj), 'Object.isFrozen(numObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js index f07460a8cd3c6efac48608472345d8df77d7d730..1b82d65614b2bb934d915cb14311266d5c05db48 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-6.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-6 description: Object.freeze - 'O' is a Date object ---*/ - var dateObj = new Date(); +var dateObj = new Date(); - Object.freeze(dateObj); +Object.freeze(dateObj); assert(Object.isFrozen(dateObj), 'Object.isFrozen(dateObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js index b855a071c8abe4edba53b10ee2cee38cbf76b8e8..d8245d90301149c0839a9915eb5b0b059754753b 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-7.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-7 description: Object.freeze - 'O' is a RegExp object ---*/ - var regObj = new RegExp(); +var regObj = new RegExp(); - Object.freeze(regObj); +Object.freeze(regObj); assert(Object.isFrozen(regObj), 'Object.isFrozen(regObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js index 34e2648c4dca5e917cd91eea36f9310b398fe58f..7afbbd574ccae787fb165a4eeeccef85b736369b 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-8.js @@ -6,8 +6,8 @@ es5id: 15.2.3.9-2-d-8 description: Object.freeze - 'O' is an Error object ---*/ - var errObj = new SyntaxError(); +var errObj = new SyntaxError(); - Object.freeze(errObj); +Object.freeze(errObj); assert(Object.isFrozen(errObj), 'Object.isFrozen(errObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js b/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js index 877a8ba88d41ee73f32e2db9d0a5ab105281f803..2779fd7e856de0c0adde01d1227163f132bf88ed 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js @@ -6,8 +6,10 @@ es5id: 15.2.3.9-2-d-9 description: Object.freeze - 'O' is the Arguments object ---*/ - var argObj = (function () { return arguments; } ()); +var argObj = (function() { + return arguments; +}()); - Object.freeze(argObj); +Object.freeze(argObj); assert(Object.isFrozen(argObj), 'Object.isFrozen(argObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-3-1.js b/test/built-ins/Object/freeze/15.2.3.9-3-1.js index be171a5d4e814992b2b196e81d1fd80c0e04ea64..64a970518b2369a504d9a5753d33d80dc5320c6c 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-3-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-3-1.js @@ -6,7 +6,7 @@ es5id: 15.2.3.9-3-1 description: Object.freeze - returned object is not extensible ---*/ - var obj = {}; - Object.freeze(obj); +var obj = {}; +Object.freeze(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-1.js b/test/built-ins/Object/freeze/15.2.3.9-4-1.js index 68169779a6b0ecc472d6e012bcf1b736836cea4e..dabf74a65e55a84356fa9b29a18fd1d2c5bbc6dd 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-4-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-4-1.js @@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-1 description: Object.freeze - 'O' is sealed already ---*/ - var obj = {}; +var obj = {}; - obj.foo = 10; // default value of attributes: writable: true, enumerable: true +obj.foo = 10; // default value of attributes: writable: true, enumerable: true - Object.seal(obj); +Object.seal(obj); - Object.freeze(obj); +Object.freeze(obj); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-2.js b/test/built-ins/Object/freeze/15.2.3.9-4-2.js index 1dd1d33503a9f5abd15bfac4c509a25b3ade105a..3bf475a593e1268dfa81fde50644aa2baa032cfe 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-4-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-4-2.js @@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-2 description: Object.freeze - 'O' is frozen already ---*/ - var obj = {}; +var obj = {}; - obj.foo = 10; // default value of attributes: writable: true, enumerable: true +obj.foo = 10; // default value of attributes: writable: true, enumerable: true - Object.freeze(obj); +Object.freeze(obj); - Object.freeze(obj); +Object.freeze(obj); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-4-3.js b/test/built-ins/Object/freeze/15.2.3.9-4-3.js index 4e3623cace77d8d0d2208d81860e0efd44d6a237..8c4098a1f9f3152808a7ba21fc68a3ebb79968ae 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-4-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-4-3.js @@ -6,12 +6,12 @@ es5id: 15.2.3.9-4-3 description: Object.freeze - the extensions of 'O' is prevented already ---*/ - var obj = {}; +var obj = {}; - obj.foo = 10; // default value of attributes: writable: true, enumerable: true +obj.foo = 10; // default value of attributes: writable: true, enumerable: true - Object.preventExtensions(obj); +Object.preventExtensions(obj); - Object.freeze(obj); +Object.freeze(obj); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js index bc63911fa321c31e7ef8a001e23e1ffe1df2549e..06bd2366ad6a0446e31dbaa4540731908f05e34f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-1.js @@ -10,5 +10,5 @@ description: > assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(undefined, "foo"); + Object.getOwnPropertyDescriptor(undefined, "foo"); }); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js index 09b8587145bf8948dbba89a4ddfcf5febbb96b68..b342f25730e26f23bfc454d0c52d400076567c15 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-2.js @@ -10,5 +10,5 @@ description: > assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(null, "foo"); + Object.getOwnPropertyDescriptor(null, "foo"); }); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js index 580a6811b7242864e1c1b1fae5c20fe877fe792c..c964e63f839959173f4414bb95e60ec7fdc8c04c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-3.js @@ -8,4 +8,4 @@ description: > first param is a boolean ---*/ - Object.getOwnPropertyDescriptor(true, "foo"); +Object.getOwnPropertyDescriptor(true, "foo"); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js index f11a5206e09f72a16365c604ce49eb3a6ec0d4d1..fd890bfbbfb1da5916a34477bd48a0526a24992f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1-4.js @@ -8,4 +8,4 @@ description: > first param is a number ---*/ - Object.getOwnPropertyDescriptor(-2, "foo"); +Object.getOwnPropertyDescriptor(-2, "foo"); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js index b2713da646d1f9762e6277215e255f8cd93d69f9..ce7d31d500caaf15eca8e656cbe0a9fbd85689cb 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-1.js @@ -8,4 +8,4 @@ description: > of first param is not Object ---*/ - Object.getOwnPropertyDescriptor(0, "foo"); +Object.getOwnPropertyDescriptor(0, "foo"); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js index 579f005bf37b4c83fe92ca19388a6c53e01913ee..dc5742fb74d9b772842d5c4b505f8eb2d9db8fc3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-1.js @@ -8,7 +8,7 @@ description: > property name ---*/ - var o = {}; - var desc = Object.getOwnPropertyDescriptor(o, undefined); +var o = {}; +var desc = Object.getOwnPropertyDescriptor(o, undefined); assert.sameValue(desc, undefined, 'desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js index 51c962ec84af0e7def28d9ef4b3251b4e110045c..93cd1929df94df87bcfaf0f55df640c85590bcaa 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js @@ -8,8 +8,10 @@ description: > converts to a string (value is -0) ---*/ - var obj = { "0": 1 }; +var obj = { + "0": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, -0); +var desc = Object.getOwnPropertyDescriptor(obj, -0); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js index 6096a9edd7ef5c652f349de8bd6abb2864c63fe4..f21d393e1fadfb38a511888ecdc5fd0a7114556a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js @@ -8,8 +8,10 @@ description: > converts to a string (value is positive number) ---*/ - var obj = { "30": 1 }; +var obj = { + "30": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 30); +var desc = Object.getOwnPropertyDescriptor(obj, 30); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js index dd07bbf9d4526aaa3595b99da3c340be1f89b907..75f4f8c8b2cc9fdcf3c10b26b051eed135b230cf 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js @@ -8,8 +8,10 @@ description: > converts to a string (value is negative number) ---*/ - var obj = { "-20": 1 }; +var obj = { + "-20": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, -20); +var desc = Object.getOwnPropertyDescriptor(obj, -20); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js index aaf67dc7eae3985342ce01fc31ba62fc10111267..aa55b35d8e21c3dc0d5f0d4058ffee68ff4d8060 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js @@ -8,8 +8,10 @@ description: > converts to a string (value is Infinity) ---*/ - var obj = { "Infinity": 1 }; +var obj = { + "Infinity": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, Infinity); +var desc = Object.getOwnPropertyDescriptor(obj, Infinity); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js index 4ec76de3f5ab4c4c132cd30478073e8989493dba..a41bb95af677958648671aeb1eabf9265daea7a9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js @@ -8,8 +8,10 @@ description: > converts to a string (value is +Infinity) ---*/ - var obj = { "Infinity": 1 }; +var obj = { + "Infinity": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, +Infinity); +var desc = Object.getOwnPropertyDescriptor(obj, +Infinity); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js index 5550e02a12aeef0d35491f651e9026af9d523e06..dd9c09a85a4906dbd7da80bb372c745693e32f83 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js @@ -8,8 +8,10 @@ description: > converts to a string (value is -Infinity) ---*/ - var obj = { "-Infinity": 1 }; +var obj = { + "-Infinity": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, -Infinity); +var desc = Object.getOwnPropertyDescriptor(obj, -Infinity); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js index 9806a60dc2f6be985ea7ed8d08492bb7cd6bacb9..785f6861a784a4c8b8bc8aada9e786915c533513 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1(following 20 zeros)) ---*/ - var obj = { "100000000000000000000": 1 }; +var obj = { + "100000000000000000000": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000); +var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js index e665e5f7be7f3b21229775796d648b2a72dd02bd..a3c9d6f18adc5a608a87083c9756ae7233b528cf 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1(following 21 zeros)) ---*/ - var obj = { "1e+21": 1 }; +var obj = { + "1e+21": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000); +var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js index 52629a60e0ceb09a06e4c5e26ea4cc9aef01702b..2ef0990de35953eb2336598f801d8b8efaf57a7e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1(following 22 zeros)) ---*/ - var obj = { "1e+22": 1 }; +var obj = { + "1e+22": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000); +var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js index 2efc16d3a24d2e74996ab8ba6bdaab8e73470907..fb0f4d6dbfdebb69d0121553f2fa31c44bab89c8 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e+20) ---*/ - var obj = { "100000000000000000000": 1 }; +var obj = { + "100000000000000000000": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e+20); +var desc = Object.getOwnPropertyDescriptor(obj, 1e+20); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js index ec8e546878a85d71a4328ecf3f0345ee3c697b2c..df6c5fdcbc5e309cbbe8c1657b970181c08a2345 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js @@ -8,7 +8,7 @@ description: > property name ---*/ - var o = {}; - var desc = Object.getOwnPropertyDescriptor(o, null); +var o = {}; +var desc = Object.getOwnPropertyDescriptor(o, null); assert.sameValue(desc, undefined, 'desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js index b2cc6480bf2db24967e5f6c80773565bbfe89664..649393d820f74daf98e66906c3e5da784bbcac47 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js @@ -8,8 +8,10 @@ description: > converts to string (value is 1e+21) ---*/ - var obj = { "1e+21": 1 }; +var obj = { + "1e+21": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e+21); +var desc = Object.getOwnPropertyDescriptor(obj, 1e+21); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js index a11547398b6bb27ae2bbca1bc024e07a7a0605cb..d56079fe28b5109640c6b070530a00a78af6760d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e+22) ---*/ - var obj = { "1e+22": 1 }; +var obj = { + "1e+22": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e+22); +var desc = Object.getOwnPropertyDescriptor(obj, 1e+22); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js index 80cbf6f4ee9ff0c71d92227ed6ff6468dfeb561f..b9dd0941714dca3b1772def1ba7c32561e35885b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 0.000001) ---*/ - var obj = { "0.000001": 1 }; +var obj = { + "0.000001": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 0.000001); +var desc = Object.getOwnPropertyDescriptor(obj, 0.000001); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js index 2398ebc574c854453a6a26f3c0430ad034dbad42..27f12e81873f93dd1f5028383fd4e04313dbacb5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 0.0000001) ---*/ - var obj = { "1e-7": 1 }; +var obj = { + "1e-7": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001); +var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js index b3cf0bb3c51959405c4516fb96a9a25ba895a435..4cef9d9ea348b52c17f7faeb8aa7b0bd756af89a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 0.00000001) ---*/ - var obj = { "1e-8": 1 }; +var obj = { + "1e-8": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001); +var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js index cab2b57b43d3fe8834a62535812b45425a617e98..e4aac303bfcf42ad9fbd20c4563318c84146c115 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e-7) ---*/ - var obj = { "1e-7": 1 }; +var obj = { + "1e-7": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e-7); +var desc = Object.getOwnPropertyDescriptor(obj, 1e-7); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js index 2b096d817a665af121eaf002d456c0533b0b41b3..b7fdd5710ede8a7271eb89ebc69c8eb2732673ab 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e-6) ---*/ - var obj = { "0.000001": 1 }; +var obj = { + "0.000001": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e-6); +var desc = Object.getOwnPropertyDescriptor(obj, 1e-6); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js index 9cda3a078df24776afa68574f90a153109bad479..4036580a7ad15143073d2ab7628850be9a42fa15 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e-5) ---*/ - var obj = { "0.00001": 1 }; +var obj = { + "0.00001": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e-5); +var desc = Object.getOwnPropertyDescriptor(obj, 1e-5); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js index 907ef5941752cb764b9f5f8670c3911135ce5ddb..de8d35cbc6a275706fe17d66b72e009ec8a67c27 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 123) ---*/ - var obj = { "123": 1 }; +var obj = { + "123": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 123); +var desc = Object.getOwnPropertyDescriptor(obj, 123); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js index 3450595896c38690ec62a44bea872157d12a97b7..1ab3f7e787cf419fd4e33d2d52efb086d5d9c9e9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 123.456) ---*/ - var obj = { "123.456": 1 }; +var obj = { + "123.456": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 123.456); +var desc = Object.getOwnPropertyDescriptor(obj, 123.456); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js index 0d6b390443df066edfb3fe1a59c74d627964f42a..890f7e16193be249f0473a8071eea88172b30d6a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js @@ -6,10 +6,12 @@ es5id: 15.2.3.3-2-3 description: Object.getOwnPropertyDescriptor - argument 'P' is undefined ---*/ - var obj = { "undefined": 1 }; +var obj = { + "undefined": 1 +}; - var desc1 = Object.getOwnPropertyDescriptor(obj, undefined); - var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined"); +var desc1 = Object.getOwnPropertyDescriptor(obj, undefined); +var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined"); assert.sameValue(desc1.value, 1, 'desc1.value'); assert.sameValue(desc2.value, 1, 'desc2.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js index 765ffb58448dfa790fc40b4cd81b20d79179b3bd..399b98b9732ca01509ef8373c2da365dc1507a5e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js @@ -8,9 +8,11 @@ description: > converts to a string (value is 100000000000000000000.123) ---*/ - var obj = { "100000000000000000000": 1 }; +var obj = { + "100000000000000000000": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123); +var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123); assert(typeof desc !== "undefined", 'typeof desc !== "undefined" !== true'); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js index 6012c8bc196a8492e6adc2ac0e78668b312994cc..038d7c37a85f894722bac1dc384c18a5b4e423b5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 123.1234567) ---*/ - var obj = { "123.1234567": 1 }; +var obj = { + "123.1234567": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567); +var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js index e3769e7bdba4223dce54357717fce8b84adfa2aa..dbda5e5917409684ed2eec578a25de44a1814cdf 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js @@ -8,8 +8,10 @@ description: > empty string ---*/ - var obj = { "": 1 }; +var obj = { + "": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, ""); +var desc = Object.getOwnPropertyDescriptor(obj, ""); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js index 15f3eb2ae9978399cd8d6a34dbf33e28115eaa3a..70e270e0f431376fd4069b07f38f055a6853e00f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js @@ -8,8 +8,10 @@ description: > string 'AB \cd' ---*/ - var obj = { "AB\n\\cd": 1 }; +var obj = { + "AB\n\\cd": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd"); +var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd"); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js index e6eb6681e58d06f676e4dabb0cc5e339bcfd9744..ee9bab0bae4a9afa1da0ba6d2165caef51b79a44 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js @@ -8,8 +8,10 @@ description: > string 'undefined' ---*/ - var obj = { "undefined": 1 }; +var obj = { + "undefined": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "undefined"); +var desc = Object.getOwnPropertyDescriptor(obj, "undefined"); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js index d0de7e71ee073cea84f705927504ab5ceeeff89e..dd19c246cc5c89c1fca21ad29778669670138802 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js @@ -8,8 +8,10 @@ description: > string 'null' ---*/ - var obj = { "null": 1 }; +var obj = { + "null": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "null"); +var desc = Object.getOwnPropertyDescriptor(obj, "null"); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js index e8fa1a16405812b28a7ef5a11f9758c3e82cf5d1..73a1dec326df184dc7a1e59c95aed2e41ded9a0e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js @@ -8,8 +8,10 @@ description: > string '123���¦�cd' ---*/ - var obj = { "123���¦�cd": 1 }; +var obj = { + "123���¦�cd": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "123���¦�cd"); +var desc = Object.getOwnPropertyDescriptor(obj, "123���¦�cd"); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js index 8fe16690bd24f7c8ede47f0bb64eb7b12e2be422..13294c6af98e90d8e0e73a4e652e3763c2823e02 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js @@ -8,8 +8,10 @@ description: > string '1' ---*/ - var obj = { "1": 1 }; +var obj = { + "1": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1); +var desc = Object.getOwnPropertyDescriptor(obj, 1); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js index 6d3ae01351ac4b527285295e88b7a6494faf4ad0..2c6dabd184c80d4eed4ee682bbcfb38b7ae0c09c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js @@ -8,8 +8,10 @@ description: > converts to a string ---*/ - var obj = { "1": 1 }; +var obj = { + "1": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, [1]); +var desc = Object.getOwnPropertyDescriptor(obj, [1]); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js index 92c9d4f62038447588b4acb72c1b3ad78fcc00fc..f1ee178ea7cc989c41c4a9f0898c852d3592c0af 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js @@ -8,8 +8,10 @@ description: > that converts to a string ---*/ - var obj = { "Hello": 1 }; +var obj = { + "Hello": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello")); +var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello")); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js index 9cdca680fb904b44433ba2c59eb6b9fbddfeaa61..37174cc8b7eb565268de3e641b0c9c185d5a8142 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js @@ -8,8 +8,10 @@ description: > converts to string 'null' ---*/ - var obj = { "null": 1 }; +var obj = { + "null": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, null); +var desc = Object.getOwnPropertyDescriptor(obj, null); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js index d8105069217fc13229a4d05fcdcbc958e90b9be9..d83d4dd441763faffcda656b09ceb5b8ee1c9b43 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js @@ -8,8 +8,10 @@ description: > that converts to a string ---*/ - var obj = { "true": 1 }; +var obj = { + "true": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true)); +var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true)); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js index 88ab0b4c4e91febdefb19a75f30316f421575fb3..fdf304e46c80a54ccc70252437297cfc84cf0f66 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js @@ -8,8 +8,10 @@ description: > that converts to a string ---*/ - var obj = { "123": 1 }; +var obj = { + "123": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, new Number(123)); +var desc = Object.getOwnPropertyDescriptor(obj, new Number(123)); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js index ecc16066c41c0424ae8622e292bd8429fc5c181f..645b79668360da5e57bd3a5cbfea26b0a4333112 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js @@ -8,14 +8,16 @@ description: > has an own toString method ---*/ - var obj = { "abc": 1 }; +var obj = { + "abc": 1 +}; - var ownProp = { - toString: function () { - return "abc"; - } - }; +var ownProp = { + toString: function() { + return "abc"; + } +}; - var desc = Object.getOwnPropertyDescriptor(obj, ownProp); +var desc = Object.getOwnPropertyDescriptor(obj, ownProp); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js index fbfb42f5101db6ba4a65f21b2c7ac0c82361df7b..782eff3ec5b5cf00d43f30a02f98b9e9b962ab23 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js @@ -8,14 +8,17 @@ description: > has an own valueOf method ---*/ - var obj = { "[object Object]": 1, "abc" : 2 }; +var obj = { + "[object Object]": 1, + "abc": 2 +}; - var ownProp = { - valueOf: function () { - return "abc"; - } - }; +var ownProp = { + valueOf: function() { + return "abc"; + } +}; - var desc = Object.getOwnPropertyDescriptor(obj, ownProp); +var desc = Object.getOwnPropertyDescriptor(obj, ownProp); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js index 115f34333be6a1c88fb4ea7bd6f644fc04782bb5..5ba605c21b78a0bef69f6f2064398132da0ed1be 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js @@ -9,22 +9,24 @@ description: > method that returns a primitive value ---*/ - var obj = { "abc": 1 }; - var valueOfAccessed = false; - var toStringAccessed = false; +var obj = { + "abc": 1 +}; +var valueOfAccessed = false; +var toStringAccessed = false; - var ownProp = { - toString: function () { - toStringAccessed = true; - return {}; - }, - valueOf: function () { - valueOfAccessed = true; - return "abc"; - } - }; +var ownProp = { + toString: function() { + toStringAccessed = true; + return {}; + }, + valueOf: function() { + valueOfAccessed = true; + return "abc"; + } +}; - var desc = Object.getOwnPropertyDescriptor(obj, ownProp); +var desc = Object.getOwnPropertyDescriptor(obj, ownProp); assert.sameValue(desc.value, 1, 'desc.value'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js index aa318dc2f6e3e3436a09130a1a8a739baf7f3570..1df1af980e952ee5385b6a642db826800cb6ea6f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js @@ -8,20 +8,23 @@ description: > has an own toString and valueOf method ---*/ - var obj = { "bbq": 1, "abc": 2 }; - var valueOfAccessed = false; +var obj = { + "bbq": 1, + "abc": 2 +}; +var valueOfAccessed = false; - var ownProp = { - toString: function () { - return "bbq"; - }, - valueOf: function () { - valueOfAccessed = true; - return "abc"; - } - }; +var ownProp = { + toString: function() { + return "bbq"; + }, + valueOf: function() { + valueOfAccessed = true; + return "abc"; + } +}; - var desc = Object.getOwnPropertyDescriptor(obj, ownProp); +var desc = Object.getOwnPropertyDescriptor(obj, ownProp); assert.sameValue(desc.value, 1, 'desc.value'); assert.sameValue(valueOfAccessed, false, 'valueOfAccessed'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js index 4527a76d35913a34f019876449e1218d92d71687..9c1e96bb6be0754f9196d8ae63ab666b63c8595e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js @@ -9,22 +9,24 @@ description: > return primitive value ---*/ - var obj = { "1": 1 }; - var toStringAccessed = false; - var valueOfAccessed = false; +var obj = { + "1": 1 +}; +var toStringAccessed = false; +var valueOfAccessed = false; - var ownProp = { - toString: function () { - toStringAccessed = true; - return [1]; - }, - valueOf: function () { - valueOfAccessed = true; - return [1]; - } - }; +var ownProp = { + toString: function() { + toStringAccessed = true; + return [1]; + }, + valueOf: function() { + valueOfAccessed = true; + return [1]; + } +}; assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(obj, ownProp); + Object.getOwnPropertyDescriptor(obj, ownProp); }); assert(toStringAccessed, 'toStringAccessed !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js index f07c6f385da5b19f3c4f5ef3e3ebed97426b382c..cd99194fdc624def8e854d7841493be1a9e60535 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js @@ -9,25 +9,28 @@ description: > methods ---*/ - var proto = {}; - var valueOfAccessed = false; - var toStringAccessed = false; +var proto = {}; +var valueOfAccessed = false; +var toStringAccessed = false; - proto.toString = function () { - toStringAccessed = true; - return "test"; - }; +proto.toString = function() { + toStringAccessed = true; + return "test"; +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.valueOf = function () { - valueOfAccessed = true; - return "10"; - }; - var obj = { "10": "length1", "test": "length2" }; - var desc = Object.getOwnPropertyDescriptor(obj, child); +var child = new Con(); +child.valueOf = function() { + valueOfAccessed = true; + return "10"; +}; +var obj = { + "10": "length1", + "test": "length2" +}; +var desc = Object.getOwnPropertyDescriptor(obj, child); assert.sameValue(desc.value, "length2", 'desc.value'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js index 5a332dfaae83aa7c1fa35a64909fe1800349d261..5ab62d5a65bf910f7305be46107f421875d85342 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js @@ -8,8 +8,10 @@ description: > value is false ---*/ - var obj = { "false": 1 }; +var obj = { + "false": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, false); +var desc = Object.getOwnPropertyDescriptor(obj, false); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js index 66f9b1dd6d23071e621b5b467cb25117faba2cd9..f1f764c8ee1229bab4fd849992a19da5094fcc00 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js @@ -8,8 +8,10 @@ description: > value is true ---*/ - var obj = { "true": 1 }; +var obj = { + "true": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, true); +var desc = Object.getOwnPropertyDescriptor(obj, true); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js index 5077f4049e74d55c294a629c4590a06b0a26b396..0eb07a4aee1dd26adcaeb3070889a7f08f1d0107 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js @@ -8,8 +8,10 @@ description: > converts to a string (value is NaN) ---*/ - var obj = { "NaN": 1 }; +var obj = { + "NaN": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, NaN); +var desc = Object.getOwnPropertyDescriptor(obj, NaN); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js index 0b38934c2041488f082575219cf2c29973fd3c75..675c6e19749238aa0a049b0c315f28700f206196 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 0) ---*/ - var obj = { "0": 1 }; +var obj = { + "0": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 0); +var desc = Object.getOwnPropertyDescriptor(obj, 0); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js index 88bd6bda1ae365f0f450c9bb8691322ba56dd0db..ed5f3da402a7a53092685c4bada16cd0c4ca5444 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js @@ -8,8 +8,10 @@ description: > converts to a string (value is +0) ---*/ - var obj = { "0": 1 }; +var obj = { + "0": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, +0); +var desc = Object.getOwnPropertyDescriptor(obj, +0); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js index cb66bc4f4feb49b4540fbbb1f8a197bf05cf2509..5c1f6f09eb81f49089b626ac76c1a6888f34037b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js @@ -6,10 +6,10 @@ es5id: 15.2.3.3-3-1 description: Object.getOwnPropertyDescriptor - 'P' is own data property ---*/ - var obj = { - property: "ownDataProperty" - }; +var obj = { + property: "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.value, "ownDataProperty", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js index 72462590963f3c41596d87fbd4647ab64a03a12e..06586605d40073091767bc191d3f0007d9d19945 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-10.js @@ -6,10 +6,10 @@ es5id: 15.2.3.3-3-10 description: Object.getOwnPropertyDescriptor - 'P' is not an existing property ---*/ - var obj = { - property: "ownDataProperty" - }; +var obj = { + property: "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "propertyNonExist"); +var desc = Object.getOwnPropertyDescriptor(obj, "propertyNonExist"); assert.sameValue(typeof desc, "undefined", 'typeof desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js index 2640e9092a0413de950bc110c5e81ea3ce62f210..da3072f64946aa28eb784d927a4663cd52e09ad5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-13.js @@ -8,11 +8,11 @@ description: > which implements its own property get method ---*/ - var arg = (function () { - return arguments; - }("ownProperty", true)); +var arg = (function() { + return arguments; +}("ownProperty", true)); - var desc = Object.getOwnPropertyDescriptor(arg, "0"); +var desc = Object.getOwnPropertyDescriptor(arg, "0"); assert.sameValue(desc.value, "ownProperty", 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js index d6fce8e89074693886f24647cc160828d8fef579..30e82b197e1db321c3b689e2442f8ff48944e87b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-14.js @@ -8,8 +8,8 @@ description: > implements its own property get method ---*/ - var str = new String("123"); +var str = new String("123"); - var desc = Object.getOwnPropertyDescriptor(str, "2"); +var desc = Object.getOwnPropertyDescriptor(str, "2"); assert.sameValue(desc.value, "3", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js index 3f12ff690ef211b85ce9a7ab52cd78fefa76bfd9..c502df6bd4c3781e083d18d6d3b87b4290f64aee 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-15.js @@ -8,11 +8,11 @@ description: > implements its own property get method ---*/ - var obj = function (a, b) { - return a + b; - }; - obj[1] = "ownProperty"; +var obj = function(a, b) { + return a + b; +}; +obj[1] = "ownProperty"; - var desc = Object.getOwnPropertyDescriptor(obj, "1"); +var desc = Object.getOwnPropertyDescriptor(obj, "1"); assert.sameValue(desc.value, "ownProperty", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js index 09f56f6dea06d91b24b07e957ff8f1fb17b43f54..19d53b257407fb463797b8c17a213523c4e61dc5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-2.js @@ -6,15 +6,15 @@ es5id: 15.2.3.3-3-2 description: Object.getOwnPropertyDescriptor - 'P' is inherited data property ---*/ - var proto = { - property: "inheritedDataProperty" - }; +var proto = { + property: "inheritedDataProperty" +}; - var Con = function () { }; - Con.ptototype = proto; +var Con = function() {}; +Con.ptototype = proto; - var child = new Con(); +var child = new Con(); - var desc = Object.getOwnPropertyDescriptor(child, "property"); +var desc = Object.getOwnPropertyDescriptor(child, "property"); assert.sameValue(typeof desc, "undefined", 'typeof desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js index 930eccc68f21445a8d98a132b8a3ad40b99a10cb..2c9e90de3e8655c1d51327005321e636a9b69b6a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-3.js @@ -8,16 +8,16 @@ description: > overrides an inherited data property ---*/ - var proto = { - property: "inheritedDataProperty" - }; +var proto = { + property: "inheritedDataProperty" +}; - var Con = function () { }; - Con.ptototype = proto; +var Con = function() {}; +Con.ptototype = proto; - var child = new Con(); - child.property = "ownDataProperty"; +var child = new Con(); +child.property = "ownDataProperty"; - var desc = Object.getOwnPropertyDescriptor(child, "property"); +var desc = Object.getOwnPropertyDescriptor(child, "property"); assert.sameValue(desc.value, "ownDataProperty", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js index a01c60d49d426780d607b757e5c7ef021a85de67..851c54d28a64d6686d75b14c6b85e9d50f7e6f61 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-4.js @@ -8,23 +8,23 @@ description: > overrides an inherited accessor property ---*/ - var proto = {}; - Object.defineProperty(proto, "property", { - get: function () { - return "inheritedDataProperty"; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "property", { + get: function() { + return "inheritedDataProperty"; + }, + configurable: true +}); - var Con = function () { }; - Con.ptototype = proto; +var Con = function() {}; +Con.ptototype = proto; - var child = new Con(); - Object.defineProperty(child, "property", { - value: "ownDataProperty", - configurable: true - }); +var child = new Con(); +Object.defineProperty(child, "property", { + value: "ownDataProperty", + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(child, "property"); +var desc = Object.getOwnPropertyDescriptor(child, "property"); assert.sameValue(desc.value, "ownDataProperty", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js index 0baa73874ae8c8709cc72705548bb5c1d5e42aff..01ec7c316d7cbbcd32b8e98063b01dd99ca29177 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-5.js @@ -6,15 +6,15 @@ es5id: 15.2.3.3-3-5 description: Object.getOwnPropertyDescriptor - 'P' is own accessor property ---*/ - var obj = {}; - var fun = function () { - return "ownAccessorProperty"; - }; - Object.defineProperty(obj, "property", { - get: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownAccessorProperty"; +}; +Object.defineProperty(obj, "property", { + get: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.get, fun, 'desc.get'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js index c2e77346d0ce9d020d3fe84ebf2275ae2c58979e..ad3d38a428ad40de9503101bec8a8e78de8f79bc 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-6.js @@ -8,20 +8,20 @@ description: > property ---*/ - var proto = {}; - var fun = function () { - return "ownAccessorProperty"; - }; - Object.defineProperty(proto, "property", { - get: fun, - configurable: true - }); +var proto = {}; +var fun = function() { + return "ownAccessorProperty"; +}; +Object.defineProperty(proto, "property", { + get: fun, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var desc = Object.getOwnPropertyDescriptor(child, "property"); +var desc = Object.getOwnPropertyDescriptor(child, "property"); assert.sameValue(typeof desc, "undefined", 'typeof desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js index b8caeb90d46ee4abe7673523d53856a7210ab79a..564bc931218b92053bd709d03d37f2aa6a7b2165 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-7.js @@ -8,22 +8,22 @@ description: > that overrides an inherited data property ---*/ - var proto = { - property: "inheritedDataProperty" - }; +var proto = { + property: "inheritedDataProperty" +}; - var Con = function () { }; - Con.ptototype = proto; +var Con = function() {}; +Con.ptototype = proto; - var child = new Con(); - var fun = function () { - return "ownAccessorProperty"; - }; - Object.defineProperty(child, "property", { - get: fun, - configurable: true - }); +var child = new Con(); +var fun = function() { + return "ownAccessorProperty"; +}; +Object.defineProperty(child, "property", { + get: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(child, "property"); +var desc = Object.getOwnPropertyDescriptor(child, "property"); assert.sameValue(desc.get, fun, 'desc.get'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js index 05e0bcd206a90894c33a2b8df7569ee593f8f848..82728fcea8e7f4059411f023f7c4ccb770835d37 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-8.js @@ -8,26 +8,26 @@ description: > that overrides an inherited accessor property ---*/ - var proto = {}; - Object.defineProperty(proto, "property", { - get: function () { - return "inheritedAccessorProperty"; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "property", { + get: function() { + return "inheritedAccessorProperty"; + }, + configurable: true +}); - var Con = function () { }; - Con.ptototype = proto; +var Con = function() {}; +Con.ptototype = proto; - var child = new Con(); - var fun = function () { - return "ownAccessorProperty"; - }; - Object.defineProperty(child, "property", { - get: fun, - configurable: true - }); +var child = new Con(); +var fun = function() { + return "ownAccessorProperty"; +}; +Object.defineProperty(child, "property", { + get: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(child, "property"); +var desc = Object.getOwnPropertyDescriptor(child, "property"); assert.sameValue(desc.get, fun, 'desc.get'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js index c2f364066be1f4137adddc14c26a9bfed56d2038..e91378c74f30139a388a8d8b2aef42b7ebb04dd5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-9.js @@ -8,13 +8,13 @@ description: > without a get function ---*/ - var obj = {}; - var fun = function () { }; - Object.defineProperty(obj, "property", { - set: fun, - configurable: true - }); +var obj = {}; +var fun = function() {}; +Object.defineProperty(obj, "property", { + set: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.set, fun, 'desc.set'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js index 5a6ffb8f2e208caadfca0e8f523c4eadb44a9fb0..99b4f77adb1b7730159d93b30a7b04c4dc87b6da 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-1.js @@ -8,10 +8,10 @@ description: > data desc for valid data valued properties ---*/ - var o = {}; - o["foo"] = 101; +var o = {}; +o["foo"] = 101; - var desc = Object.getOwnPropertyDescriptor(o, "foo"); +var desc = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(desc.value, 101, 'desc.value'); assert.sameValue(desc.enumerable, true, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js index d82974ad95150aee156cfb85563990e0d53ac190..658afee5d75414bb31dc51a874acba7bb943cef9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-10.js @@ -8,8 +8,8 @@ description: > built-ins (Global.decodeURIComponent) ---*/ - var global = this; - var desc = Object.getOwnPropertyDescriptor(global, "decodeURIComponent"); +var global = this; +var desc = Object.getOwnPropertyDescriptor(global, "decodeURIComponent"); assert.sameValue(desc.value, global.decodeURIComponent, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js index 78551fec91783cdd3022e3b78a3053e481982a11..44ae3836f61e69a7e927356413e2ef8e9c66d57e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-100.js @@ -8,7 +8,7 @@ description: > built-ins (Math.atan2) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "atan2"); +var desc = Object.getOwnPropertyDescriptor(Math, "atan2"); assert.sameValue(desc.value, Math.atan2, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js index dfdb37d1b7d34404242515d20232dc4fe86f392d..ebbfc04313d5c8620190a1177807382e466a6fbd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-101.js @@ -8,7 +8,7 @@ description: > built-ins (Math.ceil) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "ceil"); +var desc = Object.getOwnPropertyDescriptor(Math, "ceil"); assert.sameValue(desc.value, Math.ceil, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js index 302bc798e69645db31ace1c3b1e992e84424c56d..863357238baed55ae2170255f12c5e8f672740fe 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-102.js @@ -8,7 +8,7 @@ description: > built-ins (Math.cos) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "cos"); +var desc = Object.getOwnPropertyDescriptor(Math, "cos"); assert.sameValue(desc.value, Math.cos, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js index 57806ffe6fc1859e585d0e6fb2cfed82b57129ec..5c5bcb827b9b4fc2e1e627842ba3acdd94386c22 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-103.js @@ -8,7 +8,7 @@ description: > built-ins (Math.exp) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "exp"); +var desc = Object.getOwnPropertyDescriptor(Math, "exp"); assert.sameValue(desc.value, Math.exp, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js index 66f69b55eced4ea3af8b6c0c5e84c56d0d0cb900..c9871c201a5ac326eb55f20d7d9f5c4d26d1c6d3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-104.js @@ -8,7 +8,7 @@ description: > built-ins (Math.floor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "floor"); +var desc = Object.getOwnPropertyDescriptor(Math, "floor"); assert.sameValue(desc.value, Math.floor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js index 5643e8febabf267feda6b2ede2d1be841d52ef9f..8332ba5c9fc4b7dbc052b7b1fca63cf265c1e562 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-105.js @@ -8,7 +8,7 @@ description: > built-ins (Math.log) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "log"); +var desc = Object.getOwnPropertyDescriptor(Math, "log"); assert.sameValue(desc.value, Math.log, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js index 9db5008435c75913a5113309d34005abc4d538d4..3a66c0f5e7f56457aff456986da30da04a77f81f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-106.js @@ -8,7 +8,7 @@ description: > built-ins (Math.max) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "max"); +var desc = Object.getOwnPropertyDescriptor(Math, "max"); assert.sameValue(desc.value, Math.max, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js index 9df5a48126aa2199eeb19b0063fcdb58b8129ded..467105fc7595475967acd57366acd57720f6c61d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-107.js @@ -8,7 +8,7 @@ description: > built-ins (Math.min) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "min"); +var desc = Object.getOwnPropertyDescriptor(Math, "min"); assert.sameValue(desc.value, Math.min, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js index fe1004579a6f46fb7d63776fa7c062f9e428acc6..913855a31ee7c72ba16d4668d9d579534e28fe7e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-108.js @@ -8,7 +8,7 @@ description: > built-ins (Math.pow) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "pow"); +var desc = Object.getOwnPropertyDescriptor(Math, "pow"); assert.sameValue(desc.value, Math.pow, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js index 8001e1dd65fbdf50a790ecfef9d34b35a98aa6a5..a0313c2d4a48b2817d503f9090d8b17e77e17dc5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-109.js @@ -8,7 +8,7 @@ description: > built-ins (Math.random) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "random"); +var desc = Object.getOwnPropertyDescriptor(Math, "random"); assert.sameValue(desc.value, Math.random, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js index 18a41a1275be91403992be55b35189cea0ce85d5..347b69fa6d3139fbe72680599c800d6f8d5eda5a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-11.js @@ -8,8 +8,8 @@ description: > built-ins (Global.encodeURIComponent) ---*/ - var global = this; - var desc = Object.getOwnPropertyDescriptor(global, "encodeURIComponent"); +var global = this; +var desc = Object.getOwnPropertyDescriptor(global, "encodeURIComponent"); assert.sameValue(desc.value, global.encodeURIComponent, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js index 8410bc9687af18bd091d6f919145dc25357c518c..3a5449311981f7e1fcb6d2a2163faf0a1ef30b96 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-110.js @@ -8,7 +8,7 @@ description: > built-ins (Math.round) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "round"); +var desc = Object.getOwnPropertyDescriptor(Math, "round"); assert.sameValue(desc.value, Math.round, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js index 8d7a89f5567eeebb7cc36cb47bd8b4885c39222d..0b31471e4380b97780131fca13f1f0c8ff5db4d1 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-111.js @@ -8,7 +8,7 @@ description: > built-ins (Math.sin) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "sin"); +var desc = Object.getOwnPropertyDescriptor(Math, "sin"); assert.sameValue(desc.value, Math.sin, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js index 445f7adb06045f324dc17147c8ecf1048208eef1..3fc765308d7e445aa373a598877cda0900cc9963 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-112.js @@ -8,7 +8,7 @@ description: > built-ins (Math.sqrt) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "sqrt"); +var desc = Object.getOwnPropertyDescriptor(Math, "sqrt"); assert.sameValue(desc.value, Math.sqrt, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js index c4d1aecc83ad487fc0c4dc6a072830f28b26076a..4e2bb6f10cdc89c2245f20f8cc6bfd4ef9c5d2ec 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-113.js @@ -8,7 +8,7 @@ description: > built-ins (Math.tan) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "tan"); +var desc = Object.getOwnPropertyDescriptor(Math, "tan"); assert.sameValue(desc.value, Math.tan, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js index e111b361a08b074df399daf7eaa0ab3948c1896a..282a755b512c5aebb329c7e4585f103994b5fbf3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-114.js @@ -8,7 +8,7 @@ description: > built-ins (Date.parse) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date, "parse"); +var desc = Object.getOwnPropertyDescriptor(Date, "parse"); assert.sameValue(desc.value, Date.parse, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js index 7cc8f4b45046a756c207bc97055894d568214c93..2f4e0059e235a883f07cd839aa38ed6c6415e955 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-115.js @@ -8,7 +8,7 @@ description: > built-ins (Date.UTC) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date, "UTC"); +var desc = Object.getOwnPropertyDescriptor(Date, "UTC"); assert.sameValue(desc.value, Date.UTC, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js index 023c9a9ef1ae20405a46248d6640a99cdec3d802..b366d8e21ee710bd51a2580751f656b3a7af1c8d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-116.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "constructor"); assert.sameValue(desc.value, Date.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js index bc009fc36d7ab9e2e6eb32304b81942e62b97c6d..a68cf618a133ff2c7b954f522241b181ca9347d5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-117.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getTime) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTime"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTime"); assert.sameValue(desc.value, Date.prototype.getTime, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js index 157058626014df6a94a192e94639ef7f123fcfe3..699ddb6a444a76a4641cf3c4732eab41508ce1b7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-118.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getTimezoneOffset) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTimezoneOffset"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getTimezoneOffset"); assert.sameValue(desc.value, Date.prototype.getTimezoneOffset, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js index 2915ede2a3bbe88f1f20ddf9f5a4f620af743b8d..b6edce9c35222d87f36196389ef99c13885bf32b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-120.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getFullYear) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getFullYear"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getFullYear"); assert.sameValue(desc.value, Date.prototype.getFullYear, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js index 4bd159bf5b7e320b229533c66f2187a2f1f07e40..072a3824c0b12bf1ed663847e0c252f7f64c1582 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-121.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getMonth) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMonth"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMonth"); assert.sameValue(desc.value, Date.prototype.getMonth, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js index 6516d891779e36b25a59a04ac8f94e16cbe24f2b..ebeca9afc3248210c8545514eb93cf439f8fac63 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-122.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getDate) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDate"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDate"); assert.sameValue(desc.value, Date.prototype.getDate, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js index 421ca744e1d123adbe46f78750d8afe8d14bda27..281de8f6c3875c1b8e9b9ba84796fb72e7aa1a97 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-123.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getDay) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDay"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getDay"); assert.sameValue(desc.value, Date.prototype.getDay, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js index 789e7ba064e0139bdc95a9e838c653a5f1ee9714..5e1a8e7251731a878ff9e02bd1f834f383b89ea4 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-124.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getHours) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getHours"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getHours"); assert.sameValue(desc.value, Date.prototype.getHours, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js index b6dcb8c6bc8c703b36d406808ef3ef2ecca8b06d..69292234f7a7b13b8910d4311a9e48d985f1fcfb 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-125.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getMinutes) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMinutes"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMinutes"); assert.sameValue(desc.value, Date.prototype.getMinutes, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js index 4d315aca02aab44b9f4ee4131004444532106adf..119bba91f0306a28268c87b9c1530aefb175aff4 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-126.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getSeconds) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getSeconds"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getSeconds"); assert.sameValue(desc.value, Date.prototype.getSeconds, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js index ec29ff4607ee0b1409dac97d51882fc2cbf5641b..32e9a2c36bec8c5750308c2d13c5a602cb4c7851 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-127.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getMilliseconds) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMilliseconds"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getMilliseconds"); assert.sameValue(desc.value, Date.prototype.getMilliseconds, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js index 4df71b5a70b03c6821f15599a2d1bb0363ab874b..c33ec2bb53d9a6df8a7218d12d45cd8ea45bfb26 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-128.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getUTCFullYear) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCFullYear"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCFullYear"); assert.sameValue(desc.value, Date.prototype.getUTCFullYear, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js index 00c26597d2e494c533b78142f30b2fc4cf904028..d90f9e4ee462882fce296f1c7d130a060cfc350c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-129.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getUTCMonth) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMonth"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMonth"); assert.sameValue(desc.value, Date.prototype.getUTCMonth, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js index b5ff8f449208b9ad60b438a3cbca20423c309552..487801924dfa19bb34cbe042bae8d1751bf88539 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-130.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getUTCDate) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDate"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDate"); assert.sameValue(desc.value, Date.prototype.getUTCDate, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js index ce2f09bf871be4948a69be464c403a8b6a189357..d2303ab38dd76b490c4bcd1c07be34d7096726bf 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-131.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getUTCDay) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDay"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCDay"); assert.sameValue(desc.value, Date.prototype.getUTCDay, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js index 5f6d6e80558df554128aae310c195fb4f70aee51..dec07563870499e3c7dddfc5f9d4b8ec2f3c4464 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-132.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getUTCHours) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCHours"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCHours"); assert.sameValue(desc.value, Date.prototype.getUTCHours, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js index 458a9962a7f74c73df06bbecd2303d40de766d36..f2d24056d69ba480640d04c1890ee9e972f28723 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-133.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getUTCMinutes) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMinutes"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMinutes"); assert.sameValue(desc.value, Date.prototype.getUTCMinutes, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js index 0b2198275752bfe9cb6ba105f191e60655c682a7..96254062b4606083a0d0d5e8348c2aa54b606ad3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-134.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getUTCSeconds) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCSeconds"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCSeconds"); assert.sameValue(desc.value, Date.prototype.getUTCSeconds, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js index 2859d423c36011a005bf355ab77af6c32dc10d87..3f941517e0c78fe315a32a97a2e80d0c927f03ff 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-135.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.getUTCMilliseconds) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMilliseconds"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getUTCMilliseconds"); assert.sameValue(desc.value, Date.prototype.getUTCMilliseconds, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js index 3e8f04704757d42c2bc3438c559b3c7562ee9391..d2073d8aa3febfdeb3db8733f91e86fd58775f61 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-136.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setTime) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setTime"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setTime"); assert.sameValue(desc.value, Date.prototype.setTime, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js index e0346638aa7eb1e11b392369d07d052b288e1b92..f16b291a842f5e37052b5816c0d2c11cbb86dd5a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-138.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setFullYear) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setFullYear"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setFullYear"); assert.sameValue(desc.value, Date.prototype.setFullYear, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js index feac0f29d89102a124f0aaf09f7b1c4b36c89244..138ca19db4d03eae56e718617ab50714e46e5900 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-139.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setMonth) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMonth"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMonth"); assert.sameValue(desc.value, Date.prototype.setMonth, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js index 5b240016167e6451471600620956c3dde11dad6f..35426608dd445f291aeff2bb294d3f25d26526d1 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-14.js @@ -8,7 +8,7 @@ description: > built-ins (Object.getPrototypeOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf"); +var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf"); assert.sameValue(desc.value, Object.getPrototypeOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js index 9b10d080032f180b560182ab422fea616c2df06f..97bf10aba9f6093fe701ae8a493e81d11ce2d76e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-140.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setDate) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setDate"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setDate"); assert.sameValue(desc.value, Date.prototype.setDate, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js index 0044448d2afca52bec3b5e21b3904faa8c730e65..0c4dd78adca292afb3e73ab1d867755b614db99a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-141.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setHours) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setHours"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setHours"); assert.sameValue(desc.value, Date.prototype.setHours, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js index fd380809e0f01b6e0cb2d33f87cd1bfe06c220ea..6e864a4126e1031f918b94cbe03cf97112dab9ff 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-142.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setMinutes) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMinutes"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMinutes"); assert.sameValue(desc.value, Date.prototype.setMinutes, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js index 81c76f8bdbffdc0993241b28e5f38cddb43c1b0f..6f76ec36c0ad657615ff4f78ce8824537967b274 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-143.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setSeconds) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setSeconds"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setSeconds"); assert.sameValue(desc.value, Date.prototype.setSeconds, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js index 211b12fd7b13a4768986d9c0612f9db9fe1181d1..2470827dff98f808e25b1418e17b9d4b2694345e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-144.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setMilliseconds) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMilliseconds"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setMilliseconds"); assert.sameValue(desc.value, Date.prototype.setMilliseconds, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js index 72a228dc0f1cf754d0090b1f78cccc6ed681776a..340b107b49108c24b5c7a3f3ea4de4b5ffca3323 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-145.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setUTCFullYear) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCFullYear"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCFullYear"); assert.sameValue(desc.value, Date.prototype.setUTCFullYear, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js index 6c0fd95aa0ed1e3416e5402c8ddc60b450839495..7169eb0f93b8cf61a7f43d9723789fecb82af55b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-146.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setUTCMonth) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMonth"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMonth"); assert.sameValue(desc.value, Date.prototype.setUTCMonth, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js index 91dd4ffa9ff70976fa4d3fb1f9c45b432485305d..d81d4d854285021dcbfe6228cf7af6fdd111c90c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-147.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setUTCDate) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCDate"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCDate"); assert.sameValue(desc.value, Date.prototype.setUTCDate, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js index 7ae25261021f22f0b91650335bf4002dc23e26be..c05885e1b7fb61f19a42b960631267f40dd09788 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-148.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setUTCHours) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCHours"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCHours"); assert.sameValue(desc.value, Date.prototype.setUTCHours, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js index 122df12b7adb3ad4b79f35636e8c57e24b3dfd34..c5a00e48080094286c70138069c25717d840f387 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-149.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setUTCMinutes) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMinutes"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMinutes"); assert.sameValue(desc.value, Date.prototype.setUTCMinutes, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js index 75f7919ce217a2e43052105e7ef047347ba3bc85..216e06a4db7ebf9c84d99c705d40402ad928e84b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-15.js @@ -8,7 +8,7 @@ description: > built-ins (Object.getOwnPropertyDescriptor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor"); +var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyDescriptor"); assert.sameValue(desc.value, Object.getOwnPropertyDescriptor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js index 68f15d923c19001edf5eec7e530c456b84a18823..9896d210dbf1a0670aee72baee2965ae80cce6c9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-150.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setUTCSeconds) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCSeconds"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCSeconds"); assert.sameValue(desc.value, Date.prototype.setUTCSeconds, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js index 3bf72cdb3493c9d400550204b215c2c9dc894182..fd70e967ae9a4029ca976c3802eb1e718047f4ab 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-151.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.setUTCMilliseconds) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMilliseconds"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setUTCMilliseconds"); assert.sameValue(desc.value, Date.prototype.setUTCMilliseconds, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js index ac79016a3fbec7c1cc04ecd1c063e5f1680977a2..daaa37d007a5daa93cb467a312d069909ff0f44e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-152.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toLocaleString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleString"); assert.sameValue(desc.value, Date.prototype.toLocaleString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js index 3676e7f4970d29e27eb3c23547f14eea308cc306..78e5c6bce163d536a664e2d3f55f58e015f890d9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-153.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toString"); assert.sameValue(desc.value, Date.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js index b64b5f214946fe79cc6caa2722a834ce9faeb73e..346a0756ed36555e0427a6635977bd933642b2ac 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-154.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toUTCString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toUTCString"); assert.sameValue(desc.value, Date.prototype.toUTCString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js index 273256a21c210d250d6fc95a85812c70dd25fa4f..eb997ea64e539080ce0172846d23712a29cc088d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-156.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toTimeString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toTimeString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toTimeString"); assert.sameValue(desc.value, Date.prototype.toTimeString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js index fc30bbdd0de120df325dd1d3c61f2a7fb83e63be..ce9e912a12cbe305892712f381e17acdc1899781 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-157.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toDateString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toDateString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toDateString"); assert.sameValue(desc.value, Date.prototype.toDateString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js index b769536862d9be38cd0209ab9c2435ca1503be7b..4a88b8102492e44ab8ba09e828376d1657ec1205 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-158.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toLocaleDateString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleDateString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleDateString"); assert.sameValue(desc.value, Date.prototype.toLocaleDateString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js index 06c70b3b4d61b27ddad3c5e9bc2ba8ccc99df64b..ed305032198f082cbc272a07ebf7814593d0d1dd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-159.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toLocaleTimeString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleTimeString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toLocaleTimeString"); assert.sameValue(desc.value, Date.prototype.toLocaleTimeString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js index 78e8b7f8afb419742279bba8453bfdf4feae6bc0..ca31446018ef0bc72d80aee26f399fff0e970873 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-16.js @@ -8,7 +8,7 @@ description: > built-ins (Object.getOwnPropertyNames) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames"); +var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames"); assert.sameValue(desc.value, Object.getOwnPropertyNames, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js index 18a6dc05897317ce12215efddde10a503edfb630..944934287dca3eb801688fb10a5fe72fbfb87e3d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-160.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.valueOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "valueOf"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "valueOf"); assert.sameValue(desc.value, Date.prototype.valueOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js index 1d3cf47cdc0c55edb44a03bf493fa7802569e49c..ff105c4e363de15e82a85b3578af454d9c2d638f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-161.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toISOString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toISOString"); assert.sameValue(desc.value, Date.prototype.toISOString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js index 1bd2da199e9f20a188a6c2836227b47023e54ac9..c3afb3bd2631c715da1329faf797117e0244be80 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-162.js @@ -8,7 +8,7 @@ description: > built-ins (Date.prototype.toJSON) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON"); +var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toJSON"); assert.sameValue(desc.value, Date.prototype.toJSON, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js index 717ba8b69f5db7af53f22d697a1b457abda451e6..6d369d11ab09b0dfed25169acb08db73265e883c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-163.js @@ -8,7 +8,7 @@ description: > built-ins (RegExp.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "constructor"); assert.sameValue(desc.value, RegExp.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js index 387f8b6b00ef3853a5817572eee8ead5efec286d..4771e8aca6bc394914ad9784578642b87cd404f5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-165.js @@ -8,7 +8,7 @@ description: > built-ins (RegExp.prototype.exec) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "exec"); +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "exec"); assert.sameValue(desc.value, RegExp.prototype.exec, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js index adaffc79e2964a72194269fccf700f02d647e0b7..f27755cc6ae93199dc9a804c152b5429804c3678 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-166.js @@ -8,7 +8,7 @@ description: > built-ins (RegExp.prototype.test) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "test"); +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "test"); assert.sameValue(desc.value, RegExp.prototype.test, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js index 03a41746565bc2c39fc4d81acf6072cddb4974a4..a43ddbd1a5cd2cacca04c94f4f4fb37d49e70fac 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-167.js @@ -8,7 +8,7 @@ description: > built-ins (RegExp.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "toString"); assert.sameValue(desc.value, RegExp.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js index 90c3efd9a13a5c5310c741b35512a88bb233d4d7..63d99d5f56ff0d6f5dd025edc18559c89847e0e1 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-168.js @@ -8,7 +8,7 @@ description: > built-ins (Error.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Error.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(Error.prototype, "constructor"); assert.sameValue(desc.value, Error.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js index 1e4890e17c6fa1d4d56217c73181bae64ab88943..63feefb43551bc32c33eaa9daa8c2e45e48eca43 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-169.js @@ -8,7 +8,7 @@ description: > built-ins (Error.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Error.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(Error.prototype, "toString"); assert.sameValue(desc.value, Error.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js index 1b2e42315d89e278c72254027e6a562e807adfce..342d1fdefca3ca00daaa255cd687ecab9c4f17e3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-17.js @@ -8,7 +8,7 @@ description: > built-ins (Object.create) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "create"); +var desc = Object.getOwnPropertyDescriptor(Object, "create"); assert.sameValue(desc.value, Object.create, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js index 2deebcd6f77c568eb610e5cef646f30956e6fd89..57fdc472b35f5ee2bd43ac231a0d37c9621d5bfd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-170.js @@ -8,7 +8,7 @@ description: > built-ins (EvalError.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(EvalError.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(EvalError.prototype, "constructor"); assert.sameValue(desc.value, EvalError.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js index f5de8176f450498a06a5029751dc7b3fc4c6e9b8..f7e3c19f8ee4428daeb198efd5f6c950ccd6a36a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-171.js @@ -8,7 +8,7 @@ description: > built-ins (RangeError.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(RangeError.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(RangeError.prototype, "constructor"); assert.sameValue(desc.value, RangeError.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js index e60eb6edc0f19050f0820cdca99b73870d4ab227..0c46e234c0bd8806970b60e4cdee7a79d204f38b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-172.js @@ -8,7 +8,7 @@ description: > built-ins (ReferenceError.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(ReferenceError.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(ReferenceError.prototype, "constructor"); assert.sameValue(desc.value, ReferenceError.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js index 38702336b47c6158c77021771d744200ae5364e7..167229a6452784b8cde930b776be2fa785bb0ab7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-173.js @@ -8,7 +8,7 @@ description: > built-ins (SyntaxError.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(SyntaxError.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(SyntaxError.prototype, "constructor"); assert.sameValue(desc.value, SyntaxError.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js index 210e33fdf5cea2dd7fec2a092fe9aa16d38f3174..d523d25c0cab4ed209b01445110ed996606582c2 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-174.js @@ -8,7 +8,7 @@ description: > built-ins (TypeError.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(TypeError.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(TypeError.prototype, "constructor"); assert.sameValue(desc.value, TypeError.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js index e7a59840e007d753bcf1bf46a21fd98c34603a99..63988f6cd398348ab8ef031aeeed4f797f1a4f90 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-175.js @@ -8,7 +8,7 @@ description: > built-ins (URIError.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(URIError.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(URIError.prototype, "constructor"); assert.sameValue(desc.value, URIError.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js index 3cac6f215d21132e67163b2367def4c63ca92026..81a80b963df999d8651a1bd19f30477e218bc116 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-176.js @@ -8,7 +8,7 @@ description: > built-ins (JSON.stringify) ---*/ - var desc = Object.getOwnPropertyDescriptor(JSON, "stringify"); +var desc = Object.getOwnPropertyDescriptor(JSON, "stringify"); assert.sameValue(desc.value, JSON.stringify, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js index 52dfbd152ce878a62f05d5a7580824ff52745222..69d4fe2d83f13534f991ebba1a8bbcb6e3ba8ae6 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-177.js @@ -8,7 +8,7 @@ description: > built-ins (JSON.parse) ---*/ - var desc = Object.getOwnPropertyDescriptor(JSON, "parse"); +var desc = Object.getOwnPropertyDescriptor(JSON, "parse"); assert.sameValue(desc.value, JSON.parse, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js index 7f5b4903d3d334e2f5a345af5afe0ae71b268694..84a7f63a93291bc023cfc0f9ee00d6df0b257bfd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-178.js @@ -8,8 +8,8 @@ description: > properties on built-ins (Global.NaN) ---*/ - // in non-strict mode, 'this' is bound to the global object. - var desc = Object.getOwnPropertyDescriptor(this, "NaN"); +// in non-strict mode, 'this' is bound to the global object. +var desc = Object.getOwnPropertyDescriptor(this, "NaN"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js index 6a38e5f060128b66cb8ae44cd0fe109ef6aa1998..77e69b8cee6f300a92383a5e39b621d16667d35f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js @@ -8,8 +8,8 @@ description: > properties on built-ins (Global.Infinity) ---*/ - // in non-strict mode, 'this' is bound to the global object. - var desc = Object.getOwnPropertyDescriptor(this, "Infinity"); +// in non-strict mode, 'this' is bound to the global object. +var desc = Object.getOwnPropertyDescriptor(this, "Infinity"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js index d7ced8dabc8f3a11dc1fe4a09037ae226adc7f88..c97cc2a77f552e951e5607b07534be78cc849479 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-18.js @@ -8,7 +8,7 @@ description: > built-ins (Object.defineProperty) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty"); +var desc = Object.getOwnPropertyDescriptor(Object, "defineProperty"); assert.sameValue(desc.value, Object.defineProperty, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js index 65412185c31dcfe16fd4d455c89d536c7f2b1105..757965b982cabaa839a676a11ea6f40f7fd8c3dd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-180.js @@ -8,8 +8,8 @@ description: > properties on built-ins (Global.undefined) ---*/ - // in non-strict mode, 'this' is bound to the global object. - var desc = Object.getOwnPropertyDescriptor(this, "undefined"); +// in non-strict mode, 'this' is bound to the global object. +var desc = Object.getOwnPropertyDescriptor(this, "undefined"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js index 33da0a40b622da8f5161a39f42140aa05ff53274..d82ef21fe3558b7995aaaf88376d7bba22d2e42a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-182.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Object.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "prototype"); +var desc = Object.getOwnPropertyDescriptor(Object, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js index 3501500ff9f1803dc0bd584b63c5096e0b0db8dd..eb4ace4bc0f561f6f1d0edfe361cfceb302f65d0 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-183.js @@ -8,6 +8,6 @@ description: > property (arguments_1) on built-in object (Function) ---*/ - var desc = Object.getOwnPropertyDescriptor(Function, "arguments_1"); +var desc = Object.getOwnPropertyDescriptor(Function, "arguments_1"); assert.sameValue(desc, undefined, 'desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js index 465abc470808c066876b61208e42cd84eccc9d17..db8b5907b4409fc2b5a59dfabaf4e0210bc2462e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-184.js @@ -8,6 +8,6 @@ description: > property (caller) on built-in object (Math) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "caller"); +var desc = Object.getOwnPropertyDescriptor(Math, "caller"); assert.sameValue(desc, undefined, 'desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js index ce028abd73b50838cb777f8385a4969170e090b0..a3edb4d6d333ebdf6f720e4387a61449229323b3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-185.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Function.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(Function, "prototype"); +var desc = Object.getOwnPropertyDescriptor(Function, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js index 157dc97c7df2a5974c413e414d0242652f015bbf..f03206192bd2a8a8a5566e634c8ef390c8689f05 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-186.js @@ -8,7 +8,7 @@ description: > on built-ins (Function.length) ---*/ - var desc = Object.getOwnPropertyDescriptor(Function, "length"); +var desc = Object.getOwnPropertyDescriptor(Function, "length"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js index 21c83658fef754a41281dfd432984256f265d2c6..cb44f5afb40d5a0e4d7b7b7656d78e8ba10a49e8 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-187.js @@ -8,9 +8,9 @@ description: > on built-ins (Function (instance).length) ---*/ - var f = Function('return 42;'); +var f = Function('return 42;'); - var desc = Object.getOwnPropertyDescriptor(f, "length"); +var desc = Object.getOwnPropertyDescriptor(f, "length"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js index 31a6e9cfbf6f58f7d8f4f6dec61de1b84593283a..6e0c6c5861d9fded528d96e7df8da2f425abc701 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-188.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Function (instance).name) ---*/ - var f = Function('return 42;'); - var desc = Object.getOwnPropertyDescriptor(f, "functionNameHopefullyDoesNotExist"); +var f = Function('return 42;'); +var desc = Object.getOwnPropertyDescriptor(f, "functionNameHopefullyDoesNotExist"); assert.sameValue(desc, undefined, 'desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js index b7111c0fa54f1b2e34832f2540db0648fa12782e..87190a1312509d543fc3749ce54515b37b7aa3d2 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-189.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Array.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array, "prototype"); +var desc = Object.getOwnPropertyDescriptor(Array, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js index 950f690bee60294504e5bcada4ee839b2723f574..09dc4911dc030ad4157fdd85a664edfe20a0c96e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-19.js @@ -8,7 +8,7 @@ description: > built-ins (Object.defineProperties) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties"); +var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties"); assert.sameValue(desc.value, Object.defineProperties, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js index f190508dc7b8ef75011724480eb019479e6dcfd2..c1ea614538b54a35356d84075d47130690b20d90 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-190.js @@ -8,7 +8,7 @@ description: > properties on built-ins (String.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(String, "prototype"); +var desc = Object.getOwnPropertyDescriptor(String, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js index 4f351bf89298ceb787f2e1352a455ea7b13060a1..5a38e0bd6b6586c2b0942f470cc0b3a05f691ec1 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-191.js @@ -8,7 +8,7 @@ description: > on built-ins (String.length) ---*/ - var desc = Object.getOwnPropertyDescriptor(String, "length"); +var desc = Object.getOwnPropertyDescriptor(String, "length"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js index e20fb56dc9ae6dc0b22589a023a96d23a102c123..6ab1950b2bf25d8229f57405786a36ebed92a908 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-192.js @@ -8,8 +8,8 @@ description: > properties on built-ins (String (instance).length) ---*/ - var s = new String("abc"); - var desc = Object.getOwnPropertyDescriptor(s, "length"); +var s = new String("abc"); +var desc = Object.getOwnPropertyDescriptor(s, "length"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js index b0e4b8e0bf7ed4e616cd0a221280e5d286948a4c..e11dfa8365c2cb1f1d6b99bed6925e15c8bb3e11 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-193.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Boolean.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(Boolean, "prototype"); +var desc = Object.getOwnPropertyDescriptor(Boolean, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js index 41d92a8bf2d5f818e70d75c66f59d567e20e1ba8..6e606a500b31654a8f4018e3828577edc281ae06 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-194.js @@ -8,7 +8,7 @@ description: > on built-ins (Boolean.length) ---*/ - var desc = Object.getOwnPropertyDescriptor(Boolean, "length"); +var desc = Object.getOwnPropertyDescriptor(Boolean, "length"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js index 96cca8650c51ed31d04b2ebe7f3028c8a322c2f4..bb4b35d8c4c1ed6ef6e45e3b53623b6df0d6f204 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-195.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Number.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number, "prototype"); +var desc = Object.getOwnPropertyDescriptor(Number, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js index c1b5a1fbb08d83a8f9a6310ac7854189f287a534..15a70904d61357bba206b41c9d06923cadc71f1c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-196.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Number.MAX_VALUE) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number, "MAX_VALUE"); +var desc = Object.getOwnPropertyDescriptor(Number, "MAX_VALUE"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js index e09636d4511a723f1cd53f90a4eb981fd38d93ab..04dd89bddfaf4984557645a20f5b5e0a5e347b9c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-197.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Number.MIN_VALUE) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number, "MIN_VALUE"); +var desc = Object.getOwnPropertyDescriptor(Number, "MIN_VALUE"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js index 660e7d41bcd286b53072b59a0e4a416cb0109a35..f813e407ff8bc0d6afb3d80d94ca8e114892bbf6 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-198.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Number.NaN) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number, "NaN"); +var desc = Object.getOwnPropertyDescriptor(Number, "NaN"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js index 1f02fbb74c51c6f1a2d9d57451b03c246bce93d9..f93608eb64b0f8503e9cb2e5bd7c6cd6c1ba6fab 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-199.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Number.NEGATIVE_INFINITY) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number, "NEGATIVE_INFINITY"); +var desc = Object.getOwnPropertyDescriptor(Number, "NEGATIVE_INFINITY"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js index 57fbdce5b938cd1599f02c58d4bf02e6b65dc0c9..351b968d02a30024ad0d13b4469a3cda02fab2f6 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-2.js @@ -8,8 +8,8 @@ description: > properties ---*/ - var o = {}; +var o = {}; - var desc = Object.getOwnPropertyDescriptor(o, "foo"); +var desc = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(desc, undefined, 'desc'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js index 1c444266c962758c2710da8f0dbfc548f845c023..c071266964f9bfb5351af926f589981d0582588e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-20.js @@ -8,7 +8,7 @@ description: > built-ins (Object.seal) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "seal"); +var desc = Object.getOwnPropertyDescriptor(Object, "seal"); assert.sameValue(desc.value, Object.seal, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js index 7cd42f388eac90a298be056707e5f1ed3527318d..38618857a36c97ab14c7d2adf42a4e0c32e38844 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-200.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Number.POSITIVE_INFINITY) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number, "POSITIVE_INFINITY"); +var desc = Object.getOwnPropertyDescriptor(Number, "POSITIVE_INFINITY"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js index 68bafbcb86fffec024729783aa449874f149cd43..178947ac20afa3850da1be96de98c85fe6e834b7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-201.js @@ -8,7 +8,7 @@ description: > on built-ins (Number.length) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number, "length"); +var desc = Object.getOwnPropertyDescriptor(Number, "length"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js index 5eb7df674ffd46d24c6b94f4e87e9b53272985dd..33fef6d03bd79991955ad98183505d6393eaac23 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-202.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Math.E) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "E"); +var desc = Object.getOwnPropertyDescriptor(Math, "E"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js index 2b203feb98ce5517a01256ae9d2b6d87ecde3fec..04f964d8e1f323627d410f0a2581b44a213637b1 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-203.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Math.LN10) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "LN10"); +var desc = Object.getOwnPropertyDescriptor(Math, "LN10"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js index e91ce89ba20d359bbc182eecc422bc86644961f5..d9a515d092e9b13ba42468a74ae7745fac383060 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-204.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Math.LN2) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "LN2"); +var desc = Object.getOwnPropertyDescriptor(Math, "LN2"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js index 703820573aa2382feae717a87593abbe53d938ef..17fe2a4faa268ff9207f09bdb49cac6cc77454df 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-205.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Math.LOG2E) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "LOG2E"); +var desc = Object.getOwnPropertyDescriptor(Math, "LOG2E"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js index 1025fa7ac8ef750bd0ea1473d3e98782848b714c..a2bdee6612b0c69b158bb66993a77d209a359ffa 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-206.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Math.LOG10E) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "LOG10E"); +var desc = Object.getOwnPropertyDescriptor(Math, "LOG10E"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js index a311883b6da233e4954940d56a186d4813a5b324..c0576988efc47f00602594d95a96d3907d537750 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-207.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Math.PI) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "PI"); +var desc = Object.getOwnPropertyDescriptor(Math, "PI"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js index 6134a8182661ffe619e7439ed2cfba1d709f2ed0..8edc43d25f8411f8bbab8722f7922e03f3a84e77 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-208.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Math.SQRT1_2) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "SQRT1_2"); +var desc = Object.getOwnPropertyDescriptor(Math, "SQRT1_2"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js index df90c64898b33d38813220771fe899973f2e2af5..80b7234bbfd9231b7e532a9d55e3cb542596a895 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-209.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Math.SQRT2) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "SQRT2"); +var desc = Object.getOwnPropertyDescriptor(Math, "SQRT2"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js index 0c062b3a389ab5e05e89a78b40b22a7f37a34c3b..d5aa1bfb5edfad7ee2022c4f545aa58b34a5dd87 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-21.js @@ -8,7 +8,7 @@ description: > built-ins (Object.freeze) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "freeze"); +var desc = Object.getOwnPropertyDescriptor(Object, "freeze"); assert.sameValue(desc.value, Object.freeze, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js index 57b44134e336040facff85e1d38e104daa05b654..557e7ac86b6b5b930a5c08145bfe42c40362a069 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-210.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Date.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(Date, "prototype"); +var desc = Object.getOwnPropertyDescriptor(Date, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js index be1a29328ff014cd2ee375e1d4493c4e73ee74b1..eb28300aa11a40d11bca658c5bd322302a6086c2 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-211.js @@ -8,7 +8,7 @@ description: > properties on built-ins (RegExp.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp, "prototype"); +var desc = Object.getOwnPropertyDescriptor(RegExp, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js index 38c6a0721a88d069cbf84cee48af1febac61dd5a..4f2745343a487dc3aaa6586433c51b49ebbb376b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-212.js @@ -8,7 +8,7 @@ description: > accessors on built-ins (RegExp.prototype.source) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "source"); +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "source"); assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js index f76fd78011500031a905964332d1636e4736a0d0..7e0755d3662075d73587774f75fce2bb991d40b8 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-213.js @@ -8,7 +8,7 @@ description: > accessors on built-ins (RegExp.prototype.global) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global"); +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "global"); assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js index 53ee976e355aa24b986dd4c31b83fa6e897ab46c..2155ea564c65ad6ee5dba5dbb5deb4288b78b163 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-214.js @@ -8,7 +8,7 @@ description: > accessors on built-ins (RegExp.prototype.ignoreCase) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase"); +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase"); assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js index 524d5a9409250caa24a40f8261c4a7403b915ae1..99ccb2e3c087c0af87675b810c44e4a01c9227f5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-215.js @@ -8,7 +8,7 @@ description: > accessors on built-ins (RegExp.prototype.multiline) ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline"); +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "multiline"); assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js index d78a100e2f5618532f8d63e212dd623fe31e9875..826b53abdbedd5768224da3a8c8ff82107c8b2ac 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-216.js @@ -8,7 +8,7 @@ description: > properties on built-ins (Error.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(Error, "prototype"); +var desc = Object.getOwnPropertyDescriptor(Error, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js index 96f15d285ee8f807e26f0227f909b6600f63187a..09cacdbf2d40dfcbbc13873edbb11c656c78e5ab 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-217.js @@ -8,7 +8,7 @@ description: > properties on built-ins (EvalError.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(EvalError, "prototype"); +var desc = Object.getOwnPropertyDescriptor(EvalError, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js index 9ee73cee5061f36c6673776f8f9c33b1c3e9d734..ea9d5b7c7c579219400a93dda2bde93314812764 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-218.js @@ -8,7 +8,7 @@ description: > properties on built-ins (RangeError.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(RangeError, "prototype"); +var desc = Object.getOwnPropertyDescriptor(RangeError, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js index 3c480f1fe499ed99163f3a5e745417b7cb12b10d..b8ab7e2a384f8b12420143d072b1d3de1238a1c4 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-219.js @@ -8,7 +8,7 @@ description: > properties on built-ins (ReferenceError.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(ReferenceError, "prototype"); +var desc = Object.getOwnPropertyDescriptor(ReferenceError, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js index 78ad6671d4317b10c6b6bc9cd7bebf4cbf08ae12..00f08b513911522147946027f5e65f41776fbc8a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-22.js @@ -8,7 +8,7 @@ description: > built-ins (Object.preventExtensions) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions"); +var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions"); assert.sameValue(desc.value, Object.preventExtensions, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js index 9472c9a6c1097d16744f1ed30bf39c5d1d41f0e0..ba924ab64f225c1ef0f565b9b4c3ec63bad07a30 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-220.js @@ -8,7 +8,7 @@ description: > properties on built-ins (SyntaxError.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(SyntaxError, "prototype"); +var desc = Object.getOwnPropertyDescriptor(SyntaxError, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js index 77a19e11ec73376eb5006d6e6f2a93d2addcc4a1..da32c84bb35cff4080d35e7f106f82e9e417c0df 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-221.js @@ -8,7 +8,7 @@ description: > properties on built-ins (TypeError.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(TypeError, "prototype"); +var desc = Object.getOwnPropertyDescriptor(TypeError, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js index 26be6babdc843c25d20c30b4837357add2bfd76c..d4655ca9ed7ad789ecd821e7d0caa686fbbdaf09 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-222.js @@ -8,7 +8,7 @@ description: > properties on built-ins (URIError.prototype) ---*/ - var desc = Object.getOwnPropertyDescriptor(URIError, "prototype"); +var desc = Object.getOwnPropertyDescriptor(URIError, "prototype"); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js index 14882f661e8bbed7d90fb0f256ff250719ff534d..9124cd3adc9548f6d996390f9ae0973f10456bb7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js @@ -8,8 +8,10 @@ description: > returned object is data property with correct 'value' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.value, "ownDataProperty", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js index 1c84fe82641ed77c1e8a4b5703acce5df39a8ea3..f02e8e9e82188424cd8cd01b36e802370903e17d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js @@ -8,10 +8,12 @@ description: > returned object is data property with correct 'writable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.value = "overwriteDataProperty"; +desc.value = "overwriteDataProperty"; assert.sameValue(desc.value, "overwriteDataProperty", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js index a0efcad8017455d1297a4dfe944db7ad5c71b4e6..660f3fd567a31bc5700234593e95bfba036e00cc 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js @@ -9,15 +9,17 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var prop in desc) { - if (prop === "value") { - accessed = true; - } - } +for (var prop in desc) { + if (prop === "value") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js index 326e8d419292cb31209fe2477bfa2fc747c9c1f5..569f772b82ac3faa2daa8f054155af489d9766fb 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js @@ -9,14 +9,16 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = "value" in desc; +var propDefined = "value" in desc; - delete desc.value; - var propDeleted = "value" in desc; +delete desc.value; +var propDeleted = "value" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js index bb608b3062b4e5aac9297bd2a3de48ebeea203be..2f57a84ce00f4a87ec193c61bbe1717802360b60 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js @@ -8,8 +8,10 @@ description: > of returned object is data property with correct 'value' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js index 7bd355aae384901a180fe87d63fc1a377fd35b25..385ae6dd3ac864b5db3a0fc642354a919617d4a0 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js @@ -9,10 +9,12 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.writable = "overwriteDataProperty"; +desc.writable = "overwriteDataProperty"; assert.sameValue(desc.writable, "overwriteDataProperty", 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js index 667429b87700d55443698622264b3361c5789f29..1744420686d43257ab6bd5c4640d0e1e78c97abc 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js @@ -9,15 +9,17 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var props in desc) { - if (props === "writable") { - accessed = true; - } - } +for (var props in desc) { + if (props === "writable") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js index ffb6f0a008bce596c0752a1013dd13aad8eaab6c..74b35992fb80bac6a50f51a2872669084bffe34b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js @@ -8,7 +8,7 @@ description: > built-ins (Object.isSealed) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isSealed"); +var desc = Object.getOwnPropertyDescriptor(Object, "isSealed"); assert.sameValue(desc.value, Object.isSealed, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js index 0e8d7c9208014be1b9d835c4a8eb104b08e8b54e..afaa391460602012c7f91e5473b1d114a24d5a30 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js @@ -9,14 +9,16 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = ("writable" in desc); +var propDefined = ("writable" in desc); - delete desc.writable; - var propDeleted = "writable" in desc; +delete desc.writable; +var propDeleted = "writable" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js index a93538a55a7af8e5ccaf9e9314074703eed50b2b..4d336b12985e38fd7cd274bed58dc48add7ad52f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js @@ -9,8 +9,10 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.enumerable, true, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js index 43203e281d08ebd25fe2078f90dc0e0b71398591..02ccc8b18b4ba45a209c81c6c2ceb6d18ea70854 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js @@ -9,10 +9,12 @@ description: > 'writable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.enumerable = "overwriteDataProperty"; +desc.enumerable = "overwriteDataProperty"; assert.sameValue(desc.enumerable, "overwriteDataProperty", 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js index 8bffb2b625270758ad12d589c7b9af94455adebf..693cf215bef757d38dc03d2c19ae4d453bd41ad8 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js @@ -9,15 +9,17 @@ description: > 'enumerable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var props in desc) { - if (props === "enumerable") { - accessed = true; - } - } +for (var props in desc) { + if (props === "enumerable") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js index d4c6ea9d830bdc50ae0c38e88ebad4b3a7f85ccf..b28a8f78ca692f1dbd5c5101760d4698cfedca86 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js @@ -9,14 +9,16 @@ description: > 'configurable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = "enumerable" in desc; +var propDefined = "enumerable" in desc; - delete desc.enumerable; - var propDeleted = "enumerable" in desc; +delete desc.enumerable; +var propDeleted = "enumerable" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js index 37c5c80d2c64f3a25c5aa963f5a2547eca5d98ae..5586e0d2d7130b0826f57e33f46ff6b6be06ae8f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js @@ -9,8 +9,10 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js index 960fc5cf3468700a9f09e031703da9d699954d1b..e0b8746f0c9f609e299d30baa3756e984ae9e515 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js @@ -9,10 +9,12 @@ description: > 'writable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.writable = "overwriteDataProperty"; +desc.writable = "overwriteDataProperty"; assert.sameValue(desc.writable, "overwriteDataProperty", 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js index 1117ab125f2a78b47308f8137057deb2fb8c027d..396557046014e7943c97d461c62f8af98ade651a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js @@ -9,15 +9,17 @@ description: > 'enumerable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var prop in desc) { - if (prop === "configurable") { - accessed = true; - } - } +for (var prop in desc) { + if (prop === "configurable") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js index 5e877a51dc461860e4ae6d81c5ae865c1b224078..d86824cd2ec99e8837224f69359b55c1bad289e3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js @@ -9,14 +9,16 @@ description: > 'configurable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = "configurable" in desc; +var propDefined = "configurable" in desc; - delete desc.configurable; - var propDeleted = "configurable" in desc; +delete desc.configurable; +var propDeleted = "configurable" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js index 12164016702bd1cd495452809943762e6c5cfd0b..b5fb69c81fcbaeebccbb4d0897987b4d2b0ea1f6 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js @@ -8,15 +8,15 @@ description: > returned object is data property with correct 'value' attribute ---*/ - var obj = {}; - var fun = function () { - return "ownDataProperty"; - }; - Object.defineProperty(obj, "property", { - get: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownDataProperty"; +}; +Object.defineProperty(obj, "property", { + get: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.get, fun, 'desc.get'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js index 6fec737dc1c9ca3a6664dd89fe6363040e8f8b1e..0660d0871c2db58b3c98796fc845e60fd753bd43 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-24.js @@ -8,7 +8,7 @@ description: > built-ins (Object.isFrozen) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen"); +var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen"); assert.sameValue(desc.value, Object.isFrozen, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js index 35f469594b333bbef18cbf5abd06554ed8d818c8..d5f9a19d55dc948b644ef8dfe26206a2aa453191 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-240.js @@ -8,17 +8,17 @@ description: > returned object is data property with correct 'writable' attribute ---*/ - var obj = {}; - var fun = function () { - return "ownGetProperty"; - }; - Object.defineProperty(obj, "property", { - get: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownGetProperty"; +}; +Object.defineProperty(obj, "property", { + get: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.get = "overwriteGetProperty"; +desc.get = "overwriteGetProperty"; assert.sameValue(desc.get, "overwriteGetProperty", 'desc.get'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js index 0f0ce28130d8a3ddff78d411167d73bc0e631b21..d70e6b55610a1f907b2051f53631169981acbf15 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js @@ -9,22 +9,22 @@ description: > attribute ---*/ - var obj = {}; - var fun = function () { - return "ownDataProperty"; - }; - Object.defineProperty(obj, "property", { - get: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownDataProperty"; +}; +Object.defineProperty(obj, "property", { + get: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var prop in desc) { - if (prop === "get") { - accessed = true; - } - } +for (var prop in desc) { + if (prop === "get") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js index d7800ba62021d9a146ef2c5cccbc6bbfdb2a5dd1..36efa073e04af98f98707b5405bfbe3161d78ca2 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-242.js @@ -9,21 +9,21 @@ description: > attribute ---*/ - var obj = {}; - var fun = function () { - return "ownDataProperty"; - }; - Object.defineProperty(obj, "property", { - get: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownDataProperty"; +}; +Object.defineProperty(obj, "property", { + get: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = "get" in desc; +var propDefined = "get" in desc; - delete desc.get; - var propDeleted = "get" in desc; +delete desc.get; +var propDeleted = "get" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js index 6fbe775307fccf1e8c27279227b5bec137fb8101..81e50951b5cd6baf66779e0da39fa5a0a325b875 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-243.js @@ -8,15 +8,15 @@ description: > returned object is data property with correct 'value' attribute ---*/ - var obj = {}; - var fun = function () { - return "ownSetProperty"; - }; - Object.defineProperty(obj, "property", { - set: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownSetProperty"; +}; +Object.defineProperty(obj, "property", { + set: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.set, fun, 'desc.set'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js index 1435215972f6b5bb2a3964f2bd1722c0a10ff304..4083a3b2d65d91bd09ea5c71e9b10607558f4ea3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-244.js @@ -8,17 +8,17 @@ description: > returned object is data property with correct 'writable' attribute ---*/ - var obj = {}; - var fun = function () { - return "ownSetProperty"; - }; - Object.defineProperty(obj, "property", { - set: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownSetProperty"; +}; +Object.defineProperty(obj, "property", { + set: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.set = "overwriteSetProperty"; +desc.set = "overwriteSetProperty"; assert.sameValue(desc.set, "overwriteSetProperty", 'desc.set'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js index 35d73454d29910466de19f9b6152d56c88c3dc37..c89e5efdde84974ec5b6691cc6f4cd445f3076eb 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-245.js @@ -9,22 +9,22 @@ description: > attribute ---*/ - var obj = {}; - var fun = function () { - return "ownSetProperty"; - }; - Object.defineProperty(obj, "property", { - set: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownSetProperty"; +}; +Object.defineProperty(obj, "property", { + set: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var prop in desc) { - if (prop === "set") { - accessed = true; - } - } +for (var prop in desc) { + if (prop === "set") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js index 210ace76fba99a31921a9e883a27e621f564d11e..e0ac8701f689c32f74634dc23a91b1a9c5e14b55 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-246.js @@ -9,21 +9,21 @@ description: > attribute ---*/ - var obj = {}; - var fun = function () { - return "ownSetProperty"; - }; - Object.defineProperty(obj, "property", { - set: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownSetProperty"; +}; +Object.defineProperty(obj, "property", { + set: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = "set" in desc; +var propDefined = "set" in desc; - delete desc.set; - var propDeleted = "set" in desc; +delete desc.set; +var propDeleted = "set" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js index 06bd87e7add62e35ebf9d3b287a23d06a0d83cd6..55639d95014deae86a74507b69ca4c40ce420436 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js @@ -8,8 +8,10 @@ description: > object ---*/ - var obj = { "property": 100 }; +var obj = { + "property": 100 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert(desc instanceof Object, 'desc instanceof Object !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js index 210d9286c8768595a2d69569f18651513ccd9b8a..1045ad7ad7983ce80a6b294922a5bd188bf3149b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js @@ -9,12 +9,12 @@ description: > explicitly specified when defined by Object.defineProperty ---*/ - var obj = {}; - Object.defineProperty(obj, "property", { - writable: true, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "property", { + writable: true, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert("value" in desc, '"value" in desc !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js index e19f7efceae9ca5c6302cfec4d1732d7d0d2dd7e..7d3530a5e75adf2dc10d5224d6bd849d0ddda1da 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-249.js @@ -9,12 +9,12 @@ description: > specified when defined by Object.defineProperty. ---*/ - var obj = {}; - Object.defineProperty(obj, "property", { - get: function () { }, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "property", { + get: function() {}, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert("set" in desc, '"set" in desc !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js index 6eadcabf30d22b01b2e2dac703096aa2956d6ff9..2fe24a597b6d85959f6a23811a956fcce0bc3c3c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-25.js @@ -8,7 +8,7 @@ description: > built-ins (Object.isExtensible) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible"); +var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible"); assert.sameValue(desc.value, Object.isExtensible, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js index f2863cbe8237e174229687e28797800389a5aede..48ea22abd61ac8445fd4b4abb52972864381e09e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-250.js @@ -9,12 +9,12 @@ description: > specified when defined by Object.defineProperty. ---*/ - var obj = {}; - Object.defineProperty(obj, "property", { - set: function () {}, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "property", { + set: function() {}, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert("get" in desc, '"get" in desc !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js index 5428c62a32b53917455bb1de59a8255fb49030a3..c5de0e95bc92693303f8dac40197b712600dbc85 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-26.js @@ -8,7 +8,7 @@ description: > built-ins (Object.keys) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "keys"); +var desc = Object.getOwnPropertyDescriptor(Object, "keys"); assert.sameValue(desc.value, Object.keys, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js index 7b223ebdaaea8511278af252e527812252840e2a..9d8bbda427ed5962c35705984e10218c8520cf67 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-27.js @@ -8,7 +8,7 @@ description: > built-ins (Object.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor"); assert.sameValue(desc.value, Object.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js index 0c01763f650b5b75bd8167776adc9f17de70f165..2680da34c7f4a80dafb3fcb6977160de3c351521 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-28.js @@ -8,7 +8,7 @@ description: > built-ins (Object.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toString"); assert.sameValue(desc.value, Object.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js index 05b1775bfa7ad0ccdec409348ed157176300a46e..8c838d5dd53bc31dc6389e5d7c7987e9f121e8e7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-29.js @@ -8,7 +8,7 @@ description: > built-ins (Object.prototype.valueOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object.prototype, "valueOf"); +var desc = Object.getOwnPropertyDescriptor(Object.prototype, "valueOf"); assert.sameValue(desc.value, Object.prototype.valueOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js index 51507f70b5904fb8006ebd303b3c5a43714a329b..a21bed132b436e83c5428ca7de5352199825f66c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js @@ -8,15 +8,19 @@ description: > accessor desc for valid accessor properties ---*/ - var o = {}; +var o = {}; - // dummy getter - var getter = function () { return 1; } - var d = { get: getter }; +// dummy getter +var getter = function() { + return 1; +} +var d = { + get: getter +}; - Object.defineProperty(o, "foo", d); +Object.defineProperty(o, "foo", d); - var desc = Object.getOwnPropertyDescriptor(o, "foo"); +var desc = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(desc.get, getter, 'desc.get'); assert.sameValue(desc.set, undefined, 'desc.set'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js index 4b21dcaee578bd380d57e0447390c235a57a5edb..0d40c18b11375395424a045063c02fb67d52db93 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js @@ -8,7 +8,7 @@ description: > built-ins (Object.prototype.isPrototypeOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object.prototype, "isPrototypeOf"); +var desc = Object.getOwnPropertyDescriptor(Object.prototype, "isPrototypeOf"); assert.sameValue(desc.value, Object.prototype.isPrototypeOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js index 7d0c1791d658080278f0b60e82be7c6ff42bc6a9..5b74a6048b6732604afecaf1cc730aec6d7ef524 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-31.js @@ -8,7 +8,7 @@ description: > built-ins (Object.prototype.hasOwnProperty) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object.prototype, "hasOwnProperty"); +var desc = Object.getOwnPropertyDescriptor(Object.prototype, "hasOwnProperty"); assert.sameValue(desc.value, Object.prototype.hasOwnProperty, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js index df0942fea78fb5e112f2f9ec99c6d87a4c5e9509..49f9d712a2e4b3f96707d159035a5f9860b0fd02 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-32.js @@ -8,7 +8,7 @@ description: > built-ins (Object.prototype.propertyIsEnumerable) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object.prototype, "propertyIsEnumerable"); +var desc = Object.getOwnPropertyDescriptor(Object.prototype, "propertyIsEnumerable"); assert.sameValue(desc.value, Object.prototype.propertyIsEnumerable, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js index ce6709d7c3d8f0bdbdb805b4b00906be9de493fb..a2c1a65fea55b79b65374d9925e8150ca5070fc9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-33.js @@ -8,7 +8,7 @@ description: > built-ins (Object.prototype.toLocaleString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toLocaleString"); +var desc = Object.getOwnPropertyDescriptor(Object.prototype, "toLocaleString"); assert.sameValue(desc.value, Object.prototype.toLocaleString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js index ee5c0a2f79815a39cbd3f41b8787b66e307c4742..d03c4335c7dd1bf2f263570a04077eb5d2924057 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-34.js @@ -8,7 +8,7 @@ description: > built-ins (Function.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Function.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(Function.prototype, "constructor"); assert.sameValue(desc.value, Function.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js index f3032e9006255e2de0e5dd24c15b8198561dfe7e..d86d83684c2bf916f54be0bb3a8cdb5d6b35b049 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-35.js @@ -8,7 +8,7 @@ description: > built-ins (Function.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Function.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(Function.prototype, "toString"); assert.sameValue(desc.value, Function.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js index eb0099b59ef2e14706a8065fb058d31785534295..fb38e03fc0bb3c82491f05eb9da2b0723b4d1eff 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-36.js @@ -8,7 +8,7 @@ description: > built-ins (Function.prototype.apply) ---*/ - var desc = Object.getOwnPropertyDescriptor(Function.prototype, "apply"); +var desc = Object.getOwnPropertyDescriptor(Function.prototype, "apply"); assert.sameValue(desc.value, Function.prototype.apply, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js index bd67212c33039731d4072ec8d6429543a806f308..b8ff48109c2c9f388f4d44f2b8e0e461d4a3f71e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-37.js @@ -8,7 +8,7 @@ description: > built-ins (Function.prototype.call) ---*/ - var desc = Object.getOwnPropertyDescriptor(Function.prototype, "call"); +var desc = Object.getOwnPropertyDescriptor(Function.prototype, "call"); assert.sameValue(desc.value, Function.prototype.call, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js index 4221bd930eed73f916c484c46bae88946cdbfb2c..6045ad5c5a849583db53a5bd600efbb30574220c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-38.js @@ -8,7 +8,7 @@ description: > built-ins (Function.prototype.bind) ---*/ - var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind"); +var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind"); assert.sameValue(desc.value, Function.prototype.bind, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js index 88845ce6ca6b06c7971cdcf615b67dd1033aff04..af26127eb276ce7a022fde4de6ec3a925d999756 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-39.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "constructor"); assert.sameValue(desc.value, Array.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js index a81aad268126823b6cc2dae9516e16f3ad693f03..4036f9c96caa72bb20773c6ac0aa6924dd822251 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-4.js @@ -8,8 +8,8 @@ description: > built-ins (Global.eval) ---*/ - var global = this; - var desc = Object.getOwnPropertyDescriptor(global, "eval"); +var global = this; +var desc = Object.getOwnPropertyDescriptor(global, "eval"); assert.sameValue(desc.value, global.eval, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js index 41ff7c2ed9f85d11aa14e752d17c580a2dec00ee..9c478e84bcf607d888fbf3e7cc163a88520efe87 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-40.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.concat) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "concat"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "concat"); assert.sameValue(desc.value, Array.prototype.concat, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js index 837182940453cdaaa32c217d752900a370e4b9c4..2b875fbb352f5189c1937bac6450b1a72ea88172 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-41.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.join) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "join"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "join"); assert.sameValue(desc.value, Array.prototype.join, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js index cc6ebd3373fee74ed5599f2fb8d62b2bd170e5d5..f1ab2659c1571ed38355c8326e00e22a62bebfcd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-42.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.reverse) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reverse"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reverse"); assert.sameValue(desc.value, Array.prototype.reverse, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js index aeee8d512f033d0fd3b2c30dbf62aa24194eee50..ab7385cc07b508610286e5aed62b8f102eb96491 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-43.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.slice) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "slice"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "slice"); assert.sameValue(desc.value, Array.prototype.slice, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js index 9203bfce748e8ec59a3dff27b1ac4a3a9ad70aca..7c704c1debb703f4128f937a791900177908f769 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-44.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.sort) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "sort"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "sort"); assert.sameValue(desc.value, Array.prototype.sort, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js index 50148ed31e47e602fd7f05e0227a5d161989456d..e7907fd9df9d4a61be2c011b08ff2df5211f58de 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-45.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toString"); assert.sameValue(desc.value, Array.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js index ff1b0d9ed83b23234783fdf002a02c14fca242c8..35444efa114ffe5071ebfde472f81a1359823b44 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-46.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.push) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "push"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "push"); assert.sameValue(desc.value, Array.prototype.push, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js index 932f02c6090ddc5a2d97d7c67f38b87d361e5a04..fba28178cbe89bb8f1d8a29f730d1d736151d09b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-47.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.pop) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "pop"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "pop"); assert.sameValue(desc.value, Array.prototype.pop, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js index eded49311d6097de3a24ff8619127425f2f2e807..f489b2715252c6275fba225aaabb9a01b6e9d10f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-48.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.shift) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "shift"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "shift"); assert.sameValue(desc.value, Array.prototype.shift, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js index 969af5e534240bc980394217483a49765b915e52..26eb89557c9c60d87151ca40af5c718f7e7e220f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-49.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.unshift) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "unshift"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "unshift"); assert.sameValue(desc.value, Array.prototype.unshift, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js index d99651e90edfdf6655075b1a74a1c0cd0666bf1f..042a2654da850f298c3e2d4943d6b8a83ca08df1 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-5.js @@ -8,8 +8,8 @@ description: > built-ins (Global.parseInt) ---*/ - var global = this; - var desc = Object.getOwnPropertyDescriptor(global, "parseInt"); +var global = this; +var desc = Object.getOwnPropertyDescriptor(global, "parseInt"); assert.sameValue(desc.value, global.parseInt, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js index c8edbe16dc1aae1b270e742e7445667deddede3a..8863e635c6a05d4578bd791163f87fb9ed6f6cbc 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-50.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.splice) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "splice"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "splice"); assert.sameValue(desc.value, Array.prototype.splice, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js index ea44b8ff6fda7e8a5b3917e327ce6f9af9b0568f..79f11c572e19a9ce7ffd24a14fcd413ec8a4f280 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-51.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.toLocaleString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toLocaleString"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "toLocaleString"); assert.sameValue(desc.value, Array.prototype.toLocaleString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js index 5081cc373506140ae4d80936ed67b1f30473915e..c6cf7ae47b6e4262b4931d82a05e426f95034e8f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-52.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.indexOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "indexOf"); assert.sameValue(desc.value, Array.prototype.indexOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js index 82c22d316664305914d9ac8026a11071ddac2354..e7ccc2f296a8414d1255c2b83e6d3320ba1fbb74 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-53.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.lastIndexOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "lastIndexOf"); assert.sameValue(desc.value, Array.prototype.lastIndexOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js index 04a7d7a2b47bddcc10b51f590b65e6395c89aa8a..f04a0a71565a9e64f4a4f6fc048e8768e46daa05 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-54.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.every) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "every"); assert.sameValue(desc.value, Array.prototype.every, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js index 993393559b1abac218c07986432752e0cc27fd46..449e316c665ffee885dc0590578c33048a5158d1 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-55.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.some) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "some"); assert.sameValue(desc.value, Array.prototype.some, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js index 02d6dc70f67a111b6d700095820a67c2dc1ac473..0bd51a9a14c871fd90ab3a86080825bf0fbecba5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-56.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.forEach) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "forEach"); assert.sameValue(desc.value, Array.prototype.forEach, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js index 22bce1956f455cecb81b704c667d775d1411a2f7..650421808bc563487bc9364318af0f59ba60fe36 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-57.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.map) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "map"); assert.sameValue(desc.value, Array.prototype.map, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js index ccc1c60d1ffb44ebf4a16bd9d421974cf4b13c48..084062b387c6d6b1df2feb10c55e3dea84fcf139 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-58.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.filter) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "filter"); assert.sameValue(desc.value, Array.prototype.filter, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js index 0f261012972d66e10246dd4df05edd47594eba96..7e32febd9f8787ee65911a889c3b215355ec7bab 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-59.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.reduce) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduce"); assert.sameValue(desc.value, Array.prototype.reduce, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js index 1e4a06e2301f42a2cdd973d72a9698875b0c4961..d6fc407fadedb530d360be35174aa65434b7778e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-6.js @@ -8,8 +8,8 @@ description: > built-ins (Global.parseFloat) ---*/ - var global = this; - var desc = Object.getOwnPropertyDescriptor(global, "parseFloat"); +var global = this; +var desc = Object.getOwnPropertyDescriptor(global, "parseFloat"); assert.sameValue(desc.value, global.parseFloat, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js index c1322e64c8c2801a17ffc1597d998d06dbfebb53..a4a7c106cfbb97d182e6035c78e11e0a58649637 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-60.js @@ -8,7 +8,7 @@ description: > built-ins (Array.prototype.reduceRight) ---*/ - var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight"); +var desc = Object.getOwnPropertyDescriptor(Array.prototype, "reduceRight"); assert.sameValue(desc.value, Array.prototype.reduceRight, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js index d01a7fad80fb3ec0cdc45d602116e10130b9d121..e0d8154a62cba83197d233040e6402cb477754eb 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-61.js @@ -8,7 +8,7 @@ description: > built-ins (String.fromCharCode) ---*/ - var desc = Object.getOwnPropertyDescriptor(String, "fromCharCode"); +var desc = Object.getOwnPropertyDescriptor(String, "fromCharCode"); assert.sameValue(desc.value, String.fromCharCode, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js index 0bdc7d40e49fc5aa83baef47a37786abe51e8c49..faef9f6a3f1c85d9df2b509260cdc154042d7ed6 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-62.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "constructor"); assert.sameValue(desc.value, String.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js index f1cc351388e345e1398b80d19224236a0be82a9f..999d0feb9f0646ecb897119008e564455bbc5883 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-63.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.charAt) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "charAt"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "charAt"); assert.sameValue(desc.value, String.prototype.charAt, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js index 51b1254def31cd1b4f4fc967f676c958c89ff26f..fe18d26393b45ae5ed5f6996442d9ce2336d66dd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-64.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.charCodeAt) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "charCodeAt"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "charCodeAt"); assert.sameValue(desc.value, String.prototype.charCodeAt, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js index dae2b940f828705a60d8959ae2abd805eb527ad8..18069fc8e0a7d61c5e37b19b6bcf6fb95275eedc 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-65.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.concat) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "concat"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "concat"); assert.sameValue(desc.value, String.prototype.concat, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js index ebc3efd6d235b41031d81df41b05d64c672d7b1c..22e86425a7b5cfebd3c62180e94ce12200a02f03 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-66.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.indexOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "indexOf"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "indexOf"); assert.sameValue(desc.value, String.prototype.indexOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js index 9d6819d2d730fac1e9c01e16e775935ceafb4683..2fcfbb89384c5960937164ccbb3618d3565ae379 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-67.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.lastIndexOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "lastIndexOf"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "lastIndexOf"); assert.sameValue(desc.value, String.prototype.lastIndexOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js index cdd96266201245696084a60549062d480e07c40e..5201eb059b2a5f2be998ffe5c35fe92307b30326 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-68.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.match) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "match"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "match"); assert.sameValue(desc.value, String.prototype.match, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js index d1f0b5a916ceadbc4f2a43782690b05dc74ac411..067ea8590b0b0a71881dd9f1c7f109d8c1d09d20 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-69.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.replace) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "replace"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "replace"); assert.sameValue(desc.value, String.prototype.replace, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js index 1c410ce45147c667544ae86150fb1cd54ff012e1..9a1a642adff7356387cad50d185d7b9349478110 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-7.js @@ -8,8 +8,8 @@ description: > built-ins (Global.isNaN) ---*/ - var global = this; - var desc = Object.getOwnPropertyDescriptor(global, "isNaN"); +var global = this; +var desc = Object.getOwnPropertyDescriptor(global, "isNaN"); assert.sameValue(desc.value, global.isNaN, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js index 5a3348774b7dd0f4839856281d831be03e70a8d9..490a683edf000b4d347ec2ca51e8046456bd5706 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-70.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.search) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "search"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "search"); assert.sameValue(desc.value, String.prototype.search, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js index 20b8f3cd46c5e914d60a58bacb339c6a65e7caad..0933b3769c37923bdd6f9889705e5656cece09ef 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-71.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.slice) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "slice"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "slice"); assert.sameValue(desc.value, String.prototype.slice, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js index f3a6a9a484de5ad30df2a6b864a6408e648a7278..37e0191e24f5f7a7c5a1e4dc5a3c22a9f404c6c5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-72.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.split) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "split"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "split"); assert.sameValue(desc.value, String.prototype.split, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js index a1b0a50734baabc404c5cbbbb35e20d33c40eb42..01c265da13a89fe71f4178eaf286dc46801fe6bd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-73.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.substring) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "substring"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "substring"); assert.sameValue(desc.value, String.prototype.substring, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js index 6bfd04221fad2986e25dae30c0f4f8ccb54b10c6..c722ac3d86a2d23eea6225030fd4fd3987f2b5ef 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-75.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.toLowerCase) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLowerCase"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLowerCase"); assert.sameValue(desc.value, String.prototype.toLowerCase, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js index 4044ddd372e8d44fb4614fd3339a929f68e16927..90b7a5ff25ca19cf46415f99880d3ff89a7c8979 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-76.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "toString"); assert.sameValue(desc.value, String.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js index 63118de0853ab77dd0bd7e22d577b473cd9dd939..56f378d61a4918e0814c2344e194795f07879b0d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-77.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.toUpperCase) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "toUpperCase"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "toUpperCase"); assert.sameValue(desc.value, String.prototype.toUpperCase, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js index 26793f30031a58d772d2b76cb4502eb9a5e2ccac..dfcac3a7eac12021fe9df33175288ba143273fe2 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-78.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.valueOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "valueOf"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "valueOf"); assert.sameValue(desc.value, String.prototype.valueOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js index e81d1eb99d26706c7e6948675ae9f2ad8ddbd450..a25d88620e6e2051b60d07acc5bfbf743754b23f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-79.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.toLocaleLowerCase) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleLowerCase"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleLowerCase"); assert.sameValue(desc.value, String.prototype.toLocaleLowerCase, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js index 094fcbd888b01e4507f7038565d9598dc791131d..78adbeba7b970edab34736dde9d175b53e639b60 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-8.js @@ -8,8 +8,8 @@ description: > built-ins (Global.isFinite) ---*/ - var global = this; - var desc = Object.getOwnPropertyDescriptor(global, "isFinite"); +var global = this; +var desc = Object.getOwnPropertyDescriptor(global, "isFinite"); assert.sameValue(desc.value, global.isFinite, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js index 577756342cdde54fcada5ac606cb96dc43dc450e..62c619c1543b57738e1631d7a56bcf4923100854 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-80.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.toLocaleUpperCase) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleUpperCase"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "toLocaleUpperCase"); assert.sameValue(desc.value, String.prototype.toLocaleUpperCase, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js index d399238b12d8750ebe25b77c3804918b043cf9cd..e8c198478237c466f1edfc0fbd1e72681a4de399 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-81.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.localeCompare) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "localeCompare"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "localeCompare"); assert.sameValue(desc.value, String.prototype.localeCompare, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js index 3412ec421ae0e2b63ecaf4eb287cc3ceb51dbb84..0ffd73dd7f89cc0f10227a537e1c0903a4b707fb 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-82.js @@ -8,7 +8,7 @@ description: > built-ins (String.prototype.trim) ---*/ - var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim"); +var desc = Object.getOwnPropertyDescriptor(String.prototype, "trim"); assert.sameValue(desc.value, String.prototype.trim, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js index 25ab07de3df2e2341f48733467a20f907780d76a..ecf34debd88518e58dae427976af25043651b89c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-84.js @@ -8,7 +8,7 @@ description: > built-ins (Boolean.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "constructor"); assert.sameValue(desc.value, Boolean.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js index 463d1e39d5c75bcd2985be02bfedccf6aad7561b..fdc0b7dcd3aca6a53a6ef21fbfb49911cc0004d8 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-85.js @@ -8,7 +8,7 @@ description: > built-ins (Boolean.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "toString"); assert.sameValue(desc.value, Boolean.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js index 4b5880d4e187f60b35add7ab57e7eaaf501f9614..6b1dae720f46f0a0fa442fdc59fd469e3f530bf3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-86.js @@ -8,7 +8,7 @@ description: > built-ins (Boolean.prototype.valueOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "valueOf"); +var desc = Object.getOwnPropertyDescriptor(Boolean.prototype, "valueOf"); assert.sameValue(desc.value, Boolean.prototype.valueOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js index 130d2d45a6c9fcde0f2aa7f76aea711e5925439b..28821a8420621319eee4f944a43ba4a18e64c3ee 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-88.js @@ -8,7 +8,7 @@ description: > built-ins (Number.prototype.constructor) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number.prototype, "constructor"); +var desc = Object.getOwnPropertyDescriptor(Number.prototype, "constructor"); assert.sameValue(desc.value, Number.prototype.constructor, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js index b392e59799f28ecbad6f64d8c7f1a4d591b7b950..0f53f7bc6285f1a8c0415d08cdab2c389ef57f32 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-89.js @@ -8,7 +8,7 @@ description: > built-ins (Number.prototype.toString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toString"); +var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toString"); assert.sameValue(desc.value, Number.prototype.toString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js index ff648971c3d089c31bd3411ecde8ca58fcd610fb..a45bc65924de780177443bc55f78b0e347c9bb7f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-9.js @@ -8,8 +8,8 @@ description: > built-ins (Global.decodeURI) ---*/ - var global = this; - var desc = Object.getOwnPropertyDescriptor(global, "decodeURI"); +var global = this; +var desc = Object.getOwnPropertyDescriptor(global, "decodeURI"); assert.sameValue(desc.value, global.decodeURI, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js index 2f8c7252709501323e31c4768f4d80e3e23ddfcb..332e44ec04f7eef19863f0ba5ae26de5d0f42f18 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-90.js @@ -8,7 +8,7 @@ description: > built-ins (Number.prototype.toLocaleString) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toLocaleString"); +var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toLocaleString"); assert.sameValue(desc.value, Number.prototype.toLocaleString, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js index 674acf087f1cad132c29c834471c6ce0004fe255..fcebf3673fc7964d6eb4a623af6d53be95fc3900 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-91.js @@ -8,7 +8,7 @@ description: > built-ins (Number.prototype.toFixed) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toFixed"); +var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toFixed"); assert.sameValue(desc.value, Number.prototype.toFixed, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js index 553bf70bcc74a3e41d8ed2f0d45604e07fe5bec5..edda1be2d4bee5b135b9d94c483d429916915266 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-92.js @@ -8,7 +8,7 @@ description: > built-ins (Number.prototype.toExponential) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toExponential"); +var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toExponential"); assert.sameValue(desc.value, Number.prototype.toExponential, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js index 76fcf8ae104afd29e18d5f7ae8150619ee35e2c6..cf4a5027d0c5df10271c27b057a7755892ff7c7f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-93.js @@ -8,7 +8,7 @@ description: > built-ins (Number.prototype.toPrecision) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toPrecision"); +var desc = Object.getOwnPropertyDescriptor(Number.prototype, "toPrecision"); assert.sameValue(desc.value, Number.prototype.toPrecision, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js index 13159813f7c5751dd28e7c14ba1f0828d78371c0..72aa5a4951f154f96f80b9f8b20f97fd44f7a3c9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-94.js @@ -8,7 +8,7 @@ description: > built-ins (Number.prototype.valueOf) ---*/ - var desc = Object.getOwnPropertyDescriptor(Number.prototype, "valueOf"); +var desc = Object.getOwnPropertyDescriptor(Number.prototype, "valueOf"); assert.sameValue(desc.value, Number.prototype.valueOf, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js index 603e590b480f17e8271baf88dcd51be7658e0bf2..61d6192583a586d4b6ee8243298fd6cd78b8182b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-96.js @@ -8,7 +8,7 @@ description: > built-ins (Math.abs) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "abs"); +var desc = Object.getOwnPropertyDescriptor(Math, "abs"); assert.sameValue(desc.value, Math.abs, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js index 2c3e9ca5b65a6e574cf9b7c2c0e99d89ff340a1b..822780fdde6119c94311ac2fb33e4964d0c00c1f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-97.js @@ -8,7 +8,7 @@ description: > built-ins (Math.acos) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "acos"); +var desc = Object.getOwnPropertyDescriptor(Math, "acos"); assert.sameValue(desc.value, Math.acos, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js index 3833480fd62ab86ecb5249a7bab40bb3309fb225..c27ae870c16e946dc3a6413c1a6b5094a562a095 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-98.js @@ -8,7 +8,7 @@ description: > built-ins (Math.asin) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "asin"); +var desc = Object.getOwnPropertyDescriptor(Math, "asin"); assert.sameValue(desc.value, Math.asin, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js index 0fa81e5453c5dd83d8ab9d946f9944f5c388092a..29c3ed9418d768f4447fa2aa55e5e4c8f6a5de92 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-99.js @@ -8,7 +8,7 @@ description: > built-ins (Math.atan) ---*/ - var desc = Object.getOwnPropertyDescriptor(Math, "atan"); +var desc = Object.getOwnPropertyDescriptor(Math, "atan"); assert.sameValue(desc.value, Math.atan, 'desc.value'); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js b/test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js index c11aee65f5b90cd31227f934076cc37c0a9eb04e..c7d152060757e089ffe7c0accf3d8a52466900b9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/exception-not-object-coercible.js @@ -7,10 +7,10 @@ esid: sec-object.getownpropertydescriptors author: Jordan Harband ---*/ -assert.throws(TypeError, function () { - Object.getOwnPropertyDescriptors(null); +assert.throws(TypeError, function() { + Object.getOwnPropertyDescriptors(null); }); -assert.throws(TypeError, function () { - Object.getOwnPropertyDescriptors(undefined); +assert.throws(TypeError, function() { + Object.getOwnPropertyDescriptors(undefined); }); diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/function-name.js b/test/built-ins/Object/getOwnPropertyDescriptors/function-name.js index 1c1f3a6b7888871ce9db5c353c56ecb19e4ac8a6..c2e98cf19b56d14b65f416e218f2ce7c15f4f630 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/function-name.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/function-name.js @@ -9,9 +9,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - Object.getOwnPropertyDescriptors.name, - 'getOwnPropertyDescriptors', - 'Expected Object.getOwnPropertyDescriptors.name to be "getOwnPropertyDescriptors"' + Object.getOwnPropertyDescriptors.name, + 'getOwnPropertyDescriptors', + 'Expected Object.getOwnPropertyDescriptors.name to be "getOwnPropertyDescriptors"' ); verifyNotEnumerable(Object.getOwnPropertyDescriptors, 'name'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js b/test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js index 1522f593638fc8505100d12295ef67df4bb15711..574dbb8ed2cc1aba2eab623bd47347144025f44c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/inherited-properties-omitted.js @@ -7,7 +7,7 @@ esid: sec-object.getownpropertydescriptors author: Jordan Harband ---*/ -var F = function () {}; +var F = function() {}; F.prototype.a = {}; F.prototype.b = {}; diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js b/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js index 90582f0e4e677e7f2b4699c5f6ec115b09521330..c7f70689cdc63cf7b709e1a3016aaf9117e7fb51 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js @@ -10,21 +10,25 @@ includes: [proxyTrapsHelper.js] ---*/ var log = ""; -var object = { a: 0, b: 0, c: 0 }; +var object = { + a: 0, + b: 0, + c: 0 +}; var handler = allowProxyTraps({ - getOwnPropertyDescriptor: function (target, propertyKey) { + getOwnPropertyDescriptor: function(target, propertyKey) { assert.sameValue(target, object, "getOwnPropertyDescriptor"); log += "|getOwnPropertyDescriptor:" + propertyKey; return Object.getOwnPropertyDescriptor(target, propertyKey); }, - ownKeys: function (target) { + ownKeys: function(target) { assert.sameValue(target, object, "ownKeys"); log += "|ownKeys"; return Object.getOwnPropertyNames(target); } }); var check = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert(propertyKey in target, "handler check: " + propertyKey); return target[propertyKey]; } diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js b/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js index 4c7141411194fe0b745c494e8de00daf19448bcf..3ce4b71a96bd3a495176fb0cce7607ddfafc6217 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js @@ -30,4 +30,3 @@ assert.sameValue(result[2].configurable, false, 'index 2 is not configurable'); assert.sameValue(result[2].enumerable, true, 'index 2 is enumerable'); assert.sameValue(result[2].writable, false, 'index 2 is not writable'); assert.sameValue(result[2].value, 'c', 'index 2 is "c"'); - diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js b/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js index b03df1304c5f416dc6a556ef4f71a487b6fcdaba..f6bf1e078c04fd576b2d46d705a2a10151522884 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js @@ -12,9 +12,9 @@ includes: [proxyTrapsHelper.js] var key = "a"; var ownKeys = [key]; var badProxyHandlers = allowProxyTraps({ - getOwnPropertyDescriptor: function () {}, - ownKeys: function () { - return ownKeys; + getOwnPropertyDescriptor: function() {}, + ownKeys: function() { + return ownKeys; } }); var proxy = new Proxy({}, badProxyHandlers); diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js b/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js index 2cf49a08704e362c6a2f4df4d07cd803e8a294ee..cbfa831d6792f00cd672fceabd3c22dd073b940a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js @@ -13,9 +13,16 @@ var enumSym = Symbol('enum'); var nonEnumSym = Symbol('nonenum'); var symValue = Symbol('value'); -var obj = { key: symValue }; +var obj = { + key: symValue +}; obj[enumSym] = value; -Object.defineProperty(obj, nonEnumSym, { writable: true, enumerable: false, configurable: true, value: value }); +Object.defineProperty(obj, nonEnumSym, { + writable: true, + enumerable: false, + configurable: true, + value: value +}); var result = Object.getOwnPropertyDescriptors(obj); diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js index 7239b18d861e1f34447e4e35043e74a193585158..4fc046ae65be07f59eae845305258a50ba6ceb8d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js @@ -9,7 +9,7 @@ author: Jordan Harband ---*/ function fakeObject() { - $ERROR('The overriden version of Object was called!'); + $ERROR('The overriden version of Object was called!'); } fakeObject.getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors; fakeObject.keys = Object.keys; diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js index 6427b3d877b876c4578feeceb17efdc8311b2c08..bfe13dd0d0ddcccb6a7ac9e998abb01c74f1eb5d 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js @@ -9,7 +9,7 @@ author: Jordan Harband ---*/ function fakeObjectGetOwnPropertyDescriptor() { - $ERROR('The overriden version of Object.getOwnPropertyDescriptor was called!'); + $ERROR('The overriden version of Object.getOwnPropertyDescriptor was called!'); } Object.getOwnPropertyDescriptor = fakeObjectGetOwnPropertyDescriptor; @@ -19,4 +19,6 @@ assert.sameValue( 'Sanity check failed: could not modify the global Object.getOwnPropertyDescriptor' ); -assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors({ a: 1 })).length, 1, 'Expected object with 1 key to have 1 descriptor'); +assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors({ + a: 1 +})).length, 1, 'Expected object with 1 key to have 1 descriptor'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js index 51ce6f35f013be330e17781ca3c1fe509b629773..586f94fbcc998e24c977dd2a9dc10edc12724590 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js @@ -8,5 +8,5 @@ description: Object.getOwnPropertyNames throws TypeError if 'O' is undefined assert.throws(TypeError, function() { - Object.getOwnPropertyNames(undefined); + Object.getOwnPropertyNames(undefined); }); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js index 4a9ac3a33f61424f28fad2c0d633701d16538db6..441dc14ad82d43695bbc3a86c5ff4363c3566d6a 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-3.js @@ -8,5 +8,5 @@ description: Object.getOwnPropertyNames throws TypeError if 'O' is null assert.throws(TypeError, function() { - Object.getOwnPropertyNames(null); + Object.getOwnPropertyNames(null); }); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js index 09ead97824ef3f9ebf73e3e0fb4d082a2e1e0006..d57800a1988606f7b89948f1977ccf71703df918 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-4.js @@ -8,4 +8,4 @@ description: > boolean ---*/ - Object.getOwnPropertyNames(true); +Object.getOwnPropertyNames(true); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js index e2de141ea14bc2d81dd1c9f809ec3c4964d164df..a03c0e002fefaceab1b28cba5e5351c3e0735531 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-5.js @@ -8,4 +8,4 @@ description: > string ---*/ - Object.getOwnPropertyNames("abc"); +Object.getOwnPropertyNames("abc"); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js index b34eac41460daa23a82a9f3692d4cec9504a5c76..8b2f12312e9957dba10dfd2dd38016abe7066faa 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1.js @@ -8,4 +8,4 @@ description: > first param is not Object ---*/ - Object.getOwnPropertyNames(0); +Object.getOwnPropertyNames(0); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js index 8d9c373e2c05c2f8df8dcb304d8ef0f80c97dfb6..da93b1a029a5ef11c29e9f6bdf6673c18cebecfa 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-1.js @@ -8,7 +8,7 @@ description: > to Array.isArray ---*/ - var obj = {}; - var result = Object.getOwnPropertyNames(obj); +var obj = {}; +var result = Object.getOwnPropertyNames(obj); assert(Array.isArray(result), 'Array.isArray(result) !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js index 12a1f74181f2d67647d46e7270dbebb3672d26d8..28e403c0dc15d7a0555f9e82c1bf165d30dbc218 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-2.js @@ -6,7 +6,7 @@ es5id: 15.2.3.4-2-2 description: Object.getOwnPropertyNames - returned array is an instance of Array ---*/ - var obj = {}; - var result = Object.getOwnPropertyNames(obj); +var obj = {}; +var result = Object.getOwnPropertyNames(obj); assert(result instanceof Array, 'result instanceof Array !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js index d34305209d6fe3cd6cdb33817692058491453e08..b1419378ea618417fd408aeec4ae0bd54028b994 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-3.js @@ -8,7 +8,7 @@ description: > initialized to 0 ---*/ - var obj = {}; - var result = Object.getOwnPropertyNames(obj); +var obj = {}; +var result = Object.getOwnPropertyNames(obj); assert.sameValue(result.length, 0, 'result.length'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js index fd42435c7cd57f8504ac6d12d77adfb7333b41e1..4eb034beccc07ca564dbfb0156b5122fb1885b79 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-2-4.js @@ -8,13 +8,13 @@ description: > built-in constructor ---*/ - var oldArray = Array; - Array = function () { - throw new Error("invoke customer defined Array!"); - }; +var oldArray = Array; +Array = function() { + throw new Error("invoke customer defined Array!"); +}; - var obj = {}; +var obj = {}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); assert.sameValue(Object.prototype.toString.call(result), "[object Array]", 'Object.prototype.toString.call(result)'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js index c4a893ccd66c9125d99a72018062210da81bc44e..d6c02ef653213ed18a610175c2ed1ba241dd85c5 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js @@ -8,9 +8,11 @@ description: > from index 0 ---*/ - var obj = { prop1: 1001 }; +var obj = { + prop1: 1001 +}; - var arr = Object.getOwnPropertyNames(obj); +var arr = Object.getOwnPropertyNames(obj); assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true'); assert.sameValue(arr[0], "prop1", 'arr[0]'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js index 55837780105bef7d65681d7ef37b1d50fc77d9e0..865477923d96ae33be9da1c9a06b3de529dbc4d0 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js @@ -6,14 +6,14 @@ es5id: 15.2.3.4-4-1 description: Object.getOwnPropertyNames returns array of property names (Global) ---*/ - var result = Object.getOwnPropertyNames(this); - var expResult = ["NaN", "Infinity", "undefined", "eval", "parseInt", "parseFloat", "isNaN", "isFinite", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "Array", "String", "Boolean", "Number", "Date", "Date", "RegExp", "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "JSON"]; +var result = Object.getOwnPropertyNames(this); +var expResult = ["NaN", "Infinity", "undefined", "eval", "parseInt", "parseFloat", "isNaN", "isFinite", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "Array", "String", "Boolean", "Number", "Date", "Date", "RegExp", "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "JSON"]; - var result1 = {}; - for (var p in result) { - result1[result[p]] = true; - } +var result1 = {}; +for (var p in result) { + result1[result[p]] = true; +} - for (var p1 in expResult) { - assert(result1[expResult[p1]], 'result1[expResult[p1]] !== true'); - } +for (var p1 in expResult) { + assert(result1[expResult[p1]], 'result1[expResult[p1]] !== true'); +} diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js index 97b14fd89053fb2394d7f9d83c1d57740e7d9ca7..45cdcecdec1668ea451c134e96060ebb21e27462 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-2.js @@ -7,7 +7,7 @@ description: Object.getOwnPropertyNames returns array of property names (Object) includes: [arrayContains.js] ---*/ - var result = Object.getOwnPropertyNames(Object); - var expResult = ["getPrototypeOf", "getOwnPropertyDescriptor", "getOwnPropertyNames", "create", "defineProperty", "defineProperties", "seal", "freeze", "preventExtensions", "isSealed", "isFrozen", "isExtensible", "keys", "prototype", "length"]; +var result = Object.getOwnPropertyNames(Object); +var expResult = ["getPrototypeOf", "getOwnPropertyDescriptor", "getOwnPropertyNames", "create", "defineProperty", "defineProperties", "seal", "freeze", "preventExtensions", "isSealed", "isFrozen", "isExtensible", "keys", "prototype", "length"]; assert(arrayContains(result, expResult), 'arrayContains(result, expResult) !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js index 8348c8209c58018ae9af5e7f1efa08d20077c630..4530e7016c7556f70e03791385c91d4108665cf2 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js @@ -8,15 +8,17 @@ description: > pushed into the returned array ---*/ - var proto = { "parent": "parent" }; +var proto = { + "parent": "parent" +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var result = Object.getOwnPropertyNames(child); +var result = Object.getOwnPropertyNames(child); - for (var p in result) { - assert.notSameValue(result[p], "parent", 'result[p]'); - } +for (var p in result) { + assert.notSameValue(result[p], "parent", 'result[p]'); +} diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js index 7ee68cada55a48ad07a21c75f9f23634e7ae4b7a..54da883cc37f109652d46a4c84e52b60e4915889 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js @@ -8,21 +8,21 @@ description: > pushed into the returned array ---*/ - var proto = {}; - Object.defineProperty(proto, "parent", { - get: function () { - return "parent"; - }, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "parent", { + get: function() { + return "parent"; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var result = Object.getOwnPropertyNames(child); +var result = Object.getOwnPropertyNames(child); - for (var p in result) { - assert.notSameValue(result[p], "parent", 'result[p]'); - } +for (var p in result) { + assert.notSameValue(result[p], "parent", 'result[p]'); +} diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js index 525a253207d98868faea52a0da0aec770a0b929f..ed30ce1e06fda752625c8c255bf714948572e760 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js @@ -8,8 +8,10 @@ description: > the returned array ---*/ - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); assert.sameValue(result[0], "a", 'result[0]'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js index 1992e3168f3c91b72f6b2930ba0f3bdcb70dfa64..2c4970de1f6398662623e5ab795b5f2b9e0bac73 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js @@ -8,14 +8,14 @@ description: > into the returned array ---*/ - var obj = {}; - Object.defineProperty(obj, "a", { - get: function () { - return "a"; - }, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "a", { + get: function() { + return "a"; + }, + configurable: true +}); - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); assert.sameValue(result[0], "a", 'result[0]'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js index 1597725f12f0f8246a6933ad4746f4184f341b70..5ecb545f8a245b48a6d813d5505f072f58f04831 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-40.js @@ -8,12 +8,12 @@ description: > object 'O' is not pushed into the returned array ---*/ - var str = new String("abc"); +var str = new String("abc"); - String.prototype.protoProperty = "protoString"; +String.prototype.protoProperty = "protoString"; - var result = Object.getOwnPropertyNames(str); +var result = Object.getOwnPropertyNames(str); - for (var p in result) { - assert.notSameValue(result[p], "protoProperty", 'result[p]'); - } +for (var p in result) { + assert.notSameValue(result[p], "protoProperty", 'result[p]'); +} diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js index 376e30846a7937dc50bc1880ea6043f3e07db7e7..61f889e95944b8badad2cd980be5186b786167f8 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-41.js @@ -8,17 +8,17 @@ description: > object 'O' is not pushed into the returned array ---*/ - var str = new String("abc"); +var str = new String("abc"); - Object.defineProperty(String.prototype, "protoProperty", { - get: function () { - return "protoString"; - }, - configurable: true - }); +Object.defineProperty(String.prototype, "protoProperty", { + get: function() { + return "protoString"; + }, + configurable: true +}); - var result = Object.getOwnPropertyNames(str); +var result = Object.getOwnPropertyNames(str); - for (var p in result) { - assert.notSameValue(result[p], "protoProperty", 'result[p]'); - } +for (var p in result) { + assert.notSameValue(result[p], "protoProperty", 'result[p]'); +} diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js index 4f81f8454d2e54f14c3e3b9be6d73494da768c0b..dfa85c7f0eb8795966b8c5d0caca6ab58b24f1d7 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-42.js @@ -10,20 +10,20 @@ description: > var propertyFound = false; - var str = new String("abc"); +var str = new String("abc"); - Object.defineProperty(str, "ownProperty", { - value: "ownString", - configurable: true - }); +Object.defineProperty(str, "ownProperty", { + value: "ownString", + configurable: true +}); - var result = Object.getOwnPropertyNames(str); +var result = Object.getOwnPropertyNames(str); - for (var p in result) { - if (result[p] === "ownProperty") { - propertyFound = true; - break; - } - } +for (var p in result) { + if (result[p] === "ownProperty") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js index b3ae879d9ee5fba89665fe23068232d8e78ae64c..8f8bf48ab62b2d04c113f831a4524f78ff092502 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-43.js @@ -10,22 +10,22 @@ description: > var propertyFound = false; - var str = new String("abc"); +var str = new String("abc"); - Object.defineProperty(str, "ownProperty", { - get: function () { - return "ownString"; - }, - configurable: true - }); +Object.defineProperty(str, "ownProperty", { + get: function() { + return "ownString"; + }, + configurable: true +}); - var result = Object.getOwnPropertyNames(str); +var result = Object.getOwnPropertyNames(str); - for (var p in result) { - if (result[p] === "ownProperty") { - propertyFound = true; - break; - } - } +for (var p in result) { + if (result[p] === "ownProperty") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js index c6f5c4432ea3b7ec8f348c2231e7394b1ffa6a58..ad7799a2a3dee883aa603a12fe357a17af4504d9 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-44.js @@ -9,10 +9,10 @@ description: > includes: [compareArray.js] ---*/ - var str = new String("abc"); - str[5] = "de"; +var str = new String("abc"); +str[5] = "de"; - var expected = ["0", "1", "2", "5", "length"]; - var actual = Object.getOwnPropertyNames(str); +var expected = ["0", "1", "2", "5", "length"]; +var actual = Object.getOwnPropertyNames(str); assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js index 5772ef4d0ac86eb263afbb45e65679ca8d9e810b..cc155a5ee1ab482c25a3980345642ab310584cfa 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-45.js @@ -8,12 +8,12 @@ description: > object 'O' is not pushed into the returned array. ---*/ - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Array.prototype.protoProperty = "protoArray"; +Array.prototype.protoProperty = "protoArray"; - var result = Object.getOwnPropertyNames(arr); +var result = Object.getOwnPropertyNames(arr); - for (var p in result) { - assert.notSameValue(result[p], "protoProperty", 'result[p]'); - } +for (var p in result) { + assert.notSameValue(result[p], "protoProperty", 'result[p]'); +} diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js index 85773d0cdf3951a1ab0eab4157ddce5f93c84102..0e3d3586f6ab92301d8ff8e9da78299521815cba 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-46.js @@ -8,17 +8,17 @@ description: > object 'O' is not pushed into the returned array. ---*/ - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(Array.prototype, "protoProperty", { - get: function () { - return "protoArray"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "protoProperty", { + get: function() { + return "protoArray"; + }, + configurable: true +}); - var result = Object.getOwnPropertyNames(arr); +var result = Object.getOwnPropertyNames(arr); - for (var p in result) { - assert.notSameValue(result[p], "protoProperty", 'result[p]'); - } +for (var p in result) { + assert.notSameValue(result[p], "protoProperty", 'result[p]'); +} diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js index ac4193f20248361a16ef412cebe45f3738861457..32c031b16920d8c3bbed5a2a3016a1f15c5726cd 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-47.js @@ -10,16 +10,16 @@ description: > var propertyFound = false; - var arr = [0, 1, 2]; - arr.ownProperty = "ownArray"; +var arr = [0, 1, 2]; +arr.ownProperty = "ownArray"; - var result = Object.getOwnPropertyNames(arr); +var result = Object.getOwnPropertyNames(arr); - for (var p in result) { - if (result[p] === "ownProperty") { - propertyFound = true; - break; - } - } +for (var p in result) { + if (result[p] === "ownProperty") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js index 61299ad6406b20fffa8bdd0abbfde025f41e8da0..bdb85cf3bbe4adc686d2cff48fc15c567ab47447 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-48.js @@ -10,22 +10,22 @@ description: > var propertyFound = false; - var arr = [0, 1, 2]; +var arr = [0, 1, 2]; - Object.defineProperty(arr, "ownProperty", { - get: function () { - return "ownArray"; - }, - configurable: true - }); +Object.defineProperty(arr, "ownProperty", { + get: function() { + return "ownArray"; + }, + configurable: true +}); - var result = Object.getOwnPropertyNames(arr); +var result = Object.getOwnPropertyNames(arr); - for (var p in result) { - if (result[p] === "ownProperty") { - propertyFound = true; - break; - } - } +for (var p in result) { + if (result[p] === "ownProperty") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js index 442681b96501f4df5551ad38682f439a0ba94ab6..bb7f61ce94d588e74da771ce4a820705ab28294a 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-49.js @@ -9,8 +9,8 @@ description: > includes: [compareArray.js] ---*/ - var arr = [0, 1, 2]; - var expected = ["0", "1", "2", "length"]; - var actual = Object.getOwnPropertyNames(arr); +var arr = [0, 1, 2]; +var expected = ["0", "1", "2", "length"]; +var actual = Object.getOwnPropertyNames(arr); assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js index d8312715165f10893da8f23cb6e0b803dbb5e70d..d6cc46ff24c0af5c3af860262e25d918373f1686 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-50.js @@ -8,14 +8,14 @@ description: > pushed into the returned Array ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "nonEnumerableProp", { - value: 10, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "nonEnumerableProp", { + value: 10, + enumerable: false, + configurable: true +}); - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); assert.sameValue(result[0], "nonEnumerableProp", 'result[0]'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js index 9887742045d3d10368c03c982e74f1c90e5a3950..e7cdae41dc83e9a8b075314316290054c0f2373c 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-1.js @@ -8,11 +8,11 @@ description: > true ---*/ - var obj = new Object(); - obj.x = 1; - obj.y = 2; - var result = Object.getOwnPropertyNames(obj); - var desc = Object.getOwnPropertyDescriptor(result,"0"); +var obj = new Object(); +obj.x = 1; +obj.y = 2; +var result = Object.getOwnPropertyNames(obj); +var desc = Object.getOwnPropertyDescriptor(result, "0"); assert.sameValue(desc.enumerable, true, 'desc.enumerable'); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js index 30a9106967c915298202f9ef15bbec8bb94fc630..ac9096e50cb6d85f0111a8192fa0734c9569d853 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js @@ -9,31 +9,33 @@ description: > includes: [compareArray.js] ---*/ - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - Object.defineProperty(obj, "b", { - get: function () { - return "b"; - }, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "b", { + get: function() { + return "b"; + }, + enumerable: false, + configurable: true +}); - Object.defineProperty(obj, "c", { - get: function () { - return "c"; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "c", { + get: function() { + return "c"; + }, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "d", { - value: "d", - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "d", { + value: "d", + enumerable: false, + configurable: true +}); - var actual = Object.getOwnPropertyNames(obj); - var expected = ["a", "b", "c", "d"]; +var actual = Object.getOwnPropertyNames(obj); +var expected = ["a", "b", "c", "d"]; assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js index 27e4eaaf9cb6b364c4eb377249587412e1156bda..701f6c5948642ff8ab5cbc9689965ac50475b2fa 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js @@ -10,15 +10,17 @@ description: > var propertyFound = false; - var obj = { "": "empty" }; +var obj = { + "": "empty" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); - for (var p in result) { - if (result[p] === "") { - propertyFound = true; - break; - } - } +for (var p in result) { + if (result[p] === "") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js index fdcec33553a8086563b1f07467e74d4666cd5972..41b36b32548ad5dd71efa67a4ae818c099a7a773 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js @@ -8,13 +8,15 @@ description: > writable ---*/ - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); - var beforeOverride = (result[0] === "a"); - result[0] = "b"; - var afterOverride = (result[0] === "b"); +var beforeOverride = (result[0] === "a"); +result[0] = "b"; +var afterOverride = (result[0] === "b"); assert(beforeOverride, 'beforeOverride !== true'); assert(afterOverride, 'afterOverride !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js index d6c3a2528d9a1d40f82c1eae5bff20e035abeadb..f4dff9c43b3f5a4465110724294a66b7e76e72ad 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js @@ -10,15 +10,17 @@ description: > var propertyFound = false; - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); - for (var p in result) { - if (result[p] === "a") { - propertyFound = true; - break; - } - } +for (var p in result) { + if (result[p] === "a") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js index c46672f7ad0cc276206c20a59b778ae669c89b15..c25be8efc9184a83647a26e7ee83dfa9b179d0ac 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js @@ -8,13 +8,15 @@ description: > configurable ---*/ - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); - var beforeDeleted = (result.hasOwnProperty("0")); - delete result[0]; - var afterDeleted = (result.hasOwnProperty("0")); +var beforeDeleted = (result.hasOwnProperty("0")); +delete result[0]; +var afterDeleted = (result.hasOwnProperty("0")); assert(beforeDeleted, 'beforeDeleted !== true'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js index 96102bf168faa3799df45b66b50f90669f229512..28bb663bc3259e5f50950b4e9747ebf02c34ade4 100644 --- a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js +++ b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js @@ -16,5 +16,3 @@ var syms = Object.getOwnPropertySymbols(obj); assert.sameValue(syms[0], sym, "Array of symbols returned by `Object.getOwnPropertySymbols(obj)` includes `sym`"); assert.sameValue(syms.length, 1, "The value of `syms.length` is `1`"); - - diff --git a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js index 26a288b03478ddfefc941152848ce3c9f49d3d88..e1ffb942036a72b84c3c92e8b30745bc5981659e 100644 --- a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js +++ b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js @@ -16,5 +16,3 @@ var syms = Object.getOwnPropertySymbols(obj); assert.sameValue(syms[0], sym, "Array of symbols returned by `Object.getOwnPropertySymbols(obj)` includes `sym`"); assert.sameValue(syms.length, 1, "The value of `syms.length` is `1`"); - - diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js index 9f8eb76e027166e336d721e9393e421b2dc0d040..92fc6a78a1f55ea9d487d60c0e3c953be5c5ecd8 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js @@ -8,5 +8,5 @@ description: Object.getPrototypeOf must take 1 parameter assert.throws(TypeError, function() { - Object.getPrototypeOf(); + Object.getPrototypeOf(); }); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js index 3f73a4c073e687cd24675765af43af4fec2eadbf..453fb2e6b870a2a560340f3faa80704acb494cb1 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-1-2.js @@ -8,5 +8,5 @@ description: Object.getPrototypeOf throws TypeError if 'O' is null assert.throws(TypeError, function() { - Object.getPrototypeOf(null); + Object.getPrototypeOf(null); }); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js index c0e3b2b899f185f56d8bf6bbcd42804c789c41fb..158a99b77b4c1120904ddbad87696b4355eb908b 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-19.js @@ -8,6 +8,6 @@ description: > (Object object) ---*/ - var obj = {}; +var obj = {}; assert.sameValue(Object.getPrototypeOf(obj), Object.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js index 6802de900e747843dd327cb3c134ee4f3198bc8a..bd53bc4fb5dd427fe8dc230cf22dfbc8cbc23d7b 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-2.js @@ -11,12 +11,12 @@ description: > (custom object) ---*/ - function base() {} +function base() {} - function derived() {} - derived.prototype = new base(); +function derived() {} +derived.prototype = new base(); - var d = new derived(); - var x = Object.getPrototypeOf(d); +var d = new derived(); +var x = Object.getPrototypeOf(d); assert.sameValue(x.isPrototypeOf(d), true, 'x.isPrototypeOf(d)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js index 062f7af14810dccb312dabd78a66465b5beeb377..a57fb809948f2ee6b5d2b80c1d89bad6d70e3043 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-20.js @@ -8,8 +8,8 @@ description: > (Function Object) ---*/ - var obj = function (a, b) { - return a + b; - }; +var obj = function(a, b) { + return a + b; +}; assert.sameValue(Object.getPrototypeOf(obj), Function.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js index 8652973e531ed1e45d4d7276c57268525cf70cf9..eaf9741a20018d9773a0ec98a017936f831942df 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-21.js @@ -8,6 +8,6 @@ description: > (Array object) ---*/ - var arr = [1, 2, 3]; +var arr = [1, 2, 3]; assert.sameValue(Object.getPrototypeOf(arr), Array.prototype, 'Object.getPrototypeOf(arr)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js index 13d845f54396700db3b9e7e0855e2c556557a0c7..c6a7cbdf5cbfc997efe600a69877b35a9f60513b 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-22.js @@ -8,6 +8,6 @@ description: > (String object) ---*/ - var obj = new String("abc"); +var obj = new String("abc"); assert.sameValue(Object.getPrototypeOf(obj), String.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js index 7b825d970223e4cb4300d06cdc1a1bf591a79de8..0ccd5b9ff0467a7d7f08f6702b29c2c3386394af 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-23.js @@ -8,6 +8,6 @@ description: > (Boolean object) ---*/ - var obj = new Boolean(true); +var obj = new Boolean(true); assert.sameValue(Object.getPrototypeOf(obj), Boolean.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js index 8a0759e13b065422e393304d801ac94ef3797720..50cf883e61146471659e23a7209f35038591e9fe 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-24.js @@ -8,6 +8,6 @@ description: > (Number object) ---*/ - var obj = new Number(-3); +var obj = new Number(-3); assert.sameValue(Object.getPrototypeOf(obj), Number.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js index 0c47078819f92bf8e2f393c231148a89dd0e4f53..9cac45393290b79a4c6fd465b7eb249149359be0 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-25.js @@ -8,6 +8,6 @@ description: > (Date object) ---*/ - var obj = new Date(); +var obj = new Date(); assert.sameValue(Object.getPrototypeOf(obj), Date.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js index 7b033a2ca0116b0b803cca518e80c29217e1e9eb..52d9062f7557ea730625a5b3e4fa36c8476b8729 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-26.js @@ -8,6 +8,6 @@ description: > (RegExp object) ---*/ - var obj = new RegExp(); +var obj = new RegExp(); assert.sameValue(Object.getPrototypeOf(obj), RegExp.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js index 9851559ac64707638d3ccd41976e69fb2db81927..bf88c87ff0e4713dd3373548f2515f105454e826 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-27.js @@ -8,6 +8,6 @@ description: > (Error object) ---*/ - var obj = new Error(); +var obj = new Error(); assert.sameValue(Object.getPrototypeOf(obj), Error.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js index a10b2bbaadbc75147342d493d156eb004a8661d3..7d2fb99117665df1b1b5c508ce70da4589dd7626 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-28.js @@ -8,9 +8,9 @@ description: > (the Arguments object) ---*/ - function fun() { - return arguments; - } - var obj = fun(1, true, 3); +function fun() { + return arguments; +} +var obj = fun(1, true, 3); assert.sameValue(Object.getPrototypeOf(obj), Object.prototype, 'Object.getPrototypeOf(obj)'); diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js index 9fcd1fac866f61d1ca47ad46d4d31c297ed9d483..3ef083881633871aca33488c3924f8d214e102b0 100644 --- a/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js +++ b/test/built-ins/Object/getPrototypeOf/15.2.3.2-2-30.js @@ -8,6 +8,6 @@ description: > (the global object) ---*/ - var proto = Object.getPrototypeOf(this); +var proto = Object.getPrototypeOf(this); assert.sameValue(proto.isPrototypeOf(this), true, 'proto.isPrototypeOf(this)'); diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js index 4970e78262b296bb92be88ca8822ffc837743a18..22eb267e31808c550e740f5db930e63e1586ed6a 100644 --- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js +++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js @@ -19,13 +19,16 @@ info: | ---*/ function f() { - return Reflect.getOwnPropertyDescriptor(f, 'arguments'); + return Reflect.getOwnPropertyDescriptor(f, 'arguments'); } -Reflect.defineProperty(f, 'arguments', { writable: false, configurable: false }); +Reflect.defineProperty(f, 'arguments', { + writable: false, + configurable: false +}); var desc = Reflect.getOwnPropertyDescriptor(f, 'arguments'); if (desc && desc.configurable === false && desc.writable === false) { - var desc2 = f(); - assert.sameValue(desc.value, desc2.value); + var desc2 = f(); + assert.sameValue(desc.value, desc2.value); } diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js index 736ccf3ee0c44c8d8ce29b18159bd6338fc43884..93e2fc7c870e418cc273f0defafbf4330e770909 100644 --- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js +++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js @@ -19,17 +19,20 @@ info: | ---*/ function f() { - return Reflect.getOwnPropertyDescriptor(f, 'caller'); + return Reflect.getOwnPropertyDescriptor(f, 'caller'); } function g() { - return f(); + return f(); } -Reflect.defineProperty(f, 'caller', { writable: false, configurable: false }); +Reflect.defineProperty(f, 'caller', { + writable: false, + configurable: false +}); var desc = Reflect.getOwnPropertyDescriptor(f, 'caller'); if (desc && desc.configurable === false && desc.writable === false) { - var desc2 = g(); - assert.sameValue(desc.value, desc2.value); + var desc2 = g(); + assert.sameValue(desc.value, desc2.value); } diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js index 4d80030e9dc489c5f17f55643d55a5e2d063d6f5..596c60c2cb5676d4abff0dffbd2ffc0a6b65c6f9 100644 --- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js +++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js @@ -18,11 +18,14 @@ info: | one implementation as of January 2017.) ---*/ -Reflect.defineProperty(RegExp, '$1', { writable: false, configurable: false }); +Reflect.defineProperty(RegExp, '$1', { + writable: false, + configurable: false +}); var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); if (desc && desc.configurable === false && desc.writable === false) { - /(x)/.exec('x'); - var desc2 = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); - assert.sameValue(desc.value, desc2.value); + /(x)/.exec('x'); + var desc2 = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); + assert.sameValue(desc.value, desc2.value); } diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js index 38ab43d2dff96678120ad0c05d81e8070a8dcb5f..38ccdcc641adcc49e4c18b38c2046646a93e2933 100644 --- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js +++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js @@ -16,7 +16,10 @@ info: | one implementation as of January 2017.) ---*/ -if (Reflect.defineProperty(RegExp, '$1', { writable: false, configurable: false })) { - var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); - assert.sameValue(desc.writable, false); +if (Reflect.defineProperty(RegExp, '$1', { + writable: false, + configurable: false + })) { + var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); + assert.sameValue(desc.writable, false); } diff --git a/test/built-ins/Object/is/name.js b/test/built-ins/Object/is/name.js index da73e1a4b25a9031cebcbbb0df4d81773bb2fa4d..1f20bd1061c5e8f1c73dfb9caa150c87f03664cf 100644 --- a/test/built-ins/Object/is/name.js +++ b/test/built-ins/Object/is/name.js @@ -15,4 +15,3 @@ assert.sameValue(Object.is.name, 'is', "The value of `Object.is.name` is `'is'`" verifyNotEnumerable(Object.is, "name"); verifyNotWritable(Object.is, "name"); verifyConfigurable(Object.is, "name"); - diff --git a/test/built-ins/Object/is/not-same-value-x-y-null.js b/test/built-ins/Object/is/not-same-value-x-y-null.js index c364bc11be490c596399e75ac5b5e8c5febdd620..afeb1bf3d5cb7b8c581ef324c7c7057c9536fc5b 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-null.js +++ b/test/built-ins/Object/is/not-same-value-x-y-null.js @@ -17,4 +17,3 @@ description: > assert.sameValue(Object.is(null), false, "`Object.is(null)` returns `false`"); assert.sameValue(Object.is(null, undefined), false, "`Object.is(null, undefined)` returns `false`"); - diff --git a/test/built-ins/Object/is/not-same-value-x-y-object.js b/test/built-ins/Object/is/not-same-value-x-y-object.js index 7ec854c375e54139d5338490787eab766ba296ba..b10ec42c2082671557db11cfdb827aa6964cf709 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-object.js +++ b/test/built-ins/Object/is/not-same-value-x-y-object.js @@ -11,22 +11,22 @@ description: > assert.sameValue(Object.is({}, {}), false, "`Object.is({}, {})` returns `false`"); assert.sameValue( - Object.is(Object(), Object()), - false, - "`Object.is(Object(), Object())` returns `false`" + Object.is(Object(), Object()), + false, + "`Object.is(Object(), Object())` returns `false`" ); assert.sameValue( - Object.is(new Object(), new Object()), - false, - "`Object.is(new Object(), new Object())` returns `false`" + Object.is(new Object(), new Object()), + false, + "`Object.is(new Object(), new Object())` returns `false`" ); assert.sameValue( - Object.is(Object(0), Object(0)), - false, - "`Object.is(Object(0), Object(0))` returns `false`" + Object.is(Object(0), Object(0)), + false, + "`Object.is(Object(0), Object(0))` returns `false`" ); assert.sameValue( - Object.is(new Object(''), new Object('')), - false, - "`Object.is(new Object(''), new Object(''))` returns `false`" + Object.is(new Object(''), new Object('')), + false, + "`Object.is(new Object(''), new Object(''))` returns `false`" ); diff --git a/test/built-ins/Object/is/not-same-value-x-y-string.js b/test/built-ins/Object/is/not-same-value-x-y-string.js index 6def9622d441ed4a77c834ed0c7d6332c3eb8cac..f7c9f4b8ab97531516442c4e2dc59028d3ab1cbf 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-string.js +++ b/test/built-ins/Object/is/not-same-value-x-y-string.js @@ -19,9 +19,9 @@ assert.sameValue(Object.is('', true), false, "`Object.is('', true)` returns `fal assert.sameValue(Object.is('', 0), false, "`Object.is('', 0)` returns `false`"); assert.sameValue(Object.is('', {}), false, "`Object.is('', {})` returns `false`"); assert.sameValue( - Object.is('', undefined), - false, - "`Object.is('', undefined)` returns `false`" + Object.is('', undefined), + false, + "`Object.is('', undefined)` returns `false`" ); assert.sameValue(Object.is('', null), false, "`Object.is('', null)` returns `false`"); assert.sameValue(Object.is('', NaN), false, "`Object.is('', NaN)` returns `false`"); diff --git a/test/built-ins/Object/is/not-same-value-x-y-symbol.js b/test/built-ins/Object/is/not-same-value-x-y-symbol.js index 28ccc0a78e76c4e39070e8f127c57cb71ecd2622..b564172ac38bd124e4a63bdb9ecf577f6e355f5b 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-symbol.js +++ b/test/built-ins/Object/is/not-same-value-x-y-symbol.js @@ -14,12 +14,12 @@ features: [Symbol] ---*/ assert.sameValue( - Object.is(Symbol(), Symbol()), - false, - "`Object.is(Symbol(), Symbol())` returns `false`" + Object.is(Symbol(), Symbol()), + false, + "`Object.is(Symbol(), Symbol())` returns `false`" ); assert.sameValue( - Object.is(Symbol('description'), Symbol('description')), - false, - "`Object.is(Symbol('description'), Symbol('description'))` returns `false`" + Object.is(Symbol('description'), Symbol('description')), + false, + "`Object.is(Symbol('description'), Symbol('description'))` returns `false`" ); diff --git a/test/built-ins/Object/is/not-same-value-x-y-type.js b/test/built-ins/Object/is/not-same-value-x-y-type.js index 203f6d061c9fabc58ac0ce4818be882ad79a9278..0f6ff22b4aee1422d4445efa2ce8a55232d6c5fd 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-type.js +++ b/test/built-ins/Object/is/not-same-value-x-y-type.js @@ -19,27 +19,27 @@ assert.sameValue(Object.is(a, true), false, "`Object.is(a, true)` returns `false assert.sameValue(Object.is(a, ''), false, "`Object.is(a, '')` returns `false`"); assert.sameValue(Object.is(a, 0), false, "`Object.is(a, 0)` returns `false`"); assert.sameValue( - Object.is(a, undefined), - false, - "`Object.is(a, undefined)` returns `false`" + Object.is(a, undefined), + false, + "`Object.is(a, undefined)` returns `false`" ); assert.sameValue(Object.is(NaN, true), false, "`Object.is(NaN, true)` returns `false`"); assert.sameValue(Object.is(NaN, ''), false, "`Object.is(NaN, '')` returns `false`"); assert.sameValue(Object.is(NaN, a), false, "`Object.is(NaN, a)` returns `false`"); assert.sameValue( - Object.is(NaN, undefined), - false, - "`Object.is(NaN, undefined)` returns `false`" + Object.is(NaN, undefined), + false, + "`Object.is(NaN, undefined)` returns `false`" ); assert.sameValue(Object.is(NaN, null), false, "`Object.is(NaN, null)` returns `false`"); assert.sameValue(Object.is(true, 0), false, "`Object.is(true, 0)` returns `false`"); assert.sameValue(Object.is(true, a), false, "`Object.is(true, a)` returns `false`"); assert.sameValue( - Object.is(true, undefined), - false, - "`Object.is(true, undefined)` returns `false`" + Object.is(true, undefined), + false, + "`Object.is(true, undefined)` returns `false`" ); assert.sameValue(Object.is(true, null), false, "`Object.is(true, null)` returns `false`"); assert.sameValue(Object.is(true, NaN), false, "`Object.is(true, NaN)` returns `false`"); @@ -48,9 +48,9 @@ assert.sameValue(Object.is(true, ''), false, "`Object.is(true, '')` returns `fal assert.sameValue(Object.is(false, 0), false, "`Object.is(false, 0)` returns `false`"); assert.sameValue(Object.is(false, a), false, "`Object.is(false, a)` returns `false`"); assert.sameValue( - Object.is(false, undefined), - false, - "`Object.is(false, undefined)` returns `false`" + Object.is(false, undefined), + false, + "`Object.is(false, undefined)` returns `false`" ); assert.sameValue(Object.is(false, null), false, "`Object.is(false, null)` returns `false`"); assert.sameValue(Object.is(false, NaN), false, "`Object.is(false, NaN)` returns `false`"); @@ -59,11 +59,10 @@ assert.sameValue(Object.is(false, ''), false, "`Object.is(false, '')` returns `f assert.sameValue(Object.is(0, true), false, "`Object.is(0, true)` returns `false`"); assert.sameValue(Object.is(0, a), false, "`Object.is(0, a)` returns `false`"); assert.sameValue( - Object.is(0, undefined), - false, - "`Object.is(0, undefined)` returns `false`" + Object.is(0, undefined), + false, + "`Object.is(0, undefined)` returns `false`" ); assert.sameValue(Object.is(0, null), false, "`Object.is(0, null)` returns `false`"); assert.sameValue(Object.is(0, NaN), false, "`Object.is(0, NaN)` returns `false`"); assert.sameValue(Object.is(0, ''), false, "`Object.is(0, '')` returns `false`"); - diff --git a/test/built-ins/Object/is/same-value-x-y-null.js b/test/built-ins/Object/is/same-value-x-y-null.js index cd770d09844deffadd29acf26eb5d1a3e703f027..f9916423959525969c089324f5f2bf6892042085 100644 --- a/test/built-ins/Object/is/same-value-x-y-null.js +++ b/test/built-ins/Object/is/same-value-x-y-null.js @@ -16,4 +16,3 @@ description: > ---*/ assert.sameValue(Object.is(null, null), true, "`Object.is(null, null)` returns `true`"); - diff --git a/test/built-ins/Object/is/same-value-x-y-string.js b/test/built-ins/Object/is/same-value-x-y-string.js index e7a7ec3f98969b7d5f8dc6e7f127979342e64a07..cc2ddf11e6f7236495694422b96bc2dca15edb5d 100644 --- a/test/built-ins/Object/is/same-value-x-y-string.js +++ b/test/built-ins/Object/is/same-value-x-y-string.js @@ -17,12 +17,12 @@ description: > assert.sameValue(Object.is('', ''), true, "`Object.is('', '')` returns `true`"); assert.sameValue( - Object.is('foo', 'foo'), - true, - "`Object.is('foo', 'foo')` returns `true`" + Object.is('foo', 'foo'), + true, + "`Object.is('foo', 'foo')` returns `true`" ); assert.sameValue( - Object.is(String('foo'), String('foo')), - true, - "`Object.is(String('foo'), String('foo'))` returns `true`" + Object.is(String('foo'), String('foo')), + true, + "`Object.is(String('foo'), String('foo'))` returns `true`" ); diff --git a/test/built-ins/Object/is/symbol-object-is-same-value.js b/test/built-ins/Object/is/symbol-object-is-same-value.js index 4a58a0927c1f74842f149ef588a200c0612f712f..4e70febdb662bd4e118928fbf621ec168209ecac 100644 --- a/test/built-ins/Object/is/symbol-object-is-same-value.js +++ b/test/built-ins/Object/is/symbol-object-is-same-value.js @@ -13,5 +13,3 @@ var symB = Symbol('66'); assert.sameValue(Object.is(symA, symA), true, "`Object.is(symA, symA)` returns `true`"); assert.sameValue(Object.is(symB, symB), true, "`Object.is(symB, symB)` returns `true`"); assert.sameValue(Object.is(symA, symB), false, "`Object.is(symA, symB)` returns `false`"); - - diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js index 61dbcf81cc73df30f1c576846a773dd64e5c06d2..d3c3e04d182fdd908f48762b72b1a8f43a2fc014 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-0-1 description: Object.isExtensible must exist as a function ---*/ - var f = Object.isExtensible ; +var f = Object.isExtensible; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-0-3.js b/test/built-ins/Object/isExtensible/15.2.3.13-0-3.js index 0a2533af1562c21eb76cda47a20f2b4509784af7..7e0549a7cf1ae013ebf7fc996e2405f9403f6886 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-0-3.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-0-3.js @@ -11,6 +11,6 @@ description: > constructor ---*/ - var o = new Object(); +var o = new Object(); assert.sameValue(Object.isExtensible(o), true, 'Object.isExtensible(o)'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-1-1.js index eda4c0622f4c673d912525829386d0d0ef17aec1..a1dac5f7f4ba38bf88857221113a2a22796f36c6 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-1-1.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-1-1.js @@ -6,4 +6,4 @@ es5id: 15.2.3.13-1-1 description: Object.isExtensible does not throw TypeError if 'O' is undefined ---*/ - Object.isExtensible(undefined); +Object.isExtensible(undefined); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1-2.js b/test/built-ins/Object/isExtensible/15.2.3.13-1-2.js index e57ddd17739ea1e28c91503ff0c929285e68b646..bbc81c9cfef827d95849d59a87b19643a7351723 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-1-2.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-1-2.js @@ -6,4 +6,4 @@ es5id: 15.2.3.13-1-2 description: Object.isExtensible does not throw TypeError if 'O' is null ---*/ - Object.isExtensible(null); +Object.isExtensible(null); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1-3.js b/test/built-ins/Object/isExtensible/15.2.3.13-1-3.js index 731bc9ada3e26e052b669e270cfe46104fb287a9..1703a565f752998d60fe581f5d5065761a505bc1 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-1-3.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-1-3.js @@ -6,4 +6,4 @@ es5id: 15.2.3.13-1-3 description: Object.isExtensible does not throw TypeError if 'O' is a boolean ---*/ - Object.isExtensible(true); +Object.isExtensible(true); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1-4.js b/test/built-ins/Object/isExtensible/15.2.3.13-1-4.js index 1eda1dae2b9b2d92d532ac457b543eaada89187b..9bada76d86d25ea764235082827a3c051e12281f 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-1-4.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-1-4.js @@ -6,4 +6,4 @@ es5id: 15.2.3.13-1-4 description: Object.isExtensible does not throw TypeError if 'O' is a string ---*/ - Object.isExtensible("abc"); +Object.isExtensible("abc"); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-1.js index 1552eca7694d721ddfef999008bc35db7a116554..33689977939252b91f6fa30e1b32bae72db25d41 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-1.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-1.js @@ -8,4 +8,4 @@ description: > param is not Object ---*/ - Object.isExtensible(0); +Object.isExtensible(0); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js index 663ccbbae1d8b7c17573e6b601b5e9d4eafc7d99..5acb42f30cd2dc1b65d6f6877fd9d89dfc98ba2a 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js @@ -9,4 +9,3 @@ description: Object.isExtensible returns true for all built-in objects (Global) var global = this; assert(Object.isExtensible(global)); - diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js index f55619ab6dbdf47dafdab30b960ea973a7e66898..297fcdb1d97724e938f1b382be85ed3ead3cc996 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-10 description: Object.isExtensible returns true for all built-in objects (RegExp) ---*/ - var e = Object.isExtensible(RegExp); +var e = Object.isExtensible(RegExp); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-11.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-11.js index 9478698b9681628cec495070230e25bd4aecf6ab..5da2f584a55eef03a88c5af16c1564fe36b048e5 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-11.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-11.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-11 description: Object.isExtensible returns true for all built-in objects (Error) ---*/ - var e = Object.isExtensible(Error); +var e = Object.isExtensible(Error); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-12.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-12.js index 3e369b386f84e1e3502f0e7d9e048e840752fbee..a0097682155406cb70584ba47b37409c863889a3 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-12.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-12.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-12 description: Object.isExtensible returns true for all built-in objects (JSON) ---*/ - var e = Object.isExtensible(JSON); +var e = Object.isExtensible(JSON); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-13.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-13.js index e153074780422b0dd91d3364188012f66e0472b3..b9d8a8afe7207a740013cfb7492ec6e5515bd6cb 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-13.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-13.js @@ -8,6 +8,6 @@ description: > (Function.constructor) ---*/ - var e = Object.isExtensible(Function.constructor); +var e = Object.isExtensible(Function.constructor); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-14.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-14.js index 7a630e282553bc60642bb2b58122784517c2de52..f6ac3e9df19127de6fcdc735a0e66e89477f9710 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-14.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-14.js @@ -8,6 +8,6 @@ description: > (Function.prototype) ---*/ - var e = Object.isExtensible(Function.prototype); +var e = Object.isExtensible(Function.prototype); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-15.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-15.js index cbb2a4e12f30d384aaf171faf7c9de38ce6b3949..0f0b678815394f4813b2f7390c5a990abc109c32 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-15.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-15.js @@ -8,6 +8,6 @@ description: > (Array.prototype) ---*/ - var e = Object.isExtensible(Array.prototype); +var e = Object.isExtensible(Array.prototype); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-16.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-16.js index 040ecbd67efe862163fac72eeb69524687df37ae..1e85cdba91efeba72ea17b343c229e7a71ade15c 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-16.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-16.js @@ -8,6 +8,6 @@ description: > (String.prototype) ---*/ - var e = Object.isExtensible(String.prototype); +var e = Object.isExtensible(String.prototype); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-17.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-17.js index d47a560dafb6fa971d63e18f9ddfe75722339aee..fa7fa7ef5345235839f608400c0c728816443333 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-17.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-17.js @@ -8,6 +8,6 @@ description: > (Boolean.prototype) ---*/ - var e = Object.isExtensible(Boolean.prototype); +var e = Object.isExtensible(Boolean.prototype); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-18.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-18.js index d8a6a3af7977d085428b88b25a90c4f140d1c498..9ff4791f1308a2f94c980e82a88b48cdadb4344a 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-18.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-18.js @@ -8,6 +8,6 @@ description: > (Number.prototype) ---*/ - var e = Object.isExtensible(Number.prototype); +var e = Object.isExtensible(Number.prototype); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-19.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-19.js index d61214cb36a04f8e54c4c90e13b555b3d9af35a1..f7de7535613ef3b1d6c6434eaa862d5cc5a4a41b 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-19.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-19.js @@ -8,6 +8,6 @@ description: > (Date.prototype) ---*/ - var e = Object.isExtensible(Date.prototype); +var e = Object.isExtensible(Date.prototype); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-2.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-2.js index 91f0c3293fcb681fe3ed55438b3a9c818cf5893f..2fbf1888545407440a10f025a71cc3eebc969b64 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-2.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-2.js @@ -6,7 +6,7 @@ es5id: 15.2.3.13-2-2 description: Object.isExtensible returns true for all built-in objects (Object) ---*/ - var o = {}; - var e = Object.isExtensible(o); +var o = {}; +var e = Object.isExtensible(o); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-20.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-20.js index cadbe6cf3df53916ed82b97c904331bae91caf99..0da24ff0fc1ece4d52c02b9a63c1299a47387c4c 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-20.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-20.js @@ -8,6 +8,6 @@ description: > (RegExp.prototype) ---*/ - var e = Object.isExtensible(RegExp.prototype); +var e = Object.isExtensible(RegExp.prototype); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-21.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-21.js index 53a4d77411522922897c8169ef2194e2cab67916..c82066c73f1a02356b7f203ea03872d7a8fe61d0 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-21.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-21.js @@ -18,6 +18,6 @@ description: > (Error.prototype) ---*/ - var e = Object.isExtensible(Error.prototype); +var e = Object.isExtensible(Error.prototype); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-22.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-22.js index 6c6e1a4c12a4bccc33609cf6c5bb24f23a06d161..8f497f34155bd3ca79656f3854dc96683b4e838b 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-22.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-22.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-22 description: Object.isExtensible returns true if 'O' is extensible ---*/ - var obj = {}; +var obj = {}; assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-23.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-23.js index 617caf025e29b21bf66c333a052bfb52daa78599..c0294879f1e43836240cdd6e33942d80ae9d41ea 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-23.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-23.js @@ -6,7 +6,7 @@ es5id: 15.2.3.13-2-23 description: Object.isExtensible returns false if 'O' is not extensible ---*/ - var obj = {}; - Object.preventExtensions(obj); +var obj = {}; +Object.preventExtensions(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-24.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-24.js index ba0449c59a867dc760076b481084cc2d26cae256..9910ac50d931481d697b744b8e6f25f369c84b14 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-24.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-24.js @@ -8,11 +8,11 @@ description: > prototype that is extensible ---*/ - var proto = {}; +var proto = {}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var obj = new ConstructFun(); +var obj = new ConstructFun(); assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js index 63b05a7c5433f770b3abe7dae9e7f00f10cc7b32..fdb218499b93152d15b94852094c934281c06fb3 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js @@ -8,12 +8,12 @@ description: > prototype that is not extensible ---*/ - var proto = {}; - Object.preventExtensions(proto); - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var proto = {}; +Object.preventExtensions(proto); - var obj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; + +var obj = new ConstructFun(); assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js index 58c8115998e4793d747c560f44a5fb85e7717765..2bf9bb31e1237f7036edcf5a04990ac4fa3d256c 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js @@ -8,12 +8,12 @@ description: > prototype that is extensible ---*/ - var proto = {}; +var proto = {}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var obj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var obj = new ConstructFun(); - Object.preventExtensions(obj); +Object.preventExtensions(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-27.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-27.js index b123e2518fa9032016ec948c5fbf6e57810dd80c..cb9c229e35cfb6ed80e3f79f7f90a670a0f3e8cc 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-27.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-27.js @@ -8,13 +8,13 @@ description: > prototype that is not extensible ---*/ - var proto = {}; - Object.preventExtensions(proto); +var proto = {}; +Object.preventExtensions(proto); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var obj = new ConstructFun(); - Object.preventExtensions(obj); +var obj = new ConstructFun(); +Object.preventExtensions(obj); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-3.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-3.js index 27fa4c54fdb2eb9e573f250ccbd5ab13936f5e7a..bee167cf6afa03d7176e8646d652dc52000a06ca 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-3.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-3.js @@ -8,8 +8,8 @@ description: > (Function) ---*/ - function foo() {} - - var e = Object.isExtensible(foo); +function foo() {} + +var e = Object.isExtensible(foo); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-4.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-4.js index ffa63fd8bde8f25c1f909f1e1961bdfa256cf55e..487138b54229237b7ea03a816b5e27b5b793bc8f 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-4.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-4.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-4 description: Object.isExtensible returns true for all built-in objects (Array) ---*/ - var e = Object.isExtensible(Array); +var e = Object.isExtensible(Array); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-5.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-5.js index aff9de63416f1311e1429681a7edf46264704548..69b1fae1f0960486ca1db985b2940d76df72bcc1 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-5.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-5.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-5 description: Object.isExtensible returns true for all built-in objects (String) ---*/ - var e = Object.isExtensible(String); +var e = Object.isExtensible(String); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-6.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-6.js index 73e132cf652bd18088b7a3830b76f0e643bd0a05..6141fc6894a3cb66ec1763d770626acdd4b5b1ad 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-6.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-6.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-6 description: Object.isExtensible returns true for all built-in objects (Boolean) ---*/ - var e = Object.isExtensible(Boolean); +var e = Object.isExtensible(Boolean); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-7.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-7.js index b7f4dbc18c49573e6c39eaee9b6f6b7b7154d896..16293acf6fc8d8faccb8591f89cc0bc2d8a49a49 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-7.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-7.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-7 description: Object.isExtensible returns true for all built-in objects (Number) ---*/ - var e = Object.isExtensible(Number); +var e = Object.isExtensible(Number); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-8.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-8.js index 8fa92d614f2135dd020811f3e1c3cbc9d08aaa56..3cafa5da568fcdcea1653ce6e9118712c0518c98 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-8.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-8.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-8 description: Object.isExtensible returns true for all built-in objects (Math) ---*/ - var e = Object.isExtensible(Math); +var e = Object.isExtensible(Math); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-9.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-9.js index 4da573d202d39ea25f05f34369601b7b6564d3ea..5a3d0b540fa5293918fdd7cf8f23b0ab3ccea57c 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-9.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-9.js @@ -6,6 +6,6 @@ es5id: 15.2.3.13-2-9 description: Object.isExtensible returns true for all built-in objects (Date) ---*/ - var e = Object.isExtensible(Date); +var e = Object.isExtensible(Date); assert.sameValue(e, true, 'e'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-0-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-0-1.js index 04c9d7704a162977b6d66c72bb718a9d0f1b0f0b..961068ca9fd784f851e64b85cc76c1f6f04ad072 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-0-1.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-0-1 description: Object.isFrozen must exist as a function ---*/ - var f = Object.isFrozen; +var f = Object.isFrozen; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-1.js index c1b5038943d09ad1f5d20869f7f4f3c16b4d7ac0..4bcccdf038483c4e18227b332ff915381a6a809f 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1-1.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-1.js @@ -8,4 +8,4 @@ description: > is undefined ---*/ - Object.isFrozen(undefined); +Object.isFrozen(undefined); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-2.js index a956a69f4864341fdd9ddad48461eef5762e5457..06329b88a331ed594e9096c104a9bc736d3d48e3 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1-2.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-2.js @@ -8,4 +8,4 @@ description: > is null ---*/ - Object.isFrozen(null); +Object.isFrozen(null); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-3.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-3.js index 74d543db38adad8d7f5271984b7f65e18d20ed7d..6f11d3568688ebe64d05110cd1e2a2ea2e68ae9a 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1-3.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-3.js @@ -8,4 +8,4 @@ description: > is a boolean ---*/ - Object.isFrozen(true); +Object.isFrozen(true); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-4.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-4.js index 45c4f61a7a112c56aeaccff703d3a3311461706a..109ed310ea0eeed848868797bc326745634313ec 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1-4.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-4.js @@ -8,4 +8,4 @@ description: > is a string ---*/ - Object.isFrozen("abc"); +Object.isFrozen("abc"); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-5.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-5.js index 04a495bc1f8a8f3638b28687e0ce793799a2643f..91e68ede6206d1e3fc964260e1b78fe260bc18cd 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1-5.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-5.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-1-5 description: Object.isFrozen applies to dense array ---*/ - var obj = Object.freeze([0, 1, 2]); +var obj = Object.freeze([0, 1, 2]); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-6.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-6.js index 1c8e88cd0d97a8331a039f12f54562421b4941ee..d3168dddc68507b8ebf10c54ed528390ffd85882 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1-6.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-6.js @@ -6,9 +6,9 @@ es5id: 15.2.3.12-1-6 description: Object.isFrozen applies to sparse array ---*/ - var sparseArr = [0, 1]; - sparseArr[10000] = 10000; +var sparseArr = [0, 1]; +sparseArr[10000] = 10000; - sparseArr = Object.freeze(sparseArr); +sparseArr = Object.freeze(sparseArr); assert(Object.isFrozen(sparseArr), 'Object.isFrozen(sparseArr) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js b/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js index 5d9df967936f9a53db01e11995720a9c27cbeceb..4aedb181c21dfaf600f6c8f7349cfce0ab4c8cf1 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js @@ -8,6 +8,10 @@ description: > named properties ---*/ - var obj = Object.freeze({ 0: 0, 1: 1, 1000: 1000 }); +var obj = Object.freeze({ + 0: 0, + 1: 1, + 1000: 1000 +}); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-1.js index eeafda571344b73e41ea528ec9775b18a0cead0f..86e9f060813661fff1d7b6dbd29b4a59b949aa9f 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1.js @@ -8,4 +8,4 @@ description: > not Object ---*/ - Object.isFrozen(0); +Object.isFrozen(0); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-1.js index 29dbb7d466b869d3a34e69286d162abf865b7cb4..3c7de20a1e1756a92d888a7f7cc4714062afa46e 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-1.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-1.js @@ -8,18 +8,18 @@ description: > the for each loop ---*/ - var proto = {}; - Object.defineProperty(proto, "Father", { - value: 10, - writable: false, - configurable: true - }); +var proto = {}; +Object.defineProperty(proto, "Father", { + value: 10, + writable: false, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.preventExtensions(child); +Object.preventExtensions(child); assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js index e7fa25860a64caec6556402c4ee95989ddc01c92..b4c79599216939f1faa4366909a5f23d754c4f1e 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js @@ -8,24 +8,25 @@ description: > into the for each loop ---*/ - var proto = {}; - - function get_func() { - return 10; - } - function set_func() { } +var proto = {}; - Object.defineProperty(proto, "Father", { - get: get_func, - set: set_func, - configurable: true - }); +function get_func() { + return 10; +} - var Con = function () { }; - Con.prototype = proto; +function set_func() {} - var child = new Con(); +Object.defineProperty(proto, "Father", { + get: get_func, + set: set_func, + configurable: true +}); - Object.preventExtensions(child); +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +Object.preventExtensions(child); assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js index b254239ced33d4e6330047540a01f21ea5e63349..e736ff86e561e0d7208bb9b13984047a25bd6397 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js @@ -6,14 +6,14 @@ es5id: 15.2.3.12-2-a-1 description: Object.isFrozen - 'P' is own data property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "foo", { - value: 12, - writable: true, - configurable: false - }); +Object.defineProperty(obj, "foo", { + value: 12, + writable: true, + configurable: false +}); - Object.preventExtensions(obj); +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js index b937a4f698791b0164f9035f505d9fb9baff1c98..9f8ffba277565182a1ed50fcb8b4121bd09898fb 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-11.js @@ -6,12 +6,12 @@ es5id: 15.2.3.12-2-a-11 description: Object.isFrozen - 'O' is the Arguments object ---*/ - var arg; +var arg; - (function fun() { - arg = arguments; - }(1, 2, 3)); +(function fun() { + arg = arguments; +}(1, 2, 3)); - Object.preventExtensions(arg); +Object.preventExtensions(arg); assert.sameValue(Object.isFrozen(arg), false, 'Object.isFrozen(arg)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js index 9c1031b95165963f0dfde8a24aa47f2f0f87b0d6..6d3886377b2abf6dc326b104036bf818e5ae0e61 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-12.js @@ -6,10 +6,10 @@ es5id: 15.2.3.12-2-a-12 description: Object.isFrozen - 'O' is a String object ---*/ - var obj = new String("abc"); +var obj = new String("abc"); - obj.len = 100; +obj.len = 100; - Object.preventExtensions(obj); +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js index bdcdb212d8975068cb7a861fcf4e423e191689fc..01ba00c368f4160fbf999510c7575c94fc125e9f 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js @@ -6,14 +6,14 @@ es5id: 15.2.3.12-2-a-13 description: Object.isFrozen - 'O' is a Function object ---*/ - var obj = function () { }; - - Object.defineProperty(obj, "property", { - value: 12, - writable: true, - configurable: false - }); +var obj = function() {}; - Object.preventExtensions(obj); +Object.defineProperty(obj, "property", { + value: 12, + writable: true, + configurable: false +}); + +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js index 66eb7cf7ea19b556a55dfac069b7619cc2d66c44..dc0b65f3fd756617f0ce3f8291d3d119a1d1a1a1 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js @@ -6,9 +6,9 @@ es5id: 15.2.3.12-2-a-14 description: Object.isFrozen - 'O' is an Array object ---*/ - var obj = [2]; - obj.len = 200; +var obj = [2]; +obj.len = 200; - Object.preventExtensions(obj); +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js index b1714fd6a3b32ba7cc270c514c25933b21bd16ae..d769a465a61dbcbc81864e4f5355bbeef860ca1c 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-2.js @@ -8,24 +8,24 @@ description: > inherited data property ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "foo", { - value: 9, - writable: false, - configurable: false - }); +Object.defineProperty(proto, "foo", { + value: 9, + writable: false, + configurable: false +}); - var Con = function () { }; - Con.prototype = proto; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; +var child = new Con(); - Object.defineProperty(child, "foo", { - value: 12, - writable: true, - configurable: false - }); +Object.defineProperty(child, "foo", { + value: 12, + writable: true, + configurable: false +}); - Object.preventExtensions(child); +Object.preventExtensions(child); assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js index 80b28f1ac276394a4763860827f2bc535eca0e80..7fc07b2b60f2eb91e95aaa9a7740bc61dfa93c0f 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-3.js @@ -8,25 +8,25 @@ description: > inherited accessor property ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "foo", { - get: function () { - return 9; - }, - configurable: false - }); +Object.defineProperty(proto, "foo", { + get: function() { + return 9; + }, + configurable: false +}); - var Con = function () { }; - Con.prototype = proto; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; +var child = new Con(); - Object.defineProperty(child, "foo", { - value: 12, - configurable: true - }); +Object.defineProperty(child, "foo", { + value: 12, + configurable: true +}); - Object.preventExtensions(child); +Object.preventExtensions(child); assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js index 318d43be5f2e9e087230016276de802f2bfdea5a..d9e2ce407ab152fd720d52c6643940072da535b8 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-4.js @@ -6,14 +6,14 @@ es5id: 15.2.3.12-2-a-4 description: Object.isFrozen - 'P' is own accessor property ---*/ - var obj = {}; - Object.defineProperty(obj, "foo", { - get: function () { - return 9; - }, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "foo", { + get: function() { + return 9; + }, + configurable: true +}); - Object.preventExtensions(obj); +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js index 0164b8a7a494cfdc9fd36a5e438d4b0d492c3d5b..db4bf0df1be6e2771c6775064836bd5df507427a 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-5.js @@ -8,24 +8,24 @@ description: > inherited data property ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(proto, "foo", { + value: 12, + configurable: false +}); - var Con = function () { }; - Con.prototype = proto; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; +var child = new Con(); - Object.defineProperty(child, "foo", { - get: function () { - return 9; - }, - configurable: true - }); +Object.defineProperty(child, "foo", { + get: function() { + return 9; + }, + configurable: true +}); - Object.preventExtensions(child); +Object.preventExtensions(child); assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js index f010ceee03c74d1e7ff5e24842d5d0b45fcc0f23..47cbc50626609d20742017f543188bccf0a74724 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-6.js @@ -8,27 +8,27 @@ description: > inherited accessor property ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "foo", { - get: function () { - return 12; - }, - configurable: false - }); +Object.defineProperty(proto, "foo", { + get: function() { + return 12; + }, + configurable: false +}); - var Con = function () { }; - Con.prototype = proto; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; +var child = new Con(); - Object.defineProperty(child, "foo", { - get: function () { - return 9; - }, - configurable: true - }); +Object.defineProperty(child, "foo", { + get: function() { + return 9; + }, + configurable: true +}); - Object.preventExtensions(child); +Object.preventExtensions(child); assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js index 054f21626b908a3abef17d6c31664a4d495d1b92..34310b0a91c57da7e5873be9c3353bc5c30b77f6 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-7.js @@ -8,12 +8,12 @@ description: > function ---*/ - var obj = {}; - Object.defineProperty(obj, "foo", { - set: function () { }, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "foo", { + set: function() {}, + configurable: true +}); - Object.preventExtensions(obj); +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js index 7ebdca6bcc44162ebb2f01c41e8364a768c9d316..251b7760c91d020acb2c392635def81049da4532 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-8.js @@ -8,24 +8,24 @@ description: > function that overrides an inherited accessor property ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "foo", { - get: function () { - return 9; - }, - configurable: false - }); +Object.defineProperty(proto, "foo", { + get: function() { + return 9; + }, + configurable: false +}); - var Con = function () { }; - Con.prototype = proto; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; +var child = new Con(); - Object.defineProperty(child, "foo", { - set: function () { }, - configurable: true - }); +Object.defineProperty(child, "foo", { + set: function() {}, + configurable: true +}); - Object.preventExtensions(child); +Object.preventExtensions(child); assert.sameValue(Object.isFrozen(child), false, 'Object.isFrozen(child)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js index 4a1edc14b30447640b207fb576aa283ab7d28abc..ca7903b3362fa0d069224c492c9ad7e46f526bf2 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-b-i-1.js @@ -8,12 +8,12 @@ description: > property ---*/ - var obj = {}; - Object.defineProperty(obj, "foo", { - value: 20, - writable: true, - configurable: false - }); - Object.preventExtensions(obj); +var obj = {}; +Object.defineProperty(obj, "foo", { + value: 20, + writable: true, + configurable: false +}); +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js index d56ce37ac5515c62921895af6469696e79c70a6a..3d4603ee7cc46d003395da41b30acc30460ba065 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-1.js @@ -8,13 +8,13 @@ description: > data property ---*/ - var obj = {}; - Object.defineProperty(obj, "foo", { - value: 20, - writable: false, - configurable: true - }); +var obj = {}; +Object.defineProperty(obj, "foo", { + value: 20, + writable: false, + configurable: true +}); - Object.preventExtensions(obj); +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js index b1e4d1f19d77e57244596a36cfd7aaa5170ed1e8..ad7d4e076e1dc8c5026bc2c3d7d839abd84dd39b 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js @@ -8,19 +8,20 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - function get_func() { - return 10; - } - function set_func() { } +function get_func() { + return 10; +} - Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - configurable: true - }); +function set_func() {} - Object.preventExtensions(obj); +Object.defineProperty(obj, "foo", { + get: get_func, + set: set_func, + configurable: true +}); + +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js index 10574131c5a5a13768610fd18f215a77c67524cf..29e85f0b280335acfed176a2fb70c50f579517bc 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-10 description: Object.isFrozen returns false for all built-in objects (Boolean) ---*/ - var b = Object.isFrozen(Boolean); +var b = Object.isFrozen(Boolean); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-11.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-11.js index 56d3cc613bdae2892743d1303f7d33faddd7ac5a..76bec9198d671f157f9c758545a1b0c6abefba8b 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-11.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-11.js @@ -8,6 +8,6 @@ description: > (Boolean.prototype) ---*/ - var b = Object.isFrozen(Boolean.prototype); +var b = Object.isFrozen(Boolean.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-12.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-12.js index 1990a4753698d71babe984820579afe19c968df8..d8c46943ec25259d27221df1a263f27fb3b2ae46 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-12.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-12.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-12 description: Object.isFrozen returns false for all built-in objects (Number) ---*/ - var b = Object.isFrozen(Number); +var b = Object.isFrozen(Number); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-13.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-13.js index a23a21495359b91fa23e17fefae6e43bcc00f307..7cd89226e015827bf48a45630a5235b46d5746f3 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-13.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-13.js @@ -8,6 +8,6 @@ description: > (Number.prototype) ---*/ - var b = Object.isFrozen(Number.prototype); +var b = Object.isFrozen(Number.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-14.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-14.js index 84878798d4ae9d70f937b8e7b41983c60402a912..63abccb275983f7c5df50977ee527a5dd1278e7b 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-14.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-14.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-14 description: Object.isFrozen returns false for all built-in objects (Math) ---*/ - var b = Object.isFrozen(Math); +var b = Object.isFrozen(Math); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-15.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-15.js index 8792cdae95eaaa3a9a3c7f79412edc15fb5fe30f..ca66a01a58eac158fd0f57cf9e7e829cf040b80c 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-15.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-15.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-15 description: Object.isFrozen returns false for all built-in objects (Date) ---*/ - var b = Object.isFrozen(Date); +var b = Object.isFrozen(Date); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-16.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-16.js index 98ad1f1d78dde8b3fcf82e508bbd3a7476cea353..1e873c82af8f0af76c6d1dac52482d1740e489a6 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-16.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-16.js @@ -8,6 +8,6 @@ description: > (Date.prototype) ---*/ - var b = Object.isFrozen(Date.prototype); +var b = Object.isFrozen(Date.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-17.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-17.js index 17fbf439d1ce21dbedad33c71c387bbc3761d175..cfecb1f867bb83661c56d021e05f7a9ead136ed4 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-17.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-17.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-17 description: Object.isFrozen returns false for all built-in objects (RegExp) ---*/ - var b = Object.isFrozen(RegExp); +var b = Object.isFrozen(RegExp); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-18.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-18.js index a2afec3b865e10f911e83f0012dee40570681f29..120f9f023cdcb71441f89b2bba91c28831a048f4 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-18.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-18.js @@ -8,6 +8,6 @@ description: > (RegExp.prototype) ---*/ - var b = Object.isFrozen(RegExp.prototype); +var b = Object.isFrozen(RegExp.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-19.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-19.js index 3ed4a1a02dfbbbf8e7623fec3f214190bbe7e383..27540052dd974a5e08d072b76ac0b14a6ddaefcf 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-19.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-19.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-19 description: Object.isFrozen returns false for all built-in objects (Error) ---*/ - var b = Object.isFrozen(Error); +var b = Object.isFrozen(Error); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-2.js index 608346f73d153c0ae60691a7932c6c8795fae4ff..d430fa0613501485a9ec9c6fe4b80664d4e71a10 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-2.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-2.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-2 description: Object.isFrozen returns false for all built-in objects (Object) ---*/ - var b = Object.isFrozen(Object); +var b = Object.isFrozen(Object); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-20.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-20.js index 598f3d746b186f0baa8b8054c4d1e27d460590de..2390d1b45128e85c0996e14a39634bdee594bc1f 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-20.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-20.js @@ -8,6 +8,6 @@ description: > (Error.prototype) ---*/ - var b = Object.isFrozen(Error.prototype); +var b = Object.isFrozen(Error.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-21.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-21.js index 3c04257c3881a6282b5cf76ab6c1a7aacc52a7ae..23ce9738d42fb7d6687e0f42c9fc7c2948bd87b1 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-21.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-21.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-21 description: Object.isFrozen returns false for all built-in objects (EvalError) ---*/ - var b = Object.isFrozen(EvalError); +var b = Object.isFrozen(EvalError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-22.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-22.js index b9ca47ad742f42863e2ebb251d7d2c2e872276ed..0872dd4ca520fe1ca52a85a0f61e41512e820564 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-22.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-22.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-22 description: Object.isFrozen returns false for all built-in objects (RangeError) ---*/ - var b = Object.isFrozen(RangeError); +var b = Object.isFrozen(RangeError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-23.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-23.js index e04d9582e30391f9cb3e2592fe29511bb69b74b7..0f97a743cce82e28c155a8376bb4d087016f0857 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-23.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-23.js @@ -8,6 +8,6 @@ description: > (ReferenceError) ---*/ - var b = Object.isFrozen(ReferenceError); +var b = Object.isFrozen(ReferenceError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-24.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-24.js index dd468ba64cfae69823edf53080f1d4e6e987e9d0..11f725e2cb476cfb2aa51886ac30c285f8c827b8 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-24.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-24.js @@ -8,6 +8,6 @@ description: > (SyntaxError) ---*/ - var b = Object.isFrozen(SyntaxError); +var b = Object.isFrozen(SyntaxError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-25.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-25.js index 2d222a0a64d2bbcc506ea5229269f2c9c4eac6cf..be3e3f3bde3a3523bf1f5cfd46f0e35bc7f596d1 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-25.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-25.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-25 description: Object.isFrozen returns false for all built-in objects (TypeError) ---*/ - var b = Object.isFrozen(TypeError); +var b = Object.isFrozen(TypeError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-26.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-26.js index 657d667909614dacf83b756e72b740479ffb9ded..c93ac5547ca35280c70a4fdafddb59e2df1050da 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-26.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-26.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-26 description: Object.isFrozen returns false for all built-in objects (URIError) ---*/ - var b = Object.isFrozen(URIError); +var b = Object.isFrozen(URIError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-27.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-27.js index 05c395fce1b15d13870c4eb8e662c50735a9a412..5a03f01ed400fb426a39b795f99f66e8ef880285 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-27.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-27.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-27 description: Object.isFrozen returns false for all built-in objects (JSON) ---*/ - var b = Object.isFrozen(JSON); +var b = Object.isFrozen(JSON); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js index 8bebd4eceecc4e7a250b1f3e153414a0c63d874f..9462b94cb05cc64e1a8a524ec5fcd7a1f04b6cec 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js @@ -8,27 +8,28 @@ description: > not writable and not configurable, and 'O' is not extensible ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "foo1", { - value: 20, - writable: false, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "foo1", { + value: 20, + writable: false, + enumerable: false, + configurable: false +}); - function get_func() { - return 10; - } - function set_func() { } +function get_func() { + return 10; +} - Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - configurable: false - }); +function set_func() {} - Object.preventExtensions(obj); +Object.defineProperty(obj, "foo2", { + get: get_func, + set: set_func, + configurable: false +}); + +Object.preventExtensions(obj); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js index 8911f64dd7b1c633df6a0d7af80e859fe6849313..50901f10eb5853437b10bee1371a72f21be2f3aa 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js @@ -8,6 +8,6 @@ description: > (Object.prototype) ---*/ - var b = Object.isFrozen(Object.prototype); +var b = Object.isFrozen(Object.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-4.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-4.js index 0c3cacdfe14f3037137b8657da93b4304073d892..2c677139ee782ca2269ba5a24cbfb434aab13aa8 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-4.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-4.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-4 description: Object.isFrozen returns false for all built-in objects (Function) ---*/ - var b = Object.isFrozen(Function); +var b = Object.isFrozen(Function); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-5.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-5.js index a4c70fff9562e22233a56243128643731fcb25e7..4a0ea7303917a6c0edd1a2ebfffb2d258ebca2c5 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-5.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-5.js @@ -8,6 +8,6 @@ description: > (Function.prototype) ---*/ - var b = Object.isFrozen(Function.prototype); +var b = Object.isFrozen(Function.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-6.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-6.js index d3e9faa560e2e47cbb400fb5423e4b88bc92536c..5f2e0531a050a04bea1985b5b1ce0e8599ec1737 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-6.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-6.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-6 description: Object.isFrozen returns false for all built-in objects (Array) ---*/ - var b = Object.isFrozen(Array); +var b = Object.isFrozen(Array); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-7.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-7.js index fce4370654146213224e708abad05554e653ada9..de24a2cafb8f55211f98ec5dfffd6b33329d5166 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-7.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-7.js @@ -8,6 +8,6 @@ description: > (Array.prototype) ---*/ - var b = Object.isFrozen(Array.prototype); +var b = Object.isFrozen(Array.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-8.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-8.js index caa6c4c38dbab138b626504eee5cb473cc56601b..2c79c441ac79fafab9b0bc067d2621ab4ba7f79c 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-8.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-8.js @@ -6,6 +6,6 @@ es5id: 15.2.3.12-3-8 description: Object.isFrozen returns false for all built-in objects (String) ---*/ - var b = Object.isFrozen(String); +var b = Object.isFrozen(String); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-9.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-9.js index ad482d8251d42cd425c5278d6568e814d0bd16a3..9d37dd788eb8a497f371e14259316d268365fc28 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-9.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-9.js @@ -8,6 +8,6 @@ description: > (String.prototype) ---*/ - var b = Object.isFrozen(String.prototype); +var b = Object.isFrozen(String.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-0-1.js b/test/built-ins/Object/isSealed/15.2.3.11-0-1.js index 53d2c5190a9353941e395a1cf87fe274ac0c8830..9e0a143b1b602d2ea1eb72476062c30c821b8566 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-0-1.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-0-1 description: Object.isSealed must exist as a function ---*/ - var f = Object.isSealed; +var f = Object.isSealed; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-1.js b/test/built-ins/Object/isSealed/15.2.3.11-1.js index ec43eb5c7dd2ca64a9e33c3b346feb43d0b19a29..f0a14907dac53509b8031337e63a91405a07e967 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-1.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-1.js @@ -8,4 +8,4 @@ description: > not Object ---*/ - Object.isSealed(0); +Object.isSealed(0); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-10.js b/test/built-ins/Object/isSealed/15.2.3.11-4-10.js index 726b813449a8a4cabd425dcb2b5124d7edd18db1..676ae785ab923561adc9a0e720894a2046461af8 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-10.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-10.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-10 description: Object.isSealed returns false for all built-in objects (Boolean) ---*/ - var b = Object.isSealed(Boolean); +var b = Object.isSealed(Boolean); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-11.js b/test/built-ins/Object/isSealed/15.2.3.11-4-11.js index d9f961663506ab602470e6faaf30fc93d0a5e6d9..b3a9f75d201bad4d24b2a790f0a292cb5ab96945 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-11.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-11.js @@ -8,6 +8,6 @@ description: > (Boolean.prototype) ---*/ - var b = Object.isSealed(Boolean.prototype); +var b = Object.isSealed(Boolean.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-12.js b/test/built-ins/Object/isSealed/15.2.3.11-4-12.js index c14303965ed480b4b1bcb9db601ce620dc34e12d..dc6d09025810586c1ae6f83d615af8de6a6e7746 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-12.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-12.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-12 description: Object.isSealed returns false for all built-in objects (Number) ---*/ - var b = Object.isSealed(Number); +var b = Object.isSealed(Number); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-13.js b/test/built-ins/Object/isSealed/15.2.3.11-4-13.js index 0e6484ede126fdf1a5d548b5e4656cff72520057..03464976a7791f97a9d5fd525aa7b76dc8ab6295 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-13.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-13.js @@ -8,6 +8,6 @@ description: > (Number.prototype) ---*/ - var b = Object.isSealed(Number.prototype); +var b = Object.isSealed(Number.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-14.js b/test/built-ins/Object/isSealed/15.2.3.11-4-14.js index 663d6fae8a4195fff07f9c8040bca95315cdad95..3d5ce63635114fe4792ba93d2b2f434572293a31 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-14.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-14.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-14 description: Object.isSealed returns false for all built-in objects (Math) ---*/ - var b = Object.isSealed(Math); +var b = Object.isSealed(Math); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-15.js b/test/built-ins/Object/isSealed/15.2.3.11-4-15.js index 20f8f82b5c7563ea45a04c3564338484dbef01b0..8ae66ffa697c5b1341c50ba1655824fd2f4d6edd 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-15.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-15.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-15 description: Object.isSealed returns false for all built-in objects (Date) ---*/ - var b = Object.isSealed(Date); +var b = Object.isSealed(Date); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-16.js b/test/built-ins/Object/isSealed/15.2.3.11-4-16.js index d5a720f9a9a135f91d3295b7e55fb2e465b91c55..5655bbd12498524f7cbf88f8beafa1b173d823f3 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-16.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-16.js @@ -8,6 +8,6 @@ description: > (Date.prototype) ---*/ - var b = Object.isSealed(Date.prototype); +var b = Object.isSealed(Date.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-17.js b/test/built-ins/Object/isSealed/15.2.3.11-4-17.js index 7e019b180758602cb002b2f1f48b19dcb12c3feb..14168a425f12942c9aa50dfc2352182115a880c3 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-17.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-17.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-17 description: Object.isSealed returns false for all built-in objects (RegExp) ---*/ - var b = Object.isSealed(RegExp); +var b = Object.isSealed(RegExp); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-18.js b/test/built-ins/Object/isSealed/15.2.3.11-4-18.js index 5d009ad4e594b4487a72ef0b3a873c7afcb9f788..c515e713e4c2559e3faa2c84a5752cc8500286e9 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-18.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-18.js @@ -8,6 +8,6 @@ description: > (RegExp.prototype) ---*/ - var b = Object.isSealed(RegExp.prototype); +var b = Object.isSealed(RegExp.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-19.js b/test/built-ins/Object/isSealed/15.2.3.11-4-19.js index 76147bf79bc8d7d0298144c769a6acb03e8c5f03..9d536645a38d4a0d2f7e34e2fddf6c320d833cb1 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-19.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-19.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-19 description: Object.isSealed returns false for all built-in objects (Error) ---*/ - var b = Object.isSealed(Error); +var b = Object.isSealed(Error); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-2.js b/test/built-ins/Object/isSealed/15.2.3.11-4-2.js index f870603afc4c08e2f4653d9e965c79dc7e5813f7..39a783ddaf2f6c6428d4a8db6c793e561b99f2b7 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-2.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-2.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-2 description: Object.isSealed returns false for all built-in objects (Object) ---*/ - var b = Object.isSealed(Object); +var b = Object.isSealed(Object); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-20.js b/test/built-ins/Object/isSealed/15.2.3.11-4-20.js index 6fcc308ea3493a874dead6eda35541a6f80b15bf..7402f2ae48ce0e4165e9bef7ae6851433ae2d18c 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-20.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-20.js @@ -8,6 +8,6 @@ description: > (Error.prototype) ---*/ - var b = Object.isSealed(Error.prototype); +var b = Object.isSealed(Error.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-21.js b/test/built-ins/Object/isSealed/15.2.3.11-4-21.js index 3deb97a262da7e231cd10d301e07fb09fa2fad27..db352fe93cd5cfbd56637b1ae561bdf772e0c41c 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-21.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-21.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-21 description: Object.isSealed returns false for all built-in objects (EvalError) ---*/ - var b = Object.isSealed(EvalError); +var b = Object.isSealed(EvalError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-22.js b/test/built-ins/Object/isSealed/15.2.3.11-4-22.js index 5519b667e19eca0a029ef1dfadb4ea5799e887aa..c45c2e31d0dc85556ed54dee098b6c6f03e0402f 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-22.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-22.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-22 description: Object.isSealed returns false for all built-in objects (RangeError) ---*/ - var b = Object.isSealed(RangeError); +var b = Object.isSealed(RangeError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-23.js b/test/built-ins/Object/isSealed/15.2.3.11-4-23.js index 47c86f229db26cc9bdeb42cd948f7fafea6f51c2..772fff43d3ec42b57567b702a1d275ef86b3b12c 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-23.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-23.js @@ -8,6 +8,6 @@ description: > (ReferenceError) ---*/ - var b = Object.isSealed(ReferenceError); +var b = Object.isSealed(ReferenceError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-24.js b/test/built-ins/Object/isSealed/15.2.3.11-4-24.js index e8e181fa04ef7ee934f3ea51f48404d6266d0908..63c9f3bad28c68d0c57a2eb4220f9695514d1c12 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-24.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-24.js @@ -8,6 +8,6 @@ description: > (SyntaxError) ---*/ - var b = Object.isSealed(SyntaxError); +var b = Object.isSealed(SyntaxError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-25.js b/test/built-ins/Object/isSealed/15.2.3.11-4-25.js index 70128058897cbfad18d45343496c6d13185ee80e..7fd0e3d60605aac3ae29fa9ca94ddfe04f13f0eb 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-25.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-25.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-25 description: Object.isSealed returns false for all built-in objects (TypeError) ---*/ - var b = Object.isSealed(TypeError); +var b = Object.isSealed(TypeError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-26.js b/test/built-ins/Object/isSealed/15.2.3.11-4-26.js index 16676f93f0445ad9aa0370f8779e5031cdac3bf3..dfad7091aeb27ded5dd35de889bd231b8fb362fc 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-26.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-26.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-26 description: Object.isSealed returns false for all built-in objects (URIError) ---*/ - var b = Object.isSealed(URIError); +var b = Object.isSealed(URIError); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-27.js b/test/built-ins/Object/isSealed/15.2.3.11-4-27.js index cbcf001532df77484e43e4790e829c4a6f421e82..8804364c0d541a40c5a94d6e66b312e926382d38 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-27.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-27.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-27 description: Object.isSealed returns false for all built-in objects (JSON) ---*/ - var b = Object.isSealed(JSON); +var b = Object.isSealed(JSON); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-3.js b/test/built-ins/Object/isSealed/15.2.3.11-4-3.js index 2d72b50928b13bcb5b5f428120eef7d6c32af70d..8eb014422dc3de7d177d28da49176cf2a9fdb2b9 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-3.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-3.js @@ -8,6 +8,6 @@ description: > (Object.prototype) ---*/ - var b = Object.isSealed(Object.prototype); +var b = Object.isSealed(Object.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-4.js b/test/built-ins/Object/isSealed/15.2.3.11-4-4.js index e3acd56f9940d4948fc41c2761aa63b87ed156fe..bfdbb73a39160b3a0b108e3a0cba808ec9596e4c 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-4.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-4.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-4 description: Object.isSealed returns false for all built-in objects (Function) ---*/ - var b = Object.isSealed(Function); +var b = Object.isSealed(Function); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-5.js b/test/built-ins/Object/isSealed/15.2.3.11-4-5.js index 66f00fd51cf16915a775a5d16a57cac0a75a409a..e2cd6604ac36e836a25f60a43efc8f37c467c131 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-5.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-5.js @@ -8,6 +8,6 @@ description: > (Function.prototype) ---*/ - var b = Object.isSealed(Function.prototype); +var b = Object.isSealed(Function.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-6.js b/test/built-ins/Object/isSealed/15.2.3.11-4-6.js index 1a5fd782facc2859bbbf772304eb73a6073dae28..bb68651440a664f1d3765e8eef0b9f10a1e213e5 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-6.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-6.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-6 description: Object.isSealed returns false for all built-in objects (Array) ---*/ - var b = Object.isSealed(Array); +var b = Object.isSealed(Array); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-7.js b/test/built-ins/Object/isSealed/15.2.3.11-4-7.js index 7d76da8acd4dabcad72fae6fa75054716b4ab764..e10e502d9f32d35581ba2bb5f80c50add5436386 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-7.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-7.js @@ -8,6 +8,6 @@ description: > (Array.prototype) ---*/ - var b = Object.isSealed(Array.prototype); +var b = Object.isSealed(Array.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-8.js b/test/built-ins/Object/isSealed/15.2.3.11-4-8.js index 2c0fd3e582ba9e64df61f99112833bd1028ad440..086d81815f9e66aa84d0b047664f077e0ab0cab4 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-8.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-8.js @@ -6,6 +6,6 @@ es5id: 15.2.3.11-4-8 description: Object.isSealed returns false for all built-in objects (String) ---*/ - var b = Object.isSealed(String); +var b = Object.isSealed(String); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/isSealed/15.2.3.11-4-9.js b/test/built-ins/Object/isSealed/15.2.3.11-4-9.js index dbea6040b72a620661895b184fd52ac66f5ae000..38dfa98832cce2b2372995d7ab505f8360311e84 100644 --- a/test/built-ins/Object/isSealed/15.2.3.11-4-9.js +++ b/test/built-ins/Object/isSealed/15.2.3.11-4-9.js @@ -8,6 +8,6 @@ description: > (String.prototype) ---*/ - var b = Object.isSealed(String.prototype); +var b = Object.isSealed(String.prototype); assert.sameValue(b, false, 'b'); diff --git a/test/built-ins/Object/keys/15.2.3.14-0-1.js b/test/built-ins/Object/keys/15.2.3.14-0-1.js index 404294cfb7607355113cef62468527c692eb181b..1697ade0fde4464b0a240e65c2c361eb05e592c8 100644 --- a/test/built-ins/Object/keys/15.2.3.14-0-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.14-0-1 description: Object.keys must exist as a function ---*/ - var f = Object.keys; +var f = Object.keys; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-1-1.js b/test/built-ins/Object/keys/15.2.3.14-1-1.js index b876f99e3d861ea477efb639c473e3cef84937e6..280af951ed87730efc10dea2af84a12f6c7405cd 100644 --- a/test/built-ins/Object/keys/15.2.3.14-1-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-1-1.js @@ -8,4 +8,4 @@ description: > Object ---*/ - Object.keys(0); +Object.keys(0); diff --git a/test/built-ins/Object/keys/15.2.3.14-1-2.js b/test/built-ins/Object/keys/15.2.3.14-1-2.js index e7ba5f33d5377a30b3a6309f58b0a737d68dafde..2bce7c0fd44c5eee564cb393da5e21d228abbfed 100644 --- a/test/built-ins/Object/keys/15.2.3.14-1-2.js +++ b/test/built-ins/Object/keys/15.2.3.14-1-2.js @@ -8,4 +8,4 @@ description: > Object (boolean) ---*/ - Object.keys(true); +Object.keys(true); diff --git a/test/built-ins/Object/keys/15.2.3.14-1-3.js b/test/built-ins/Object/keys/15.2.3.14-1-3.js index 426324b888fb6d722aead86b0cc6835e3b676294..57c584576856e186e7e6fef45b0f9b8d24a0d11c 100644 --- a/test/built-ins/Object/keys/15.2.3.14-1-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-1-3.js @@ -8,4 +8,4 @@ description: > Object (string) ---*/ - Object.keys('abc'); +Object.keys('abc'); diff --git a/test/built-ins/Object/keys/15.2.3.14-1-4.js b/test/built-ins/Object/keys/15.2.3.14-1-4.js index fdc5d31eecbf4853fc98019c84b7561606da81e3..3bbfc5872a0ae836efefac8c320265d65bb7ec3d 100644 --- a/test/built-ins/Object/keys/15.2.3.14-1-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-1-4.js @@ -10,5 +10,5 @@ description: > assert.throws(TypeError, function() { - Object.keys(null); + Object.keys(null); }); diff --git a/test/built-ins/Object/keys/15.2.3.14-1-5.js b/test/built-ins/Object/keys/15.2.3.14-1-5.js index fa00eb9e0de00bdde8857cbfc2f795295c99da39..90e9d3a6de9829bf06e5ce54e4b59c44fc773d0f 100644 --- a/test/built-ins/Object/keys/15.2.3.14-1-5.js +++ b/test/built-ins/Object/keys/15.2.3.14-1-5.js @@ -10,5 +10,5 @@ description: > assert.throws(TypeError, function() { - Object.keys(undefined); + Object.keys(undefined); }); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-1.js b/test/built-ins/Object/keys/15.2.3.14-2-1.js index 5f2d8f7cb5e383bd1120f825b5e8486cc3628c50..fbc22455a66777dc6e771da6a1efc181b1b5c241 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-1.js @@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-1 description: Object.keys returns the standard built-in Array ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(Array.isArray(a), true, 'Array.isArray(a)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-2.js b/test/built-ins/Object/keys/15.2.3.14-2-2.js index 2ebe4b0d67afb9d28715d32ec7dfacb4ebf12c56..9383f5baf2d2570a6fb503b4d4dbec8fd0216941 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-2.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-2.js @@ -6,9 +6,12 @@ es5id: 15.2.3.14-2-2 description: Object.keys returns the standard built-in Array (check [[Class]] ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); - var s = Object.prototype.toString.call(a); +var a = Object.keys(o); +var s = Object.prototype.toString.call(a); assert.sameValue(s, '[object Array]', 's'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-3.js b/test/built-ins/Object/keys/15.2.3.14-2-3.js index 0692d2ad9fd92e0ffcf4726afe74b2a4df475864..f712fe05f021c81d39535b2bf301a0d13e7d36ac 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-3.js @@ -6,12 +6,15 @@ es5id: 15.2.3.14-2-3 description: Object.keys returns the standard built-in Array (Array overridden) ---*/ - function Array() { } +function Array() {} - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); - var s = Object.prototype.toString.call(a); +var s = Object.prototype.toString.call(a); assert.sameValue(s, '[object Array]', 's'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-4.js b/test/built-ins/Object/keys/15.2.3.14-2-4.js index 231c1e761666e682b485cc292650145bc5ee757f..c4b3c134d0db78f72cb85aaf7fb287a221075edc 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-4.js @@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-4 description: Object.keys returns the standard built-in Array that is extensible ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(Object.isExtensible(a), true, 'Object.isExtensible(a)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-5.js b/test/built-ins/Object/keys/15.2.3.14-2-5.js index 53c37a8390ad0aa63c089ead9deae5178a8ebf05..ac6bd951f4ee7391c800ffae7599e85ed03e9e42 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-5.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-5.js @@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-5 description: Object.keys returns the standard built-in Array that is not sealed ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(Object.isSealed(a), false, 'Object.isSealed(a)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-6.js b/test/built-ins/Object/keys/15.2.3.14-2-6.js index 9026527d68177c2fdc141eec4292463b2ee8107f..77fb6260e614c792e7058f6ebb49de442c4f3df1 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-6.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-6.js @@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-6 description: Object.keys returns the standard built-in Array that is not frozen ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(Object.isFrozen(a), false, 'Object.isFrozen(a)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-7.js b/test/built-ins/Object/keys/15.2.3.14-2-7.js index 81506d56ddb0cccb7abe517b193d9f78671617ba..d2134fdd9401f5bbd59a78c13b8b73022b938e78 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-7.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-7.js @@ -8,22 +8,22 @@ description: > data or accessor properties ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop1", { - value: 1001, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop1", { + value: 1001, + enumerable: false, + configurable: true +}); - Object.defineProperty(obj, "prop2", { - get: function () { - return 1002; - }, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop2", { + get: function() { + return 1002; + }, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-8.js b/test/built-ins/Object/keys/15.2.3.14-2-8.js index 079e50ecafd6dc1955e41e717fdb07628a9d2e96..3b2141a30ab4d24a599d47a6d4a6d6a017fd7707 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-8.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-8.js @@ -8,28 +8,28 @@ description: > exist in 'O' ---*/ - var obj = { - prop1: 1001, - prop2: function () { - return 1002; - } - }; +var obj = { + prop1: 1001, + prop2: function() { + return 1002; + } +}; - Object.defineProperty(obj, "prop3", { - value: 1003, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop3", { + value: 1003, + enumerable: false, + configurable: true +}); - Object.defineProperty(obj, "prop4", { - get: function () { - return 1004; - }, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop4", { + get: function() { + return 1004; + }, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert.sameValue(arr.length, 2, 'arr.length'); assert.sameValue(arr[0], "prop1", 'arr[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-1.js b/test/built-ins/Object/keys/15.2.3.14-3-1.js index c54f50d55cb8c02becb5fc1f08a76762e55ee03a..a958a69ed50d3b57a0642fde38e4e192b31177ae 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-1.js @@ -8,9 +8,12 @@ description: > enumerable properties ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(a.length, 2, 'a.length'); assert.sameValue(a[0], 'x', 'a[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-2.js b/test/built-ins/Object/keys/15.2.3.14-3-2.js index 2f40b3bfa846b6f4605f63356e9e1791bf623426..4e869eef7fb4c6ae3a9241362df3ee1593296814 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-2.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-2.js @@ -8,10 +8,10 @@ description: > enumerable properties (function) ---*/ - function foo() {} - foo.x = 1; - - var a = Object.keys(foo); +function foo() {} +foo.x = 1; + +var a = Object.keys(foo); assert.sameValue(a.length, 1, 'a.length'); assert.sameValue(a[0], 'x', 'a[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-3.js b/test/built-ins/Object/keys/15.2.3.14-3-3.js index 9d6d1276be72959fbe77eb71e94d949ca55f63b3..923809d3c6d5cb5947786b59f8c1a0e19c5e3173 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-3.js @@ -8,8 +8,8 @@ description: > enumerable properties (array) ---*/ - var o = [1, 2]; - var a = Object.keys(o); +var o = [1, 2]; +var a = Object.keys(o); assert.sameValue(a.length, 2, 'a.length'); assert.sameValue(a[0], '0', 'a[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-4.js b/test/built-ins/Object/keys/15.2.3.14-3-4.js index 2d11275d4cfcfa83296e7c7b3af625a8227283b3..8df65c15a701a412e1dfb89323b3549281777f5c 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-4.js @@ -8,24 +8,26 @@ description: > given arguments ---*/ - function testArgs2(x, y, z) { - // Properties of the arguments object are enumerable. - var a = Object.keys(arguments); - if (a.length === 2 && a[0] in arguments && a[1] in arguments) - return true; - } - function testArgs3(x, y, z) { - // Properties of the arguments object are enumerable. - var a = Object.keys(arguments); - if (a.length === 3 && a[0] in arguments && a[1] in arguments && a[2] in arguments) - return true; - } - function testArgs4(x, y, z) { - // Properties of the arguments object are enumerable. - var a = Object.keys(arguments); - if (a.length === 4 && a[0] in arguments && a[1] in arguments && a[2] in arguments && a[3] in arguments) - return true; - } +function testArgs2(x, y, z) { + // Properties of the arguments object are enumerable. + var a = Object.keys(arguments); + if (a.length === 2 && a[0] in arguments && a[1] in arguments) + return true; +} + +function testArgs3(x, y, z) { + // Properties of the arguments object are enumerable. + var a = Object.keys(arguments); + if (a.length === 3 && a[0] in arguments && a[1] in arguments && a[2] in arguments) + return true; +} + +function testArgs4(x, y, z) { + // Properties of the arguments object are enumerable. + var a = Object.keys(arguments); + if (a.length === 4 && a[0] in arguments && a[1] in arguments && a[2] in arguments && a[3] in arguments) + return true; +} assert(testArgs2(1, 2), 'testArgs2(1, 2) !== true'); assert(testArgs3(1, 2, 3), 'testArgs3(1, 2, 3) !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-5.js b/test/built-ins/Object/keys/15.2.3.14-3-5.js index ed4c7b7cb3a492a201a59114fa15ce5067f85ada..b7e549eadf7dee8ff7861f0a6fc6cfb8c842d15d 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-5.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-5.js @@ -6,11 +6,13 @@ es5id: 15.2.3.14-3-5 description: Object.keys must return a fresh array on each invocation ---*/ - var literal = {a: 1}; - var keysBefore = Object.keys(literal); - assert.sameValue(keysBefore[0], 'a', 'keysBefore[0]'); - keysBefore[0] = 'x'; - var keysAfter = Object.keys(literal); +var literal = { + a: 1 +}; +var keysBefore = Object.keys(literal); +assert.sameValue(keysBefore[0], 'a', 'keysBefore[0]'); +keysBefore[0] = 'x'; +var keysAfter = Object.keys(literal); assert.sameValue(keysBefore[0], 'x', 'keysBefore[0]'); assert.sameValue(keysAfter[0], 'a', 'keysAfter[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-6.js b/test/built-ins/Object/keys/15.2.3.14-3-6.js index 582c493bb04e77661c867aa1e6718ab97608dd1a..783da2d8b55299306a6a1be73034eaa94e5fa8f6 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-6.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-6.js @@ -8,8 +8,8 @@ description: > Array) ---*/ - var obj = {}; +var obj = {}; - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert(arr instanceof Array, 'arr instanceof Array !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-7.js b/test/built-ins/Object/keys/15.2.3.14-3-7.js index cea8ccdca66f24226e8ded09856a610f5bad9029..040cdca51a64c711013c386691caa1b29ed95275 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-7.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-7.js @@ -8,22 +8,25 @@ description: > own enumerable properties of 'O' ---*/ - var obj = { prop1: 1001, prop2: 1002 }; +var obj = { + prop1: 1001, + prop2: 1002 +}; - Object.defineProperty(obj, "prop3", { - value: 1003, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop3", { + value: 1003, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "prop4", { - get: function () { - return 1003; - }, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop4", { + get: function() { + return 1003; + }, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert.sameValue(arr.length, 3, 'arr.length'); diff --git a/test/built-ins/Object/keys/15.2.3.14-4-1.js b/test/built-ins/Object/keys/15.2.3.14-4-1.js index 57f7ab5a057a57cb4c71076c9bf8fb2f41cb649e..3ad642ebd1ef7d27a3fefc7d498e27118691c23b 100644 --- a/test/built-ins/Object/keys/15.2.3.14-4-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-4-1.js @@ -6,23 +6,26 @@ es5id: 15.2.3.14-4-1 description: Object.keys - elements of the returned array start from index 0 ---*/ - var obj = { prop1: 1001, prop2: 1002 }; +var obj = { + prop1: 1001, + prop2: 1002 +}; - Object.defineProperty(obj, "prop3", { - value: 1003, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop3", { + value: 1003, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "prop4", { - get: function () { - return 1003; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop4", { + get: function() { + return 1003; + }, + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true'); assert.sameValue(arr[0], "prop1", 'arr[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-1.js b/test/built-ins/Object/keys/15.2.3.14-5-1.js index 8f576efd9e2b18792831c50566c9f3c5fc723f15..38b86bb5c1b52824b29d2e2270d9509f242c3731 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-1.js @@ -8,15 +8,15 @@ description: > returned array ---*/ - var obj = { }; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 1003, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + value: 1003, + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true'); assert.sameValue(arr[0], "prop", 'arr[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-10.js b/test/built-ins/Object/keys/15.2.3.14-5-10.js index 7c78da96c76cadf9a21c37d6701cb452f142878c..9c6a93b144809b31b57030660d63e1ac45d1f7b6 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-10.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-10.js @@ -9,24 +9,24 @@ description: > in returned array ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { }, - enumerable: true, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() {}, + enumerable: true, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - get: function () { }, - enumerable: false, - configurable: true - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + get: function() {}, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - assert.notSameValue(arr[p], "prop", 'arr[p]'); - } +for (var p in arr) { + assert.notSameValue(arr[p], "prop", 'arr[p]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-11.js b/test/built-ins/Object/keys/15.2.3.14-5-11.js index 3a6c31e0c4e71015d2ed235a72f307c7fa7b2c6d..cacc8fdf2c1c41a5aa42f49fe6e9c8900fc1758f 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-11.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-11.js @@ -8,14 +8,14 @@ description: > 'O' is defined in returned array ---*/ - var obj = [1, 2, 3, 4, 5]; +var obj = [1, 2, 3, 4, 5]; - var arr = Object.keys(obj); +var arr = Object.keys(obj); - var initValue = 0; - for (var p in arr) { - if (arr.hasOwnProperty(p)) { - assert.sameValue(arr[p], initValue.toString(), 'arr[p]'); - initValue++; - } - } +var initValue = 0; +for (var p in arr) { + if (arr.hasOwnProperty(p)) { + assert.sameValue(arr[p], initValue.toString(), 'arr[p]'); + initValue++; + } +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-12.js b/test/built-ins/Object/keys/15.2.3.14-5-12.js index 0e565cc0da63b83e9025d21aa365559755ff6388..8418f0262c925a767da5199bed7c514f3a557588 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-12.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-12.js @@ -10,25 +10,25 @@ description: > var propertyFound = false; - var obj = [2, 3, 4, 5]; +var obj = [2, 3, 4, 5]; - Object.defineProperty(obj, "prop", { - get: function () { - return 6; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: function() { + return 6; + }, + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - if (arr.hasOwnProperty(p)) { - if (arr[p] === "prop") { - propertyFound = true; - break; - } - } - } +for (var p in arr) { + if (arr.hasOwnProperty(p)) { + if (arr[p] === "prop") { + propertyFound = true; + break; + } + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-13.js b/test/built-ins/Object/keys/15.2.3.14-5-13.js index 1dd461cabd42c34d2c79b4429abc7724ae856417..4c87e4d47a1bed7afeda55af4ccce5673da2383d 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-13.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-13.js @@ -8,28 +8,28 @@ description: > 'O' is defined in returned array ---*/ - var obj = [1, , 3, , 5]; +var obj = [1, , 3, , 5]; - Object.defineProperty(obj, 5, { - value: 7, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, 5, { + value: 7, + enumerable: false, + configurable: true +}); - Object.defineProperty(obj, 10000, { - value: "ElementWithLargeIndex", - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, 10000, { + value: "ElementWithLargeIndex", + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - var index; - var initValue = 0; - for (index = 0; index < 3; index++) { - assert.sameValue(arr[index], initValue.toString(), 'Unexpected property at index: ' + index); - initValue += 2; - } +var index; +var initValue = 0; +for (index = 0; index < 3; index++) { + assert.sameValue(arr[index], initValue.toString(), 'Unexpected property at index: ' + index); + initValue += 2; +} assert.sameValue(arr.length, 4, 'arr.length'); assert.sameValue(arr[3], "10000", 'arr[3]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-14.js b/test/built-ins/Object/keys/15.2.3.14-5-14.js index 6b9c3ae25259bbcec5cf94b926075cfd93fe9e8d..2f9bd96173a21adee941529361f526da78fbe042 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-14.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-14.js @@ -10,23 +10,23 @@ description: > var propertyFound = false; - var obj = [1, , 3, , 5]; +var obj = [1, , 3, , 5]; - Object.defineProperty(obj, "10000", { - get: function () { - return "ElementWithLargeIndex"; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "10000", { + get: function() { + return "ElementWithLargeIndex"; + }, + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - if (arr[p] === "10000") { - propertyFound = true; - break; - } - } +for (var p in arr) { + if (arr[p] === "10000") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-15.js b/test/built-ins/Object/keys/15.2.3.14-5-15.js index c7805c0304efb772125f47bf154ddaf361d40d8b..78c95371b305522d3a6c5f8151e614e14a8b88c6 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-15.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-15.js @@ -8,18 +8,18 @@ description: > object 'O' is defined in returned array ---*/ - var obj = new String("xyz"); - obj[-20] = -20; - obj[20] = 20; +var obj = new String("xyz"); +obj[-20] = -20; +obj[20] = 20; - Object.defineProperty(obj, "prop", { - value: 1003, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop", { + value: 1003, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var i = 0; i < arr.length; i++) { - assert(obj.hasOwnProperty(arr[i]), 'obj.hasOwnProperty(arr[i]) !== true'); - } +for (var i = 0; i < arr.length; i++) { + assert(obj.hasOwnProperty(arr[i]), 'obj.hasOwnProperty(arr[i]) !== true'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-16.js b/test/built-ins/Object/keys/15.2.3.14-5-16.js index 1031fd08c7f4d4ef0dc6030169f4093bd02c363a..327c196f48e2f2332a6d38cc8f6cb9fa9a125f43 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-16.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-16.js @@ -8,23 +8,23 @@ description: > object 'O' is defined in returned array ---*/ - var obj = new String("xyz"); - obj[-20] = -20; - obj[20] = 20; +var obj = new String("xyz"); +obj[-20] = -20; +obj[20] = 20; - Object.defineProperty(obj, "prop1", { - get: function () { }, - enumerable: true, - configurable: true - }); - Object.defineProperty(obj, "prop2", { - get: function () { }, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop1", { + get: function() {}, + enumerable: true, + configurable: true +}); +Object.defineProperty(obj, "prop2", { + get: function() {}, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var i = 0; i < arr.length; i++) { - assert(obj.hasOwnProperty(arr[i]), 'obj.hasOwnProperty(arr[i]) !== true'); - } +for (var i = 0; i < arr.length; i++) { + assert(obj.hasOwnProperty(arr[i]), 'obj.hasOwnProperty(arr[i]) !== true'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-2.js b/test/built-ins/Object/keys/15.2.3.14-5-2.js index 917ad1cf6dc4c8b260afac324978da41d4d7d28b..d88f54188f0f6ee56a36686ad522a4474c2f1e78 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-2.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-2.js @@ -8,17 +8,17 @@ description: > in returned array ---*/ - var obj = { }; +var obj = {}; - Object.defineProperty(obj, "prop", { - get: function () { - return 1003; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop", { + get: function() { + return 1003; + }, + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true'); assert.sameValue(arr[0], "prop", 'arr[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-3.js b/test/built-ins/Object/keys/15.2.3.14-5-3.js index 45d321cfe7684953a4d81cdaf83db7bd092e26d6..9bfa83434e3ac6b5a70d09fc2ec776adc1e1232b 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-3.js @@ -8,24 +8,27 @@ description: > defined in returned array ---*/ - var obj = { prop1: 1001, prop2: 1002 }; +var obj = { + prop1: 1001, + prop2: 1002 +}; - Object.defineProperty(obj, "prop3", { - value: 1003, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop3", { + value: 1003, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "prop4", { - value: 1004, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop4", { + value: 1004, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - if (arr.hasOwnProperty(p)) { - assert.notSameValue(arr[p], "prop4", 'arr[p]'); - } - } +for (var p in arr) { + if (arr.hasOwnProperty(p)) { + assert.notSameValue(arr[p], "prop4", 'arr[p]'); + } +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-4.js b/test/built-ins/Object/keys/15.2.3.14-5-4.js index ed6346c085e0505733d79eff37ffc67adc3f281a..92d237cddb0dd1712650ba3792de12d1ab8f0489 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-4.js @@ -8,28 +8,28 @@ description: > defined in returned array ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop1", { - get: function () { }, - enumerable: true, - configurable: true - }); - Object.defineProperty(obj, "prop2", { - get: function () { }, - enumerable: false, - configurable: true - }); - Object.defineProperty(obj, "prop3", { - get: function () { }, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop1", { + get: function() {}, + enumerable: true, + configurable: true +}); +Object.defineProperty(obj, "prop2", { + get: function() {}, + enumerable: false, + configurable: true +}); +Object.defineProperty(obj, "prop3", { + get: function() {}, + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - if (arr.hasOwnProperty(p)) { - assert.notSameValue(arr[p], "prop2", 'arr[p]'); - } - } +for (var p in arr) { + if (arr.hasOwnProperty(p)) { + assert.notSameValue(arr[p], "prop2", 'arr[p]'); + } +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-5.js b/test/built-ins/Object/keys/15.2.3.14-5-5.js index 996f595a1f34a1e769774bcceb8d2eba92952b49..3be1366f9d894fb5cca579bc081280995d8c1b2c 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-5.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-5.js @@ -8,20 +8,20 @@ description: > defined in returned array ---*/ - var proto = {}; - Object.defineProperty(proto, "inheritedProp", { - value: 1003, - enumerable: true, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "inheritedProp", { + value: 1003, + enumerable: true, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - obj.prop = 1004; +var obj = new Con(); +obj.prop = 1004; - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - assert.notSameValue(arr[p], "inheritedProp", 'arr[p]'); - } +for (var p in arr) { + assert.notSameValue(arr[p], "inheritedProp", 'arr[p]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-6.js b/test/built-ins/Object/keys/15.2.3.14-5-6.js index 10405513793c164a3149eb6a5ead6c1bac191ce6..e5ff23f984610fd822dd2652d0435e585009c6f9 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-6.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-6.js @@ -8,28 +8,28 @@ description: > defined in returned array ---*/ - var proto = {}; - Object.defineProperty(proto, "inheritedProp", { - get: function () { - return 1003; - }, - enumerable: true, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "inheritedProp", { + get: function() { + return 1003; + }, + enumerable: true, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - get: function () { - return 1004; - }, - enumerable: true, - configurable: true - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + get: function() { + return 1004; + }, + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - assert.notSameValue(arr[p], "inheritedProp", 'arr[p]'); - } +for (var p in arr) { + assert.notSameValue(arr[p], "inheritedProp", 'arr[p]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-7.js b/test/built-ins/Object/keys/15.2.3.14-5-7.js index 8fb146cd208b85bb2e44246eb7e05498929e8431..c40e03400e7f2ab427dabf8a2065a4ac5f43950e 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-7.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-7.js @@ -9,24 +9,24 @@ description: > returned array ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - value: 1003, - enumerable: true, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + value: 1003, + enumerable: true, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - value: 1004, - enumerable: false, - configurable: true - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + value: 1004, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - assert.notSameValue(arr[p], "prop", 'arr[p]'); - } +for (var p in arr) { + assert.notSameValue(arr[p], "prop", 'arr[p]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-8.js b/test/built-ins/Object/keys/15.2.3.14-5-8.js index 37acf9b4f9dbeb3eb865a1fde577a533fc37e592..87fa6a75b09c18590e39559553c0ed00fec079f2 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-8.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-8.js @@ -9,24 +9,24 @@ description: > in returned array ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - value: 1003, - enumerable: true, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + value: 1003, + enumerable: true, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - get: function () { }, - enumerable: false, - configurable: true - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + get: function() {}, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - assert.notSameValue(arr[p], "prop", 'arr[p]'); - } +for (var p in arr) { + assert.notSameValue(arr[p], "prop", 'arr[p]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-9.js b/test/built-ins/Object/keys/15.2.3.14-5-9.js index f88c546c00878699c8ff99b8150ac4be358bf286..b3001fa90342211af4629f72787a4b9a6bd99c0d 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-9.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-9.js @@ -9,24 +9,24 @@ description: > returned array ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { }, - enumerable: true, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() {}, + enumerable: true, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - value: 1003, - enumerable: false, - configurable: true - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + value: 1003, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - assert.notSameValue(arr[p], "prop", 'arr[p]'); - } +for (var p in arr) { + assert.notSameValue(arr[p], "prop", 'arr[p]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-1.js b/test/built-ins/Object/keys/15.2.3.14-5-a-1.js index 15cabe73b1b88c00497a501b2ba82d41b6cbb0f8..b186f7c27e1b15ea7bb37c7d9178a4b211711a59 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-1.js @@ -8,11 +8,13 @@ description: > correct. ---*/ - var obj = { prop1: 1 }; +var obj = { + prop1: 1 +}; - var array = Object.keys(obj); +var array = Object.keys(obj); - var desc = Object.getOwnPropertyDescriptor(array, "0"); +var desc = Object.getOwnPropertyDescriptor(array, "0"); assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true'); assert.sameValue(desc.value, "prop1", 'desc.value'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-2.js b/test/built-ins/Object/keys/15.2.3.14-5-a-2.js index 10f811ac6dc8879c0c32cb168c186319d316defa..5d57f077a5bc1ef884974ea6eaaed1fa649f5325 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-2.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-2.js @@ -8,13 +8,15 @@ description: > correct ---*/ - var obj = { prop1: 100 }; +var obj = { + prop1: 100 +}; - var array = Object.keys(obj); +var array = Object.keys(obj); - array[0] = "isWritable"; +array[0] = "isWritable"; - var desc = Object.getOwnPropertyDescriptor(array, "0"); +var desc = Object.getOwnPropertyDescriptor(array, "0"); assert.sameValue(array[0], "isWritable", 'array[0]'); assert(desc.hasOwnProperty("writable"), 'desc.hasOwnProperty("writable") !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-3.js b/test/built-ins/Object/keys/15.2.3.14-5-a-3.js index 25c069329f1703786461136183c3aa4ff7a33b73..6c6a27f6779c7f08fbf63beb908738142a004341 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-3.js @@ -8,16 +8,18 @@ description: > is correct ---*/ - var obj = { prop1: 100 }; +var obj = { + prop1: 100 +}; - var array = Object.keys(obj); - var desc = Object.getOwnPropertyDescriptor(array, "0"); - var result = false; - for (var index in array) { - if (obj.hasOwnProperty(array[index]) && array[index] === "prop1") { - result = true; - } - } +var array = Object.keys(obj); +var desc = Object.getOwnPropertyDescriptor(array, "0"); +var result = false; +for (var index in array) { + if (obj.hasOwnProperty(array[index]) && array[index] === "prop1") { + result = true; + } +} assert(result, 'result !== true'); assert(desc.hasOwnProperty("enumerable"), 'desc.hasOwnProperty("enumerable") !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-4.js b/test/built-ins/Object/keys/15.2.3.14-5-a-4.js index 78b67c33801710c92ffbfb061c0e4a0efdb60bce..5a52878215c12b5e4822805879415a150d56b4e1 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-4.js @@ -8,12 +8,14 @@ description: > returned array is correct ---*/ - var obj = { prop1: 100 }; +var obj = { + prop1: 100 +}; - var array = Object.keys(obj); - var desc = Object.getOwnPropertyDescriptor(array, "0"); +var array = Object.keys(obj); +var desc = Object.getOwnPropertyDescriptor(array, "0"); - delete array[0]; +delete array[0]; assert.sameValue(typeof array[0], "undefined", 'typeof array[0]'); assert(desc.hasOwnProperty("configurable"), 'desc.hasOwnProperty("configurable") !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-b-1.js b/test/built-ins/Object/keys/15.2.3.14-5-b-1.js index 6c5766333cc57bb252e7a3d8a8dad3492bd31e95..c6b18372b61e4533ac271308ed749bd9481d717e 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-b-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-b-1.js @@ -6,14 +6,18 @@ es5id: 15.2.3.14-5-b-1 description: Object.keys - Verify that 'index' of returned array is ascend by 1 ---*/ - var obj = { prop1: 100, prop2: 200, prop3: 300 }; +var obj = { + prop1: 100, + prop2: 200, + prop3: 300 +}; - var array = Object.keys(obj); +var array = Object.keys(obj); - var idx = 0; - for (var index in array) { - if (array.hasOwnProperty(index)) { - assert.sameValue(index, idx.toString(), 'index'); - idx++; - } - } +var idx = 0; +for (var index in array) { + if (array.hasOwnProperty(index)) { + assert.sameValue(index, idx.toString(), 'index'); + idx++; + } +} diff --git a/test/built-ins/Object/keys/15.2.3.14-6-1.js b/test/built-ins/Object/keys/15.2.3.14-6-1.js index 884abd796d95e962231737f7b8cf993f1dde0c94..e6c869cfe85b8958eb7acf801a03c7333bcfda9c 100644 --- a/test/built-ins/Object/keys/15.2.3.14-6-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-6-1.js @@ -8,17 +8,17 @@ description: > with the order of properties in 'O' (dense array) ---*/ - var denseArray = [1, 2, 3]; +var denseArray = [1, 2, 3]; - var tempArray = []; - for (var p in denseArray) { - if (denseArray.hasOwnProperty(p)) { - tempArray.push(p); - } - } +var tempArray = []; +for (var p in denseArray) { + if (denseArray.hasOwnProperty(p)) { + tempArray.push(p); + } +} - var returnedArray = Object.keys(denseArray); +var returnedArray = Object.keys(denseArray); - for (var index in returnedArray) { - assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); - } +for (var index in returnedArray) { + assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-6-2.js b/test/built-ins/Object/keys/15.2.3.14-6-2.js index c3a1537e07ffcaa523b02663894206a4d0b52270..bed89a28dc10780dc5d2048cbaf975072b29e48c 100644 --- a/test/built-ins/Object/keys/15.2.3.14-6-2.js +++ b/test/built-ins/Object/keys/15.2.3.14-6-2.js @@ -8,17 +8,17 @@ description: > with the order of properties in 'O' (sparse array) ---*/ - var sparseArray = [1, 2, , 4, , 6]; +var sparseArray = [1, 2, , 4, , 6]; - var tempArray = []; - for (var p in sparseArray) { - if (sparseArray.hasOwnProperty(p)) { - tempArray.push(p); - } - } +var tempArray = []; +for (var p in sparseArray) { + if (sparseArray.hasOwnProperty(p)) { + tempArray.push(p); + } +} - var returnedArray = Object.keys(sparseArray); +var returnedArray = Object.keys(sparseArray); - for (var index in returnedArray) { - assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); - } +for (var index in returnedArray) { + assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-6-3.js b/test/built-ins/Object/keys/15.2.3.14-6-3.js index 108056b3335a7821e2bc968785f1f84e3ec8ca69..8607da50b4b57232926c43ce0e62a06e88326b26 100644 --- a/test/built-ins/Object/keys/15.2.3.14-6-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-6-3.js @@ -8,17 +8,17 @@ description: > with the order of properties in 'O' (String object) ---*/ - var str = new String("abc"); +var str = new String("abc"); - var tempArray = []; - for (var p in str) { - if (str.hasOwnProperty(p)) { - tempArray.push(p); - } - } +var tempArray = []; +for (var p in str) { + if (str.hasOwnProperty(p)) { + tempArray.push(p); + } +} - var returnedArray = Object.keys(str); +var returnedArray = Object.keys(str); - for (var index in returnedArray) { - assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); - } +for (var index in returnedArray) { + assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-6-4.js b/test/built-ins/Object/keys/15.2.3.14-6-4.js index b10ea76150f38f52c6d7b6796868584a097cbef2..cacc8f39c4d4cee88b56ddd7573b467a54fd1d60 100644 --- a/test/built-ins/Object/keys/15.2.3.14-6-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-6-4.js @@ -8,21 +8,21 @@ description: > with the order of properties in 'O' (Arguments object) ---*/ - var func = function (a, b, c) { - return arguments; - }; +var func = function(a, b, c) { + return arguments; +}; - var args = func(1, "b", false); +var args = func(1, "b", false); - var tempArray = []; - for (var p in args) { - if (args.hasOwnProperty(p)) { - tempArray.push(p); - } - } +var tempArray = []; +for (var p in args) { + if (args.hasOwnProperty(p)) { + tempArray.push(p); + } +} - var returnedArray = Object.keys(args); +var returnedArray = Object.keys(args); - for (var index in returnedArray) { - assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); - } +for (var index in returnedArray) { + assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); +} diff --git a/test/built-ins/Object/keys/15.2.3.14-6-5.js b/test/built-ins/Object/keys/15.2.3.14-6-5.js index 9e5984a78a418e6ebf1caed80df67d62d10cdce1..4bd098a3efeb74f7007b7be143558fbb25626e7b 100644 --- a/test/built-ins/Object/keys/15.2.3.14-6-5.js +++ b/test/built-ins/Object/keys/15.2.3.14-6-5.js @@ -8,19 +8,19 @@ description: > with the order of properties in 'O' (any other built-in object) ---*/ - var obj = new Date(); - obj.prop1 = 100; - obj.prop2 = "prop2"; +var obj = new Date(); +obj.prop1 = 100; +obj.prop2 = "prop2"; - var tempArray = []; - for (var p in obj) { - if (obj.hasOwnProperty(p)) { - tempArray.push(p); - } - } +var tempArray = []; +for (var p in obj) { + if (obj.hasOwnProperty(p)) { + tempArray.push(p); + } +} - var returnedArray = Object.keys(obj); +var returnedArray = Object.keys(obj); - for (var index in returnedArray) { - assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); - } +for (var index in returnedArray) { + assert.sameValue(tempArray[index], returnedArray[index], 'tempArray[index]'); +} diff --git a/test/built-ins/Object/keys/proxy-keys.js b/test/built-ins/Object/keys/proxy-keys.js index ac349430fa6330867126bbcbdc4ffd54c8248042..f9b2a155aae11b80357fe3d057fee8ffc4472913 100644 --- a/test/built-ins/Object/keys/proxy-keys.js +++ b/test/built-ins/Object/keys/proxy-keys.js @@ -32,22 +32,34 @@ let target = { let ownKeys = { get length() { - log.push({ name: "get ownKeys['length']", receiver: this }); + log.push({ + name: "get ownKeys['length']", + receiver: this + }); return 3; }, get 0() { - log.push({ name: "get ownKeys[0]", receiver: this }); + log.push({ + name: "get ownKeys[0]", + receiver: this + }); return "a"; }, get 1() { - log.push({ name: "get ownKeys[1]", receiver: this }); + log.push({ + name: "get ownKeys[1]", + receiver: this + }); return s; }, get 2() { - log.push({ name: "get ownKeys[2]", receiver: this }); + log.push({ + name: "get ownKeys[2]", + receiver: this + }); return "b"; } }; @@ -74,15 +86,25 @@ let ownKeysDescriptors = { let handler = { get ownKeys() { - log.push({ name: "get handler.ownKeys", receiver: this }); + log.push({ + name: "get handler.ownKeys", + receiver: this + }); return (...args) => { - log.push({ name: "call handler.ownKeys", receiver: this, args }); + log.push({ + name: "call handler.ownKeys", + receiver: this, + args + }); return ownKeys; }; }, get getOwnPropertyDescriptor() { - log.push({ name: "get handler.getOwnPropertyDescriptor", receiver: this }); + log.push({ + name: "get handler.getOwnPropertyDescriptor", + receiver: this + }); return (...args) => { log.push({ name: "call handler.getOwnPropertyDescriptor", diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js index 8f3e64dc3aaaf0718a63463831df6f005cbf84b8..74af3456dc788643d3cbf786a0bf336ff84177c9 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.10-0-1 description: Object.preventExtensions must exist as a function ---*/ - var f = Object.preventExtensions; +var f = Object.preventExtensions; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js index 12e4a96cb04f74ef48fe2002f81e4b1dbb766405..e52f9af7152a674a4e125f4c84b38b0dc47474fc 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1-1.js @@ -8,4 +8,4 @@ description: > undefined ---*/ - Object.preventExtensions(undefined); +Object.preventExtensions(undefined); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js index 908256f0d69e96bb3f55cff5a753eb8a7417984c..0032e685e54f41965f2408aadad8a68124865e8f 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1-2.js @@ -6,4 +6,4 @@ es5id: 15.2.3.10-1-2 description: Object.preventExtensions does not throw TypeError if 'O' is null ---*/ - Object.preventExtensions(null); +Object.preventExtensions(null); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js index 19d939b759e2955e12e2137e4f87a556094245c6..f656493630296a09cd55bba73c514a2831aeb4dc 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1-3.js @@ -8,4 +8,4 @@ description: > boolean primitive value ---*/ - Object.preventExtensions(true); +Object.preventExtensions(true); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js index a2b491530b048d5ec6bbc1f32bd76fa377f1082d..058bfb29dcf24eba3951f3c0a27a644c187ce1ca 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1-4.js @@ -8,4 +8,4 @@ description: > string primitive value ---*/ - Object.preventExtensions("abc"); +Object.preventExtensions("abc"); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-1.js index 08a98ccaea38970a3c68c876c88fc63f0c7c8240..2781b8facc842190217af67f1900b2e12b676346 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-1.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-1.js @@ -8,4 +8,4 @@ description: > param is not Object ---*/ - Object.preventExtensions(0); +Object.preventExtensions(0); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js index a8e4b2e410f6f498d6c1e1e08ed6c61ef5e0891e..765580072113eaa697a4bbb4c7436563161c4280 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-2-1.js @@ -8,16 +8,16 @@ description: > have no side effects ---*/ - var obj = {}; - var testResult1 = true; - var testResult2 = true; +var obj = {}; +var testResult1 = true; +var testResult2 = true; - var preCheck = Object.isExtensible(obj); +var preCheck = Object.isExtensible(obj); - Object.preventExtensions(obj); - testResult1 = Object.isExtensible(obj); - Object.preventExtensions(obj); - testResult2 = Object.isExtensible(obj); +Object.preventExtensions(obj); +testResult1 = Object.isExtensible(obj); +Object.preventExtensions(obj); +testResult2 = Object.isExtensible(obj); assert(preCheck, 'preCheck !== true'); assert.sameValue(testResult1, false, 'testResult1'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-2.js b/test/built-ins/Object/preventExtensions/15.2.3.10-2.js index f6507af2d938f8e68519b5d2a0b606714e399818..c3a60819f2cfe2728bcc0061b10e16f44728751d 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-2.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-2.js @@ -9,10 +9,10 @@ description: > extensible property to false ---*/ - var o = {}; - var o2 = undefined; +var o = {}; +var o2 = undefined; - o2 = Object.preventExtensions(o); +o2 = Object.preventExtensions(o); assert.sameValue(o2, o, 'o2'); assert.sameValue(Object.isExtensible(o2), false, 'Object.isExtensible(o2)'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js index c9ee327e0d340896d27d30c81688a74c94103cb6..b42f94651a66312970cac93dde6fcae294e7821c 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-1.js @@ -8,9 +8,9 @@ description: > if arg is the returned object ---*/ - var obj = {}; - var preCheck = Object.isExtensible(obj); - Object.preventExtensions(obj); +var obj = {}; +var preCheck = Object.isExtensible(obj); +Object.preventExtensions(obj); assert(preCheck, 'preCheck !== true'); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js index 49ec6fbd14685cbf9d2f0bfc3f79dd43a9de5075..f58147ef4524eafe5090558fa33a08edded86fa2 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js @@ -18,4 +18,3 @@ assert(!Object.isExtensible(errObj)); verifyNotWritable(errObj, "0", "nocheck"); assert(!errObj.hasOwnProperty("0")); - diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js index cdaafc240e32975850dde8a71e910b0bad756ec9..ba2145a1ca9e920dbabf05b1de970dfce47cb056 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js @@ -10,8 +10,8 @@ includes: [propertyHelper.js] ---*/ var argObj; -(function () { - argObj = arguments; +(function() { + argObj = arguments; }()); assert(Object.isExtensible(argObj)); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js index 071c01260681e08c0b8b7d72adfb68bb8d5c9dff..09778460e8209f7bebeeb886a661053f7b2e0531 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js @@ -18,4 +18,3 @@ assert(!Object.isExtensible(obj)); verifyNotWritable(obj, "exName", "nocheck"); assert(!obj.hasOwnProperty("exName")); - diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js index 6bc3159eefb9c816d5bdbbda87cbb1572b54b20e..67c952a0668950ac92ceed294570bfbb0181ed55 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = function () { }; +var obj = function() {}; assert(Object.isExtensible(obj)); Object.preventExtensions(obj); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js index 560bec4962b2e48e7c1f0f1c44266d06c91e5c00..26d198d1ecdd25a157132ca2564eda238e3477ff 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-21.js @@ -10,8 +10,8 @@ includes: [propertyHelper.js] ---*/ var obj; -(function () { - obj = arguments; +(function() { + obj = arguments; }()); assert(Object.isExtensible(obj)); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js index f9c4d8b480716579dc156f59273031df8861cd37..02de9e3bad884b35dfefc181e9027f9a4a274024 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js @@ -8,11 +8,13 @@ description: > extensions have been prevented ---*/ - var obj = { prop: 12 }; - var preCheck = Object.isExtensible(obj); - Object.preventExtensions(obj); +var obj = { + prop: 12 +}; +var preCheck = Object.isExtensible(obj); +Object.preventExtensions(obj); - delete obj.prop; +delete obj.prop; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js index f857d410b67670150f8365388575cc08ae390ee2..b7c93c497230e7c9c0053ae178cef819ef8ffbfb 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js @@ -8,11 +8,13 @@ description: > after extensions have been prevented ---*/ - var obj = { prop: 12 }; - var preCheck = Object.isExtensible(obj); - Object.preventExtensions(obj); +var obj = { + prop: 12 +}; +var preCheck = Object.isExtensible(obj); +Object.preventExtensions(obj); - obj.prop = -1; +obj.prop = -1; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.prop, -1, 'obj.prop'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js index 7e80063268c9866ba14ce5fbe2f3e5cfc40b36c9..b0f8796a547b983abca3f75f6324a21ebc69fe37 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js @@ -9,15 +9,15 @@ description: > from that prototype ---*/ - var proto = {}; - var preCheck = Object.isExtensible(proto); - Object.preventExtensions(proto); +var proto = {}; +var preCheck = Object.isExtensible(proto); +Object.preventExtensions(proto); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; - var child = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; +var child = new ConstructFun(); - child.prop = 10; +child.prop = 10; assert(preCheck, 'preCheck !== true'); assert(child.hasOwnProperty("prop"), 'child.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js index f644100e672c222420996933aeaa01422d4f2e1f..443c2a61eb27a725bb40d7132e5b5070cddcb855 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-3.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = function () { }; +var obj = function() {}; assert(Object.isExtensible(obj)); Object.preventExtensions(obj); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js index def72f4f6d33d6c32f766f9205f58f1b767fd7de..f70509ecaf03ae43c7054ca7c650b24cafcd56ac 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js @@ -8,11 +8,13 @@ description: > a String object ---*/ - var strObj = new String(); - var preCheck = Object.isExtensible(strObj); - Object.preventExtensions(strObj); +var strObj = new String(); +var preCheck = Object.isExtensible(strObj); +Object.preventExtensions(strObj); assert.throws(TypeError, function() { - Object.defineProperty(strObj, "0", { value: "c" }); + Object.defineProperty(strObj, "0", { + value: "c" + }); }); assert(preCheck, 'preCheck !== true'); assert.sameValue(strObj.hasOwnProperty("0"), false, 'strObj.hasOwnProperty("0")'); diff --git a/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js b/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js index 6bb4bdf18715575b24b3844be2e973e6cd7a0c5a..9fb953b990e51e9156d5a1a4a83d195a2ed204bb 100644 --- a/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js +++ b/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js @@ -20,13 +20,12 @@ assert.throws(TypeError, function() { }); assert.throws(TypeError, function() { - Object.defineProperty(obj, symC, { value: 1 }); + Object.defineProperty(obj, symC, { + value: 1 + }); }); assert.sameValue(obj[symA], 2, "The value of `obj[symA]` is `2`"); assert.sameValue(delete obj[symA], true, "`delete obj[symA]` is `true`"); assert.sameValue(obj[symB], undefined, "The value of `obj[symB]` is `undefined`"); assert.sameValue(obj[symC], undefined, "The value of `obj[symC]` is `undefined`"); - - - diff --git a/test/built-ins/Object/prototype/15.2.3.1.js b/test/built-ins/Object/prototype/15.2.3.1.js index fb0ddee7f02de1aadc1da74ab29c56fab27e5b15..636b72df5f9e3b1d675f573cd3ed21a8e51654f0 100644 --- a/test/built-ins/Object/prototype/15.2.3.1.js +++ b/test/built-ins/Object/prototype/15.2.3.1.js @@ -8,7 +8,7 @@ description: > (false) ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, 'prototype'); +var desc = Object.getOwnPropertyDescriptor(Object, 'prototype'); assert.sameValue(desc.writable, false, 'desc.writable'); assert.sameValue(desc.enumerable, false, 'desc.enumerable'); diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A1.js b/test/built-ins/Object/prototype/S15.2.3.1_A1.js index 44b0ea6e6b5b9d9d9dc58b6147f4075d3a7b1431..a182b4f7371468af122c49b8defe3d3a8d93d343 100644 --- a/test/built-ins/Object/prototype/S15.2.3.1_A1.js +++ b/test/built-ins/Object/prototype/S15.2.3.1_A1.js @@ -9,7 +9,9 @@ includes: [propertyHelper.js] ---*/ var obj = Object.prototype; -verifyNotWritable(Object, "prototype", null, function(){return "shifted";}); +verifyNotWritable(Object, "prototype", null, function() { + return "shifted"; +}); //CHECK#1 if (Object.prototype !== obj) { diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A2.js b/test/built-ins/Object/prototype/S15.2.3.1_A2.js index 996c86525be102e18cf533b0e604cfce8e77ae5c..96ee379f651054577b03ca125992fe1f8ea94b91 100644 --- a/test/built-ins/Object/prototype/S15.2.3.1_A2.js +++ b/test/built-ins/Object/prototype/S15.2.3.1_A2.js @@ -13,10 +13,10 @@ if (Object.propertyIsEnumerable('prototype')) { } // CHECK#2 -var cout=0; +var cout = 0; -for (var p in Object){ - if (p==="prototype") cout++; +for (var p in Object) { + if (p === "prototype") cout++; } if (cout !== 0) { diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A3.js b/test/built-ins/Object/prototype/S15.2.3.1_A3.js index 5b7c6e5eab45f660e458cf3b86bad9d234e32585..d2ffa50ca604085beec33dbf7f9a729ccd8deff6 100644 --- a/test/built-ins/Object/prototype/S15.2.3.1_A3.js +++ b/test/built-ins/Object/prototype/S15.2.3.1_A3.js @@ -11,7 +11,7 @@ verifyNotConfigurable(Object, "prototype"); //CHECK#1 try { - if((delete Object.prototype) !== false){ + if ((delete Object.prototype) !== false) { $ERROR('#1: Object.prototype has the attribute DontDelete'); } } catch (e) { diff --git a/test/built-ins/Object/prototype/S15.2.4_A1_T2.js b/test/built-ins/Object/prototype/S15.2.4_A1_T2.js index 9fd0c15bb5a336586f926e0c1e53c5b9aa240851..f92c6b479a365637a52e14adef7d87aa8f2b7d2b 100644 --- a/test/built-ins/Object/prototype/S15.2.4_A1_T2.js +++ b/test/built-ins/Object/prototype/S15.2.4_A1_T2.js @@ -22,7 +22,7 @@ try { $ERROR('#2: Object prototype object has not prototype'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: delete Object.prototype.toString; Object.prototype.toString() throw a TypeError. Actual: ' + (e)); + $ERROR('#1.1: delete Object.prototype.toString; Object.prototype.toString() throw a TypeError. Actual: ' + (e)); } } // diff --git a/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js b/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js index 07679b2740ae9d736f1ac892b1f3555f3705e477..a9fe417615cb0fc41dfb06a1ee8564aca47482f9 100644 --- a/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js +++ b/test/built-ins/Object/prototype/constructor/S15.2.4.1_A1_T2.js @@ -31,7 +31,7 @@ if (!(Object.prototype.isPrototypeOf(obj))) { } // CHECK#3 -var to_string_result = '[object '+ 'Object' +']'; +var to_string_result = '[object ' + 'Object' + ']'; if (obj.toString() !== to_string_result) { $ERROR('#3: when new Object() calls the [[Class]] property of the newly constructed object is set to "Object".'); } diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js index 29e82458769f8ab538c2431128d8d047968fdd99..a4330a78e6cd7fef158c80b49bfb0453780e0d19 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_1.js @@ -6,6 +6,6 @@ es5id: 8.12.1-1_1 description: Properties - [[HasOwnProperty]] (property does not exist) ---*/ - var o = {}; +var o = {}; assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js index 0e5e905e3aa9c86b528a0f06d52fb4a536350ec3..ae6b1928abb5fd76bce32c5db8d0984a79cad459 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js @@ -8,7 +8,11 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js index d4f3d39034abdafc9be518eaabccb32c83e65dc3..2b78847eb45d9819791803685e82886e69b6d88e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js @@ -8,7 +8,12 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js index 99004855e560868d59eed74f3676ac0210514428..a462ab1992a4232a62c1a73cb73de927b712c43e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js @@ -8,8 +8,10 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42 +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js index c12d0c3440142f96529ad6c3daa7f127a0f24f6d..33cfbaac2628310c0f3a3607f3a583749ab13b6c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js @@ -8,8 +8,11 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js index 0dcb8a61a1c4dd3c732a39fbe94b9097741b5344..f021397a306cc094e838d68ecc0626501c2d3930 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js @@ -8,8 +8,11 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js index 54baa8f1a408e25b3fd52668f1af34e80f3da7a0..5086fe3bd7bb673dec05d93afacc555cd131f780 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js @@ -8,8 +8,11 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js index 6474f7f8091c15ea13db2a3fa5691d51cfa855f0..397f69ab035aa0f33d62191f4a890ac337190e3d 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js @@ -8,8 +8,12 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, configurable:true, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + configurable: true, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js index ac6c14ab3876be81ca82269275bfd33cca35b578..36c5ce1b674d6c0800255a45590bf761aced5968 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js @@ -8,8 +8,12 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js index 8b8120c5ce04b08dda42d6c374815b43fb565240..521513632d89370e901ad850c4c0249bcbcb1500 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js @@ -8,8 +8,12 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js index 6eec46644eb40713f006baeb2a18ba46312efab8..bda83b039c96850ebfe97baa7b7950eaa7b46b42 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js @@ -8,8 +8,13 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js index 9e51b6eb9c946fef9fe9bed7f8c6f994f59daab3..a10bb3821b75ff28da55d2879a372e308a168782 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js @@ -6,6 +6,8 @@ es5id: 8.12.1-1_2 description: Properties - [[HasOwnProperty]] (old style own property) ---*/ - var o = {foo: 42}; +var o = { + foo: 42 +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js index 4c6c466f3ab69ec92c43cc5a890714edc9e394a8..60febfc144d614aa877d52c144cb7b6105b605fd 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js @@ -6,6 +6,10 @@ es5id: 8.12.1-1_20 description: Properties - [[HasOwnProperty]] (literal own getter property) ---*/ - var o = { get foo() { return 42;} }; +var o = { + get foo() { + return 42; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js index aa8236e3bcdfdd8c1af90f2273e2045f6b52996b..f8795d0f58c97af9864d962d8db658db0aa8e2a0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js @@ -6,6 +6,9 @@ es5id: 8.12.1-1_21 description: Properties - [[HasOwnProperty]] (literal own setter property) ---*/ - var o = { set foo(x) {;} }; +var o = { + set foo(x) {; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js index b23a22bfc3fa3078891b5c34c72f3299f158c786..e18229b912f298c76ce42d8aa799b695df9c59ee 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js @@ -8,6 +8,12 @@ description: > property) ---*/ - var o = { get foo() { return 42;}, set foo(x) {;} }; +var o = { + get foo() { + return 42; + }, + set foo(x) {; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js index 4e2587b1c1a35857c367355f9c5134801378dbb6..7f025a822e94a023c96b35d8f12f1473456a2d00 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js @@ -6,7 +6,11 @@ es5id: 8.12.1-1_23 description: Properties - [[HasOwnProperty]] (literal inherited getter property) ---*/ - var base = { get foo() { return 42;} }; - var o = Object.create(base); +var base = { + get foo() { + return 42; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js index cf1cac60b222b4256639be23753c78af80bace0c..641f96b321bae4512dc8c6b90806db594b05592c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js @@ -6,7 +6,10 @@ es5id: 8.12.1-1_24 description: Properties - [[HasOwnProperty]] (literal inherited setter property) ---*/ - var base = { set foo(x) {;} }; - var o = Object.create(base); +var base = { + set foo(x) {; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js index fdb1e6d3a4efef643d654db763bc02f0a2a55a0b..e2620ce47e2d90ac6339f10968c34ae87e6e3d57 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js @@ -8,7 +8,13 @@ description: > property) ---*/ - var base = { get foo() { return 42;}, set foo(x) {;} }; - var o = Object.create(base); +var base = { + get foo() { + return 42; + }, + set foo(x) {; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js index fd15435b5c41afcffac76c7d14a9ed5b957c7c53..a80a3462349825dc3348eabe36cfde305f2d9ab1 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js @@ -8,7 +8,11 @@ description: > own getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js index 6d8b4634de70da69f408e2617171f75ab6557e3f..5940f377eaa904d297fbaa982327669fca838316 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js @@ -8,7 +8,12 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js index 19bcb8142d8849ae9dcccc8eb8fd3e69493a8060..122313417e74dc18166d474300fffae79a60c105 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js @@ -8,7 +8,12 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js index 01587705d137915b778e3955711361944a67790a..d048b990fdb9ca5221e4b842bf62967d44d17c08 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js @@ -8,7 +8,13 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js index 8c851da5a0248d1a57984c74fd31120d77ff8013..5e30010643fc4faefab91176f372b0ab975a4e3f 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js @@ -6,7 +6,9 @@ es5id: 8.12.1-1_3 description: Properties - [[HasOwnProperty]] (old style inherited property) ---*/ - var base = {foo:42}; - var o = Object.create(base); +var base = { + foo: 42 +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js index 5d12f52ff7f2a5b433101e2b0aa2a806f91c9826..7cc54bf8c1257c37d2aa4ab31cfa60ca08fdb76c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js @@ -8,7 +8,10 @@ description: > own setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js index 0e9e305753267856d7acc9a8264debe3aa3fb3db..915cf98a0cb858e01e1781bc7b8f179d06d81e8d 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js @@ -8,7 +8,11 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js index f0a345b0be18f2d20ab6cf937d5e0434f51f2b1e..0723ab84b55e180aef791b6d10812481ac9f9d30 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js @@ -8,7 +8,11 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js index 1b7e60c21ad98ebdad68fc6335a9d8508d874522..1cdaa72f689c70f53e82b366ae781bc88adb428b 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js @@ -8,7 +8,12 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js index 2b34bf9b6201088f216b59a4cc88305d1169bdc0..4fb47b26e568bcd32605920ac358a725e0db0b97 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js @@ -8,7 +8,13 @@ description: > own getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js index 01ef0ead2d0eca4ac81affd78a5804f9a688b05f..5479c80e4616ad3f5d730f3a5afb4f05a5599e99 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js @@ -8,7 +8,14 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js index a077628697d2c641d9958861e32177479231f396..43f18c8eb4feeb29b982853083ddb7fde158c003 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js @@ -8,7 +8,14 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js index 1938b5a2c53c87a4c3ab773e9b2adb9608b5f1ab..518209e48610bce4c1283781a10a0547d46eb0cc 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js @@ -8,7 +8,15 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js index 801ecdaeed802e897f29fca9bb00d51c1d789730..2c9bbbfbb04a639c887e9054f0cf4b66aa1a51b2 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js @@ -8,8 +8,12 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js index 5a0e15903c13daf02c772bbb1f0aa60d3eb7e5b6..1fbdea76396e15b6a0de3903838d234de67553b3 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js @@ -8,8 +8,13 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js index dac63b0297a994b717329b5978dcb1ae30e715d5..ecb418e5b6e491826e9f461c3dedb2a157eb9136 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js @@ -8,7 +8,9 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42 +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js index a04fd436964cfcccf5788d452147f5090b65e574..b2f7e70bcf91b6f4f5a83061cfdbc74453456974 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js @@ -8,8 +8,13 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js index bf0dbd47daa4093e912d2824045867a83175d1bf..9e94e6664526023ec2ab0ba319e8c98dcfdd1bbe 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js @@ -8,8 +8,14 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js index 97bab311fc8ce2505194cfe610a5e7cae790ecfd..705516ffb00d195ee493ad3dfaa8cddf18c9d6ab 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js @@ -8,8 +8,11 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js index baa392b1fd8bc1940d07412079530e72ea38f79d..a66ec81a8f775e803bb6d5f4e99e5ed0a6ceb25f 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js @@ -8,8 +8,12 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js index 07b368234ad1dd79b4fd6aeca9ac317edfb31593..111459fe256fb5d895423789d6cd8db41df213db 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js @@ -8,8 +8,12 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js index 68c0517ccb46b5f4577372ebc39da5223251c7a0..1e160d7bbf93b661f84f8bcd1cc75b65d554648f 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js @@ -8,8 +8,13 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js index 1ff589a9b7f71ee4fb075f3e473573eac0e45fa3..aaecbc8cc0ebc14bff28a6e7377f7184fdb4e97f 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js @@ -8,8 +8,14 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js index 16bc5d71b5002c7c6ca79b9f9f403b7c091eff09..abbb759e013e6c7f98e7f383f4baccf963ad1856 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js @@ -8,8 +8,15 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js index 0a9c741ff3f4419292a61e7c348e4cf16dc9eb0e..7f69fbd290fea6dfd33ea80ae241477e8b50fdd7 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js @@ -8,8 +8,15 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js index d492e9ee878198ccf86846f1af4e8f2afd950e21..b8a66b8d5be609cd49c383bae82f0a64bd5f58ab 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js @@ -8,8 +8,16 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js index 19d6229e93af425b3add4b2d663a499cb01ea49a..4a11bd83f8e9ba319ab7764ad7cda503974be0cb 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js @@ -8,7 +8,10 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js index 76bd5649c07227cf42d8b487bebb9bc4097df173..09a91470deae203571bf4359c39d660a3b759867 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js @@ -8,7 +8,10 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js index 8c6ea68847e086ab8d67bc997928969fa165e288..34350c2f1636bca58a4cf462678585cc53149037 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js @@ -8,7 +8,10 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js index 384f1c801e8f6388a808605f22592f3d11065579..633ea11815e92036c46b4f0eb7aa36c4ef02ee47 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js @@ -8,7 +8,11 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, configurable:true, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + configurable: true, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js index e17903b7c05edec80a3a8743d9897fa9778a60ac..12dcc4500863f2f7c2a289a848d337d0a619e085 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js @@ -8,7 +8,11 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js index fee99fa5b9f10fff4f8a490e4c27a9499d4bb474..67b8c7ae86c202c085431297c81da894d9f6d58b 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.hasOwnProperty.hasOwnProperty('length'))) { var obj = Object.prototype.hasOwnProperty.length; -verifyNotWritable(Object.prototype.hasOwnProperty, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.hasOwnProperty, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.hasOwnProperty.length !== obj) { diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js index 27b0f780b79bf41b0c244684be2bb88d775bf9b2..7fa88ceae1939b93390ebe4be046384a5ae68e1b 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js @@ -17,7 +17,9 @@ if (typeof Object.prototype.hasOwnProperty !== "function") { $ERROR('#1: hasOwnProperty method is defined'); } -var obj = {the_property:true}; +var obj = { + the_property: true +}; //CHECK#2 if (typeof obj.hasOwnProperty !== "function") { diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js index dbe38a78de6d72e5973ca873c1ce071b5fdec753..9108ec9627873f89b48dc8bb145ea2d22e3f393c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js @@ -14,8 +14,8 @@ description: > function object ---*/ -var FACTORY = function(){ - this.aproperty = 1; +var FACTORY = function() { + this.aproperty = 1; }; var instance = new FACTORY; diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js index e494320031fc9e7bfe00215ec3fcbdc579ce3f37..9318f232191d776264880634104571412d3856c2 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.hasOwnProperty.prototype !== undefined) { - $ERROR('#1: Object.prototype.hasOwnProperty has not prototype property'+Object.prototype.hasOwnProperty.prototype); + $ERROR('#1: Object.prototype.hasOwnProperty has not prototype property' + Object.prototype.hasOwnProperty.prototype); } // diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js index a4df74d40dfd2902628a9ea05c06669e8c97f234..78e7282692b83d64a834eabba080eccd399b98bf 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A8.js @@ -23,8 +23,8 @@ if (Object.prototype.hasOwnProperty.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.hasOwnProperty){ - if (p==="length") - $ERROR('#2: the Object.prototype.hasOwnProperty.length property has the attributes DontEnum'); +for (var p in Object.prototype.hasOwnProperty) { + if (p === "length") + $ERROR('#2: the Object.prototype.hasOwnProperty.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js index 1b87a6c6eb2ca1dab7786aabe0a7b454057564da..5f27c33bf98270f509f7afe3670008b7c4a60657 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js @@ -9,16 +9,20 @@ es5id: 15.2.4.6_A1 description: Creating two objects with the same prototype ---*/ -function USER_FACTORY( name ) { +function USER_FACTORY(name) { this.name = name; - this.getName=function(){return name;}; + this.getName = function() { + return name; + }; } -function FORCEDUSER_FACTORY( name, grade ) { - this.name = name; +function FORCEDUSER_FACTORY(name, grade) { + this.name = name; this.grade = grade; - this.getGrade=function(){return grade;}; + this.getGrade = function() { + return grade; + }; } var proto = new USER_FACTORY("noname"); @@ -48,7 +52,7 @@ assert.sameValue( ///////// ////// // CHECK#3 -if(Number.isPrototypeOf(luke)){ +if (Number.isPrototypeOf(luke)) { $ERROR('#2: Native ECMAScript objects have an internal property called [[Prototype]].'); } // diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js index 264eead2ecb66e3a91fba117e55b1779514363ac..a1d7281691b40e77e9e2137d307b38478e58028c 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) { var obj = Object.prototype.isPrototypeOf.length; -verifyNotWritable(Object.prototype.isPrototypeOf, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.isPrototypeOf, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.isPrototypeOf.length !== obj) { diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js index dd63755a1f58d0aeb8f63462e43f714daafd4e2b..3ab10f971fa4cfb1467346a79f103048be937ffa 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.isPrototypeOf.prototype !== undefined) { - $ERROR('#1: Object.prototype.isPrototypeOf has not prototype property'+Object.prototype.isPrototypeOf.prototype); + $ERROR('#1: Object.prototype.isPrototypeOf has not prototype property' + Object.prototype.isPrototypeOf.prototype); } // diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js index c50e0a0979ee116e9d01d394e5fc8143f5f1c8cb..8c959469bd3fe2436ac6fd3c6818bcd64bbfcdc9 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A8.js @@ -23,8 +23,8 @@ if (Object.prototype.isPrototypeOf.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.isPrototypeOf){ - if (p==="length") - $ERROR('#2: the Object.prototype.isPrototypeOf.length property has the attributes DontEnum'); +for (var p in Object.prototype.isPrototypeOf) { + if (p === "length") + $ERROR('#2: the Object.prototype.isPrototypeOf.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js index 6450d5b30c6d3c2b6a6bea8c2d9b198bdf3ec1e5..8bef9171c9d3d45a45674dd2b64db7b9d6c8376e 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { var obj = Object.prototype.propertyIsEnumerable.length; -verifyNotWritable(Object.prototype.propertyIsEnumerable, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.propertyIsEnumerable, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.propertyIsEnumerable.length !== obj) { diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js index a28b7c62147f6630274117633b2103e3663c8400..a571b5a29715af3066e6b9f01807cd5bf904429f 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js @@ -16,13 +16,17 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") { $ERROR('#1: propertyIsEnumerable method is defined'); } -var proto={rootprop:"avis"}; +var proto = { + rootprop: "avis" +}; -function AVISFACTORY(name){this.name=name}; +function AVISFACTORY(name) { + this.name = name +}; AVISFACTORY.prototype = proto; -var seagull= new AVISFACTORY("seagull"); +var seagull = new AVISFACTORY("seagull"); //CHECK#2 if (typeof seagull.propertyIsEnumerable !== "function") { diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js index 5df54cfcc94f80d1f99e02483cc97e6b4315235a..16aa7b4e2770a807b6dfd8a1f8a36592e66f05ce 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js @@ -20,7 +20,9 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") { $ERROR('#1: propertyIsEnumerable method is defined'); } -var obj = {the_property:true}; +var obj = { + the_property: true +}; //CHECK#2 if (typeof obj.propertyIsEnumerable !== "function") { @@ -33,11 +35,11 @@ if (!(obj.propertyIsEnumerable("the_property"))) { } //CHECK#4 -var accum=""; -for(var prop in obj) { - accum+=prop; +var accum = ""; +for (var prop in obj) { + accum += prop; } -if (accum.indexOf("the_property")!==0) { +if (accum.indexOf("the_property") !== 0) { $ERROR('#4: enumerating works properly'); } // diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js index 4e093cda92f91b7b49b87e0654dfc001f386c04a..001f70b48e0ee2e8c27a8ff4926f0bda4bd2cca9 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.propertyIsEnumerable.prototype !== undefined) { - $ERROR('#1: Object.prototype.propertyIsEnumerable has not prototype property'+Object.prototype.propertyIsEnumerable.prototype); + $ERROR('#1: Object.prototype.propertyIsEnumerable has not prototype property' + Object.prototype.propertyIsEnumerable.prototype); } // diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js index a9a87c5da7edf30aab4a5905f520ca38c71caf73..70465fab8e1f639586e03874fd769bea90cd5c59 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A8.js @@ -23,8 +23,8 @@ if (Object.prototype.propertyIsEnumerable.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.propertyIsEnumerable){ - if (p==="length") - $ERROR('#2: the Object.prototype.propertyIsEnumerable.length property has the attributes DontEnum'); +for (var p in Object.prototype.propertyIsEnumerable) { + if (p === "length") + $ERROR('#2: the Object.prototype.propertyIsEnumerable.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js index 9f81cd5987f5ae7eabef2112e02787aedfa9a561..c1fad81ff31615e0dcebd012d4df560a103a8dfa 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A1.js @@ -20,6 +20,6 @@ if (Object.prototype.toLocaleString() !== Object.prototype.toString()) { } //CHECK#2 -if ({}.toLocaleString()!=={}.toString()) { +if ({}.toLocaleString() !== {}.toString()) { $ERROR('#2: toLocaleString function returns the result of calling toString()'); } diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js index e07bb39a19191c7fbcda2294880d0664130a68ea..874c1a86a1239f31505b711b417b170c2d5bd6cc 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) { var obj = Object.prototype.toLocaleString.length; -verifyNotWritable(Object.prototype.toLocaleString, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.toLocaleString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.toLocaleString.length !== obj) { diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js index 2ba063780694a6caa1b47a23c1105628030b63ed..21474c3d61af9ff23f8f5868a5003336a6a0fa1d 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.toLocaleString.prototype !== undefined) { - $ERROR('#1: Object.prototype.toLocaleString has not prototype property'+Object.prototype.toLocaleString.prototype); + $ERROR('#1: Object.prototype.toLocaleString has not prototype property' + Object.prototype.toLocaleString.prototype); } // diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js index adddc36be9fe0031309156561eebac5a88369c1d..4e6402e8ce3361a929a1a13fe6bc79361956aa32 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A8.js @@ -23,8 +23,8 @@ if (Object.prototype.toLocaleString.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.toLocaleString){ - if (p==="length") - $ERROR('#2: the Object.prototype.toLocaleString.length property has the attributes DontEnum'); +for (var p in Object.prototype.toLocaleString) { + if (p === "length") + $ERROR('#2: the Object.prototype.toLocaleString.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js index d9aea6b89ebe8c76616d00b184bb73478bb05819..6aee4b33063f1c5f6efbc5d11244df22c69be2f9 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A1.js @@ -19,11 +19,11 @@ if (typeof Object.prototype.toString !== "function") { } //CHECK#2 -if (Object.prototype.toString() !=="[object "+"Object"+"]") { +if (Object.prototype.toString() !== "[object " + "Object" + "]") { $ERROR('#2: return a string value by concatenating the three strings "[object ", the [[Class]] property of this object, and "]"'); } //CHECK#3 -if ({}.toString()!=="[object "+"Object"+"]") { +if ({}.toString() !== "[object " + "Object" + "]") { $ERROR('#3: return a string value by concatenating the three strings "[object ", the [[Class]] property of this object, and "]"'); } diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js index 9478a50d76cb47a0dde94ffbe24ab83812b82c8c..39321f6206e87cb89ecc548d6bd974954c6fd730 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js @@ -17,7 +17,9 @@ if (!(Object.prototype.toString.hasOwnProperty('length'))) { var obj = Object.prototype.toString.length; -verifyNotWritable(Object.prototype.toString, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.toString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.toString.length !== obj) { diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js index 86e338520da639d80d758ef27cfd8dd9d762d2aa..496eec11b942ce317d935762e9379ef2b56be008 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js @@ -10,5 +10,5 @@ description: > if (Object.prototype.toString.call(33) !== "[object Number]") { $ERROR('Let O be the result of calling ToObject passing the this ' + - 'value as the argument.'); + 'value as the argument.'); } diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js index 37eedc92a8f3908be3d48941ed1e32bffc68c7b8..078962da36aa1ca74696dec66284fbe285228674 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A15.js @@ -10,5 +10,5 @@ description: > if (Object.prototype.toString.call(true) !== "[object Boolean]") { $ERROR('Let O be the result of calling ToObject passing the this ' + - 'value as the argument.'); + 'value as the argument.'); } diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js index c1081121ca77bd3d81f06dcbde6dd2a3ae7e575b..616a35f091775520235fdb30af3e4c6c35ef5b05 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A16.js @@ -10,5 +10,5 @@ description: > if (Object.prototype.toString.call('foo') !== "[object String]") { $ERROR('Let O be the result of calling ToObject passing the this ' + - 'value as the argument.'); + 'value as the argument.'); } diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js index 08a81d649f52892bf1df1dabd50061c24b18851e..6c8e0d7ad1ccd269c00667722b68a071e941ea50 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.toString.prototype !== undefined) { - $ERROR('#1: Object.prototype.toString has not prototype property'+Object.prototype.toString.prototype); + $ERROR('#1: Object.prototype.toString has not prototype property' + Object.prototype.toString.prototype); } // diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js index 5432ecd3b70ded8c73750d8385623b26d4eb8f71..8a38eaa0eb57764e89beac4d64effebd8d6a5369 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A8.js @@ -21,8 +21,8 @@ if (Object.prototype.toString.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.toString){ - if (p==="length") - $ERROR('#2: the Object.prototype.toString.length property has the attributes DontEnum'); +for (var p in Object.prototype.toString) { + if (p === "length") + $ERROR('#2: the Object.prototype.toString.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js b/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js index 6297a4aeb906c4aacd95a02bf317a5541383eb22..ae3d4adc90628507b2596d503eb970671a9efe2b 100644 --- a/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js +++ b/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js @@ -34,5 +34,9 @@ assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); custom[Symbol.toStringTag] = {}; assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); -custom[Symbol.toStringTag] = { toString: function() { return 'str'; } }; +custom[Symbol.toStringTag] = { + toString: function() { + return 'str'; + } +}; assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); diff --git a/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js b/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js index 48d20a4198d9be29fcb65c91ac7e58a69841ff47..26f9f4bbf585be2987bee7dee79a76563dda48c1 100644 --- a/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js +++ b/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js @@ -24,7 +24,9 @@ custom = new String(); custom[Symbol.toStringTag] = 'test262'; assert.sameValue(Object.prototype.toString.call(custom), '[object test262]'); -custom = (function() { return arguments; }()); +custom = (function() { + return arguments; +}()); custom[Symbol.toStringTag] = 'test262'; assert.sameValue(Object.prototype.toString.call(custom), '[object test262]'); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js index 83df8a3bdd69f36f8db9edb5a0cb1551c4c59f43..c8d3c25a5bb3334b613c9fcc100097cfdfb341f9 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js @@ -17,7 +17,9 @@ if (!(Object.prototype.valueOf.hasOwnProperty('length'))) { var obj = Object.prototype.valueOf.length; -verifyNotWritable(Object.prototype.valueOf, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.valueOf, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.valueOf.length !== obj) { diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js index a041be8bf40671cebd52e4fa25523ce86ae998d3..b09d95dea9f568ecd096b4edf87517d24f6de94d 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js @@ -10,5 +10,5 @@ description: Checking Object.prototype.valueOf invoked by the 'call' property. ---*/ assert.throws(TypeError, function() { - Object.prototype.valueOf.call(undefined); + Object.prototype.valueOf.call(undefined); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js index f576d726f58dc029b2d976d0ab989f5bb0360230..bff652786d4fde775a3209df42f1a06bd278f274 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A14.js @@ -10,5 +10,5 @@ description: Checking Object.prototype.valueOf invoked by the 'call' property. ---*/ assert.throws(TypeError, function() { - (1,Object.prototype.valueOf)(); + (1, Object.prototype.valueOf)(); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js index 4b296a9c20f62f8cd493fe2bc3bc0321608aceea..147a31aee406845f4f77d308757e3ae3a0b8cbb9 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A15.js @@ -12,5 +12,5 @@ description: Checking Object.prototype.valueOf when called as a global function. var v = Object.prototype.valueOf; assert.throws(TypeError, function() { - v(); + v(); }); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js index b138c58dc4c48e01327d0e1e1acfc8ca2fa6d859..31e763a47477e3ad193a0c0c405931f3f5f1f4e6 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T1.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(1.1); +var obj = new Object(1.1); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==1.1) { +if (obj.valueOf() !== 1.1) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js index 7cddd7100a41dcea724877ea9d59398846546065..116cfeec6ba00f80a0b7c9bbb2a5343d4bf9097f 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T2.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(true); +var obj = new Object(true); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==true) { +if (obj.valueOf() !== true) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js index 0374674c8cc972f6bcfb993e7b75c5d0f2aa2c02..7a62551a31cb3c003f9a331e00dc937810ba9532 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object("greenfield"); +var obj = new Object("greenfield"); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!=="greenfield") { +if (obj.valueOf() !== "greenfield") { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js index 0c1e630620b0c05bcc66ba6cd94fd212c91a82cd..b5e10ce3f852ef7c300ddaeb14bc2a9b5078209f 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T4.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object; +var obj = new Object; //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==obj) { +if (obj.valueOf() !== obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js index 4ab7b5b4f5ae5f231fa1648f5bafe96b9ec962bb..ad158cea2635d81668b62f2f74934351e2247074 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T5.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(null); +var obj = new Object(null); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==obj) { +if (obj.valueOf() !== obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js index bbf95febdd71f78e1cb98b4b0a8dc879260bec2e..b371d63d087c163faeff75d2e0967b79bf0425a4 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T6.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(undefined); +var obj = new Object(undefined); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==obj) { +if (obj.valueOf() !== obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js index e8a24606466b0acbd2e8128a1ae457fea5835379..61befa57cd31f85ed06032e3575023a256151e66 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T7.js @@ -12,7 +12,7 @@ if (typeof Object.prototype.valueOf !== "function") { $ERROR('#1: valueOf method defined'); } -var obj=new Object(void 0); +var obj = new Object(void 0); //CHECK#2 if (typeof obj.valueOf !== "function") { @@ -20,6 +20,6 @@ if (typeof obj.valueOf !== "function") { } //CHECK#3 -if (obj.valueOf()!==obj) { +if (obj.valueOf() !== obj) { $ERROR('#3: The valueOf method returns its this value'); } diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js index b9cc6e21f9f957387d2113051ce73ea7148edc90..931f2d41f5a847f29a83c7d342fe9d981e0acdc7 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A6.js @@ -11,6 +11,6 @@ description: > //CHECK#1 if (Object.prototype.valueOf.prototype !== undefined) { - $ERROR('#1: Object.prototype.valueOf has not prototype property'+Object.prototype.valueOf.prototype); + $ERROR('#1: Object.prototype.valueOf has not prototype property' + Object.prototype.valueOf.prototype); } // diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js index 384ef8319766a2302bea07e72b318e6f567219f5..424e643306063ff168e445bbf0a9f24232928ef3 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A8.js @@ -21,8 +21,8 @@ if (Object.prototype.valueOf.propertyIsEnumerable('length')) { } // CHECK#2 -for (var p in Object.prototype.valueOf){ - if (p==="length") - $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum'); +for (var p in Object.prototype.valueOf) { + if (p === "length") + $ERROR('#2: the Object.prototype.valueOf.length property has the attributes DontEnum'); } // diff --git a/test/built-ins/Object/seal/15.2.3.8-0-1.js b/test/built-ins/Object/seal/15.2.3.8-0-1.js index 4bfadadecaa5376c9bc7020759fe58ca90dd47eb..cac02cc1f319dbe5fa25fbf391840c7e4f450d42 100644 --- a/test/built-ins/Object/seal/15.2.3.8-0-1.js +++ b/test/built-ins/Object/seal/15.2.3.8-0-1.js @@ -6,6 +6,6 @@ es5id: 15.2.3.8-0-1 description: Object.seal must exist as a function ---*/ - var f = Object.seal; +var f = Object.seal; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/Object/seal/15.2.3.8-1-1.js b/test/built-ins/Object/seal/15.2.3.8-1-1.js index f07811dfd9e7330abba6e26b68d31a5b8d4b1c6c..58a6938a6a66906e47a8c7e252bbd7ac306ee9d8 100644 --- a/test/built-ins/Object/seal/15.2.3.8-1-1.js +++ b/test/built-ins/Object/seal/15.2.3.8-1-1.js @@ -8,4 +8,4 @@ description: > undefined ---*/ - Object.seal(undefined); +Object.seal(undefined); diff --git a/test/built-ins/Object/seal/15.2.3.8-1-2.js b/test/built-ins/Object/seal/15.2.3.8-1-2.js index 25391eeffd2171ee5bce91237f6ba2befe329024..d28014c5edd5ed6ecbfec70e99901fe6e7476424 100644 --- a/test/built-ins/Object/seal/15.2.3.8-1-2.js +++ b/test/built-ins/Object/seal/15.2.3.8-1-2.js @@ -6,4 +6,4 @@ es5id: 15.2.3.8-1-2 description: Object.seal does not throw TypeError if type of first param is null ---*/ - Object.seal(null); +Object.seal(null); diff --git a/test/built-ins/Object/seal/15.2.3.8-1-3.js b/test/built-ins/Object/seal/15.2.3.8-1-3.js index 66e063ba5bfdcbc48ef19e1bcc12d38b62c389a3..326915af3cbfc357be3d305a545522abbe91b657 100644 --- a/test/built-ins/Object/seal/15.2.3.8-1-3.js +++ b/test/built-ins/Object/seal/15.2.3.8-1-3.js @@ -8,4 +8,4 @@ description: > boolean primitive ---*/ - Object.seal(false); +Object.seal(false); diff --git a/test/built-ins/Object/seal/15.2.3.8-1-4.js b/test/built-ins/Object/seal/15.2.3.8-1-4.js index feaddddbc75b28fab8c768b80eea38af6c925d07..072c6d88cc1670d313c6d6d45005ab2431c39af1 100644 --- a/test/built-ins/Object/seal/15.2.3.8-1-4.js +++ b/test/built-ins/Object/seal/15.2.3.8-1-4.js @@ -8,4 +8,4 @@ description: > string primitive ---*/ - Object.seal("abc"); +Object.seal("abc"); diff --git a/test/built-ins/Object/seal/15.2.3.8-1.js b/test/built-ins/Object/seal/15.2.3.8-1.js index 039762df677b0ecd26b69d97f6f3c99d42b0559b..3a31ff959f88ef63ee7ea58c84eede6b0ddc58c1 100644 --- a/test/built-ins/Object/seal/15.2.3.8-1.js +++ b/test/built-ins/Object/seal/15.2.3.8-1.js @@ -8,4 +8,4 @@ description: > Object ---*/ - Object.seal(0); +Object.seal(0); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-1.js b/test/built-ins/Object/seal/15.2.3.8-2-1.js index 3d5a840ecb9f5f0dd9fa125d4e2726f6e0549905..200d09e934d384cbbc89f0425f549153bb3ca658 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-1.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-1.js @@ -8,11 +8,11 @@ description: > own property ---*/ - var obj = {}; +var obj = {}; - var preCheck = Object.isExtensible(obj); +var preCheck = Object.isExtensible(obj); - Object.seal(obj); +Object.seal(obj); assert(preCheck, 'preCheck !== true'); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-2.js b/test/built-ins/Object/seal/15.2.3.8-2-2.js index 24397984a6f993927814f25683599663ea5af151..0fe3efb0abefc7cd55302620860c71724fd3c97c 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-2.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-2.js @@ -6,23 +6,23 @@ es5id: 15.2.3.8-2-2 description: Object.seal - inherited data properties are ignored ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "Father", { - value: 10, - configurable: true - }); +Object.defineProperty(proto, "Father", { + value: 10, + configurable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - var preCheck = Object.isExtensible(child); - Object.seal(child); +var child = new ConstructFun(); +var preCheck = Object.isExtensible(child); +Object.seal(child); - var beforeDeleted = proto.hasOwnProperty("Father"); - delete proto.Father; - var afterDeleted = proto.hasOwnProperty("Father"); +var beforeDeleted = proto.hasOwnProperty("Father"); +delete proto.Father; +var afterDeleted = proto.hasOwnProperty("Father"); assert(preCheck, 'preCheck !== true'); assert(beforeDeleted, 'beforeDeleted !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-3.js b/test/built-ins/Object/seal/15.2.3.8-2-3.js index 3341b0c9a490ab9cdb9eba5b5b82b2e838f05a09..5dff8563f6a37dc1fcf412fa50e3d75a38c861f7 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-3.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-3.js @@ -6,25 +6,25 @@ es5id: 15.2.3.8-2-3 description: Object.seal - inherited accessor properties are ignored ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "Father", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(proto, "Father", { + get: function() { + return 10; + }, + configurable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - var preCheck = Object.isExtensible(child); - Object.seal(child); +var child = new ConstructFun(); +var preCheck = Object.isExtensible(child); +Object.seal(child); - var beforeDeleted = proto.hasOwnProperty("Father"); - delete proto.Father; - var afterDeleted = proto.hasOwnProperty("Father"); +var beforeDeleted = proto.hasOwnProperty("Father"); +delete proto.Father; +var afterDeleted = proto.hasOwnProperty("Father"); assert(preCheck, 'preCheck !== true'); assert(beforeDeleted, 'beforeDeleted !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-4.js b/test/built-ins/Object/seal/15.2.3.8-2-4.js index 06898cc03eef07058a2ab262da4e77da205b0c72..27975e688f83008459725eb236b81736907ebf4f 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-4.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-4.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - enumerable: false, - configurable: true + value: 10, + enumerable: false, + configurable: true }); assert(Object.isExtensible(obj)); @@ -20,4 +20,3 @@ Object.seal(obj); assert(obj.hasOwnProperty("foo")); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-15.js b/test/built-ins/Object/seal/15.2.3.8-2-a-15.js index 338af82d85e86e2bf3e61ad0ca2ad9df7e9e8c4f..242a1c85c5e8781a52e298b9d21add3fe6fc68da 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-15.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-15.js @@ -9,7 +9,9 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { return arguments; })(); +var obj = (function() { + return arguments; +})(); obj.foo = 10; diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-2.js b/test/built-ins/Object/seal/15.2.3.8-2-a-2.js index fe49e04547fb53085b38f9ddc4b6ca20950d245d..61e30804f944a701e9a88be25cb6c32f306a8055 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-2.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-2.js @@ -9,15 +9,17 @@ description: > includes: [propertyHelper.js] ---*/ -var proto = { foo: 0 }; +var proto = { + foo: 0 +}; -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var obj = new ConstructFun(); Object.defineProperty(obj, "foo", { - value: 10, - configurable: true + value: 10, + configurable: true }); assert(Object.isExtensible(obj)); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-3.js b/test/built-ins/Object/seal/15.2.3.8-2-a-3.js index d019f9403d4da905d48a2c9750d1934f5f95071f..ee199e32ac52749432f7be707149cf2de4749f3c 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-3.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-3.js @@ -12,19 +12,19 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "foo", { - get: function () { - return 0; - }, - configurable: true + get: function() { + return 0; + }, + configurable: true }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var obj = new ConstructFun(); Object.defineProperty(obj, "foo", { - value: 10, - configurable: true + value: 10, + configurable: true }); assert(Object.isExtensible(obj)); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-4.js b/test/built-ins/Object/seal/15.2.3.8-2-a-4.js index 9710013470c02380932c13906671685d78ce53b7..8de827bd75fd1a70dd1189c5c653809c83d437b9 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-4.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-4.js @@ -10,10 +10,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - get: function () { - return 10; - }, - configurable: true + get: function() { + return 10; + }, + configurable: true }); assert(Object.isExtensible(obj)); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-5.js b/test/built-ins/Object/seal/15.2.3.8-2-a-5.js index 06c75c08761d7f9bab67ed2aa2d1f8f7e6d6fe63..c1057e13619b281219ad4ab9732e743699c9a209 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-5.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-5.js @@ -12,20 +12,20 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "foo", { - value: 0, - configurable: true + value: 0, + configurable: true }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var obj = new ConstructFun(); - + Object.defineProperty(obj, "foo", { - get: function () { - return 10; - }, - configurable: true + get: function() { + return 10; + }, + configurable: true }); assert(Object.isExtensible(obj)); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-6.js b/test/built-ins/Object/seal/15.2.3.8-2-a-6.js index f3966899edf75aa964780ef8e5b6dbf6e9dd01c6..7318061ce0451af08b6b863d97bad6b573d62bb0 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-6.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-6.js @@ -12,22 +12,22 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "foo", { - get: function () { - return 0; - }, - configurable: true + get: function() { + return 0; + }, + configurable: true }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var obj = new ConstructFun(); Object.defineProperty(obj, "foo", { - get: function () { - return 10; - }, - configurable: true + get: function() { + return 10; + }, + configurable: true }); assert(Object.isExtensible(obj)); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-7.js b/test/built-ins/Object/seal/15.2.3.8-2-a-7.js index 24b01f1edce24caa11ed80ef4a4053163df154a8..808ffc80f7b62db90477fea742d8481526db684e 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-7.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-7.js @@ -9,7 +9,7 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = function () { }; +var obj = function() {}; obj.foo = 10; diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-1.js b/test/built-ins/Object/seal/15.2.3.8-2-b-1.js index 58e43d747d02eb9816943e6a18cd9adea7223879..ab00a63d0f039f39357dbf37c0bd2bc18788704c 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-b-1.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-b-1.js @@ -13,16 +13,16 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - writable: true, - enumerable: true, - configurable: true + value: 10, + writable: true, + enumerable: true, + configurable: true }); var preCheck = Object.isExtensible(obj); Object.seal(obj); if (!preCheck) { - $ERROR('Expected preCheck to be true, actually ' + preCheck); + $ERROR('Expected preCheck to be true, actually ' + preCheck); } verifyEqualTo(obj, "foo", 10); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-2.js b/test/built-ins/Object/seal/15.2.3.8-2-b-2.js index 1ca3c0fc348ed7f904c14212787b27b2a935d96c..b86a51857d68f9e46d18bec7ea4397906c8cf630 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-b-2.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-b-2.js @@ -14,22 +14,23 @@ var obj = {}; obj.variableForHelpVerify = "data"; function setFunc(value) { - obj.variableForHelpVerify = value; + obj.variableForHelpVerify = value; } + function getFunc() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var preCheck = Object.isExtensible(obj); Object.seal(obj); if (!preCheck) { - $ERROR('Expected preCheck to be true, actually ' + preCheck); + $ERROR('Expected preCheck to be true, actually ' + preCheck); } verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-3.js b/test/built-ins/Object/seal/15.2.3.8-2-b-3.js index 963931fa45dbaade4240cdbe29835a4748988520..2576f3ebac73e9ed5a0bf6854634da8c5a7ccc60 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-b-3.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-b-3.js @@ -14,29 +14,30 @@ var obj = {}; obj.variableForHelpVerify = "data"; Object.defineProperty(obj, "foo1", { - value: 10, - writable: true, - enumerable: true, - configurable: true + value: 10, + writable: true, + enumerable: true, + configurable: true }); function set_func(value) { - obj.variableForHelpVerify = value; + obj.variableForHelpVerify = value; } + function get_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); var preCheck = Object.isExtensible(obj); Object.seal(obj); if (!preCheck) { - $ERROR('Expected preCheck to be true, actually ' + preCheck); + $ERROR('Expected preCheck to be true, actually ' + preCheck); } diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-4.js b/test/built-ins/Object/seal/15.2.3.8-2-b-4.js index 5d455e9eb3971b86760b33eb9cbae5bce32ee3fc..4de248b106983366c3bdc20d47aef75d012e9d42 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-b-4.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-b-4.js @@ -13,33 +13,34 @@ var obj = {}; obj.variableForHelpVerify = "data"; Object.defineProperty(obj, "foo1", { - value: 10, - writable: true, - enumerable: true, - configurable: false + value: 10, + writable: true, + enumerable: true, + configurable: false }); function set_func(value) { - obj.variableForHelpVerify = value; + obj.variableForHelpVerify = value; } + function get_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: false + get: get_func, + set: set_func, + enumerable: true, + configurable: false }); if (!Object.isExtensible(obj)) { - $ERROR('Expected obj to be extensible, actually ' + Object.isExtensible(obj)); + $ERROR('Expected obj to be extensible, actually ' + Object.isExtensible(obj)); } Object.seal(obj); if (Object.isExtensible(obj)) { - $ERROR('Expected obj NOT to be extensible, actually ' + Object.isExtensible(obj)); + $ERROR('Expected obj NOT to be extensible, actually ' + Object.isExtensible(obj)); } verifyEqualTo(obj, "foo1", 10); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-1.js b/test/built-ins/Object/seal/15.2.3.8-2-c-1.js index fe0eb6cfa77c2fd6e31412b29e8f875c48efe029..514456a666c7c4d04ea29aacf0b68ffb3c7d08cd 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-1.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-1.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-1 description: Object.seal - 'O' is a Function object ---*/ - var fun = function () { }; - var preCheck = Object.isExtensible(fun); - Object.seal(fun); +var fun = function() {}; +var preCheck = Object.isExtensible(fun); +Object.seal(fun); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(fun), 'Object.isSealed(fun) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-2.js b/test/built-ins/Object/seal/15.2.3.8-2-c-2.js index 963717c00b30ff02e5ac918f80612402951c65c1..49a8aef6df9e0e6e5af428f5645bc09a69b4dc9b 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-2.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-2.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-2 description: Object.seal - 'O' is an Array object ---*/ - var arr = [0, 1]; - var preCheck = Object.isExtensible(arr); - Object.seal(arr); +var arr = [0, 1]; +var preCheck = Object.isExtensible(arr); +Object.seal(arr); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(arr), 'Object.isSealed(arr) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-3.js b/test/built-ins/Object/seal/15.2.3.8-2-c-3.js index f967549d50a35bf1b2b35a5e4f2107d647b05edf..447a2d5fd0cc2df3dcc274c80f52147f1822cd37 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-3.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-3.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-3 description: Object.seal - 'O' is a String object ---*/ - var strObj = new String("a"); - var preCheck = Object.isExtensible(strObj); - Object.seal(strObj); +var strObj = new String("a"); +var preCheck = Object.isExtensible(strObj); +Object.seal(strObj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(strObj), 'Object.isSealed(strObj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-4.js b/test/built-ins/Object/seal/15.2.3.8-2-c-4.js index 5918c5c1f5a4f07d65cd57831fd7d09bdb61a631..a02152abd82b4fa9101e616065a070febc76641e 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-4.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-4.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-4 description: Object.seal - 'O' is a Boolean object ---*/ - var boolObj = new Boolean(false); - var preCheck = Object.isExtensible(boolObj); - Object.seal(boolObj); +var boolObj = new Boolean(false); +var preCheck = Object.isExtensible(boolObj); +Object.seal(boolObj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(boolObj), 'Object.isSealed(boolObj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-5.js b/test/built-ins/Object/seal/15.2.3.8-2-c-5.js index ece59ee7eaee479887cee282e5c64ea1f7491fb8..b602648cdf131fc7d3787e90914c8a49768392f2 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-5.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-5.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-5 description: Object.seal - 'O' is a Number object ---*/ - var numObj = new Number(3); - var preCheck = Object.isExtensible(numObj); - Object.seal(numObj); +var numObj = new Number(3); +var preCheck = Object.isExtensible(numObj); +Object.seal(numObj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(numObj), 'Object.isSealed(numObj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-6.js b/test/built-ins/Object/seal/15.2.3.8-2-c-6.js index 05a03fb4b4e5918e0330b8af5ddd541339b1bb94..3976ae55f598b745133e45bb7021b07894f4db71 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-6.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-6.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-6 description: Object.seal - 'O' is a Date object ---*/ - var dateObj = new Date(); - var preCheck = Object.isExtensible(dateObj); - Object.seal(dateObj); +var dateObj = new Date(); +var preCheck = Object.isExtensible(dateObj); +Object.seal(dateObj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(dateObj), 'Object.isSealed(dateObj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-7.js b/test/built-ins/Object/seal/15.2.3.8-2-c-7.js index 40de20e29df4c3ed9254a4c38842e1163aa05356..1e50a1602bbeba19f57aaa2ece46cae517745821 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-7.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-7.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-7 description: Object.seal - 'O' is a RegExp object ---*/ - var regObj = new RegExp(); - var preCheck = Object.isExtensible(regObj); - Object.seal(regObj); +var regObj = new RegExp(); +var preCheck = Object.isExtensible(regObj); +Object.seal(regObj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(regObj), 'Object.isSealed(regObj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-8.js b/test/built-ins/Object/seal/15.2.3.8-2-c-8.js index 0535ffd7fd7970f2b5adbf7bff412278bae3c85e..e72ff62593f154c47b7c17f18720c80b2b09b60c 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-8.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-8.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-2-c-8 description: Object.seal - 'O' is an Error object ---*/ - var errObj = new Error(); - var preCheck = Object.isExtensible(errObj); - Object.seal(errObj); +var errObj = new Error(); +var preCheck = Object.isExtensible(errObj); +Object.seal(errObj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(errObj), 'Object.isSealed(errObj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-9.js b/test/built-ins/Object/seal/15.2.3.8-2-c-9.js index fb65b1fe295c4a4ecac01ec5607f55016e9730d5..0a93350b301f88544f7d4f261f1ede39d0c394a6 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-9.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-9.js @@ -6,10 +6,12 @@ es5id: 15.2.3.8-2-c-9 description: Object.seal - 'O' is an Arguments object ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var preCheck = Object.isExtensible(argObj); - Object.seal(argObj); +var preCheck = Object.isExtensible(argObj); +Object.seal(argObj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(argObj), 'Object.isSealed(argObj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-3-1.js b/test/built-ins/Object/seal/15.2.3.8-3-1.js index c0e9bcc7530ce9e0f3556e405cd88ca0fe5e2822..4beb1bd674ba7902b4701b3979943d12485a6359 100644 --- a/test/built-ins/Object/seal/15.2.3.8-3-1.js +++ b/test/built-ins/Object/seal/15.2.3.8-3-1.js @@ -6,9 +6,9 @@ es5id: 15.2.3.8-3-1 description: Object.seal - returned object is not extensible ---*/ - var obj = {}; - var preCheck = Object.isExtensible(obj); - Object.seal(obj); +var obj = {}; +var preCheck = Object.isExtensible(obj); +Object.seal(obj); assert(preCheck, 'preCheck !== true'); assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)'); diff --git a/test/built-ins/Object/seal/15.2.3.8-4-1.js b/test/built-ins/Object/seal/15.2.3.8-4-1.js index 65ad90f6edfce920e261a1262770b29265ce8677..56ea87c30f5d35223b7dca6e1d7b4f505ebb09c1 100644 --- a/test/built-ins/Object/seal/15.2.3.8-4-1.js +++ b/test/built-ins/Object/seal/15.2.3.8-4-1.js @@ -6,13 +6,13 @@ es5id: 15.2.3.8-4-1 description: Object.seal - 'O' is sealed already ---*/ - var obj = {}; +var obj = {}; - obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true - var preCheck = Object.isExtensible(obj); - Object.seal(obj); +obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true +var preCheck = Object.isExtensible(obj); +Object.seal(obj); - Object.seal(obj); +Object.seal(obj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(obj), 'Object.isSealed(obj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-4-2.js b/test/built-ins/Object/seal/15.2.3.8-4-2.js index 26f0600eba0fb4e06ef52b886b02f5dd93c23239..bd6edb2fc55eef8742bde8b09491b104da236b56 100644 --- a/test/built-ins/Object/seal/15.2.3.8-4-2.js +++ b/test/built-ins/Object/seal/15.2.3.8-4-2.js @@ -6,13 +6,13 @@ es5id: 15.2.3.8-4-2 description: Object.seal - 'O' is frozen already ---*/ - var obj = {}; +var obj = {}; - obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true - var preCheck = Object.isExtensible(obj); - Object.freeze(obj); +obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true +var preCheck = Object.isExtensible(obj); +Object.freeze(obj); - Object.seal(obj); +Object.seal(obj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(obj), 'Object.isSealed(obj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-4-3.js b/test/built-ins/Object/seal/15.2.3.8-4-3.js index bf09289f8ba4df79eec4123790a6766ab4f4c4d8..0b3329c804ca7757f52c6d9e1640b71468422c83 100644 --- a/test/built-ins/Object/seal/15.2.3.8-4-3.js +++ b/test/built-ins/Object/seal/15.2.3.8-4-3.js @@ -6,12 +6,12 @@ es5id: 15.2.3.8-4-3 description: Object.seal - the extension of 'O' is prevented already ---*/ - var obj = {}; +var obj = {}; - obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true - var preCheck = Object.isExtensible(obj); - Object.preventExtensions(obj); - Object.seal(obj); +obj.foo = 10; // default value of attributes: writable: true, configurable: true, enumerable: true +var preCheck = Object.isExtensible(obj); +Object.preventExtensions(obj); +Object.seal(obj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(obj), 'Object.isSealed(obj) !== true'); diff --git a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js index 831deb3d571980782bfe63f24d7113fb1702d22f..f4e15aa86bcc07c91806564fc3b7a743d460fd06 100644 --- a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js +++ b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js @@ -18,4 +18,3 @@ obj[symB] = 1; assert.sameValue(obj[symA], 2, "The value of `obj[symA]` is `2`"); assert.sameValue(delete obj[symA], false, "`delete obj[symA]` is `false`"); assert.sameValue(obj[symB], undefined, "The value of `obj[symB]` is `undefined`"); - diff --git a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js index 0c04b431696c58e7d30a0c665a90d4589c6c0fd1..e8fd7d34fd95446c2abc2326ca830e460145a160 100644 --- a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js +++ b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js @@ -23,4 +23,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { obj[symB] = 1; }); - diff --git a/test/built-ins/Object/setPrototypeOf/bigint.js b/test/built-ins/Object/setPrototypeOf/bigint.js index 63545034f82d38df615c022ba47b4730b3dc2306..f10b06f16ec3793867bef75a063dc556b2e878ba 100644 --- a/test/built-ins/Object/setPrototypeOf/bigint.js +++ b/test/built-ins/Object/setPrototypeOf/bigint.js @@ -8,9 +8,9 @@ features: [BigInt] ---*/ try { - let {} = 0n; + let {} = 0n; } catch (e) { - $ERROR('Expected RequireObjectCoercible to succeed for BigInt values'); + $ERROR('Expected RequireObjectCoercible to succeed for BigInt values'); } -assert.sameValue(Object.setPrototypeOf(0n, null), 0n); +assert.sameValue(Object.setPrototypeOf(0n, null), 0 n); diff --git a/test/built-ins/Object/setPrototypeOf/name.js b/test/built-ins/Object/setPrototypeOf/name.js index 73a1c691e67f056ca96c072a21e5e988bc21b4dc..d9cffe8f4b42e3e7053171fd1c318f0d2af22ee7 100644 --- a/test/built-ins/Object/setPrototypeOf/name.js +++ b/test/built-ins/Object/setPrototypeOf/name.js @@ -28,4 +28,3 @@ assert.sameValue( verifyNotEnumerable(Object.setPrototypeOf, 'name'); verifyNotWritable(Object.setPrototypeOf, 'name'); verifyConfigurable(Object.setPrototypeOf, 'name'); - diff --git a/test/built-ins/Object/values/exception-during-enumeration.js b/test/built-ins/Object/values/exception-during-enumeration.js index a11b20e69d9bf12020332f2c3597443918cb423b..0446a33c52bddf30f389d6eedfe012d597c13bb0 100644 --- a/test/built-ins/Object/values/exception-during-enumeration.js +++ b/test/built-ins/Object/values/exception-during-enumeration.js @@ -8,14 +8,14 @@ author: Jordan Harband ---*/ var trappedKey = { - get a() { - throw new RangeError('This error should be re-thrown'); - }, - get b() { - $ERROR('Should not try to get the second element'); - } + get a() { + throw new RangeError('This error should be re-thrown'); + }, + get b() { + $ERROR('Should not try to get the second element'); + } }; -assert.throws(RangeError, function () { - Object.values(trappedKey); +assert.throws(RangeError, function() { + Object.values(trappedKey); }); diff --git a/test/built-ins/Object/values/exception-not-object-coercible.js b/test/built-ins/Object/values/exception-not-object-coercible.js index 35dce7a18a8b103403f25f450cf60614faac7ec4..3248b6d6fdd956c5e5eafb96d02bc2ca6e8be601 100644 --- a/test/built-ins/Object/values/exception-not-object-coercible.js +++ b/test/built-ins/Object/values/exception-not-object-coercible.js @@ -7,10 +7,10 @@ description: Object.values should fail if given a null or undefined value author: Jordan Harband ---*/ -assert.throws(TypeError, function () { - Object.values(null); +assert.throws(TypeError, function() { + Object.values(null); }); -assert.throws(TypeError, function () { - Object.values(undefined); +assert.throws(TypeError, function() { + Object.values(undefined); }); diff --git a/test/built-ins/Object/values/function-name.js b/test/built-ins/Object/values/function-name.js index 7f730f14152ac8467f203c6e40cec663109dc9a6..7a9c882a13b99253ff2dd2cbe75fb57322f44c30 100644 --- a/test/built-ins/Object/values/function-name.js +++ b/test/built-ins/Object/values/function-name.js @@ -9,9 +9,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - Object.values.name, - 'values', - 'Expected Object.values.name to be "values"' + Object.values.name, + 'values', + 'Expected Object.values.name to be "values"' ); verifyNotEnumerable(Object.values, 'name'); diff --git a/test/built-ins/Object/values/getter-adding-key.js b/test/built-ins/Object/values/getter-adding-key.js index a2fc70242b6477add09774fca71d174177eb12e8..86b61eb9a0cf1aeb5cf4daaa6ef7a2b2e9db54f1 100644 --- a/test/built-ins/Object/values/getter-adding-key.js +++ b/test/built-ins/Object/values/getter-adding-key.js @@ -8,11 +8,11 @@ author: Jordan Harband ---*/ var bAddsC = { - a: 'A', - get b() { - this.c = 'C'; - return 'B'; - } + a: 'A', + get b() { + this.c = 'C'; + return 'B'; + } }; var result = Object.values(bAddsC); diff --git a/test/built-ins/Object/values/getter-making-future-key-nonenumerable.js b/test/built-ins/Object/values/getter-making-future-key-nonenumerable.js index d54ae30278dc9a0384daecc90875ae06971f959e..05bfdefc6de1da16e3b9f7f3980ce98a8bb27455 100644 --- a/test/built-ins/Object/values/getter-making-future-key-nonenumerable.js +++ b/test/built-ins/Object/values/getter-making-future-key-nonenumerable.js @@ -8,14 +8,14 @@ author: Jordan Harband ---*/ var bDeletesC = { - a: 'A', - get b() { - Object.defineProperty(this, 'c', { - enumerable: false - }); - return 'B'; - }, - c: 'C' + a: 'A', + get b() { + Object.defineProperty(this, 'c', { + enumerable: false + }); + return 'B'; + }, + c: 'C' }; var result = Object.values(bDeletesC); diff --git a/test/built-ins/Object/values/getter-removing-future-key.js b/test/built-ins/Object/values/getter-removing-future-key.js index 6893bf8589e847e315e510a27c8189c359738ca6..a9276075cb5fa942444257105230d537ab0453ae 100644 --- a/test/built-ins/Object/values/getter-removing-future-key.js +++ b/test/built-ins/Object/values/getter-removing-future-key.js @@ -8,12 +8,12 @@ author: Jordan Harband ---*/ var bDeletesC = { - a: 'A', - get b() { - delete this.c; - return 'B'; - }, - c: 'C' + a: 'A', + get b() { + delete this.c; + return 'B'; + }, + c: 'C' }; var result = Object.values(bDeletesC); diff --git a/test/built-ins/Object/values/observable-operations.js b/test/built-ins/Object/values/observable-operations.js index d6068d714a63ccf6258301711216431df25ae057..096604baa636eead9a1f38233bef9a3243316990 100644 --- a/test/built-ins/Object/values/observable-operations.js +++ b/test/built-ins/Object/values/observable-operations.js @@ -10,27 +10,31 @@ includes: [proxyTrapsHelper.js] ---*/ var log = ""; -var object = { a: 0, b: 0, c: 0 }; +var object = { + a: 0, + b: 0, + c: 0 +}; var handler = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert.sameValue(target, object, "get target"); assert.sameValue(receiver, proxy, "get receiver"); log += "|get:" + propertyKey; return target[propertyKey]; }, - getOwnPropertyDescriptor: function (target, propertyKey) { + getOwnPropertyDescriptor: function(target, propertyKey) { assert.sameValue(target, object, "getOwnPropertyDescriptor"); log += "|getOwnPropertyDescriptor:" + propertyKey; return Object.getOwnPropertyDescriptor(target, propertyKey); }, - ownKeys: function (target) { + ownKeys: function(target) { assert.sameValue(target, object, "ownKeys"); log += "|ownKeys"; return Object.getOwnPropertyNames(target); } }); var check = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert(propertyKey in target, "handler check: " + propertyKey); return target[propertyKey]; } diff --git a/test/built-ins/Object/values/symbols-omitted.js b/test/built-ins/Object/values/symbols-omitted.js index 080b183e9f90d18bf61426ee9dd71f5c49b8c9cd..29273f39ba102655f9d16d01f0931a7cc83ae6f3 100644 --- a/test/built-ins/Object/values/symbols-omitted.js +++ b/test/built-ins/Object/values/symbols-omitted.js @@ -13,9 +13,14 @@ var enumSym = Symbol('enum'); var nonEnumSym = Symbol('nonenum'); var symValue = Symbol('value'); -var obj = { key: symValue }; +var obj = { + key: symValue +}; obj[enumSym] = value; -Object.defineProperty(obj, nonEnumSym, { enumerable: false, value: value }); +Object.defineProperty(obj, nonEnumSym, { + enumerable: false, + value: value +}); var result = Object.values(obj); diff --git a/test/built-ins/Object/values/tamper-with-global-object.js b/test/built-ins/Object/values/tamper-with-global-object.js index e0a038ff9fd4e63e3ca3abbbeb3ae1d217dcf7e1..86d5340465d860890e0545c7b9701b058cfdbd7a 100644 --- a/test/built-ins/Object/values/tamper-with-global-object.js +++ b/test/built-ins/Object/values/tamper-with-global-object.js @@ -9,7 +9,7 @@ author: Jordan Harband ---*/ function fakeObject() { - $ERROR('The overriden version of Object was called!'); + $ERROR('The overriden version of Object was called!'); } fakeObject.values = Object.values; diff --git a/test/built-ins/Object/values/tamper-with-object-keys.js b/test/built-ins/Object/values/tamper-with-object-keys.js index bdc955011178bef3fba3d3a3a0f46db80cbb8b55..51dfbf5c46dd627246d99fddd9b28d56fe9eef30 100644 --- a/test/built-ins/Object/values/tamper-with-object-keys.js +++ b/test/built-ins/Object/values/tamper-with-object-keys.js @@ -9,10 +9,12 @@ author: Jordan Harband ---*/ function fakeObjectKeys() { - $ERROR('The overriden version of Object.keys was called!'); + $ERROR('The overriden version of Object.keys was called!'); } Object.keys = fakeObjectKeys; assert.sameValue(Object.keys, fakeObjectKeys, 'Sanity check failed: could not modify the global Object.keys'); -assert.sameValue(Object.values({ a: 1 }).length, 1, 'Expected object with 1 key to have 1 value'); +assert.sameValue(Object.values({ + a: 1 +}).length, 1, 'Expected object with 1 key to have 1 value'); diff --git a/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js index 6292c438e182ad41ae5fce3f8be8d5357d67b4e9..06f9f6fb60845394d1c21e573bca0db0948fba9e 100644 --- a/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js @@ -12,5 +12,5 @@ description: Promise === global.Promise var global = this; if (Promise !== global.Promise) { - $ERROR("Expected Promise === global.Promise."); + $ERROR("Expected Promise === global.Promise."); } diff --git a/test/built-ins/Promise/S25.4.3.1_A2.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.1_T1.js index 8da80d8463071608458b57bd46d64476231a57ef..afbef52eee90b41097518449db967297a31719cd 100644 --- a/test/built-ins/Promise/S25.4.3.1_A2.1_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A2.1_T1.js @@ -10,5 +10,5 @@ description: Promise.call("non-object") throws TypeError ---*/ assert.throws(TypeError, function() { - Promise.call("non-object", function () {}); + Promise.call("non-object", function() {}); }); diff --git a/test/built-ins/Promise/S25.4.3.1_A2.2_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.2_T1.js index 0e969f652724587c883c3a24f354a33f6fc2d3fc..855595e76b617ab60757c29da87f21f3d2c59927 100644 --- a/test/built-ins/Promise/S25.4.3.1_A2.2_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A2.2_T1.js @@ -11,6 +11,6 @@ description: Promise.call(new Promise()) throws TypeError var p = new Promise(function() {}); -assert.throws(TypeError, function () { - Promise.call(p, function () {}); +assert.throws(TypeError, function() { + Promise.call(p, function() {}); }); diff --git a/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js index 341dd6417a9970cb936236aabbe2511fad1970fb..424b1a7f18ffa4f455e963d57ad76dead4fa3fdf 100644 --- a/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js @@ -10,14 +10,16 @@ description: Promise.call(resolved Promise) throws TypeError flags: [async] ---*/ -var p = new Promise(function(resolve) { resolve(1); }); +var p = new Promise(function(resolve) { + resolve(1); +}); -p.then(function () { - Promise.call(p, function () {}); -}).then(function () { - $ERROR("Unexpected resolution - expected TypeError"); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR("Expected TypeError, got " + err); - } +p.then(function() { + Promise.call(p, function() {}); +}).then(function() { + $ERROR("Unexpected resolution - expected TypeError"); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR("Expected TypeError, got " + err); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js index 4b3e452e20da94e1a37bd9710c9f642bff8e53b7..e852b02745542efcedec134447208d2190afe104 100644 --- a/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js @@ -10,14 +10,16 @@ description: Promise.call(rejected Promise) throws TypeError flags: [async] ---*/ -var p = new Promise(function(resolve, reject) { reject(1) }); +var p = new Promise(function(resolve, reject) { + reject(1) +}); -p.catch(function () { - Promise.call(p, function () {}); -}).then(function () { - $ERROR("Unexpected resolution - expected TypeError"); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR("Expected TypeError, got " + err); - } +p.catch(function() { + Promise.call(p, function() {}); +}).then(function() { + $ERROR("Unexpected resolution - expected TypeError"); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR("Expected TypeError, got " + err); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js index d990b54480a91f968367e7941aa2d220da8ef4db..26d1cb0ce25fd72d921ffa4556bdcbbf23decd95 100644 --- a/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js @@ -12,15 +12,14 @@ flags: [async] ---*/ var errorObject = {}, - p = new Promise(function () { - throw errorObject; - }); + p = new Promise(function() { + throw errorObject; + }); p.then(function() { - $ERROR("Unexpected fulfill -- promise should reject."); -}, function (err) { - if (err !== errorObject) { - $ERROR("Expected promise rejection reason to be thrown errorObject, actually " + err); - } + $ERROR("Unexpected fulfill -- promise should reject."); +}, function(err) { + if (err !== errorObject) { + $ERROR("Expected promise rejection reason to be thrown errorObject, actually " + err); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js index 418f94069c1d70eb168daabcb66be84b769f0e05..da4221c47f2c9e48e3ef0a0c0e00b2d4c55d7f49 100644 --- a/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js @@ -14,10 +14,10 @@ flags: [async, noStrict] var expectedThis = this; -var p = new Promise(function (resolve) { - if (this !== expectedThis) { - $ERROR("'this' must be global object, got " + this); - } +var p = new Promise(function(resolve) { + if (this !== expectedThis) { + $ERROR("'this' must be global object, got " + this); + } - resolve(); + resolve(); }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/S25.4.3.1_A5.1_T2.js b/test/built-ins/Promise/S25.4.3.1_A5.1_T2.js index 3c0548704a14c59d0a1bb431881d7d06a218d3ce..58cdb04d16f747c080cd83fe3a4a98c86f55ae6e 100644 --- a/test/built-ins/Promise/S25.4.3.1_A5.1_T2.js +++ b/test/built-ins/Promise/S25.4.3.1_A5.1_T2.js @@ -14,10 +14,10 @@ flags: [async, onlyStrict] var expectedThis = undefined; -var p = new Promise(function (resolve) { - if (this !== expectedThis) { - $ERROR("'this' must be undefined, got " + this); - } +var p = new Promise(function(resolve) { + if (this !== expectedThis) { + $ERROR("'this' must be undefined, got " + this); + } - resolve(); + resolve(); }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js index 597b68aa9f2f54ba41ea24e8996381970a26f4f2..02c7922d34dba1e8c917210fef2dee474d1907d9 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A1.1_T1.js @@ -9,5 +9,5 @@ description: Promise.all is callable ---*/ if ((typeof Promise.all) !== "function") { - $ERROR('Expected Promise.all to be a function'); + $ERROR('Expected Promise.all to be a function'); } diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js index 92149f2aae33b484f06e752ba695a7d9d0aded72..e542fadf4eb774a2c2f2c5b1ef7bdb618e427bbf 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js @@ -10,5 +10,5 @@ description: Promise.all returns a Promise var p = Promise.all([]); if (!(p instanceof Promise)) { - $ERROR('Expected p to be a Promise'); + $ERROR('Expected p to be a Promise'); } diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js index ddeea876d2cc74aa5fad73eba91dbc48e0b507e1..8ab5996325cdfa9d9c22c11732802eeed4582b58 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A2.2_T1.js @@ -12,15 +12,15 @@ flags: [async] var sequence = []; -Promise.all([]).then(function () { - sequence.push(2); +Promise.all([]).then(function() { + sequence.push(2); }).catch($DONE); Promise.resolve().then(function() { - sequence.push(3); -}).then(function () { - sequence.push(4); - checkSequence(sequence, "Promises resolved in unexpected sequence"); + sequence.push(3); +}).then(function() { + sequence.push(4); + checkSequence(sequence, "Promises resolved in unexpected sequence"); }).then($DONE, $DONE); sequence.push(1); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js index 1b61ede66d9fadbe55c68883ee238ddd756c39a3..6c893b33162ae623abdf5081fded4d8d40264f06 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js @@ -11,8 +11,8 @@ flags: [async] var arg = []; -Promise.all(arg).then(function (result) { - if(!(result instanceof Array)) { - $ERROR("expected an array from Promise.all, got " + result); - } +Promise.all(arg).then(function(result) { + if (!(result instanceof Array)) { + $ERROR("expected an array from Promise.all, got " + result); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js index 77cd2628e01d4188fcd1f52351128ed73bd842dd..568aae4756fcbd9a27429716384d4f0d67a2eb94 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T2.js @@ -11,8 +11,8 @@ flags: [async] var arg = []; -Promise.all(arg).then(function (result) { - if(result.length !== 0) { - $ERROR("expected an empty array from Promise.all([]), got " + result); - } +Promise.all(arg).then(function(result) { + if (result.length !== 0) { + $ERROR("expected an empty array from Promise.all([]), got " + result); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js index 5dc1568eb6a5cd8e51b96fbe04ac4e5c08f37a60..1573e1cf272e7b2ecd14ae0a22c8f14e048c6ec6 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js @@ -11,8 +11,8 @@ flags: [async] var arg = []; -Promise.all(arg).then(function (result) { - if(result === arg) { - $ERROR("expected a new array from Promise.all but argument was re-used"); - } +Promise.all(arg).then(function(result) { + if (result === arg) { + $ERROR("expected a new array from Promise.all but argument was re-used"); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js index 805a055255aae0f4f3d281379ae0dd2f5445883d..9c5887f281bdc301c658712ee6042072f8c91fbd 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T1.js @@ -14,10 +14,10 @@ flags: [async] var nonIterable = 3; -Promise.all(nonIterable).then(function () { - $ERROR('Promise unexpectedly resolved: Promise.all(nonIterable) should throw TypeError'); -},function (err) { - if (!(err instanceof TypeError)) { - $ERROR('Expected TypeError, got ' + err); - } +Promise.all(nonIterable).then(function() { + $ERROR('Promise unexpectedly resolved: Promise.all(nonIterable) should throw TypeError'); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR('Expected TypeError, got ' + err); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js index 88e7acb72ab71e71c5db0e17203be922192fecc5..e838c9898bbc7b515d1fa6194dcb2d6175e4b873 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T2.js @@ -13,10 +13,10 @@ description: Promise.all(new Error()) returns Promise rejected with TypeError flags: [async] ---*/ -Promise.all(new Error("abrupt")).then(function () { - $ERROR('Promise unexpectedly resolved: Promise.all(abruptCompletion) should throw TypeError'); -},function (err) { - if (!(err instanceof TypeError)) { - $ERROR('Expected TypeError, got ' + err); - } -}).then($DONE,$DONE); +Promise.all(new Error("abrupt")).then(function() { + $ERROR('Promise unexpectedly resolved: Promise.all(abruptCompletion) should throw TypeError'); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR('Expected TypeError, got ' + err); + } +}).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js index 9dcabfadd7d74047121a32d807264c875c71d4ea..0f92a96c0c0b749f3b6092b7e1b1934001966016 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A3.1_T3.js @@ -14,15 +14,15 @@ flags: [async] var iterThrows = {}; Object.defineProperty(iterThrows, Symbol.iterator, { - get: function () { - throw new Error("abrupt completion"); - } + get: function() { + throw new Error("abrupt completion"); + } }); -Promise.all(iterThrows).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.all(iterThrows) should throw TypeError'); -},function (err) { - if (!(err instanceof Error)) { - $ERROR('Expected promise to be rejected with error, got ' + err); - } -}).then($DONE,$DONE); +Promise.all(iterThrows).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.all(iterThrows) should throw TypeError'); +}, function(err) { + if (!(err instanceof Error)) { + $ERROR('Expected promise to be rejected with error, got ' + err); + } +}).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js index e2ad6eee7d75dfadfdda4d0fc076d2813d32f5d9..a594a579bf8dc7fff338e090bf324611411e7add 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js @@ -9,8 +9,7 @@ description: this must conform to Promise constructor in Promise.all author: Sam Mikes ---*/ -function ZeroArgConstructor() { -} +function ZeroArgConstructor() {} assert.throws(TypeError, function() { Promise.all.call(ZeroArgConstructor, []); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js index 2428711a6256e492a913c8414b6c9d96b8dc1e38..18ef595bf453240de4b5eed44958fab265798db3 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js @@ -15,15 +15,15 @@ flags: [async] var iterThrows = {}; var error = new Test262Error(); iterThrows[Symbol.iterator] = function() { - return { - next: function () { - throw error; - } - }; + return { + next: function() { + throw error; + } + }; }; -Promise.all(iterThrows).then(function () { - $ERROR('Promise unexpectedly resolved: Promise.all(iterThrows) should throw TypeError'); -},function (reason) { - assert.sameValue(reason, error); -}).then($DONE,$DONE); +Promise.all(iterThrows).then(function() { + $ERROR('Promise unexpectedly resolved: Promise.all(iterThrows) should throw TypeError'); +}, function(reason) { + assert.sameValue(reason, error); +}).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js index a3ba1d7a89d039bbbfee1eb2265f5cbfa1ed34d8..5621dc9279242043d2882c97e3925518dec05a44 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js @@ -12,5 +12,5 @@ description: Promise.all([]) produces a promise var p = Promise.all([]); if (!(p instanceof Promise)) { - $ERROR('Expected Promise.all([]) to be instanceof Promise' + err); + $ERROR('Expected Promise.all([]) to be instanceof Promise' + err); } diff --git a/test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js index 73a47330b44cf91190cc55dd8f5f91d94f93d682..baf2bba257b3e4591757471237a509a1724fa74c 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A6.1_T2.js @@ -13,11 +13,11 @@ flags: [async] var p = Promise.all([]); -p.then(function (result) { - if (!(result instanceof Array)) { - $ERROR("Expected Promise.all([]) to be Array, actually " + result); - } - if (result.length !== 0) { - $ERROR("Expected Promise.all([]) to be empty Array, actually " + result); - } +p.then(function(result) { + if (!(result instanceof Array)) { + $ERROR("Expected Promise.all([]) to be Array, actually " + result); + } + if (result.length !== 0) { + $ERROR("Expected Promise.all([]) to be empty Array, actually " + result); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js index 7eb81e9cee2ccb1283f06c10706154a0525aecc8..e8cc200f7f7b7bd3d3e2c1d89a57a3f340bedcf4 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A7.1_T1.js @@ -15,17 +15,17 @@ var p1 = Promise.resolve(3); var pAll = Promise.all([p1]); -pAll.then(function (result) { - if (!(pAll instanceof Promise)) { - $ERROR("Expected Promise.all() to be promise, actually " + pAll); - } - if (!(result instanceof Array)) { - $ERROR("Expected Promise.all() to be promise for an Array, actually " + result); - } - if (result.length !== 1) { - $ERROR("Expected Promise.all([p1]) to be a promise for one-element Array, actually " + result); - } - if (result[0] !== 3) { - $ERROR("Expected result[0] to be 3, actually " + result[0]); - } +pAll.then(function(result) { + if (!(pAll instanceof Promise)) { + $ERROR("Expected Promise.all() to be promise, actually " + pAll); + } + if (!(result instanceof Array)) { + $ERROR("Expected Promise.all() to be promise for an Array, actually " + result); + } + if (result.length !== 1) { + $ERROR("Expected Promise.all([p1]) to be a promise for one-element Array, actually " + result); + } + if (result[0] !== 3) { + $ERROR("Expected result[0] to be 3, actually " + result[0]); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js index 480147423c756ee3684e8015f812c0c8bc382be1..546c472546943cbd16dd11e095e199f4be42a52b 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js @@ -14,21 +14,23 @@ flags: [async] var sequence = []; -var p1 = new Promise(function (resolve) { resolve({}); } ); +var p1 = new Promise(function(resolve) { + resolve({}); +}); sequence.push(1); -Promise.all([p1]).then(function (resolved) { - sequence.push(4); - checkSequence(sequence, "Expected Promise.all().then to queue second"); +Promise.all([p1]).then(function(resolved) { + sequence.push(4); + checkSequence(sequence, "Expected Promise.all().then to queue second"); }).catch($DONE); -p1.then(function () { - sequence.push(3); - checkSequence(sequence, "Expected p1.then to queue first"); -}).then(function () { - sequence.push(5); - checkSequence(sequence, "Expected final then to queue last"); +p1.then(function() { + sequence.push(3); + checkSequence(sequence, "Expected p1.then to queue first"); +}).then(function() { + sequence.push(5); + checkSequence(sequence, "Expected final then to queue last"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js index 7a6d917d0e5dee40040e8cb6b74e94abe9cdfe62..4115767c54b21196407b2b25160557d9ce95284b 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js @@ -11,24 +11,28 @@ flags: [async] var sequence = []; -var p1 = new Promise(function (resolve) { resolve(1); } ); -var p2 = new Promise(function (resolve) { resolve(2); } ); +var p1 = new Promise(function(resolve) { + resolve(1); +}); +var p2 = new Promise(function(resolve) { + resolve(2); +}); sequence.push(1); -p1.then(function () { - sequence.push(3); - checkSequence(sequence, "Expected to be called first."); +p1.then(function() { + sequence.push(3); + checkSequence(sequence, "Expected to be called first."); }).catch($DONE); -Promise.all([p1, p2]).then(function () { - sequence.push(5); - checkSequence(sequence, "Expected to be called third."); +Promise.all([p1, p2]).then(function() { + sequence.push(5); + checkSequence(sequence, "Expected to be called third."); }).then($DONE, $DONE); -p2.then(function () { - sequence.push(4); - checkSequence(sequence, "Expected to be called second."); +p2.then(function() { + sequence.push(4); + checkSequence(sequence, "Expected to be called second."); }).catch($DONE); sequence.push(2); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js index 77d087034cff122475a9255d5dac01aef6de7d49..b726f5879f4f12d39dacc49666b8dbfed7ea4845 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js @@ -11,17 +11,17 @@ flags: [async] ---*/ var rejectP1, - p1 = new Promise(function (resolve, reject) { - rejectP1 = reject; - }), - p2 = Promise.resolve(2); + p1 = new Promise(function(resolve, reject) { + rejectP1 = reject; + }), + p2 = Promise.resolve(2); -Promise.all([p1, p2]).then(function (resolve) { - $ERROR("Did not expect promise to be fulfilled."); -}, function (rejected) { - if (rejected !== 1) { - $ERROR("Expected promise to be rejected with 1, actually " + rejected); - } +Promise.all([p1, p2]).then(function(resolve) { + $ERROR("Did not expect promise to be fulfilled."); +}, function(rejected) { + if (rejected !== 1) { + $ERROR("Expected promise to be rejected with 1, actually " + rejected); + } }).then($DONE, $DONE); rejectP1(1); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js index bb700ae4642492aa28d83aec89589d51fc71a45a..128375aaec3d786a4cde48d79a057287fda00868 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T2.js @@ -11,17 +11,17 @@ flags: [async] ---*/ var rejectP2, - p1 = Promise.resolve(1), - p2 = new Promise(function (resolve, reject) { - rejectP2 = reject; - }); + p1 = Promise.resolve(1), + p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; + }); -Promise.all([p1, p2]).then(function () { - $ERROR("Did not expect promise to be fulfilled."); -}, function (rejected) { - if (rejected !== 2) { - $ERROR("Expected promise to be rejected with 2, actually " + rejected); - } +Promise.all([p1, p2]).then(function() { + $ERROR("Did not expect promise to be fulfilled."); +}, function(rejected) { + if (rejected !== 2) { + $ERROR("Expected promise to be rejected with 2, actually " + rejected); + } }).then($DONE, $DONE); rejectP2(2); diff --git a/test/built-ins/Promise/all/call-resolve-element-after-return.js b/test/built-ins/Promise/all/call-resolve-element-after-return.js index 6b85ec15e3ec2a18e0beff57f8e03f890fbb449d..c644abeb8829e83645d8c77d8b7b325dbadb349c 100644 --- a/test/built-ins/Promise/all/call-resolve-element-after-return.js +++ b/test/built-ins/Promise/all/call-resolve-element-after-return.js @@ -27,7 +27,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1OnFulfilled; diff --git a/test/built-ins/Promise/all/call-resolve-element-items.js b/test/built-ins/Promise/all/call-resolve-element-items.js index 97e7541c37a3662f93b72eb598dbff9a3600b753..3cf7629a46ba35eda81e0cd57d68d5f1113c57d4 100644 --- a/test/built-ins/Promise/all/call-resolve-element-items.js +++ b/test/built-ins/Promise/all/call-resolve-element-items.js @@ -26,7 +26,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/all/call-resolve-element.js b/test/built-ins/Promise/all/call-resolve-element.js index fc600d45924f849b938497716a9d678f3e435620..37be4b02d5532529fe88c7587c7174f3423a8a30 100644 --- a/test/built-ins/Promise/all/call-resolve-element.js +++ b/test/built-ins/Promise/all/call-resolve-element.js @@ -25,7 +25,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/all/capability-executor-called-twice.js b/test/built-ins/Promise/all/capability-executor-called-twice.js index 580483b339276ab4c5b33e43560c8bf7779f027e..7f9427dbca543e1a4b6ab4aaef68d5b8e12a127b 100644 --- a/test/built-ins/Promise/all/capability-executor-called-twice.js +++ b/test/built-ins/Promise/all/capability-executor-called-twice.js @@ -27,7 +27,7 @@ Promise.all.call(function(executor) { checkPoint += "a"; executor(); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); assert.sameValue(checkPoint, "abc", "executor initially called with no arguments"); @@ -37,7 +37,7 @@ Promise.all.call(function(executor) { checkPoint += "a"; executor(undefined, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)"); @@ -46,9 +46,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.all.call(function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); }, "executor initially called with (undefined, function)"); @@ -58,9 +58,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.all.call(function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); }, "executor initially called with (function, undefined)"); @@ -72,7 +72,7 @@ assert.throws(TypeError, function() { checkPoint += "a"; executor("invalid value", 123); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); }, "executor initially called with (String, Number)"); diff --git a/test/built-ins/Promise/all/capability-executor-not-callable.js b/test/built-ins/Promise/all/capability-executor-not-callable.js index 91ed1086406123658c5fb541421ebb87bd714cfc..db4092e6647949f79c0583e8caa3d4c28da47c45 100644 --- a/test/built-ins/Promise/all/capability-executor-not-callable.js +++ b/test/built-ins/Promise/all/capability-executor-not-callable.js @@ -56,7 +56,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.all.call(function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; }, []); }, "executor called with (undefined, function)"); @@ -66,7 +66,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.all.call(function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; }, []); }, "executor called with (function, undefined)"); diff --git a/test/built-ins/Promise/all/capability-resolve-throws-no-close.js b/test/built-ins/Promise/all/capability-resolve-throws-no-close.js index 9124a3a560fd9493e865be7dc13477dbd284743f..390bf8d25348766d69066a539573b9ff01bdb3f0 100644 --- a/test/built-ins/Promise/all/capability-resolve-throws-no-close.js +++ b/test/built-ins/Promise/all/capability-resolve-throws-no-close.js @@ -50,7 +50,9 @@ var iter = {}; iter[Symbol.iterator] = function() { return { next: function() { - return { done: true }; + return { + done: true + }; }, return: function() { returnCount += 1; @@ -60,7 +62,9 @@ iter[Symbol.iterator] = function() { }; var P = function(executor) { return new Promise(function(_, reject) { - executor(function() { throw new Test262Error(); }, reject); + executor(function() { + throw new Test262Error(); + }, reject); }); }; diff --git a/test/built-ins/Promise/all/capability-resolve-throws-reject.js b/test/built-ins/Promise/all/capability-resolve-throws-reject.js index 3ad3affdee5e91a9aa6cd5fd81b31d402a170552..57f3e275581b09639112d5e5622fe577b9adc1f4 100644 --- a/test/built-ins/Promise/all/capability-resolve-throws-reject.js +++ b/test/built-ins/Promise/all/capability-resolve-throws-reject.js @@ -48,7 +48,9 @@ flags: [async] var thrown = new Test262Error(); var P = function(executor) { return new Promise(function(_, reject) { - executor(function() { throw thrown; }, reject); + executor(function() { + throw thrown; + }, reject); }); }; diff --git a/test/built-ins/Promise/all/does-not-invoke-array-setters.js b/test/built-ins/Promise/all/does-not-invoke-array-setters.js index 19db5a8be756d94c95361cf5c5112e96e95b78d0..54c332a0224b03e559194b2fb12e0343261387af 100644 --- a/test/built-ins/Promise/all/does-not-invoke-array-setters.js +++ b/test/built-ins/Promise/all/does-not-invoke-array-setters.js @@ -33,4 +33,6 @@ Object.defineProperty(Array.prototype, 0, { } }); -Promise.all([42]).then(function(){ $DONE(); }, $DONE); +Promise.all([42]).then(function() { + $DONE(); +}, $DONE); diff --git a/test/built-ins/Promise/all/invoke-resolve-error-close.js b/test/built-ins/Promise/all/invoke-resolve-error-close.js index ac2ca2824961cca8e4247c597df1bb7030cd0f64..aead2b6477c00b884dcd79ed818ddf3d824aceda 100644 --- a/test/built-ins/Promise/all/invoke-resolve-error-close.js +++ b/test/built-ins/Promise/all/invoke-resolve-error-close.js @@ -30,7 +30,10 @@ var callCount = 0; iterDoneSpy[Symbol.iterator] = function() { return { next: function() { - return { value: null, done: false }; + return { + value: null, + done: false + }; }, return: function() { callCount += 1; diff --git a/test/built-ins/Promise/all/invoke-resolve-get-error-close.js b/test/built-ins/Promise/all/invoke-resolve-get-error-close.js index ce43d8ab1540964edb0020c597e23b27c81cf2af..22e75e0df4b896a25c7378dc834f518ff0c1cee3 100644 --- a/test/built-ins/Promise/all/invoke-resolve-get-error-close.js +++ b/test/built-ins/Promise/all/invoke-resolve-get-error-close.js @@ -30,7 +30,9 @@ var returnCount = 0; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false }; + return { + done: false + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/all/invoke-then-error-close.js b/test/built-ins/Promise/all/invoke-then-error-close.js index 6786b31883b95384a4589ece5fbfdfc03627f81c..fe683d91ea42cbddacb2fbdf505eb8985dc24b49 100644 --- a/test/built-ins/Promise/all/invoke-then-error-close.js +++ b/test/built-ins/Promise/all/invoke-then-error-close.js @@ -31,7 +31,10 @@ var iter = {}; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false, value: promise }; + return { + done: false, + value: promise + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/all/invoke-then-get-error-close.js b/test/built-ins/Promise/all/invoke-then-get-error-close.js index a200b752a52402ee331fe650bacbb4e068d108bf..5023c3d4f3025acebc61b70a5b28923c999a3a63 100644 --- a/test/built-ins/Promise/all/invoke-then-get-error-close.js +++ b/test/built-ins/Promise/all/invoke-then-get-error-close.js @@ -31,7 +31,10 @@ var iter = {}; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false, value: promise }; + return { + done: false, + value: promise + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/all/new-resolve-function.js b/test/built-ins/Promise/all/new-resolve-function.js index 383148f4496eb0c072297f3f945e347984e97a54..b4778a9140244b4e9aebf788f2313a498b3d5cef 100644 --- a/test/built-ins/Promise/all/new-resolve-function.js +++ b/test/built-ins/Promise/all/new-resolve-function.js @@ -15,14 +15,17 @@ info: | ... ---*/ -function resolveFunction() { } +function resolveFunction() {} function Constructor(executor) { executor(resolveFunction, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; -var callCount1 = 0, callCount2 = 0; +var callCount1 = 0, + callCount2 = 0; var p1OnFulfilled; var p1 = { diff --git a/test/built-ins/Promise/all/reject-deferred.js b/test/built-ins/Promise/all/reject-deferred.js index 40d28213520421083bc27594f9ca2ade201a6f1c..bd4280ec1571ab4a91b35abaad215b86bba4f7d0 100644 --- a/test/built-ins/Promise/all/reject-deferred.js +++ b/test/built-ins/Promise/all/reject-deferred.js @@ -25,7 +25,9 @@ flags: [async] var thenable = { then: function(_, reject) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { reject(); }); diff --git a/test/built-ins/Promise/all/reject-ignored-deferred.js b/test/built-ins/Promise/all/reject-ignored-deferred.js index 2913ba76068217d2f9969b8414d00ad8a6996afe..6303836d5337b6e06c70182c3159ce7bee36c7d4 100644 --- a/test/built-ins/Promise/all/reject-ignored-deferred.js +++ b/test/built-ins/Promise/all/reject-ignored-deferred.js @@ -30,7 +30,9 @@ flags: [async] var fulfiller = { then: function(resolve) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { resolve(); }); @@ -38,7 +40,9 @@ var fulfiller = { }; var rejector = { then: function(resolve, reject) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { resolve(); reject(); diff --git a/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js b/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js index 3294503dac003d74f855d33bab2c01da55b22304..0c8d848f29095efab46c4b818b95ee99f0d8bb98 100644 --- a/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js +++ b/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js @@ -39,7 +39,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1OnFulfilled; diff --git a/test/built-ins/Promise/all/resolve-before-loop-exit.js b/test/built-ins/Promise/all/resolve-before-loop-exit.js index 0ecb2a179b9384dba83da0aac9b3d72964827bf8..3f09d3cebf0f07c1ca0130e0048dcf738cccf277 100644 --- a/test/built-ins/Promise/all/resolve-before-loop-exit.js +++ b/test/built-ins/Promise/all/resolve-before-loop-exit.js @@ -39,7 +39,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1OnFulfilled; diff --git a/test/built-ins/Promise/all/resolve-element-function-extensible.js b/test/built-ins/Promise/all/resolve-element-function-extensible.js index fff03cde847ed6e608939fa64bc237f2eb9a8e26..570222b0fe75d2f34b317d67c6f73d6d3c87271f 100644 --- a/test/built-ins/Promise/all/resolve-element-function-extensible.js +++ b/test/built-ins/Promise/all/resolve-element-function-extensible.js @@ -16,10 +16,13 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert(Object.isExtensible(resolveElementFunction)); diff --git a/test/built-ins/Promise/all/resolve-element-function-length.js b/test/built-ins/Promise/all/resolve-element-function-length.js index 6b1570582017ecca85fd62a58f65ce73d6020e10..87938eb4dec044db7d7520ab4ef8ff07ff0acdd3 100644 --- a/test/built-ins/Promise/all/resolve-element-function-length.js +++ b/test/built-ins/Promise/all/resolve-element-function-length.js @@ -20,10 +20,13 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert.sameValue(resolveElementFunction.length, 1); diff --git a/test/built-ins/Promise/all/resolve-element-function-name.js b/test/built-ins/Promise/all/resolve-element-function-name.js index f975ef3acfa63e1c80d5fabdebe01bb35b6dcd08..2af12b808f391da9c976d38a57b32da9720a220b 100644 --- a/test/built-ins/Promise/all/resolve-element-function-name.js +++ b/test/built-ins/Promise/all/resolve-element-function-name.js @@ -19,10 +19,13 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert.sameValue(Object.prototype.hasOwnProperty.call(resolveElementFunction, "name"), false); diff --git a/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js b/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js index 4c329a4b0af8402115be9423a66aa49bff36e02e..7da0373471a6d3969d01bcfb3db3dc95dd74ae50 100644 --- a/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js +++ b/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js @@ -17,11 +17,16 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert.sameValue(Object.prototype.hasOwnProperty.call(resolveElementFunction, "prototype"), false); -assert.throws(TypeError, function() { new resolveElementFunction(); }); +assert.throws(TypeError, function() { + new resolveElementFunction(); +}); diff --git a/test/built-ins/Promise/all/resolve-element-function-prototype.js b/test/built-ins/Promise/all/resolve-element-function-prototype.js index c809e78c6dc60f133a2d618d7f505c69cdaa44cf..f7c66f97c6056abc36f805a97ee0ddb2f86c8131 100644 --- a/test/built-ins/Promise/all/resolve-element-function-prototype.js +++ b/test/built-ins/Promise/all/resolve-element-function-prototype.js @@ -18,10 +18,13 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert.sameValue(Object.getPrototypeOf(resolveElementFunction), Function.prototype); diff --git a/test/built-ins/Promise/all/resolve-from-same-thenable.js b/test/built-ins/Promise/all/resolve-from-same-thenable.js index 02cc9b982bae6d9a613797c5b5a6e4f5428d7651..430026ff8669b3ae03181feaff74cc6e874e8fa6 100644 --- a/test/built-ins/Promise/all/resolve-from-same-thenable.js +++ b/test/built-ins/Promise/all/resolve-from-same-thenable.js @@ -39,7 +39,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1OnFulfilled, p2OnFulfilled, p3OnFulfilled; diff --git a/test/built-ins/Promise/all/resolve-poisoned-then.js b/test/built-ins/Promise/all/resolve-poisoned-then.js index 53de258c727bf7e0bb337f8c4b0cab10e43817ce..191175a698606b6209fbcfc47fcd4eff00fdfaab 100644 --- a/test/built-ins/Promise/all/resolve-poisoned-then.js +++ b/test/built-ins/Promise/all/resolve-poisoned-then.js @@ -60,12 +60,12 @@ try { } promise.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(val) { - if (val !== value) { - $DONE('The promise should be rejected with the expected value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(val) { + if (val !== value) { + $DONE('The promise should be rejected with the expected value.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/all/resolve-thenable.js b/test/built-ins/Promise/all/resolve-thenable.js index c39de44bb9e002b8c9c7343a277228a3a814e3f2..905eff3876227196247452e1983bc06ef571620c 100644 --- a/test/built-ins/Promise/all/resolve-thenable.js +++ b/test/built-ins/Promise/all/resolve-thenable.js @@ -62,12 +62,12 @@ try { } promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be resolved with the expected value.'); - return; - } + if (val !== value) { + $DONE('The promise should be resolved with the expected value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/all/same-reject-function.js b/test/built-ins/Promise/all/same-reject-function.js index 0e0db97c4d5c5640c7a0f20923efdefe66c0f28a..9c8107532d3dbef326f9d6990d842c3d8f014dcc 100644 --- a/test/built-ins/Promise/all/same-reject-function.js +++ b/test/built-ins/Promise/all/same-reject-function.js @@ -13,14 +13,17 @@ info: | ... ---*/ -function rejectFunction() { } +function rejectFunction() {} function Constructor(executor) { executor($ERROR, rejectFunction); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; -var callCount1 = 0, callCount2 = 0; +var callCount1 = 0, + callCount2 = 0; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/all/species-get-error.js b/test/built-ins/Promise/all/species-get-error.js index 0311392b00463671f49196e634d292f6440d18ca..43ed463d6cf2101bdfc506f11f23e8b877073687 100644 --- a/test/built-ins/Promise/all/species-get-error.js +++ b/test/built-ins/Promise/all/species-get-error.js @@ -14,7 +14,7 @@ features: [Symbol.species] ---*/ function C(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Object.defineProperty(C, Symbol.species, { get: function() { diff --git a/test/built-ins/Promise/executor-function-extensible.js b/test/built-ins/Promise/executor-function-extensible.js index d15764391f4b0363af0fab84d8e40a0332526c61..67b539538cc4bbe23c84e7b24a8ce4ab52ab60c2 100644 --- a/test/built-ins/Promise/executor-function-extensible.js +++ b/test/built-ins/Promise/executor-function-extensible.js @@ -11,9 +11,10 @@ info: | ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); diff --git a/test/built-ins/Promise/executor-function-length.js b/test/built-ins/Promise/executor-function-length.js index 01fdedcaa27a24cc61eafb2c923615092cca3336..0558e97b55c879dffebfdf1d0d26b61176a50432 100644 --- a/test/built-ins/Promise/executor-function-length.js +++ b/test/built-ins/Promise/executor-function-length.js @@ -15,9 +15,10 @@ includes: [propertyHelper.js] ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); diff --git a/test/built-ins/Promise/executor-function-name.js b/test/built-ins/Promise/executor-function-name.js index ceb4aa98d058770f8aa1268cf69ea928df14455a..f571504fc98ec79df36caab98a4f00e5ba887665 100644 --- a/test/built-ins/Promise/executor-function-name.js +++ b/test/built-ins/Promise/executor-function-name.js @@ -14,9 +14,10 @@ info: | ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); diff --git a/test/built-ins/Promise/executor-function-nonconstructor.js b/test/built-ins/Promise/executor-function-nonconstructor.js index 53c1c4595ed36067389dbe50f478c64f535aaa6a..e8686c60ed407302416f4f7f40f15014a14c03c1 100644 --- a/test/built-ins/Promise/executor-function-nonconstructor.js +++ b/test/built-ins/Promise/executor-function-nonconstructor.js @@ -12,11 +12,14 @@ info: | ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); assert.sameValue(Object.prototype.hasOwnProperty.call(executorFunction, "prototype"), false); -assert.throws(TypeError, function() { new executorFunction(); }); +assert.throws(TypeError, function() { + new executorFunction(); +}); diff --git a/test/built-ins/Promise/executor-function-prototype.js b/test/built-ins/Promise/executor-function-prototype.js index 83d84e46ef9d36c9eb1b7cb5c67a94b26ee5aa91..c334f4f5b5997e409c248e19312daba833d2de7d 100644 --- a/test/built-ins/Promise/executor-function-prototype.js +++ b/test/built-ins/Promise/executor-function-prototype.js @@ -13,9 +13,10 @@ info: | ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); diff --git a/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js b/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js index 2ac312176d85f537d2db049d35893c8a84d18850..139ed3a1b5e28166aeeec7495dc72873d3fc975b 100644 --- a/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js +++ b/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js @@ -11,5 +11,5 @@ description: Promise prototype exists ---*/ if (Promise.prototype === undefined) { - $ERROR("Expected Promise.prototype to be defined."); + $ERROR("Expected Promise.prototype to be defined."); } diff --git a/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js b/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js index c8719d738b2370ee1dc4b6269ee57ae58fb1281b..23e3452d807ff8aff08817d24eb263982875d04c 100644 --- a/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js +++ b/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js @@ -10,6 +10,5 @@ description: Promise.prototype.constructor is the Promise constructor ---*/ if (Promise.prototype.constructor !== Promise) { - $ERROR("Expected Promise.prototype.constructor to be Promise"); + $ERROR("Expected Promise.prototype.constructor to be Promise"); } - diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js index abd62d61518aaf909bcc3f4b9a531ce940803ba9..958bb552e32280ceb86345a5130e1cf7bbcd3143 100644 --- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js +++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js @@ -10,5 +10,5 @@ description: Promise.prototype.catch is a function ---*/ if (!(Promise.prototype.catch instanceof Function)) { - $ERROR("Expected Promise.prototype.catch to be a function"); + $ERROR("Expected Promise.prototype.catch to be a function"); } diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js index 1dfed96c341aa03aa714dee5955ec5c3933e5bff..20e81c5acdc192242f9ded1882cf30a79e908d8a 100644 --- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js +++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A2.1_T1.js @@ -12,5 +12,5 @@ description: catch is a method on a Promise var p = Promise.resolve(3); if (!(p.catch instanceof Function)) { - $ERROR("Expected p.catch to be a function"); + $ERROR("Expected p.catch to be a function"); } diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js index a13171c31427e1eb959d5e643c1d61205ff0b8eb..6606fdcdc10edf8b273abda65b01a12fee6678a6 100644 --- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js +++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js @@ -14,11 +14,10 @@ var obj = {}; var p = Promise.resolve(obj); -p.catch(function () { - $ERROR("Should not be called - promise is fulfilled"); -}).then(function (arg) { - if (arg !== obj) { - $ERROR("Expected promise to be fulfilled with obj, got " + arg); - } +p.catch(function() { + $ERROR("Should not be called - promise is fulfilled"); +}).then(function(arg) { + if (arg !== obj) { + $ERROR("Expected promise to be fulfilled with obj, got " + arg); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js index b04fbf6300679647d3878a8aab9c84d4aa4212ab..e0194fc4a14625eb86e4a0c84a65d9bb06089f4f 100644 --- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js +++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js @@ -14,11 +14,10 @@ var obj = {}; var p = Promise.reject(obj); -p.then(function () { - $ERROR("Should not be called: did not expect promise to be fulfilled"); -}).catch(function (arg) { - if (arg !== obj) { - $ERROR("Should have been rejected with reason obj, got " + arg); - } +p.then(function() { + $ERROR("Should not be called: did not expect promise to be fulfilled"); +}).catch(function(arg) { + if (arg !== obj) { + $ERROR("Should have been rejected with reason obj, got " + arg); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js b/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js index 905dd966a003e34fe57f70790ad2c86c7198a9c0..70f9f418a9cfef0cde6998b5282f93224bde69a4 100644 --- a/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js +++ b/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js @@ -24,21 +24,29 @@ features: [Symbol] ---*/ var booleanCount = 0; -Boolean.prototype.then = function() { booleanCount += 1; }; +Boolean.prototype.then = function() { + booleanCount += 1; +}; Promise.prototype.catch.call(true); assert.sameValue(booleanCount, 1, 'boolean'); var numberCount = 0; -Number.prototype.then = function() { numberCount += 1; }; +Number.prototype.then = function() { + numberCount += 1; +}; Promise.prototype.catch.call(34); assert.sameValue(numberCount, 1, 'number'); var stringCount = 0; -String.prototype.then = function() { stringCount += 1; }; +String.prototype.then = function() { + stringCount += 1; +}; Promise.prototype.catch.call(''); assert.sameValue(stringCount, 1, 'string'); var symbolCount = 0; -Symbol.prototype.then = function() { symbolCount += 1; }; +Symbol.prototype.then = function() { + symbolCount += 1; +}; Promise.prototype.catch.call(Symbol()); assert.sameValue(symbolCount, 1, 'symbol'); diff --git a/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js b/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js index 1feffa35bbf9a6d16c9df30da1a5b8ac31b9ebd5..20c29cfe620ed01e7ca356af0112251d20a9c99b 100644 --- a/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js +++ b/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js @@ -38,25 +38,37 @@ assert.throws(TypeError, function() { }, 'undefined'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: null }); + Promise.prototype.catch.call({ + then: null + }); }, 'null'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: 1 }); + Promise.prototype.catch.call({ + then: 1 + }); }, 'number'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: '' }); + Promise.prototype.catch.call({ + then: '' + }); }, 'string'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: true }); + Promise.prototype.catch.call({ + then: true + }); }, 'boolean'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: symbol }); + Promise.prototype.catch.call({ + then: symbol + }); }, 'symbol'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: {} }); + Promise.prototype.catch.call({ + then: {} + }); }, 'ordinary object'); diff --git a/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js b/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js index 648b7dd6f9dc70759b08b41588f284dbb22236fe..697bea0b3e427cae031303605dfb570314b6b803 100644 --- a/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js +++ b/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js @@ -7,7 +7,7 @@ esid: sec-promise.prototype.finally features: [Promise.prototype.finally] ---*/ -var target = new Promise(function () {}); +var target = new Promise(function() {}); var returnValue = {}; var callCount = 0; var thisValue = null; @@ -26,8 +26,8 @@ target.then = function(a, b) { return returnValue; }; -var originalFinallyHandler = function () {}; -var anonName = Object(function () {}).name; +var originalFinallyHandler = function() {}; +var anonName = Object(function() {}).name; var result = Promise.prototype.finally.call(target, originalFinallyHandler, 2, 3); diff --git a/test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js b/test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js index 1193119fbeded1f98bce84153a05bc99133ac31d..b8e57281caaed865467e601c1a856572ee5d0488 100644 --- a/test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js +++ b/test/built-ins/Promise/prototype/finally/invokes-then-with-non-function.js @@ -7,7 +7,7 @@ esid: sec-promise.prototype.finally features: [Promise.prototype.finally] ---*/ -var target = new Promise(function () {}); +var target = new Promise(function() {}); var returnValue = {}; var callCount = 0; var thisValue = null; diff --git a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js index 794677b57f684e1573507b77d707fade771aca68..ed75b1687e471003ce106d4cfa16b84ae9c609cf 100644 --- a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js +++ b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls.js @@ -11,29 +11,29 @@ includes: [promiseHelper.js] var sequence = []; var noReason = {}; var no = Promise.reject(noReason); -no.then = function () { +no.then = function() { sequence.push(1); return Promise.prototype.then.apply(this, arguments); }; var yesValue = {}; var yes = Promise.resolve(yesValue); -yes.then = function () { +yes.then = function() { sequence.push(4); return Promise.prototype.then.apply(this, arguments); }; -no.catch(function (e) { +no.catch(function(e) { sequence.push(2); assert.sameValue(e, noReason); throw e; -}).finally(function () { +}).finally(function() { sequence.push(3); return yes; -}).catch(function (e) { +}).catch(function(e) { sequence.push(5); assert.sameValue(e, noReason); -}).then(function () { +}).then(function() { checkSequence(sequence, "All expected callbacks called in correct order"); $DONE(); }).catch($ERROR); diff --git a/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js b/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js index eb82103dafaacb435f66df02e4360e124b6fbdce..1390a523ff738732759844c75cd1e1db545ee14c 100644 --- a/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js +++ b/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js @@ -14,13 +14,13 @@ var thrown = {}; var p = Promise.reject(original); -p.finally(function () { +p.finally(function() { sequence.push(1); assert.sameValue(arguments.length, 0, 'onFinally receives zero args'); throw thrown; -}).then(function () { +}).then(function() { $ERROR('promise is rejected; onFulfill should not be called'); -}).catch(function (reason) { +}).catch(function(reason) { sequence.push(2); assert.sameValue(reason, thrown, 'onFinally can override the rejection reason by throwing'); }).then(function() { diff --git a/test/built-ins/Promise/prototype/finally/resolution-value-no-override.js b/test/built-ins/Promise/prototype/finally/resolution-value-no-override.js index 262f1be844b4a5acde0fc669a2467a6891a8b463..02e539b6fc1a981d23340d05d737141e1bfea812 100644 --- a/test/built-ins/Promise/prototype/finally/resolution-value-no-override.js +++ b/test/built-ins/Promise/prototype/finally/resolution-value-no-override.js @@ -12,11 +12,11 @@ var sequence = []; var obj = {}; var p = Promise.resolve(obj); -p.finally(function () { +p.finally(function() { sequence.push(1); assert.sameValue(arguments.length, 0, 'onFinally receives zero args'); return {}; -}).then(function (x) { +}).then(function(x) { sequence.push(2); assert.sameValue(x, obj, 'onFinally can not override the resolution value'); }).then(function() { diff --git a/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js b/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js index 6e583527c64fa89bb0b2675a39455cd5d10c5610..1fb248ac9857b02578368250afd121f8c648cd06 100644 --- a/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js +++ b/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js @@ -11,30 +11,29 @@ includes: [promiseHelper.js] var sequence = []; var yesValue = {}; var yes = Promise.resolve(yesValue); -yes.then = function () { +yes.then = function() { sequence.push(1); return Promise.prototype.then.apply(this, arguments); }; var noReason = {}; var no = Promise.reject(noReason); -no.then = function () { +no.then = function() { sequence.push(4); return Promise.prototype.then.apply(this, arguments); }; -yes.then(function (x) { +yes.then(function(x) { sequence.push(2); assert.sameValue(x, yesValue); return x; -}).finally(function () { +}).finally(function() { sequence.push(3); return no; -}).catch(function (e) { +}).catch(function(e) { sequence.push(5); assert.sameValue(e, noReason); -}).then(function () { +}).then(function() { checkSequence(sequence, "All expected callbacks called in correct order"); $DONE(); }).catch($ERROR); - diff --git a/test/built-ins/Promise/prototype/finally/species-symbol.js b/test/built-ins/Promise/prototype/finally/species-symbol.js index 15a8eac646f76d444683488d27970383e91da68e..0a8de6365025d229cb1c8bfaba4cf27b942a5718 100644 --- a/test/built-ins/Promise/prototype/finally/species-symbol.js +++ b/test/built-ins/Promise/prototype/finally/species-symbol.js @@ -9,12 +9,14 @@ features: [Promise.prototype.finally] class MyPromise extends Promise { - static get [Symbol.species]() { return Promise; } + static get[Symbol.species]() { + return Promise; + } } var p = Promise - .resolve() - .finally(() => MyPromise.resolve()); + .resolve() + .finally(() => MyPromise.resolve()); assert.sameValue(p instanceof Promise, true); assert.sameValue(p instanceof MyPromise, false); diff --git a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js index 5db1a5f49467bdb615e382ca47ff10cddc35c1a4..ca812c499c2fcfc0402ab455ead5fa57a6f60acb 100644 --- a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js +++ b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js @@ -8,7 +8,9 @@ features: [Promise.prototype.finally] ---*/ class FooPromise extends Promise { - static get [Symbol.species]() { return Promise; } + static get[Symbol.species]() { + return Promise; + } } var p = Promise.reject().finally(() => FooPromise.reject()); diff --git a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js index db1b151cddfe48ba1c3c4d3996f63e16bc8e2e45..8e80ab43d85696b99b43de6c2357ee59c564e8dd 100644 --- a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js +++ b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js @@ -8,7 +8,9 @@ features: [Promise.prototype.finally] ---*/ class FooPromise extends Promise { - static get [Symbol.species]() { return Promise; } + static get[Symbol.species]() { + return Promise; + } } var p = Promise.resolve().finally(() => FooPromise.resolve()); diff --git a/test/built-ins/Promise/prototype/finally/this-value-non-promise.js b/test/built-ins/Promise/prototype/finally/this-value-non-promise.js index 16d9f8d76640f3ae02c1ddb9d8c1dc4e55a10286..6bed146e029c76bbeb3cbcef5c4a58a9ddd692d5 100644 --- a/test/built-ins/Promise/prototype/finally/this-value-non-promise.js +++ b/test/built-ins/Promise/prototype/finally/this-value-non-promise.js @@ -11,7 +11,9 @@ features: [Promise.prototype.finally] var called = false; var p = new Proxy(Promise.resolve(), {}); var oldThen = Promise.prototype.then; -Promise.prototype.then = () => { called = true; }; +Promise.prototype.then = () => { + called = true; +}; Promise.prototype.finally.call(p); assert.sameValue(called, true); Promise.prototype.then = oldThen; diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js index cdeccdadd31806985d76bafd8854df7f3eee4c17..253e22fe38c39fa01a54234996c09ffa057240e7 100644 --- a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js +++ b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js @@ -11,9 +11,11 @@ features: [Symbol, Promise.prototype.finally] var symbol = Symbol(); -var thrower = function () { throw new Test262Error('this should never happen'); }; +var thrower = function() { + throw new Test262Error('this should never happen'); +}; -var p = new Promise(function () {}); +var p = new Promise(function() {}); p.then = undefined; assert.throws(TypeError, function() { diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js b/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js index d8afd2612c7efdc6cdb27e6230114d42e709d1ac..99e124db036efcb759a1c6113be864beab55c185 100644 --- a/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js +++ b/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js @@ -9,7 +9,7 @@ esid: sec-promise.prototype.finally features: [Promise.prototype.finally] ---*/ -var poisonedThen = Object.defineProperty(new Promise(function () {}), 'then', { +var poisonedThen = Object.defineProperty(new Promise(function() {}), 'then', { get: function() { throw new Test262Error(); } diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-throws.js b/test/built-ins/Promise/prototype/finally/this-value-then-throws.js index 7fff8d51aa22a015a199e0e816ce54c4c5646a28..e8603f88e59ea2a735b49e870e6d12c9a4f19a86 100644 --- a/test/built-ins/Promise/prototype/finally/this-value-then-throws.js +++ b/test/built-ins/Promise/prototype/finally/this-value-then-throws.js @@ -9,7 +9,7 @@ esid: sec-promise.prototype.finally features: [Promise.prototype.finally] ---*/ -var thrower = new Promise(function () {}); +var thrower = new Promise(function() {}); thrower.then = function() { throw new Test262Error(); }; diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js index fd1519766cda07b7866ada5ac379098e41675d83..78aa38e0105386d52c4061538f773ce7a4aab813 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.4_A1.1_T1.js @@ -14,27 +14,27 @@ flags: [async] var sequence = []; -var p = new Promise(function(resolve, reject){ - sequence.push(1); - resolve(""); +var p = new Promise(function(resolve, reject) { + sequence.push(1); + resolve(""); }); -p.then(function () { - sequence.push(3); -}).then(function () { - sequence.push(5); -}).then(function () { - sequence.push(7); +p.then(function() { + sequence.push(3); +}).then(function() { + sequence.push(5); +}).then(function() { + sequence.push(7); }); -p.then(function () { - sequence.push(4); -}).then(function () { - sequence.push(6); -}).then(function () { - sequence.push(8); -}).then(function () { - checkSequence(sequence, "Sequence should be as expected"); +p.then(function() { + sequence.push(4); +}).then(function() { + sequence.push(6); +}).then(function() { + sequence.push(8); +}).then(function() { + checkSequence(sequence, "Sequence should be as expected"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js index cb02aa58a5dd54368621c23b497d2db94a52bcf0..971c411f958b31ad6e52b853eba22e0502a5a841 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T1.js @@ -15,18 +15,18 @@ flags: [async] var resolveP1, rejectP2, sequence = []; -(new Promise(function (resolve, reject) { - resolveP1 = resolve; -})).then(function (msg) { - sequence.push(msg); -}).then(function () { - checkSequence(sequence, "Expected 1,2,3"); +(new Promise(function(resolve, reject) { + resolveP1 = resolve; +})).then(function(msg) { + sequence.push(msg); +}).then(function() { + checkSequence(sequence, "Expected 1,2,3"); }).then($DONE, $DONE); -(new Promise(function (resolve, reject) { - rejectP2 = reject; -})).catch(function (msg) { - sequence.push(msg); +(new Promise(function(resolve, reject) { + rejectP2 = reject; +})).catch(function(msg) { + sequence.push(msg); }); rejectP2(2); diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js index 5c099d77523eb856df4bc796ca9d3f38c9a0ab84..4f02681ab17966540c5ece061748a0f0aefaa53a 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js +++ b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T2.js @@ -14,26 +14,26 @@ flags: [async] ---*/ var resolveP1, rejectP2, p1, p2, - sequence = []; + sequence = []; -p1 = new Promise(function (resolve, reject) { - resolveP1 = resolve; +p1 = new Promise(function(resolve, reject) { + resolveP1 = resolve; }); -p2 = new Promise(function (resolve, reject) { - rejectP2 = reject; +p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; }); rejectP2(3); resolveP1(2); -p1.then(function (msg) { - sequence.push(msg); +p1.then(function(msg) { + sequence.push(msg); }); -p2.catch(function (msg) { - sequence.push(msg); -}).then(function () { - checkSequence(sequence, "Expected 1,2,3"); +p2.catch(function(msg) { + sequence.push(msg); +}).then(function() { + checkSequence(sequence, "Expected 1,2,3"); }).then($DONE, $DONE); sequence.push(1); diff --git a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js index 1b430f2817ebf71b3c4283a3df18067a3aeec896..1208cdb894ef5db65bfff6493286632f46085d29 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js +++ b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js @@ -14,30 +14,28 @@ flags: [async] ---*/ var resolveP1, rejectP2, p1, p2, - sequence = []; + sequence = []; -p1 = new Promise(function (resolve, reject) { - resolveP1 = resolve; +p1 = new Promise(function(resolve, reject) { + resolveP1 = resolve; }); -p2 = new Promise(function (resolve, reject) { - rejectP2 = reject; +p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; }); rejectP2(3); resolveP1(2); -Promise.resolve().then(function () { - p1.then(function (msg) { - sequence.push(msg); - }); +Promise.resolve().then(function() { + p1.then(function(msg) { + sequence.push(msg); + }); - p2.catch(function (msg) { - sequence.push(msg); - }).then(function () { - checkSequence(sequence, "Expected 1,2,3"); - }).then($DONE, $DONE); + p2.catch(function(msg) { + sequence.push(msg); + }).then(function() { + checkSequence(sequence, "Expected 1,2,3"); + }).then($DONE, $DONE); }); sequence.push(1); - - diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js index 79d7906b5868cc647dce44c2cee7507619ed5fb1..f7ce622d9ea1bf0f64b4ec42c383e0fbb1bc4534 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js @@ -10,5 +10,5 @@ description: Promise.prototype.then is a function of two arguments ---*/ if (!(Promise.prototype.then instanceof Function)) { - $ERROR("Expected Promise.prototype.then to be a function"); + $ERROR("Expected Promise.prototype.then to be a function"); } diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js index b22c332d457fdf32d91926d3ca417b580812a384..0d07a720b363d8afb9be9c354e0bbfe152cffc07 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js @@ -9,14 +9,12 @@ author: Sam Mikes description: Promise.prototype.then is a function of two arguments ---*/ -var p = new Promise(function () {}); +var p = new Promise(function() {}); if (!(p.then instanceof Function)) { - $ERROR("Expected p.then to be a function"); + $ERROR("Expected p.then to be a function"); } if (p.then.length !== 2) { - $ERROR("Expected p.then to be a function of two arguments"); + $ERROR("Expected p.then to be a function of two arguments"); } - - diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js index b05925ef5b21338e4d7b3f0dcbcc2e06e5e0deea..723ff6aac63fc2075cd5ecc101f0a782d40d0b0b 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js @@ -9,8 +9,8 @@ author: Sam Mikes description: Promise.prototype.then throw if 'this' is non-Object ---*/ -var p = new Promise(function () {}); +var p = new Promise(function() {}); assert.throws(TypeError, function() { - p.then.call(3, function () {}, function () {}); + p.then.call(3, function() {}, function() {}); }); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js index bcaa7e48d090c1acf5442c89daec7f2b2c3c3cf9..13b4bf050833621516f7755f7a12fe082d1034c0 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js @@ -9,11 +9,10 @@ author: Sam Mikes description: Promise.prototype.then throw if 'this' is non-Promise Object ---*/ -function ZeroArgConstructor() { -} +function ZeroArgConstructor() {} var z = new ZeroArgConstructor(); assert.throws(TypeError, function() { - Promise.then.call(z, function () {}, function () {}); + Promise.then.call(z, function() {}, function() {}); }); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js index ee43a0a4a40ee863e4e3071e178fda38feb7637a..244c9105b8f1527c2806a6b15811f649f5fe7442 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js @@ -15,8 +15,8 @@ var obj = {}; var p = Promise.resolve(obj); p.then(undefined, undefined) - .then(function (arg) { - if (arg !== obj) { - $ERROR("Expected resolution object to be passed through, got " + arg); - } - }).then($DONE, $DONE); + .then(function(arg) { + if (arg !== obj) { + $ERROR("Expected resolution object to be passed through, got " + arg); + } + }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js index 2032211c2b6cfc59a39f0b888eaf8fb7ae49bd5b..5a8bf136eda74e22ad0addcd17defb753d7430fb 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T2.js @@ -14,10 +14,10 @@ flags: [async] var obj = {}; var p = Promise.reject(obj); -p.then(undefined, undefined).then(function () { - $ERROR("Should not be called -- promise was rejected."); -}, function (arg) { - if (arg !== obj) { - $ERROR("Expected resolution object to be passed through, got " + arg); - } - }).then($DONE, $DONE); +p.then(undefined, undefined).then(function() { + $ERROR("Should not be called -- promise was rejected."); +}, function(arg) { + if (arg !== obj) { + $ERROR("Expected resolution object to be passed through, got " + arg); + } +}).then($DONE, $DONE); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js index eecbe9af837bef2b431093304a50737f478a449c..a4198cde01d34ebcc9d672dd34df68e3a0986046 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T1.js @@ -15,8 +15,8 @@ var obj = {}; var p = Promise.resolve(obj); p.then(3, 5) - .then(function (arg) { - if (arg !== obj) { - $ERROR("Expected resolution object to be passed through, got " + arg); - } - }).then($DONE, $DONE); + .then(function(arg) { + if (arg !== obj) { + $ERROR("Expected resolution object to be passed through, got " + arg); + } + }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js index e4b503df0761c8cb4e8f0597e2e7f6f6e698ff52..b802575c50321ef6c9cefb45f2c8176d44d79455 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.2_T2.js @@ -14,10 +14,10 @@ flags: [async] var obj = {}; var p = Promise.reject(obj); -p.then(3, 5).then(function () { - $ERROR("Should not be called -- promise was rejected."); -}, function (arg) { - if (arg !== obj) { - $ERROR("Expected resolution object to be passed through, got " + arg); - } +p.then(3, 5).then(function() { + $ERROR("Should not be called -- promise was rejected."); +}, function(arg) { + if (arg !== obj) { + $ERROR("Expected resolution object to be passed through, got " + arg); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js index 7a9f02a5e3bdb5494919abda2afdca0e608c6722..51fd71dadf9ed79a41a54518ff337654bf1e8a33 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.1_T1.js @@ -13,27 +13,27 @@ flags: [async] ---*/ var sequence = [], - pResolve, - p = new Promise(function (resolve, reject) { - pResolve = resolve; - }); + pResolve, + p = new Promise(function(resolve, reject) { + pResolve = resolve; + }); sequence.push(1); -p.then(function () { - sequence.push(3); - checkSequence(sequence, "Should be second"); +p.then(function() { + sequence.push(3); + checkSequence(sequence, "Should be second"); }).catch($DONE); -Promise.resolve().then(function () { - // enqueue another then-handler - p.then(function () { - sequence.push(4); - checkSequence(sequence, "Should be third"); - }).then($DONE, $DONE); +Promise.resolve().then(function() { + // enqueue another then-handler + p.then(function() { + sequence.push(4); + checkSequence(sequence, "Should be third"); + }).then($DONE, $DONE); - sequence.push(2); - checkSequence(sequence, "Should be first"); + sequence.push(2); + checkSequence(sequence, "Should be first"); - pResolve(); + pResolve(); }).catch($DONE); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js index fdf1105bc5fbc02004b3815f648fde03f8d3d3fa..4b4d801e0f94919e624503c743d51f7644cd528b 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.2_T1.js @@ -13,29 +13,29 @@ flags: [async] ---*/ var sequence = [], - pResolve, - p = new Promise(function (resolve, reject) { - pResolve = resolve; - }); + pResolve, + p = new Promise(function(resolve, reject) { + pResolve = resolve; + }); sequence.push(1); pResolve(); -p.then(function () { - sequence.push(3); - checkSequence(sequence, "Should be first"); +p.then(function() { + sequence.push(3); + checkSequence(sequence, "Should be first"); }).catch($DONE); -Promise.resolve().then(function () { - // enqueue another then-handler - p.then(function () { - sequence.push(5); - checkSequence(sequence, "Should be third"); - }).then($DONE, $DONE); +Promise.resolve().then(function() { + // enqueue another then-handler + p.then(function() { + sequence.push(5); + checkSequence(sequence, "Should be third"); + }).then($DONE, $DONE); - sequence.push(4); - checkSequence(sequence, "Should be second"); + sequence.push(4); + checkSequence(sequence, "Should be second"); }).catch($DONE); sequence.push(2); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js index 7af732e0b44a545b847a7742cd238452f9be9f52..1455350ad53f2b21fc77af797dd3b78323276aa4 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A5.3_T1.js @@ -13,33 +13,33 @@ flags: [async] ---*/ var sequence = [], - pReject, - p = new Promise(function (resolve, reject) { - pReject = reject; - }); + pReject, + p = new Promise(function(resolve, reject) { + pReject = reject; + }); sequence.push(1); pReject(); -p.then(function () { - $ERROR("Should not be called -- Promise rejected."); -}, function () { - sequence.push(3); - checkSequence(sequence, "Should be first"); +p.then(function() { + $ERROR("Should not be called -- Promise rejected."); +}, function() { + sequence.push(3); + checkSequence(sequence, "Should be first"); }).catch($DONE); -Promise.resolve().then(function () { - // enqueue another then-handler - p.then(function () { - $ERROR("Should not be called (2) -- Promise rejected."); - }, function () { - sequence.push(5); - checkSequence(sequence, "Should be third"); - }).then($DONE, $DONE); - - sequence.push(4); - checkSequence(sequence, "Should be second"); +Promise.resolve().then(function() { + // enqueue another then-handler + p.then(function() { + $ERROR("Should not be called (2) -- Promise rejected."); + }, function() { + sequence.push(5); + checkSequence(sequence, "Should be third"); + }).then($DONE, $DONE); + + sequence.push(4); + checkSequence(sequence, "Should be second"); }).catch($DONE); sequence.push(2); diff --git a/test/built-ins/Promise/prototype/then/capability-executor-called-twice.js b/test/built-ins/Promise/prototype/then/capability-executor-called-twice.js index 5006c282dc6eed1ca62a9499138d614db7fa613a..f72869ba3fbc04f34589f0c47290e28f19e5f8a1 100644 --- a/test/built-ins/Promise/prototype/then/capability-executor-called-twice.js +++ b/test/built-ins/Promise/prototype/then/capability-executor-called-twice.js @@ -33,14 +33,14 @@ var promise = new class extends Promise { } return super(executor); } -}(function(){}); +}(function() {}); var checkPoint = ""; constructorFunction = function(executor) { checkPoint += "a"; executor(); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }; promise.then(); @@ -51,7 +51,7 @@ constructorFunction = function(executor) { checkPoint += "a"; executor(undefined, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }; promise.then(); @@ -61,9 +61,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { constructorFunction = function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }; promise.then(); @@ -74,9 +74,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { constructorFunction = function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }; promise.then(); @@ -89,7 +89,7 @@ assert.throws(TypeError, function() { checkPoint += "a"; executor("invalid value", 123); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }; promise.then(); diff --git a/test/built-ins/Promise/prototype/then/capability-executor-not-callable.js b/test/built-ins/Promise/prototype/then/capability-executor-not-callable.js index d230947d6ba2daa1cb9f777c67632d75226d25c6..28f4b15b637f97f2bddaf4c8b0511cceb3725b19 100644 --- a/test/built-ins/Promise/prototype/then/capability-executor-not-callable.js +++ b/test/built-ins/Promise/prototype/then/capability-executor-not-callable.js @@ -35,7 +35,7 @@ var promise = new class extends Promise { } return super(executor); } -}(function(){}); +}(function() {}); var checkPoint = ""; assert.throws(TypeError, function() { @@ -72,7 +72,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { constructorFunction = function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; }; promise.then(); @@ -83,7 +83,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { constructorFunction = function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; }; promise.then(); diff --git a/test/built-ins/Promise/prototype/then/ctor-access-count.js b/test/built-ins/Promise/prototype/then/ctor-access-count.js index 51e00ad784462ff9fee2ca2db96a5f3dd366839a..585850ed9bb0b1c486850756021116e609e4cb8f 100644 --- a/test/built-ins/Promise/prototype/then/ctor-access-count.js +++ b/test/built-ins/Promise/prototype/then/ctor-access-count.js @@ -29,7 +29,9 @@ flags: [async] ---*/ var callCount = 0; -var prms = new Promise(function(resolve) { resolve(); }); +var prms = new Promise(function(resolve) { + resolve(); +}); Object.defineProperty(prms, 'constructor', { get: function() { callCount += 1; @@ -38,12 +40,12 @@ Object.defineProperty(prms, 'constructor', { }); prms.then(function() { - if (callCount !== 1) { - $DONE('Expected constructor access count: 1. Actual: ' + callCount); - return; - } + if (callCount !== 1) { + $DONE('Expected constructor access count: 1. Actual: ' + callCount); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/ctor-poisoned.js b/test/built-ins/Promise/prototype/then/ctor-poisoned.js index 080d26a1c36998f190f6aabae992bcfd2cc7373b..d41a71a155c9c22e8eb5c0b6d7266170ccd74581 100644 --- a/test/built-ins/Promise/prototype/then/ctor-poisoned.js +++ b/test/built-ins/Promise/prototype/then/ctor-poisoned.js @@ -13,9 +13,9 @@ description: Promise.prototype.then throws if Get(promise, "constructor") throws var p = Promise.resolve("foo"); Object.defineProperty(p, "constructor", { - get: function () { - throw new Test262Error(); - } + get: function() { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { diff --git a/test/built-ins/Promise/prototype/then/ctor-throws.js b/test/built-ins/Promise/prototype/then/ctor-throws.js index c6b52cb4074d7490288ed8e722c3e4825755f577..1532089f7a69dcc8184a257730b1941faf33af4f 100644 --- a/test/built-ins/Promise/prototype/then/ctor-throws.js +++ b/test/built-ins/Promise/prototype/then/ctor-throws.js @@ -26,10 +26,14 @@ var BadCtor = function() { }; var originalSpecies = Object.getOwnPropertyDescriptor(Promise, Symbol.species); -Object.defineProperty(Promise, Symbol.species, { value: BadCtor }); +Object.defineProperty(Promise, Symbol.species, { + value: BadCtor +}); try { - var p = new Promise(function(resolve) { resolve(); }); + var p = new Promise(function(resolve) { + resolve(); + }); assert.throws(Test262Error, function() { p.then(); diff --git a/test/built-ins/Promise/prototype/then/prfm-fulfilled.js b/test/built-ins/Promise/prototype/then/prfm-fulfilled.js index 3db69300afa90acb42c874ccd6d6a485b87041b3..285e12f9cb3436f0d7cdab2591de32528f15283f 100644 --- a/test/built-ins/Promise/prototype/then/prfm-fulfilled.js +++ b/test/built-ins/Promise/prototype/then/prfm-fulfilled.js @@ -20,14 +20,16 @@ flags: [async] ---*/ var value = {}; -var p = new Promise(function(resolve) { resolve(value); }); +var p = new Promise(function(resolve) { + resolve(value); +}); p.then(function(x) { - if (x !== value) { - $DONE('The `onFulfilled` handler should be invoked with the promise result.'); - return; - } - $DONE(); - }, function() { - $DONE('The `onRejected` handler should not be invoked.'); - }); + if (x !== value) { + $DONE('The `onFulfilled` handler should be invoked with the promise result.'); + return; + } + $DONE(); +}, function() { + $DONE('The `onRejected` handler should not be invoked.'); +}); diff --git a/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js b/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js index 64c3542a45f5b4970ae15871f5b3edf61d9d5625..b0251ddfe82981faba3a0d8a56b4080f58d5e254 100644 --- a/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js +++ b/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js @@ -21,16 +21,18 @@ flags: [async] var value = {}; var resolve; -var p = new Promise(function(_resolve) { resolve = _resolve; }); +var p = new Promise(function(_resolve) { + resolve = _resolve; +}); p.then(function(x) { - if (x !== value) { - $DONE('The `onFulfilled` handler should be invoked with the promise result.'); - return; - } - $DONE(); - }, function() { - $DONE('The `onRejected` handler should not be invoked.'); - }); + if (x !== value) { + $DONE('The `onFulfilled` handler should be invoked with the promise result.'); + return; + } + $DONE(); +}, function() { + $DONE('The `onRejected` handler should not be invoked.'); +}); resolve(value); diff --git a/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js b/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js index 062acafc29ff98ac8591722bb37c721e63d7abbd..998ecae2e34ab8531ae269ab73a137204e981f3a 100644 --- a/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js +++ b/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js @@ -21,16 +21,18 @@ flags: [async] var value = {}; var reject; -var p = new Promise(function(_, _reject) { reject = _reject; }); +var p = new Promise(function(_, _reject) { + reject = _reject; +}); p.then(function() { - $DONE('The `onFulfilled` handler should not be invoked.'); - }, function(x) { - if (x !== value) { - $DONE('The `onRejected` handler should be invoked with the promise result.'); - return; - } - $DONE(); - }); + $DONE('The `onFulfilled` handler should not be invoked.'); +}, function(x) { + if (x !== value) { + $DONE('The `onRejected` handler should be invoked with the promise result.'); + return; + } + $DONE(); +}); reject(value); diff --git a/test/built-ins/Promise/prototype/then/prfm-rejected.js b/test/built-ins/Promise/prototype/then/prfm-rejected.js index 22e3b81b55405b49d2168fcb65f0f8ce887acd74..de59061bc9141334d076e91283d05f17e46b3216 100644 --- a/test/built-ins/Promise/prototype/then/prfm-rejected.js +++ b/test/built-ins/Promise/prototype/then/prfm-rejected.js @@ -20,14 +20,16 @@ flags: [async] ---*/ var value = {}; -var p = new Promise(function(_, reject) { reject(value); }); +var p = new Promise(function(_, reject) { + reject(value); +}); p.then(function() { - $DONE('The `onFulfilled` handler should not be invoked.'); - }, function(x) { - if (x !== value) { - $DONE('The `onRejected` handler should be invoked with the promise result.'); - return; - } - $DONE(); - }); + $DONE('The `onFulfilled` handler should not be invoked.'); +}, function(x) { + if (x !== value) { + $DONE('The `onRejected` handler should be invoked with the promise result.'); + return; + } + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js index 9855919772617bb3c425281cbe182a633cd9016f..5fce956c19272001830da62f6d65d99b8afc42a4 100644 --- a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js +++ b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js @@ -22,23 +22,27 @@ flags: [async] ---*/ var resolve; -var thenable = new Promise(function(_resolve) { resolve = _resolve; }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(_resolve) { + resolve = _resolve; +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/reject-pending-rejected.js b/test/built-ins/Promise/prototype/then/reject-pending-rejected.js index 7d881d19e0ce40d26c23d2077c395da4c3c972f5..03ff2902b804a3f969afbc9539ca903a4f231e95 100644 --- a/test/built-ins/Promise/prototype/then/reject-pending-rejected.js +++ b/test/built-ins/Promise/prototype/then/reject-pending-rejected.js @@ -23,23 +23,27 @@ flags: [async] ---*/ var reject; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js b/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js index 8845061ad2ca95c04667c00ace170c12c9834a31..97876bec04e0d8d847e99905b49f2327171b45ab 100644 --- a/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js +++ b/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js @@ -29,21 +29,25 @@ info: | flags: [async] ---*/ -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/reject-settled-rejected.js b/test/built-ins/Promise/prototype/then/reject-settled-rejected.js index 8cfa17fb302ac61244b35c215065928ba7a14ce3..3b0ae8f1c69817aee4cfb115011c1ef6ce4fb537 100644 --- a/test/built-ins/Promise/prototype/then/reject-settled-rejected.js +++ b/test/built-ins/Promise/prototype/then/reject-settled-rejected.js @@ -29,21 +29,25 @@ info: | flags: [async] ---*/ -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_, reject) { reject(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js index afd23f08af0b8cabad1d4f112c55f0ca665d2ace..1866a7c0ede15dc6e9d2d4827adc5371deeace86 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js @@ -22,22 +22,24 @@ flags: [async] ---*/ var resolve; -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return 23; - }); + return 23; +}); p2.then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js index 72daa6189a361a8d322816cac71d5bdc306cd3b4..f67aae302d40b45f8340fa546f0d47b88b1c370e 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js @@ -26,24 +26,28 @@ info: | flags: [async] ---*/ -var nonThenable = { then: null }; +var nonThenable = { + then: null +}; var resolve; -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return nonThenable; - }); + return nonThenable; +}); p2.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js index 7b2147f4ddf55c59106c99354f06b1f26fd5ce4e..bf5912812cc55a231f90e1bde13267c2335ebf1c 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js @@ -30,22 +30,24 @@ var poisonedThen = Object.defineProperty({}, 'then', { throw value; } }); -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return poisonedThen; - }); + return poisonedThen; +}); p2.then(function(x) { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== value) { - $DONE('The promise should be rejected with the thrown exception.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== value) { + $DONE('The promise should be rejected with the thrown exception.'); + return; + } - $DONE(); - }); + $DONE(); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js index 299bd546751351fab20e9933e7ffc22f52a6a122..0a1f979c48b5dc7f5fa250c97debb672c64dcadc 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js @@ -30,8 +30,12 @@ flags: [async] var value = {}; var resolve; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; thenable.then = function(resolve) { @@ -39,18 +43,18 @@ thenable.then = function(resolve) { }; p2 = p1.then(function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js index f27f9034d5ed56bb9d488b226bf1dfbd2ef21b5e..16afaee982ae5652b68186a0d657dcdcbd59eaaf 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js @@ -24,27 +24,29 @@ flags: [async] ---*/ var resolve; -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return p2; - }); + return p2; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } - - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } + + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + + $DONE(); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js index 9df8932aafcf09af3c942f5fc1038287b7405f95..1d32eca2499fa549f6cad53765abf68ee8726c52 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js @@ -30,23 +30,27 @@ flags: [async] var value = {}; var resolve; -var thenable = new Promise(function(resolve) { resolve(value); }); -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js index 27ba9746f79660a57191699cd74b2288e618b70f..01f09f241948014ee54b1a2a51842154267b173e 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js @@ -23,22 +23,24 @@ flags: [async] ---*/ var reject; -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return 23; - }); + return 23; +}); p2.then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js index 85178a822a2c6d714101de0202a481a7e9f157c3..61bc8613c3c2dd1745c145bdca76bd1f413ab31b 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js @@ -27,24 +27,28 @@ info: | flags: [async] ---*/ -var nonThenable = { then: null }; +var nonThenable = { + then: null +}; var reject; -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return nonThenable; - }); + return nonThenable; +}); p2.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js index 83e53f8041b914d0d50c11fdbcec18d8af2009a0..800d110046b29b608ee6e28044ba1ef218d2c0c5 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js @@ -31,22 +31,24 @@ var poisonedThen = Object.defineProperty({}, 'then', { throw value; } }); -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return poisonedThen; - }); + return poisonedThen; +}); p2.then(function(x) { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== value) { - $DONE('The promise should be rejected with the thrown exception.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== value) { + $DONE('The promise should be rejected with the thrown exception.'); + return; + } - $DONE(); - }); + $DONE(); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js index 2d4e1c0115678ebb3ce7f08d54e70c6af60ac40e..d1bbd6737744a8a4d227c768c1695a30c79973ad 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js @@ -31,8 +31,12 @@ flags: [async] var value = {}; var reject; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; thenable.then = function(resolve) { @@ -40,18 +44,18 @@ thenable.then = function(resolve) { }; p2 = p1.then(function() {}, function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js index 7ae0c23e330d585471a2349abed1d878f277d080..2a3b3797886380acdfd112a76e034b1d6463b31c 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js @@ -25,27 +25,29 @@ flags: [async] ---*/ var reject; -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return p2; - }); + return p2; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } - - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } + + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + + $DONE(); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js index 933ce34ece0cdb7fac8bc36b397d2a555cf69220..94cc16e863b66335a33dfb98600676ed38e82c4b 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js @@ -31,23 +31,27 @@ flags: [async] var value = {}; var reject; -var thenable = new Promise(function(resolve) { resolve(value); }); -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js index 003d0ee610e74124092e3fc41fd5437364f0ee49..f57576ee8bd8697af9df0e4b0d5121f2ba415f74 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js @@ -28,20 +28,22 @@ info: | flags: [async] ---*/ -var p1 = new Promise(function(resolve) { resolve(); }); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return 23; - }); + return 23; +}); p2.then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js index 484c6f6aa8b64ad107c1e9eb05d184c9fb74b356..5065cd131b01a4bc128669c0542a49e8f1de7cbc 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js @@ -33,21 +33,25 @@ info: | flags: [async] ---*/ -var nonThenable = { then: null }; -var p1 = new Promise(function(resolve) { resolve(); }); +var nonThenable = { + then: null +}; +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return nonThenable; - }); + return nonThenable; +}); p2.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js index 303044a53534c0d25291772bbc7bb0e9baa6f73b..8ac375540f393ed500989eb1d3a95e4be28a783e 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js @@ -36,20 +36,22 @@ var poisonedThen = Object.defineProperty({}, 'then', { throw value; } }); -var p1 = new Promise(function(resolve) { resolve(); }); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return poisonedThen; - }); + return poisonedThen; +}); p2.then(function(x) { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== value) { - $DONE('The promise should be rejected with the thrown exception.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== value) { + $DONE('The promise should be rejected with the thrown exception.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js index f3d108dfacd7b13010c9aa595e3a7e8c753e9f27..abcea8a243424548b7e0863548bf032ceea68df1 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js @@ -36,8 +36,12 @@ flags: [async] ---*/ var value = {}; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; thenable.then = function(resolve) { @@ -45,16 +49,16 @@ thenable.then = function(resolve) { }; p2 = p1.then(function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js index 99f1d05a4b26c6cb968cc90da4c49897859f4dbd..1091fe75d953ef0b32e1af76e546fd9d271a7d02 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js @@ -30,25 +30,27 @@ info: | flags: [async] ---*/ -var p1 = new Promise(function(resolve) { resolve(); }); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return p2; - }); + return p2; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } - - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } + + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js index 0baaa5c0dbf2af8a3f0124e7133796c49ee7b944..98a718bf27ef6979c5109ba47c2436f19dfef78a 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js @@ -36,21 +36,25 @@ flags: [async] ---*/ var value = {}; -var thenable = new Promise(function(resolve) { resolve(value); }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js index 3a8992d391ca10e8c83ae719415de90aadd4a587..a4828310af555c55c0057a07dc477bec386c13cc 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js @@ -28,20 +28,22 @@ info: | flags: [async] ---*/ -var p1 = new Promise(function(_, reject) { reject(); }); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return 23; - }); + return 23; +}); p2.then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js index 8e4b424fd925c4f988372051753658b8939585b1..13e72aba0db9ff68c82cfa0e9350462565c24cab 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js @@ -33,21 +33,25 @@ info: | flags: [async] ---*/ -var nonThenable = { then: null }; -var p1 = new Promise(function(_, reject) { reject(); }); +var nonThenable = { + then: null +}; +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return nonThenable; - }); + return nonThenable; +}); p2.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js index 6087049a9a2399227e6e1976ffcebf1fbc0ea241..a60f1b10c32c87dcd88cfd390ba9684b748da250 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js @@ -36,20 +36,22 @@ var poisonedThen = Object.defineProperty({}, 'then', { throw value; } }); -var p1 = new Promise(function(_, reject) { reject(); }); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return poisonedThen; - }); + return poisonedThen; +}); p2.then(function(x) { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== value) { - $DONE('The promise should be rejected with the thrown exception.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== value) { + $DONE('The promise should be rejected with the thrown exception.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js index 68f661a11d72a3df42ae47d332a7a71d61d74e3e..babecd9e1a2ea09ac88696040f5b60a59c4b81d1 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js @@ -36,8 +36,12 @@ flags: [async] ---*/ var value = {}; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_, reject) { reject(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; thenable.then = function(resolve) { @@ -45,16 +49,16 @@ thenable.then = function(resolve) { }; p2 = p1.then(function() {}, function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js index 877edfc7d60cee90a3eebc4b7ec5ae490d10c6e7..9d7f136931b4418b06a98a38570203ecef8f4b4c 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js @@ -30,25 +30,27 @@ info: | flags: [async] ---*/ -var p1 = new Promise(function(_, reject) { reject(); }); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return p2; - }); + return p2; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } - - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } + + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js index 1a3855254e59116e57e41795584f4c3b2f2ce820..333bbeb14c75c959fc4b229eea7c5d26157b4081 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js @@ -36,21 +36,25 @@ flags: [async] ---*/ var value = {}; -var thenable = new Promise(function(resolve) { resolve(value); }); -var p1 = new Promise(function(_, reject) { reject(); }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js index a956ab8a30c53f74b7623558bdb5fd2d67253212..4a9918517eb77fe2be3af10724e6d20ae3fac5df 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js @@ -13,25 +13,25 @@ flags: [async, noStrict] ---*/ var expectedThis = this, - obj = {}; + obj = {}; var p = Promise.resolve(obj).then(function(arg) { - if (this !== expectedThis) { - $DONE("'this' must be global object, got " + this); - return; - } + if (this !== expectedThis) { + $DONE("'this' must be global object, got " + this); + return; + } - if (arg !== obj) { - $DONE("Expected promise to be fulfilled by obj, actually " + arg); - return; - } + if (arg !== obj) { + $DONE("Expected promise to be fulfilled by obj, actually " + arg); + return; + } - if (arguments.length !== 1) { - $DONE('Expected handler function to be called with exactly 1 argument.'); - return; - } + if (arguments.length !== 1) { + $DONE('Expected handler function to be called with exactly 1 argument.'); + return; + } - $DONE(); + $DONE(); }, function() { $DONE('The promise should not be rejected.'); }); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js index e431a27932d692cc4f6f1419f18539be8276ecdb..c8b9966eddc80eefcc5e73a1b4f980ca3ce53227 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-strict.js @@ -13,25 +13,25 @@ flags: [async, onlyStrict] ---*/ var expectedThis = undefined, - obj = {}; + obj = {}; var p = Promise.resolve(obj).then(function(arg) { - if (this !== expectedThis) { - $DONE("'this' must be undefined, got " + this); - return; - } + if (this !== expectedThis) { + $DONE("'this' must be undefined, got " + this); + return; + } - if (arg !== obj) { - $DONE("Expected promise to be fulfilled by obj, actually " + arg); - return; - } + if (arg !== obj) { + $DONE("Expected promise to be fulfilled by obj, actually " + arg); + return; + } - if (arguments.length !== 1) { - $DONE('Expected handler function to be called with exactly 1 argument.'); - return; - } + if (arguments.length !== 1) { + $DONE('Expected handler function to be called with exactly 1 argument.'); + return; + } - $DONE(); + $DONE(); }, function() { $DONE('The promise should not be rejected.'); }); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js index 9024a896df3c158f5d08550fdee4c317ba2fb43e..99205177522684d3c0c4412385aaee537285619e 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next-abrupt.js @@ -22,24 +22,24 @@ var fulfilledCallCount = 0; var rejectedCallCount = 0; promise.then(function() { - fulfilledCallCount += 1; - throw new Error(); - }, function() { - rejectedCallCount += 1; - }); + fulfilledCallCount += 1; + throw new Error(); +}, function() { + rejectedCallCount += 1; +}); promise.then(function() { - if (fulfilledCallCount !== 1) { - $DONE('Expected "onFulfilled" handler to be invoked exactly once.'); - return; - } + if (fulfilledCallCount !== 1) { + $DONE('Expected "onFulfilled" handler to be invoked exactly once.'); + return; + } - if (rejectedCallCount !== 0) { - $DONE('Expected "onRejected" handler to not be invoked.'); - return; - } + if (rejectedCallCount !== 0) { + $DONE('Expected "onRejected" handler to not be invoked.'); + return; + } - $DONE(); - }, function() { - $DONE('This promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('This promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js index a2f763a517b665842202ccebcae7ca593974fee9..460ee909c9529d7dcd3398ce7bf41d8c5fa70c7d 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-next.js @@ -21,33 +21,33 @@ var promise = new Promise(function(resolve) { var log = ''; promise.then(function() { - log += 'a'; - }, function() { - log += 'A'; - }); + log += 'a'; +}, function() { + log += 'A'; +}); promise.then(function() { - log += 'b'; - }, function() { - log += 'B'; - }); + log += 'b'; +}, function() { + log += 'B'; +}); promise.then(function() { - log += 'c'; - }, function() { - log += 'C'; - }); + log += 'c'; +}, function() { + log += 'C'; +}); promise.then(function() { - if (log !== 'abc') { - $DONE( - 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' + - 'Expected: abc. Actual: ' + log - ); - return; - } + if (log !== 'abc') { + $DONE( + 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' + + 'Expected: abc. Actual: ' + log + ); + return; + } - $DONE(); - }, function() { - $DONE('This promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('This promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js index e0cb6215dd6c238063659f1a0a490b26f59b3adb..4accef172d28c76dabce1ed846f1aaf2e1678aba 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js @@ -35,16 +35,16 @@ var p1 = new Promise(function(resolve) { var p2; p2 = p1.then(function() { - throw value; - }, function() {}); + throw value; +}, function() {}); p2.then(function() { - $DONE('The `onFulfilled` handler should not be invoked.'); - }, function(x) { - if (x !== value) { - $DONE('The `onRejected` handler should be invoked with the promise result.'); - return; - } + $DONE('The `onFulfilled` handler should not be invoked.'); +}, function(x) { + if (x !== value) { + $DONE('The `onRejected` handler should be invoked with the promise result.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js index f75ee39ed9f9d08079e625b662300403f0033575..2241de9c77ee64b92f0b4feab97a1f0ad03f4b64 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js @@ -35,16 +35,16 @@ var p1 = new Promise(function(resolve) { var p2; p2 = p1.then(function() { - return value; - }, function() {}); + return value; +}, function() {}); p2.then(function(x) { - if (x !== value) { - $DONE('The `onFulfilled` handler should be invoked with the promise result.'); - return; - } + if (x !== value) { + $DONE('The `onFulfilled` handler should be invoked with the promise result.'); + return; + } - $DONE(); - }, function() { - $DONE('The `onRejected` handler should not be invoked.'); - }); + $DONE(); +}, function() { + $DONE('The `onRejected` handler should not be invoked.'); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-identity.js b/test/built-ins/Promise/prototype/then/rxn-handler-identity.js index de2005b03efc6910b26e21343ab4518e45966b69..24b30c08858a35a2ae9e92e711975f1100ca6307 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-identity.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-identity.js @@ -12,13 +12,13 @@ flags: [async] var obj = {}; -var p = Promise.resolve(obj).then(/*Identity, Thrower*/) - .then(function (arg) { - if (arg !== obj) { - $DONE("Expected promise to be fulfilled with obj, actually " + arg); - return; - } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); +var p = Promise.resolve(obj).then( /*Identity, Thrower*/ ) + .then(function(arg) { + if (arg !== obj) { + $DONE("Expected promise to be fulfilled with obj, actually " + arg); + return; + } + $DONE(); + }, function() { + $DONE('The promise should not be rejected.'); + }); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js index f848a8a2ee2500419615913736dca21a43d303be..e95e55d494fe727b7eb07e53cc940e79cbd30a29 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js @@ -13,25 +13,25 @@ flags: [async, noStrict] ---*/ var expectedThis = this, - obj = {}; + obj = {}; -var p = Promise.reject(obj).then(function () { - $DONE("Unexpected fulfillment; expected rejection."); +var p = Promise.reject(obj).then(function() { + $DONE("Unexpected fulfillment; expected rejection."); }, function(arg) { - if (this !== expectedThis) { - $DONE("'this' must be global object, got " + this); - return; - } + if (this !== expectedThis) { + $DONE("'this' must be global object, got " + this); + return; + } - if (arg !== obj) { - $DONE("Expected promise to be rejected with obj, actually " + arg); - return; - } + if (arg !== obj) { + $DONE("Expected promise to be rejected with obj, actually " + arg); + return; + } - if (arguments.length !== 1) { - $DONE('Expected handler function to be called with exactly 1 argument.'); - return; - } + if (arguments.length !== 1) { + $DONE('Expected handler function to be called with exactly 1 argument.'); + return; + } - $DONE(); + $DONE(); }); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js index 19cbbc9ec3eae0534dd24eeabf796a16c6f3b290..9842201f567afa487e021d4c0d253240a0b5a5f5 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js @@ -13,25 +13,25 @@ flags: [async, onlyStrict] ---*/ var expectedThis = undefined, - obj = {}; + obj = {}; -var p = Promise.reject(obj).then(function () { - $DONE("Unexpected fulfillment; expected rejection."); +var p = Promise.reject(obj).then(function() { + $DONE("Unexpected fulfillment; expected rejection."); }, function(arg) { - if (this !== expectedThis) { - $DONE("'this' must be undefined, got " + this); - return; - } + if (this !== expectedThis) { + $DONE("'this' must be undefined, got " + this); + return; + } - if (arg !== obj) { - $DONE("Expected promise to be rejected with obj, actually " + arg); - return; - } + if (arg !== obj) { + $DONE("Expected promise to be rejected with obj, actually " + arg); + return; + } - if (arguments.length !== 1) { - $DONE('Expected handler function to be called with exactly 1 argument.'); - return; - } + if (arguments.length !== 1) { + $DONE('Expected handler function to be called with exactly 1 argument.'); + return; + } - $DONE(); + $DONE(); }); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js index 2363577e85f101e5f199e97517392397fe5a5743..848a885386e110b43db08063fcc5d17077e7efda 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js @@ -22,24 +22,24 @@ var fulfilledCallCount = 0; var rejectedCallCount = 0; promise.then(function() { - fulfilledCallCount += 1; - }, function() { - rejectedCallCount += 1; - throw new Error(); - }); + fulfilledCallCount += 1; +}, function() { + rejectedCallCount += 1; + throw new Error(); +}); promise.then(function() { - $DONE('This promise should not be fulfilled.'); - }, function() { - if (fulfilledCallCount !== 0) { - $DONE('Expected "onFulfilled" handler to not be invoked.'); - return; - } + $DONE('This promise should not be fulfilled.'); +}, function() { + if (fulfilledCallCount !== 0) { + $DONE('Expected "onFulfilled" handler to not be invoked.'); + return; + } - if (rejectedCallCount !== 1) { - $DONE('Expected "onRejected" handler to be invoked exactly once.'); - return; - } + if (rejectedCallCount !== 1) { + $DONE('Expected "onRejected" handler to be invoked exactly once.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js index 40ef4bfd6c41e45c3df835205a0e12753c7fdcc3..b1497b0a0a554eceacb7c4589a0c96ffc894d277 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js @@ -21,33 +21,33 @@ var promise = new Promise(function(_, reject) { var log = ''; promise.then(function() { - log += 'A'; - }, function() { - log += 'a'; - }); + log += 'A'; +}, function() { + log += 'a'; +}); promise.then(function() { - log += 'B'; - }, function() { - log += 'b'; - }); + log += 'B'; +}, function() { + log += 'b'; +}); promise.then(function() { - log += 'C'; - }, function() { - log += 'c'; - }); + log += 'C'; +}, function() { + log += 'c'; +}); promise.then(function() { - $DONE('This promise should not be fulfilled.'); - }, function() { - if (log !== 'abc') { - $DONE( - 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' + - 'Expected: abc. Actual: ' + log - ); - return; - } + $DONE('This promise should not be fulfilled.'); +}, function() { + if (log !== 'abc') { + $DONE( + 'Expected each "onFulfilled" handler to be invoked exactly once in series. ' + + 'Expected: abc. Actual: ' + log + ); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js index 3588f64dd75eb674ef074e49c427114c83e99007..fe8054f9a65cd169170470799b0da92d09f356ab 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js @@ -35,16 +35,16 @@ var p1 = new Promise(function(_, reject) { var p2; p2 = p1.then(function() {}, function() { - throw value; - }); + throw value; +}); p2.then(function() { - $DONE('The `onFulfilled` handler should not be invoked.'); - }, function(x) { - if (x !== value) { - $DONE('The `onRejected` handler should be invoked with the promise result.'); - return; - } + $DONE('The `onFulfilled` handler should not be invoked.'); +}, function(x) { + if (x !== value) { + $DONE('The `onRejected` handler should be invoked with the promise result.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js index 3fe4b09c6219423e164dc5ccf504509627dd2cae..eb70b6e6cefaa9ebcd9f8a9dbe70904974cab811 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js @@ -35,16 +35,16 @@ var p1 = new Promise(function(_, reject) { var p2; p2 = p1.then(function() {}, function() { - return value; - }); + return value; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The `onFulfilled` handler should be invoked with the promise result.'); - return; - } + if (x !== value) { + $DONE('The `onFulfilled` handler should be invoked with the promise result.'); + return; + } - $DONE(); - }, function() { - $DONE('The `onRejected` handler should not be invoked.'); - }); + $DONE(); +}, function() { + $DONE('The `onRejected` handler should not be invoked.'); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js b/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js index 217e10e4d95b1454c638a547df014bf1b975f79e..58b185a919bb052aea3803e0d4fe336c19fba7bc 100644 --- a/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js +++ b/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js @@ -12,13 +12,13 @@ flags: [async] var obj = {}; -var p = Promise.reject(obj).then(/*Identity, Thrower*/) - .then(function () { - $DONE("Unexpected fulfillment - promise should reject."); - }, function (arg) { - if (arg !== obj) { - $DONE("Expected reject reason to be obj, actually " + arg); - return; - } - $DONE(); - }); +var p = Promise.reject(obj).then( /*Identity, Thrower*/ ) + .then(function() { + $DONE("Unexpected fulfillment - promise should reject."); + }, function(arg) { + if (arg !== obj) { + $DONE("Expected reject reason to be obj, actually " + arg); + return; + } + $DONE(); + }); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js index b92440669617784d01edfeafdd13c2b71230f8a5..69102cfbd2da4fe622df7271ac8b6c0ff5b2c94e 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js @@ -9,5 +9,5 @@ description: Promise.race is callable ---*/ if (typeof Promise.race !== "function") { - $ERROR("Expected Promise.race to be a function, actually " + typeof Promise.race); + $ERROR("Expected Promise.race to be a function, actually " + typeof Promise.race); } diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js index a3b3fd963a9e2a006ad9d6c140d8c80341b4a194..2e14c7ead3eff3e35fb97769d319df800efcdc52 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js @@ -11,5 +11,5 @@ description: Promise.race returns a new promise var p = Promise.race([]); if (!(p instanceof Promise)) { - $ERROR("Expected Promise.race([]) to return a promise."); + $ERROR("Expected Promise.race([]) to return a promise."); } diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js index 87a7c610a3c0a65f41842978d1dc6368409d052c..d53b5da14b1cf6db3bedd3f4c10f0342e52a7128 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js @@ -11,11 +11,10 @@ flags: [async] var nonIterable = 3; -Promise.race(nonIterable).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.race(nonIterable) should throw TypeError'); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR('Expected TypeError, got ' + err); - } +Promise.race(nonIterable).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.race(nonIterable) should throw TypeError'); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR('Expected TypeError, got ' + err); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js index cca930722030d8d8d850fa08c4b8938bd4ec178e..18da6d0710b950d5242c78023c4b4d760f9d2fdc 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js @@ -9,11 +9,10 @@ description: Promise.race rejects if argument is not object or is non-iterable flags: [async] ---*/ -Promise.race(new Error("abrupt")).then(function () { - $ERROR('Promise unexpectedly resolved: Promise.race(abruptCompletion) should throw TypeError'); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR('Expected TypeError, got ' + err); - } +Promise.race(new Error("abrupt")).then(function() { + $ERROR('Promise unexpectedly resolved: Promise.race(abruptCompletion) should throw TypeError'); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR('Expected TypeError, got ' + err); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js index d8aa443f9c5c6d06366db74d9e875c6aa4f5a95c..790c51a757cb6c095dda7e01d5d2809cbc591adb 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js @@ -15,16 +15,15 @@ flags: [async] var iterThrows = {}; Object.defineProperty(iterThrows, Symbol.iterator, { - get: function () { - throw new Error("abrupt completion"); - } + get: function() { + throw new Error("abrupt completion"); + } }); -Promise.race(iterThrows).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw'); -}, function (err) { - if (!(err instanceof Error)) { - $ERROR('Expected Promise to be rejected with an error, got ' + err); - } +Promise.race(iterThrows).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw'); +}, function(err) { + if (!(err instanceof Error)) { + $ERROR('Expected Promise to be rejected with an error, got ' + err); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js index 21b3a098dff183e12b52e228e5ad269bfaab52f2..b3d90e6fc3c95ac819229d3110853e487b3e6193 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js @@ -11,8 +11,7 @@ author: Sam Mikes description: Promise.race throws if 'this' does not conform to Promise constructor ---*/ -function ZeroArgConstructor() { -} +function ZeroArgConstructor() {} assert.throws(TypeError, function() { Promise.race.call(ZeroArgConstructor, [3]); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js index e16e02a039b60ab01209030ba41889a06b3d4776..07c20f5708efc09343a342af2dbd2997a6f7b3e2 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js @@ -11,7 +11,9 @@ author: Sam Mikes description: Promise.race throws TypeError, even on empty array, when 'this' does not conform to Promise constructor ---*/ -function BadPromiseConstructor(f) { f(undefined, undefined); } +function BadPromiseConstructor(f) { + f(undefined, undefined); +} assert.throws(TypeError, function() { Promise.race.call(BadPromiseConstructor, []); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js index a325a995be6abd93581ac5409146ce7deb2e6a1c..95dde51bd26548e720eeb5a54f9b28f4a5140963 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js @@ -11,17 +11,16 @@ flags: [async] var iterThrows = {}; var error = new Test262Error(); -iterThrows[Symbol.iterator] = function () { - return { - next: function () { - throw error; - } - }; +iterThrows[Symbol.iterator] = function() { + return { + next: function() { + throw error; + } + }; }; -Promise.race(iterThrows).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); -}, function (reason) { - assert.sameValue(reason, error); -}).then($DONE,$DONE); - +Promise.race(iterThrows).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); +}, function(reason) { + assert.sameValue(reason, error); +}).then($DONE, $DONE); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js index 00ac77d1b3c931a8f74f36b2cb33c59cc435d3cb..cb8912b97a89fa1451da3c141b700ad4679f3dd3 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js @@ -11,26 +11,25 @@ flags: [async] var iterThrows = {}; Object.defineProperty(iterThrows, Symbol.iterator, { - get: function () { - return { - next: function () { - var v = {}; - Object.defineProperty(v, 'value', { - get: function () { - throw new Error("abrupt completion"); - } - }); - return v; - } - }; - } + get: function() { + return { + next: function() { + var v = {}; + Object.defineProperty(v, 'value', { + get: function() { + throw new Error("abrupt completion"); + } + }); + return v; + } + }; + } }); -Promise.race(iterThrows).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); -},function (err) { - if (!(err instanceof TypeError)) { - $ERROR('Expected TypeError, got ' + err); - } -}).then($DONE,$DONE); - +Promise.race(iterThrows).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR('Expected TypeError, got ' + err); + } +}).then($DONE, $DONE); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js index e5b7526fde01b7bff1a76162e9e3ad4fa346ef7c..2093f8bee4a948bfeff390f013c062ba36ad1dad 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js @@ -10,10 +10,10 @@ flags: [async] var p = Promise.race([]); -p.then(function () { - $ERROR("Never settles."); -}, function () { - $ERROR("Never settles."); +p.then(function() { + $ERROR("Never settles."); +}, function() { + $ERROR("Never settles."); }).then($DONE, $DONE); // use three 'then's to allow above to settle diff --git a/test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js index 90c46e37e8274bd05d0b46376f711f7e5c4aa2bd..81d6152a4527b1bace4bd06f0b1a5fd78ac62161 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js @@ -15,17 +15,17 @@ var p = Promise.race([1]); sequence.push(1); -p.then(function () { - sequence.push(4); - checkSequence(sequence, "This happens second"); +p.then(function() { + sequence.push(4); + checkSequence(sequence, "This happens second"); }).catch($DONE); -Promise.resolve().then(function () { - sequence.push(3); - checkSequence(sequence, "This happens first"); -}).then(function () { - sequence.push(5); - checkSequence(sequence, "This happens third"); +Promise.resolve().then(function() { + sequence.push(3); + checkSequence(sequence, "This happens first"); +}).then(function() { + sequence.push(5); + checkSequence(sequence, "This happens third"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js index b28ccdb51617667d6e234a75af343958ed4ee1a7..c3e0364b37d5dca248440af11dda838c344d4f15 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js @@ -12,23 +12,23 @@ flags: [async] var sequence = []; var p1 = Promise.reject(1), - p = Promise.race([p1]); + p = Promise.race([p1]); sequence.push(1); -p.then(function () { - $ERROR("Should not fulfill."); -}, function () { - sequence.push(4); - checkSequence(sequence, "This happens second"); +p.then(function() { + $ERROR("Should not fulfill."); +}, function() { + sequence.push(4); + checkSequence(sequence, "This happens second"); }).catch($DONE); -Promise.resolve().then(function () { - sequence.push(3); - checkSequence(sequence, "This happens first"); -}).then(function () { - sequence.push(5); - checkSequence(sequence, "This happens third"); +Promise.resolve().then(function() { + sequence.push(3); + checkSequence(sequence, "This happens first"); +}).then(function() { + sequence.push(5); + checkSequence(sequence, "This happens third"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js index 517df57b3624393f6a22aaa9bc1fccc48d5da6fb..ada1fba26ec71bf0c4213b38e8f3d1df6473920a 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js @@ -12,26 +12,26 @@ flags: [async] var sequence = []; var p1 = Promise.resolve(1), - p2 = Promise.resolve(2), - p = Promise.race([p1, p2]); + p2 = Promise.resolve(2), + p = Promise.race([p1, p2]); sequence.push(1); -p.then(function (arg) { - if (arg !== 1) { - $ERROR("Expected promise to be fulfilled with 1, got " + arg); - } +p.then(function(arg) { + if (arg !== 1) { + $ERROR("Expected promise to be fulfilled with 1, got " + arg); + } - sequence.push(4); - checkSequence(sequence, "This happens second"); + sequence.push(4); + checkSequence(sequence, "This happens second"); }).catch($DONE); -Promise.resolve().then(function () { - sequence.push(3); - checkSequence(sequence, "This happens first"); -}).then(function () { - sequence.push(5); - checkSequence(sequence, "This happens third"); +Promise.resolve().then(function() { + sequence.push(3); + checkSequence(sequence, "This happens first"); +}).then(function() { + sequence.push(5); + checkSequence(sequence, "This happens third"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js index f0f12a4e5b2e468910eb7e9321821acb148a8d6c..2b2dbc96217c19ea6d93d60bf1ec4e027e894365 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js @@ -12,26 +12,26 @@ flags: [async] var sequence = []; var p1 = Promise.resolve(1), - p2 = new Promise(function () {}), - p = Promise.race([p1, p2]); + p2 = new Promise(function() {}), + p = Promise.race([p1, p2]); sequence.push(1); -p.then(function (arg) { - if (arg !== 1) { - $ERROR("Expected promise to be fulfilled with 1, got " + arg); - } +p.then(function(arg) { + if (arg !== 1) { + $ERROR("Expected promise to be fulfilled with 1, got " + arg); + } - sequence.push(4); - checkSequence(sequence, "This happens second"); + sequence.push(4); + checkSequence(sequence, "This happens second"); }).catch($DONE); -Promise.resolve().then(function () { - sequence.push(3); - checkSequence(sequence, "This happens first"); -}).then(function () { - sequence.push(5); - checkSequence(sequence, "This happens third"); +Promise.resolve().then(function() { + sequence.push(3); + checkSequence(sequence, "This happens first"); +}).then(function() { + sequence.push(5); + checkSequence(sequence, "This happens third"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js index 7e0f286c847fa1fe4616d839fed68a63f29ed944..4e03609a1b646cdbb6be4408c0a67e03a3d71ee6 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A7.1_T3.js @@ -11,27 +11,27 @@ flags: [async] var sequence = []; -var p1 = new Promise(function () {}), - p2 = Promise.resolve(2), - p = Promise.race([p1, p2]); +var p1 = new Promise(function() {}), + p2 = Promise.resolve(2), + p = Promise.race([p1, p2]); sequence.push(1); -p.then(function (arg) { - if (arg !== 2) { - $ERROR("Expected promise to be fulfilled with 2, got " + arg); - } +p.then(function(arg) { + if (arg !== 2) { + $ERROR("Expected promise to be fulfilled with 2, got " + arg); + } - sequence.push(4); - checkSequence(sequence, "This happens second"); + sequence.push(4); + checkSequence(sequence, "This happens second"); }).catch($DONE); -Promise.resolve().then(function () { - sequence.push(3); - checkSequence(sequence, "This happens first"); -}).then(function () { - sequence.push(5); - checkSequence(sequence, "This happens third"); +Promise.resolve().then(function() { + sequence.push(3); + checkSequence(sequence, "This happens first"); +}).then(function() { + sequence.push(5); + checkSequence(sequence, "This happens third"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js index 3f24b602db1d2f40eda16b4eec7641d327c9d41a..2f9d3cb67f6595137e204b7e87d53944dabd8de6 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A7.2_T1.js @@ -12,28 +12,28 @@ flags: [async] var sequence = []; var p1 = Promise.reject(1), - p2 = Promise.resolve(2), - p = Promise.race([p1, p2]); + p2 = Promise.resolve(2), + p = Promise.race([p1, p2]); sequence.push(1); -p.then(function () { - $ERROR("Should not be fulfilled - expected rejection."); -}, function (arg) { - if (arg !== 1) { - $ERROR("Expected rejection reason to be 1, got " + arg); - } +p.then(function() { + $ERROR("Should not be fulfilled - expected rejection."); +}, function(arg) { + if (arg !== 1) { + $ERROR("Expected rejection reason to be 1, got " + arg); + } - sequence.push(4); - checkSequence(sequence, "This happens second"); + sequence.push(4); + checkSequence(sequence, "This happens second"); }).catch($DONE); -Promise.resolve().then(function () { - sequence.push(3); - checkSequence(sequence, "This happens first"); -}).then(function () { - sequence.push(5); - checkSequence(sequence, "This happens third"); +Promise.resolve().then(function() { + sequence.push(3); + checkSequence(sequence, "This happens first"); +}).then(function() { + sequence.push(5); + checkSequence(sequence, "This happens third"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js index 02dad7f9dfcec1c7e9ee988530b258cc2fb4be5b..7628a466430d81a2889a8a11663ee64e5925e174 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js @@ -9,14 +9,18 @@ flags: [async] ---*/ var resolveP1, rejectP2, - p1 = new Promise(function (resolve) { resolveP1 = resolve; }), - p2 = new Promise(function (resolve, reject) { rejectP2 = reject; }); + p1 = new Promise(function(resolve) { + resolveP1 = resolve; + }), + p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; + }); rejectP2(new Error("Promise.race should not see this if P1 already resolved")); resolveP1(1); -Promise.race([p1, p2]).then(function (arg) { - if (arg !== 1) { - $ERROR("Expected fulfillment with 1, got " + arg); - } +Promise.race([p1, p2]).then(function(arg) { + if (arg !== 1) { + $ERROR("Expected fulfillment with 1, got " + arg); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js index 535116ea1926df216d2fd44a8a7e17d4b31db37a..91803cce5e46da31f7291fc34d8114d34ebf4d14 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js @@ -9,17 +9,20 @@ flags: [async] ---*/ var resolveP1, rejectP2, - p1 = new Promise(function (resolve) { resolveP1 = resolve; }), - p2 = new Promise(function (resolve, reject) { rejectP2 = reject; }); + p1 = new Promise(function(resolve) { + resolveP1 = resolve; + }), + p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; + }); -Promise.race([p1, p2]).then(function () { - $ERROR("Should not be fulfilled: expected rejection."); -}, function (arg) { - if (arg !== 2) { - $ERROR("Expected rejection reason to be 2, got " + arg); - } +Promise.race([p1, p2]).then(function() { + $ERROR("Should not be fulfilled: expected rejection."); +}, function(arg) { + if (arg !== 2) { + $ERROR("Expected rejection reason to be 2, got " + arg); + } }).then($DONE, $DONE); rejectP2(2); resolveP1(1); - diff --git a/test/built-ins/Promise/race/capability-executor-called-twice.js b/test/built-ins/Promise/race/capability-executor-called-twice.js index 7e21ce01e6718932a111de25ffaa9c7fb093b383..652f3201cc6ed1d95b0e3e769053dc4f69c40d3e 100644 --- a/test/built-ins/Promise/race/capability-executor-called-twice.js +++ b/test/built-ins/Promise/race/capability-executor-called-twice.js @@ -27,7 +27,7 @@ Promise.race.call(function(executor) { checkPoint += "a"; executor(); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); assert.sameValue(checkPoint, "abc", "executor initially called with no arguments"); @@ -37,7 +37,7 @@ Promise.race.call(function(executor) { checkPoint += "a"; executor(undefined, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)"); @@ -46,9 +46,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.race.call(function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); }, "executor initially called with (undefined, function)"); @@ -58,9 +58,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.race.call(function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); }, "executor initially called with (function, undefined)"); @@ -72,7 +72,7 @@ assert.throws(TypeError, function() { checkPoint += "a"; executor("invalid value", 123); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, []); }, "executor initially called with (String, Number)"); diff --git a/test/built-ins/Promise/race/capability-executor-not-callable.js b/test/built-ins/Promise/race/capability-executor-not-callable.js index be31cf2973a18a80d7a76e3016abe451c598862f..ae52d9c10f1eaa5aba1393b8c9f99d91fec45cd5 100644 --- a/test/built-ins/Promise/race/capability-executor-not-callable.js +++ b/test/built-ins/Promise/race/capability-executor-not-callable.js @@ -56,7 +56,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.race.call(function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; }, []); }, "executor called with (undefined, function)"); @@ -66,7 +66,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.race.call(function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; }, []); }, "executor called with (function, undefined)"); diff --git a/test/built-ins/Promise/race/invoke-resolve-error-close.js b/test/built-ins/Promise/race/invoke-resolve-error-close.js index 36651be4e65ecd727773540bf455a64674b2377c..df90989cb463bc87bf205868b8c45d7c2754d204 100644 --- a/test/built-ins/Promise/race/invoke-resolve-error-close.js +++ b/test/built-ins/Promise/race/invoke-resolve-error-close.js @@ -29,7 +29,10 @@ var returnCount = 0; iterDoneSpy[Symbol.iterator] = function() { return { next: function() { - return { value: null, done: false }; + return { + value: null, + done: false + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/race/invoke-resolve-get-error-close.js b/test/built-ins/Promise/race/invoke-resolve-get-error-close.js index d2958b5b37ff95ebf8b897be20d7ae080594484c..cc874421c2c1a3f486816eb2661e1a761eb7e474 100644 --- a/test/built-ins/Promise/race/invoke-resolve-get-error-close.js +++ b/test/built-ins/Promise/race/invoke-resolve-get-error-close.js @@ -29,7 +29,9 @@ var returnCount = 0; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false }; + return { + done: false + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/race/invoke-then-error-close.js b/test/built-ins/Promise/race/invoke-then-error-close.js index a9df84f49985c54afe43337dabdfa7da03c1b439..07d80abab6bf543b98a88fdf4360c7c3ee1f083e 100644 --- a/test/built-ins/Promise/race/invoke-then-error-close.js +++ b/test/built-ins/Promise/race/invoke-then-error-close.js @@ -31,7 +31,10 @@ var returnCount = 0; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false, value: promise }; + return { + done: false, + value: promise + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/race/invoke-then-get-error-close.js b/test/built-ins/Promise/race/invoke-then-get-error-close.js index 93f095ee20d621933281fa1934f5a70e158a5e49..9dbb520172f9f2cd7b1401fa8c27ecf790baf716 100644 --- a/test/built-ins/Promise/race/invoke-then-get-error-close.js +++ b/test/built-ins/Promise/race/invoke-then-get-error-close.js @@ -30,7 +30,10 @@ var returnCount = 0; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false, value: promise }; + return { + done: false, + value: promise + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/race/reject-deferred.js b/test/built-ins/Promise/race/reject-deferred.js index 59f8915106365223c7acff0654db1a30fdc9d3df..c7e321a3674d12365b286af1663ff6f1da147d4d 100644 --- a/test/built-ins/Promise/race/reject-deferred.js +++ b/test/built-ins/Promise/race/reject-deferred.js @@ -24,7 +24,9 @@ flags: [async] var thenable = { then: function(_, reject) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { reject(); }); diff --git a/test/built-ins/Promise/race/reject-ignored-deferred.js b/test/built-ins/Promise/race/reject-ignored-deferred.js index c64b70da4bb31afa513762349970f7fbd66ddc5e..43df80e3fbf586cbf632ba8ac7f7ccabd935e73a 100644 --- a/test/built-ins/Promise/race/reject-ignored-deferred.js +++ b/test/built-ins/Promise/race/reject-ignored-deferred.js @@ -29,7 +29,9 @@ flags: [async] var fulfiller = { then: function(resolve) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { resolve(); }); @@ -37,7 +39,9 @@ var fulfiller = { }; var rejector = { then: function(_, reject) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { reject(); }); diff --git a/test/built-ins/Promise/race/resolve-prms-cstm-then.js b/test/built-ins/Promise/race/resolve-prms-cstm-then.js index 238785a5057582653e7e62c00eb8045f99f2b843..07c6317a29ac25c1ffad09a42c703294aaf75584 100644 --- a/test/built-ins/Promise/race/resolve-prms-cstm-then.js +++ b/test/built-ins/Promise/race/resolve-prms-cstm-then.js @@ -35,7 +35,9 @@ var thenableValue = { resolve(value); } }; -var thenable = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); thenable.then = function(resolve) { resolve(thenableValue); diff --git a/test/built-ins/Promise/race/resolve-self.js b/test/built-ins/Promise/race/resolve-self.js index 6fc2a3820adec429185b7d318ea28ce9bd412374..565bc94e505d56a3e4ab1b9798e8662d9cc06502 100644 --- a/test/built-ins/Promise/race/resolve-self.js +++ b/test/built-ins/Promise/race/resolve-self.js @@ -33,7 +33,9 @@ var thenable = { }; try { - Promise.resolve = function(v) { return v; }; + Promise.resolve = function(v) { + return v; + }; self = Promise.race([thenable]); } finally { Promise.resolve = builtinResolve; @@ -42,15 +44,15 @@ try { resolve(self); self.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(value) { - if (!value) { - $DONE('The promise should be rejected with a value.'); - return; - } - if (value.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(value) { + if (!value) { + $DONE('The promise should be rejected with a value.'); + return; + } + if (value.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + $DONE(); +}); diff --git a/test/built-ins/Promise/race/same-reject-function.js b/test/built-ins/Promise/race/same-reject-function.js index dbcdf7c5b1353cd7d1ad4becbcc73754c569b94b..b67e4ff4167590410a2f221f22df55eb3da1ee4a 100644 --- a/test/built-ins/Promise/race/same-reject-function.js +++ b/test/built-ins/Promise/race/same-reject-function.js @@ -13,14 +13,17 @@ info: | ... ---*/ -function rejectFunction() { } +function rejectFunction() {} function Constructor(executor) { executor($ERROR, rejectFunction); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; -var callCount1 = 0, callCount2 = 0; +var callCount1 = 0, + callCount2 = 0; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/race/same-resolve-function.js b/test/built-ins/Promise/race/same-resolve-function.js index b20ee72426b25f809130fdffad7f37684a135089..10b6bfec6c9fc63dbd22b24c955bcd29f88ccca0 100644 --- a/test/built-ins/Promise/race/same-resolve-function.js +++ b/test/built-ins/Promise/race/same-resolve-function.js @@ -13,14 +13,17 @@ info: | ... ---*/ -function resolveFunction() { } +function resolveFunction() {} function Constructor(executor) { executor(resolveFunction, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; -var callCount1 = 0, callCount2 = 0; +var callCount1 = 0, + callCount2 = 0; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/race/species-get-error.js b/test/built-ins/Promise/race/species-get-error.js index 26e2fd0398915bb97b088cf8a4a5c4fea0ddf064..b32fd7ef4d7ac1e48dc1a138d9907435d7c1107d 100644 --- a/test/built-ins/Promise/race/species-get-error.js +++ b/test/built-ins/Promise/race/species-get-error.js @@ -14,7 +14,7 @@ features: [Symbol.species] ---*/ function C(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Object.defineProperty(C, Symbol.species, { get: function() { diff --git a/test/built-ins/Promise/reject-function-nonconstructor.js b/test/built-ins/Promise/reject-function-nonconstructor.js index 752a7c9e18cda98b9aa3878503c4f19388e7fc81..cf77ab82801a0d74e28ef1c4d1aabc921395e43e 100644 --- a/test/built-ins/Promise/reject-function-nonconstructor.js +++ b/test/built-ins/Promise/reject-function-nonconstructor.js @@ -17,4 +17,6 @@ new Promise(function(resolve, reject) { }); assert.sameValue(Object.prototype.hasOwnProperty.call(rejectFunction, "prototype"), false); -assert.throws(TypeError, function() { new rejectFunction(); }); +assert.throws(TypeError, function() { + new rejectFunction(); +}); diff --git a/test/built-ins/Promise/reject-ignored-via-abrupt.js b/test/built-ins/Promise/reject-ignored-via-abrupt.js index 3e0855acf4517160916746f5d4ff19a1801180f1..9e5a978b4fad5f493755937cfae2d3dd94b75505 100644 --- a/test/built-ins/Promise/reject-ignored-via-abrupt.js +++ b/test/built-ins/Promise/reject-ignored-via-abrupt.js @@ -28,7 +28,7 @@ var p = new Promise(function(resolve) { }); p.then(function() { - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/reject-ignored-via-fn-deferred.js b/test/built-ins/Promise/reject-ignored-via-fn-deferred.js index 90cdaaa5c12c4ea1c3ee243958ee7ba68a46eb01..b272e50f098713119cf5535e733036785232ac8f 100644 --- a/test/built-ins/Promise/reject-ignored-via-fn-deferred.js +++ b/test/built-ins/Promise/reject-ignored-via-fn-deferred.js @@ -30,10 +30,10 @@ var p = new Promise(function(_resolve, _reject) { }); p.then(function() { - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); returnValue = reject(thenable); diff --git a/test/built-ins/Promise/reject-ignored-via-fn-immed.js b/test/built-ins/Promise/reject-ignored-via-fn-immed.js index 118c0b448a47c08455b16aeebe0908b29ca86bed..d9a5018af1a96cde9272aca331bca2b79cb7c058 100644 --- a/test/built-ins/Promise/reject-ignored-via-fn-immed.js +++ b/test/built-ins/Promise/reject-ignored-via-fn-immed.js @@ -31,7 +31,7 @@ var p = new Promise(function(resolve, reject) { assert.sameValue(returnValue, undefined, '"reject" function return value'); p.then(function() { - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/reject-via-abrupt-queue.js b/test/built-ins/Promise/reject-via-abrupt-queue.js index b4a6e556a585edeb80d3042a801fa729e221a201..c4194c4a8d439cfd5f14f07e5017de7b7f583d72 100644 --- a/test/built-ins/Promise/reject-via-abrupt-queue.js +++ b/test/built-ins/Promise/reject-via-abrupt-queue.js @@ -42,13 +42,13 @@ var p = new Promise(function() { }); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }).then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value.'); - return; - } - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}).then(function() { + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value.'); + return; + } + $DONE(); +}); diff --git a/test/built-ins/Promise/reject-via-abrupt.js b/test/built-ins/Promise/reject-via-abrupt.js index 71be43108d478709c060ffaaeb932e323869d98c..c51a6f1775de91b5c15df09d35149611a9546bfc 100644 --- a/test/built-ins/Promise/reject-via-abrupt.js +++ b/test/built-ins/Promise/reject-via-abrupt.js @@ -25,12 +25,12 @@ var p = new Promise(function() { }); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/reject-via-fn-deferred-queue.js b/test/built-ins/Promise/reject-via-fn-deferred-queue.js index 9bd28ff338dfbe89bd173dc4160aa9eab4d7decf..12bdde783307644503a4ad5ece477ad9b9660593 100644 --- a/test/built-ins/Promise/reject-via-fn-deferred-queue.js +++ b/test/built-ins/Promise/reject-via-fn-deferred-queue.js @@ -45,17 +45,17 @@ var p = new Promise(function(_, _reject) { }); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }).then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}).then(function() { + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value.'); + return; + } + + $DONE(); +}); returnValue = reject(thenable); diff --git a/test/built-ins/Promise/reject-via-fn-deferred.js b/test/built-ins/Promise/reject-via-fn-deferred.js index 24333fb0fe0c418ec0d2dbe6615066077266aa82..1d1576a1c9b547263fe78fcf3524bbe46d5eabad 100644 --- a/test/built-ins/Promise/reject-via-fn-deferred.js +++ b/test/built-ins/Promise/reject-via-fn-deferred.js @@ -25,15 +25,15 @@ var p = new Promise(function(_, _reject) { }); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value.'); + return; + } - $DONE(); - }); + $DONE(); +}); returnValue = reject(thenable); diff --git a/test/built-ins/Promise/reject-via-fn-immed-queue.js b/test/built-ins/Promise/reject-via-fn-immed-queue.js index 3c83ea5ca73c3201d7119351724fe4469573a35c..e48cbe00267096c94fad297fea7c629cedbb664e 100644 --- a/test/built-ins/Promise/reject-via-fn-immed-queue.js +++ b/test/built-ins/Promise/reject-via-fn-immed-queue.js @@ -46,14 +46,14 @@ var p = new Promise(function(_, reject) { assert.sameValue(returnValue, undefined, '"reject" function return value'); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }).then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}).then(function() { + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value.'); + return; + } + + $DONE(); +}); diff --git a/test/built-ins/Promise/reject-via-fn-immed.js b/test/built-ins/Promise/reject-via-fn-immed.js index eec1b98dfae6a730f18f5ab59ca12d4cc7516061..90573149a7bc436b6c541fca48f9f8253f342b21 100644 --- a/test/built-ins/Promise/reject-via-fn-immed.js +++ b/test/built-ins/Promise/reject-via-fn-immed.js @@ -26,12 +26,12 @@ var p = new Promise(function(_, reject) { assert.sameValue(returnValue, undefined, '"reject" function return value'); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js b/test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js index 95decca576598e38c553e2de3e8c61174b54d818..469656417e6dd41e823950e0e851aa0eef402e2a 100644 --- a/test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js +++ b/test/built-ins/Promise/reject/S25.4.4.4_A1.1_T1.js @@ -10,5 +10,5 @@ description: Promise.reject is a function ---*/ if ((typeof Promise.reject) !== "function") { - $ERROR("Expected Promise.reject to be a function"); + $ERROR("Expected Promise.reject to be a function"); } diff --git a/test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js b/test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js index 6bd6b5f9f42f0c1335dc6fa3c723ad29ee19410b..cf83e8bcf91ef698bae3bb6cb0d7b51d3febcc4f 100644 --- a/test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js +++ b/test/built-ins/Promise/reject/S25.4.4.4_A2.1_T1.js @@ -19,13 +19,13 @@ flags: [async] var p = Promise.reject(3); if (!(p instanceof Promise)) { - $ERROR("Expected Promise.reject to return a promise."); + $ERROR("Expected Promise.reject to return a promise."); } -p.then(function () { - $ERROR("Promise should not be fulfilled."); -}, function (arg) { - if (arg !== 3) { - $ERROR("Expected promise to be rejected with supplied arg, got " + arg); - } +p.then(function() { + $ERROR("Promise should not be fulfilled."); +}, function(arg) { + if (arg !== 3) { + $ERROR("Expected promise to be rejected with supplied arg, got " + arg); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js b/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js index 47fb6d93a3f83a3c50cb3005789e40f0d3b4eca2..0f9fdc3948ff91e7413b37ae3603b0da5e52e641 100644 --- a/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js +++ b/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js @@ -9,8 +9,7 @@ author: Sam Mikes description: Promise.reject throws TypeError for bad 'this' ---*/ -function ZeroArgConstructor() { -} +function ZeroArgConstructor() {} assert.throws(TypeError, function() { Promise.reject.call(ZeroArgConstructor, 4); diff --git a/test/built-ins/Promise/reject/capability-executor-called-twice.js b/test/built-ins/Promise/reject/capability-executor-called-twice.js index 0fc52baa250f8fdab6bb4b6510bafd7b40743e9c..f1632f40f849992e0dea5103697d76d039fa4e47 100644 --- a/test/built-ins/Promise/reject/capability-executor-called-twice.js +++ b/test/built-ins/Promise/reject/capability-executor-called-twice.js @@ -27,7 +27,7 @@ Promise.reject.call(function(executor) { checkPoint += "a"; executor(); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); assert.sameValue(checkPoint, "abc", "executor initially called with no arguments"); @@ -37,7 +37,7 @@ Promise.reject.call(function(executor) { checkPoint += "a"; executor(undefined, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)"); @@ -46,9 +46,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.reject.call(function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); }, "executor initially called with (undefined, function)"); @@ -58,9 +58,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.reject.call(function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); }, "executor initially called with (function, undefined)"); @@ -72,7 +72,7 @@ assert.throws(TypeError, function() { checkPoint += "a"; executor("invalid value", 123); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); }, "executor initially called with (String, Number)"); diff --git a/test/built-ins/Promise/reject/capability-executor-not-callable.js b/test/built-ins/Promise/reject/capability-executor-not-callable.js index 8aa286ba8405d4cea528c4f309a7e007eaa2b102..42e0978e7c706890dcbd3d7516a2df3fdfc685c5 100644 --- a/test/built-ins/Promise/reject/capability-executor-not-callable.js +++ b/test/built-ins/Promise/reject/capability-executor-not-callable.js @@ -56,7 +56,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.reject.call(function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; }, {}); }, "executor called with (undefined, function)"); @@ -66,7 +66,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.reject.call(function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; }, {}); }, "executor called with (function, undefined)"); diff --git a/test/built-ins/Promise/reject/capability-invocation.js b/test/built-ins/Promise/reject/capability-invocation.js index 3a9c6891abeee24be9a1ebce14bcd539e0b8cd2d..9fc397676cff5d9f061742854ec2acc4ba683065 100644 --- a/test/built-ins/Promise/reject/capability-invocation.js +++ b/test/built-ins/Promise/reject/capability-invocation.js @@ -17,7 +17,9 @@ info: | 7. ReturnIfAbrupt(promise). ---*/ -var expectedThis = (function() { return this; })(); +var expectedThis = (function() { + return this; +})(); var resolveCount = 0; var thisValue, args; var P = function(executor) { diff --git a/test/built-ins/Promise/resolve-function-nonconstructor.js b/test/built-ins/Promise/resolve-function-nonconstructor.js index 32e89382a7521553c344d65fd78367019db99149..5603b8010d5202f70096777285e0587449642761 100644 --- a/test/built-ins/Promise/resolve-function-nonconstructor.js +++ b/test/built-ins/Promise/resolve-function-nonconstructor.js @@ -17,4 +17,6 @@ new Promise(function(resolve, reject) { }); assert.sameValue(Object.prototype.hasOwnProperty.call(resolveFunction, "prototype"), false); -assert.throws(TypeError, function() { new resolveFunction(); }); +assert.throws(TypeError, function() { + new resolveFunction(); +}); diff --git a/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js b/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js index 8bdd314e47879818b6b7d4de444341094bd1996e..a78396dafb8e178a50d04314631a0a1322cd1756 100644 --- a/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js +++ b/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js @@ -31,10 +31,10 @@ var p = new Promise(function(_resolve, _reject) { }); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function() { - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function() { + $DONE(); +}); reject(thenable); returnValue = resolve(); diff --git a/test/built-ins/Promise/resolve-ignored-via-fn-immed.js b/test/built-ins/Promise/resolve-ignored-via-fn-immed.js index 2b5cafbf84b26d0d86e0157675285a5ef157b523..7c5eefb26b43cb30de329091208df45925414df3 100644 --- a/test/built-ins/Promise/resolve-ignored-via-fn-immed.js +++ b/test/built-ins/Promise/resolve-ignored-via-fn-immed.js @@ -32,7 +32,7 @@ var p = new Promise(function(resolve, reject) { assert.sameValue(returnValue, undefined, '"reject" function return value'); p.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function() { - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function() { + $DONE(); +}); diff --git a/test/built-ins/Promise/resolve-non-obj-deferred.js b/test/built-ins/Promise/resolve-non-obj-deferred.js index 4cd93b663bf4c71a1553b7d9cd3e959019e9d93e..36a380b0eccd65e3b002496329786075fdf9928e 100644 --- a/test/built-ins/Promise/resolve-non-obj-deferred.js +++ b/test/built-ins/Promise/resolve-non-obj-deferred.js @@ -23,15 +23,15 @@ var promise = new Promise(function(_resolve) { }); promise.then(function(value) { - if (value !== 45) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 45) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); returnValue = resolve(45); diff --git a/test/built-ins/Promise/resolve-non-obj-immed.js b/test/built-ins/Promise/resolve-non-obj-immed.js index b9400d266926f88e77c8b0747b2526544fc005be..3bb74c10b10bf1714f94c2d82dcd8d592ada48c4 100644 --- a/test/built-ins/Promise/resolve-non-obj-immed.js +++ b/test/built-ins/Promise/resolve-non-obj-immed.js @@ -23,12 +23,12 @@ var promise = new Promise(function(resolve) { assert.sameValue(returnValue, undefined, '"resolve" return value'); promise.then(function(value) { - if (value !== 45) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 45) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve-non-thenable-deferred.js b/test/built-ins/Promise/resolve-non-thenable-deferred.js index d39c04bbed79cea0e423c876a3cce04400e6de9e..e760edb1123a63803b9f44959400156d16fa0bbf 100644 --- a/test/built-ins/Promise/resolve-non-thenable-deferred.js +++ b/test/built-ins/Promise/resolve-non-thenable-deferred.js @@ -22,22 +22,24 @@ flags: [async] ---*/ var returnValue = null; -var nonThenable = { then: null }; +var nonThenable = { + then: null +}; var resolve; var promise = new Promise(function(_resolve) { resolve = _resolve; }); promise.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); returnValue = resolve(nonThenable); diff --git a/test/built-ins/Promise/resolve-non-thenable-immed.js b/test/built-ins/Promise/resolve-non-thenable-immed.js index 5f7b13b67888d502dc1b39b1ffa1c70b430d51f3..1c2463a8b08c03edcfe53c3c9f4f5afcba32ac77 100644 --- a/test/built-ins/Promise/resolve-non-thenable-immed.js +++ b/test/built-ins/Promise/resolve-non-thenable-immed.js @@ -22,7 +22,9 @@ flags: [async] ---*/ var returnValue = null; -var nonThenable = { then: null }; +var nonThenable = { + then: null +}; var promise = new Promise(function(resolve) { returnValue = resolve(nonThenable); }); @@ -30,12 +32,12 @@ var promise = new Promise(function(resolve) { assert.sameValue(returnValue, undefined, '"resolve" return value'); promise.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve-poisoned-then-deferred.js b/test/built-ins/Promise/resolve-poisoned-then-deferred.js index ad32393559407af0f929ebf67260e2cc03823a16..2b2a3419be60f263a8c7677800b12205e46cff83 100644 --- a/test/built-ins/Promise/resolve-poisoned-then-deferred.js +++ b/test/built-ins/Promise/resolve-poisoned-then-deferred.js @@ -30,15 +30,15 @@ var promise = new Promise(function(_resolve) { }); promise.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(val) { + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }); + $DONE(); +}); returnValue = resolve(poisonedThen); diff --git a/test/built-ins/Promise/resolve-poisoned-then-immed.js b/test/built-ins/Promise/resolve-poisoned-then-immed.js index 22658f20a253538edb87c4c076bd2e69f1c8c8fc..cb7d4c29cf73aea052aca7f8e3f572a8b1dacf6a 100644 --- a/test/built-ins/Promise/resolve-poisoned-then-immed.js +++ b/test/built-ins/Promise/resolve-poisoned-then-immed.js @@ -31,12 +31,12 @@ var promise = new Promise(function(resolve) { assert.sameValue(returnValue, undefined, '"resolve" return value'); promise.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(val) { + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js b/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js index d167f2a8e0fc45c9dfd3e418a19225586a5e4d7b..542df5b65877ea8d6b941c1c42f5ed7fefaa06a7 100644 --- a/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js +++ b/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js @@ -27,7 +27,9 @@ flags: [async] var returnValue = null; var value = {}; var resolve; -var thenable = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); var promise = new Promise(function(_resolve) { resolve = _resolve; }); @@ -37,15 +39,15 @@ thenable.then = function(resolve) { }; promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); returnValue = resolve(thenable); diff --git a/test/built-ins/Promise/resolve-prms-cstm-then-immed.js b/test/built-ins/Promise/resolve-prms-cstm-then-immed.js index bc292a8c4baec3aa503d5ea62133b9a5439e6923..3936c9700c163b0f953b84348f14ad2b3b943f96 100644 --- a/test/built-ins/Promise/resolve-prms-cstm-then-immed.js +++ b/test/built-ins/Promise/resolve-prms-cstm-then-immed.js @@ -27,7 +27,9 @@ flags: [async] var returnValue = null; var value = {}; var lateCallCount = 0; -var thenable = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); thenable.then = function(resolve) { resolve(value); @@ -44,16 +46,16 @@ thenable.then = function() { }; promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } - - if (lateCallCount > 0) { - $DONE('The `then` method should be executed synchronously.'); - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } + + if (lateCallCount > 0) { + $DONE('The `then` method should be executed synchronously.'); + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve-self.js b/test/built-ins/Promise/resolve-self.js index 02a75bd27b01babf008601261dc385dfe31d84e6..ed519fa82159cc6d10e6cb182957c49b2eab3c67 100644 --- a/test/built-ins/Promise/resolve-self.js +++ b/test/built-ins/Promise/resolve-self.js @@ -24,20 +24,20 @@ var promise = new Promise(function(_resolve) { }); promise.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } - $DONE(); - }); + $DONE(); +}); returnValue = resolve(promise); diff --git a/test/built-ins/Promise/resolve-thenable-deferred.js b/test/built-ins/Promise/resolve-thenable-deferred.js index 2c0602aea3783e58f1154859ecf4d8bfbbc158a4..ea7ce79b0177f12513c3a35bf17a09fb67ae3923 100644 --- a/test/built-ins/Promise/resolve-thenable-deferred.js +++ b/test/built-ins/Promise/resolve-thenable-deferred.js @@ -27,21 +27,23 @@ flags: [async] var returnValue = null; var value = {}; var resolve; -var thenable = new Promise(function(resolve) { resolve(value); }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); var promise = new Promise(function(_resolve) { resolve = _resolve; }); promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); returnValue = resolve(thenable); diff --git a/test/built-ins/Promise/resolve-thenable-immed.js b/test/built-ins/Promise/resolve-thenable-immed.js index 7d90a5e1c6dc004dc78977736aaa395522261744..4be0fc547c31b32a3a5bbd653a61903f80329475 100644 --- a/test/built-ins/Promise/resolve-thenable-immed.js +++ b/test/built-ins/Promise/resolve-thenable-immed.js @@ -25,7 +25,9 @@ flags: [async] var returnValue = null; var value = {}; -var thenable = new Promise(function(resolve) { resolve(value); }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); var promise = new Promise(function(resolve) { returnValue = resolve(thenable); }); @@ -33,12 +35,12 @@ var promise = new Promise(function(resolve) { assert.sameValue(returnValue, undefined, '"resolve" return value'); promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js index 07c4e02f08050ea0f501df2cc0568b2f38969603..b4d5943c7b6244294360d9bea76ee5e4a5b91364 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js @@ -10,5 +10,5 @@ description: Promise.resolve is a function ---*/ if ((typeof Promise.resolve) !== "function") { - $ERROR("Expected Promise.resolve to be a function"); + $ERROR("Expected Promise.resolve to be a function"); } diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js index 15718a0a61f8c02129403927806ba234ee596fed..6b79535d6f0da55b4da460b6d8e885a89397d2a7 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A2.1_T1.js @@ -8,8 +8,8 @@ description: Promise.resolve passes through a promise w/ same Constructor ---*/ var p1 = Promise.resolve(1), - p2 = Promise.resolve(p1); + p2 = Promise.resolve(p1); if (p1 !== p2) { - $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); + $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); } diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js index 2b471179fca6bcc1540e2b643cfe21fda43b8a46..294bf71fcdaff2c0bd465eb151374222f761ecd1 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js @@ -9,18 +9,20 @@ flags: [async] ---*/ var resolveP1, - p1 = new Promise(function (resolve) { resolveP1 = resolve; }), - p2 = Promise.resolve(p1), - obj = {}; + p1 = new Promise(function(resolve) { + resolveP1 = resolve; + }), + p2 = Promise.resolve(p1), + obj = {}; if (p1 !== p2) { - $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); + $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); } -p2.then(function (arg) { - if (arg !== obj) { - $ERROR("Expected promise to be resolved with obj, actually " + arg); - } +p2.then(function(arg) { + if (arg !== obj) { + $ERROR("Expected promise to be resolved with obj, actually " + arg); + } }).then($DONE, $DONE); resolveP1(obj); diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js index 3ea901fc83f4504d3310c6b945738091da9c7537..a171372313f583f7a4abf20f1998b2eec137e404 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js @@ -9,20 +9,22 @@ flags: [async] ---*/ var rejectP1, - p1 = new Promise(function (resolve, reject) { rejectP1 = reject; }), - p2 = Promise.resolve(p1), - obj = {}; + p1 = new Promise(function(resolve, reject) { + rejectP1 = reject; + }), + p2 = Promise.resolve(p1), + obj = {}; if (p1 !== p2) { - $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); + $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); } -p2.then(function () { - $ERROR("Expected p2 to be rejected, not fulfilled."); -}, function (arg) { - if (arg !== obj) { - $ERROR("Expected promise to be rejected with reason obj, actually " + arg); - } +p2.then(function() { + $ERROR("Expected p2 to be rejected, not fulfilled."); +}, function(arg) { + if (arg !== obj) { + $ERROR("Expected promise to be rejected with reason obj, actually " + arg); + } }).then($DONE, $DONE); rejectP1(obj); diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js index 1da71f6c7064f781eab705f60978b4bd138ea3fe..568d089b4b2e6e9d68b20e3239654843edb299d3 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js @@ -14,22 +14,22 @@ flags: [async] var sequence = []; var thenable = { - then: function(onResolve, onReject) { - sequence.push(3); - checkSequence(sequence, "thenable.then called"); + then: function(onResolve, onReject) { + sequence.push(3); + checkSequence(sequence, "thenable.then called"); - assert.sameValue(this, thenable); + assert.sameValue(this, thenable); - onResolve('resolved'); + onResolve('resolved'); - sequence.push(4); - checkSequence(sequence, "after resolved"); + sequence.push(4); + checkSequence(sequence, "after resolved"); - throw new Error('interrupt flow'); + throw new Error('interrupt flow'); - sequence.push(4); - checkSequence(sequence, "duplicate sequence point not pushed"); - } + sequence.push(4); + checkSequence(sequence, "duplicate sequence point not pushed"); + } }; sequence.push(1); @@ -40,10 +40,10 @@ var p1 = Promise.resolve(thenable); sequence.push(2); checkSequence(sequence, "thenable.then queued but not yet called"); -p1.then(function (q) { - sequence.push(5); - checkSequence(sequence, "all done"); +p1.then(function(q) { + sequence.push(5); + checkSequence(sequence, "all done"); - assert.sameValue(q, 'resolved'); + assert.sameValue(q, 'resolved'); }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js index 3eb8f83f9f7bb2f60a3068b953261a8c5a98b86a..2ae973406ac135bcfcb104c70458707006c16092 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js @@ -11,14 +11,16 @@ flags: [async] ---*/ var resolveP, - p = new Promise(function (resolve) { resolveP = resolve; }); + p = new Promise(function(resolve) { + resolveP = resolve; + }); resolveP(p); -p.then(function () { - $ERROR("Should not fulfill: should reject with TypeError."); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR("Expected TypeError, got " + err); - } +p.then(function() { + $ERROR("Should not fulfill: should reject with TypeError."); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR("Expected TypeError, got " + err); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js index 61f5e7eae89491600b9d6724b3476ce56c553a9e..f67bff24286981ee5885d5f3942eb5dcc39d816e 100644 --- a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js +++ b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js @@ -11,13 +11,13 @@ flags: [async] ---*/ var thenable = { - then: function(onResolve, onReject) { - return onResolve('resolved'); - } + then: function(onResolve, onReject) { + return onResolve('resolved'); + } }; var p = Promise.resolve(thenable); -p.then(function (r) { - assert.sameValue(r, 'resolved'); +p.then(function(r) { + assert.sameValue(r, 'resolved'); }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js index 1cb07bbe9ecb58783c68cb7ee70818cce59ecf91..c243d9c3a7a53a94e4132879c23c3b4f5389ae11 100644 --- a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js +++ b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_2.js @@ -14,15 +14,15 @@ flags: [async] var sequence = []; var thenable = { - then: function(onResolve, onReject) { + then: function(onResolve, onReject) { - sequence.push(3); - checkSequence(sequence, "thenable.then called"); + sequence.push(3); + checkSequence(sequence, "thenable.then called"); - assert.sameValue(this, thenable, "thenable.then called with `thenable` as `this`"); + assert.sameValue(this, thenable, "thenable.then called with `thenable` as `this`"); - return onResolve('resolved'); - } + return onResolve('resolved'); + } }; sequence.push(1); @@ -33,9 +33,9 @@ var p = Promise.resolve(thenable); sequence.push(2); checkSequence(sequence, "thenable.then queued but not yet called"); -p.then(function (r) { - sequence.push(4); - checkSequence(sequence, "all done"); +p.then(function(r) { + sequence.push(4); + checkSequence(sequence, "all done"); - assert.sameValue(r, 'resolved'); + assert.sameValue(r, 'resolved'); }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/resolve/capability-executor-called-twice.js b/test/built-ins/Promise/resolve/capability-executor-called-twice.js index 1db7b948362ef899275a40ab4252dc262ad94568..37074d240d7cd3097ad1e1a037befdffd5f0b595 100644 --- a/test/built-ins/Promise/resolve/capability-executor-called-twice.js +++ b/test/built-ins/Promise/resolve/capability-executor-called-twice.js @@ -27,7 +27,7 @@ Promise.resolve.call(function(executor) { checkPoint += "a"; executor(); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); assert.sameValue(checkPoint, "abc", "executor initially called with no arguments"); @@ -37,7 +37,7 @@ Promise.resolve.call(function(executor) { checkPoint += "a"; executor(undefined, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)"); @@ -46,9 +46,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.resolve.call(function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); }, "executor initially called with (undefined, function)"); @@ -58,9 +58,9 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.resolve.call(function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); }, "executor initially called with (function, undefined)"); @@ -72,7 +72,7 @@ assert.throws(TypeError, function() { checkPoint += "a"; executor("invalid value", 123); checkPoint += "b"; - executor(function(){}, function(){}); + executor(function() {}, function() {}); checkPoint += "c"; }, {}); }, "executor initially called with (String, Number)"); diff --git a/test/built-ins/Promise/resolve/capability-executor-not-callable.js b/test/built-ins/Promise/resolve/capability-executor-not-callable.js index cbc6b97aecca173ebf2932d2b54f6097be5ba458..58dfe71d63557226e55ef834ad58abf74412d066 100644 --- a/test/built-ins/Promise/resolve/capability-executor-not-callable.js +++ b/test/built-ins/Promise/resolve/capability-executor-not-callable.js @@ -56,7 +56,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.resolve.call(function(executor) { checkPoint += "a"; - executor(undefined, function(){}); + executor(undefined, function() {}); checkPoint += "b"; }, {}); }, "executor called with (undefined, function)"); @@ -66,7 +66,7 @@ var checkPoint = ""; assert.throws(TypeError, function() { Promise.resolve.call(function(executor) { checkPoint += "a"; - executor(function(){}, undefined); + executor(function() {}, undefined); checkPoint += "b"; }, {}); }, "executor called with (function, undefined)"); diff --git a/test/built-ins/Promise/resolve/context-non-object-with-promise.js b/test/built-ins/Promise/resolve/context-non-object-with-promise.js index 7e20d493b8115134bb366eae0f7804fe152e279d..c59cabeb221bb1bb83cf16959e13d8aeab0c5dab 100644 --- a/test/built-ins/Promise/resolve/context-non-object-with-promise.js +++ b/test/built-ins/Promise/resolve/context-non-object-with-promise.js @@ -14,7 +14,7 @@ info: | features: [Symbol] ---*/ -var promise = new Promise(function(){}); +var promise = new Promise(function() {}); promise.constructor = undefined; assert.throws(TypeError, function() { diff --git a/test/built-ins/Promise/resolve/resolve-from-promise-capability.js b/test/built-ins/Promise/resolve/resolve-from-promise-capability.js index 40d1e1ece7f9900d4197153ff06e48deb02749be..76d6483a58d5ad1483eb98179a296595f270429b 100644 --- a/test/built-ins/Promise/resolve/resolve-from-promise-capability.js +++ b/test/built-ins/Promise/resolve/resolve-from-promise-capability.js @@ -16,7 +16,9 @@ info: | ... ---*/ -var expectedThisValue = (function() { return this; }()); +var expectedThisValue = (function() { + return this; +}()); var callCount = 0; var object = {}; var thisValue, args; diff --git a/test/built-ins/Promise/resolve/resolve-non-obj.js b/test/built-ins/Promise/resolve/resolve-non-obj.js index c010cbf3ebad086cc75cf571516f0be8063e582f..ba8adcd9a1c8d10b35f259b9a4335ad7453ff620 100644 --- a/test/built-ins/Promise/resolve/resolve-non-obj.js +++ b/test/built-ins/Promise/resolve/resolve-non-obj.js @@ -17,12 +17,12 @@ flags: [async] ---*/ Promise.resolve(23).then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve/resolve-non-thenable.js b/test/built-ins/Promise/resolve/resolve-non-thenable.js index 4b764c79927639495ea7995fc5d294ea7e366966..032ad20f7336a5654aaa219c919ece81bd48a245 100644 --- a/test/built-ins/Promise/resolve/resolve-non-thenable.js +++ b/test/built-ins/Promise/resolve/resolve-non-thenable.js @@ -23,12 +23,12 @@ flags: [async] var value = {}; Promise.resolve(value).then(function(value) { - if (value !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve/resolve-poisoned-then.js b/test/built-ins/Promise/resolve/resolve-poisoned-then.js index 0da129a2dc7a6b3f75589343c26564cece11b2e1..98d7f3d9977a0ec5db6692cdda876208696d9275 100644 --- a/test/built-ins/Promise/resolve/resolve-poisoned-then.js +++ b/test/built-ins/Promise/resolve/resolve-poisoned-then.js @@ -26,12 +26,12 @@ var poisonedThen = Object.defineProperty({}, 'then', { }); Promise.resolve(poisonedThen).then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(val) { - if (val !== value) { - $DONE('The promise should be rejected with the provided value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(val) { + if (val !== value) { + $DONE('The promise should be rejected with the provided value.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js b/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js index fd345394c65119aef98928b763ec0f1fdb4793a8..2b7bccc95d1746bc35db6f9d7844ae2b4dbca7a9 100644 --- a/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js +++ b/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js @@ -23,7 +23,9 @@ info: | var value = {}; var rejectCallCount = 0; -var thenable = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); var resolvedValue; thenable.then = function(resolve) { @@ -31,10 +33,10 @@ thenable.then = function(resolve) { }; Promise.resolve(thenable).then(function(val) { - resolvedValue = val; - }, function() { - rejectCallCount += 1; - }); + resolvedValue = val; +}, function() { + rejectCallCount += 1; +}); assert.sameValue(resolvedValue, value); assert.sameValue(rejectCallCount, 0); diff --git a/test/built-ins/Promise/resolve/resolve-thenable.js b/test/built-ins/Promise/resolve/resolve-thenable.js index 3781e7fedc522a611c1e463866e56cd5f7088f5e..2ea723f3b62a1cba033d7fbb108156d323ac2758 100644 --- a/test/built-ins/Promise/resolve/resolve-thenable.js +++ b/test/built-ins/Promise/resolve/resolve-thenable.js @@ -30,12 +30,12 @@ var thenable = { }; Promise.resolve(thenable).then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Proxy/apply/call-parameters.js b/test/built-ins/Proxy/apply/call-parameters.js index db07eb6e3875fed25d2a7a32173e09cf5762b5a2..347e4bb4ea9c9d5fc9c8daafb903207e88fc3725 100644 --- a/test/built-ins/Proxy/apply/call-parameters.js +++ b/test/built-ins/Proxy/apply/call-parameters.js @@ -12,14 +12,16 @@ info: | ---*/ var _target, _args, _handler, _context; -var target = function(a, b) { return a + b; }; +var target = function(a, b) { + return a + b; +}; var handler = { - apply: function(t, c, args) { - _handler = this; - _target = t; - _context = c; - _args = args; - } + apply: function(t, c, args) { + _handler = this; + _target = t; + _context = c; + _args = args; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/apply/call-result.js b/test/built-ins/Proxy/apply/call-result.js index 0348f4f011093e7120889c049bbfe03962c5f477..1f3bf53d2fc0b415b9d5fcca41cf314b0cbe422a 100644 --- a/test/built-ins/Proxy/apply/call-result.js +++ b/test/built-ins/Proxy/apply/call-result.js @@ -10,12 +10,14 @@ info: | 9. Return Call(trap, handler, «target, thisArgument, argArray»). ---*/ -var target = function(a, b) { return a + b; }; +var target = function(a, b) { + return a + b; +}; var result = {}; var handler = { - apply: function(t, c, args) { - return result; - } + apply: function(t, c, args) { + return result; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/apply/null-handler.js b/test/built-ins/Proxy/apply/null-handler.js index 5906aef045bee1f118ad03fd0ba4d75ae99a6059..cdc7461d11d4d1c80f5b08f0605a8c4f93655d51 100644 --- a/test/built-ins/Proxy/apply/null-handler.js +++ b/test/built-ins/Proxy/apply/null-handler.js @@ -14,5 +14,5 @@ var p = Proxy.revocable(function() {}, {}); p.revoke(); assert.throws(TypeError, function() { - p.proxy(); + p.proxy(); }); diff --git a/test/built-ins/Proxy/apply/return-abrupt.js b/test/built-ins/Proxy/apply/return-abrupt.js index 8542e64f6f2596f48a3c30bfe9c4e1facdee0d3b..db3f6bfa562bc991140bf05f1dc43eec7726a9fd 100644 --- a/test/built-ins/Proxy/apply/return-abrupt.js +++ b/test/built-ins/Proxy/apply/return-abrupt.js @@ -6,13 +6,15 @@ description: > Return is an abrupt completion ---*/ -var target = function(a, b) { return a + b; }; +var target = function(a, b) { + return a + b; +}; var p = new Proxy(target, { - apply: function(t, c, args) { - throw new Test262Error(); - } + apply: function(t, c, args) { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - p.call(); + p.call(); }); diff --git a/test/built-ins/Proxy/apply/trap-is-not-callable.js b/test/built-ins/Proxy/apply/trap-is-not-callable.js index b033e8dd418258ae3bb868c505c1a6de00377778..b6e74f1ef3c9a30a0a1ee1a20aee41dac9655af3 100644 --- a/test/built-ins/Proxy/apply/trap-is-not-callable.js +++ b/test/built-ins/Proxy/apply/trap-is-not-callable.js @@ -7,9 +7,9 @@ description: > ---*/ var p = new Proxy(function() {}, { - apply: {} + apply: {} }); assert.throws(TypeError, function() { - p(); + p(); }); diff --git a/test/built-ins/Proxy/apply/trap-is-null.js b/test/built-ins/Proxy/apply/trap-is-null.js index e19cf84451c4c84c534e8c75938c4237ced323f8..8bb87786c1f9316d6dc7b757e45c46600f9e5b30 100644 --- a/test/built-ins/Proxy/apply/trap-is-null.js +++ b/test/built-ins/Proxy/apply/trap-is-null.js @@ -31,7 +31,9 @@ function target(a, b) { } var ctx = {}; -var p = new Proxy(target, {apply: null}); +var p = new Proxy(target, { + apply: null +}); var res = p.call(ctx, 1, 2); assert.sameValue(res, 3, "`apply` trap is `null`"); assert.sameValue(calls, 1, "target is called once"); diff --git a/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js b/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js index 9cb26e3652d7c0659bbc770043c69b792bf42157..898fad36216b65e3ded4aefd0107837d5c36791b 100644 --- a/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js +++ b/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js @@ -25,9 +25,9 @@ info: | var calls = 0; function target(a, b) { - assert.sameValue(this, ctx); - calls += 1; - return a + b; + assert.sameValue(this, ctx); + calls += 1; + return a + b; } var ctx = {}; diff --git a/test/built-ins/Proxy/apply/trap-is-undefined.js b/test/built-ins/Proxy/apply/trap-is-undefined.js index cc9c1ff41ecb82f1a67441cd1d9ac92dc914bf74..a8df9f34baaa923405a25edb41b45ba08c3e19ef 100644 --- a/test/built-ins/Proxy/apply/trap-is-undefined.js +++ b/test/built-ins/Proxy/apply/trap-is-undefined.js @@ -31,7 +31,9 @@ function target(a, b) { } var ctx = {}; -var p = new Proxy(target, {apply: undefined}); +var p = new Proxy(target, { + apply: undefined +}); var res = p.call(ctx, 1, 2); assert.sameValue(res, 3, "`apply` trap is `null`"); assert.sameValue(calls, 1, "target is called once"); diff --git a/test/built-ins/Proxy/construct/call-parameters-new-target.js b/test/built-ins/Proxy/construct/call-parameters-new-target.js index 714b1db4bea4e9a5d8b0d60f402495dd39f8cb44..dab0f8512f69d5098bb6751d1393515089573962 100644 --- a/test/built-ins/Proxy/construct/call-parameters-new-target.js +++ b/test/built-ins/Proxy/construct/call-parameters-new-target.js @@ -15,22 +15,25 @@ features: [Reflect.construct] ---*/ function Target() {} + function NewTarget() {} var handler = { - construct: function(target, args, newTarget) { - assert.sameValue(this, handler, "trap context is the handler object"); - assert.sameValue(target, Target, "first parameter is the target object"); - assert.sameValue(args.length, 2, "arguments list contains all construct arguments"); - - var a = args[0]; - var b = args[1]; - assert.sameValue(a, 1, "arguments list has first construct argument"); - assert.sameValue(b, 2, "arguments list has second construct argument"); - assert.sameValue(newTarget, NewTarget, "newTarget is passed as the third parameter"); - - return {sum: a + b}; - }, + construct: function(target, args, newTarget) { + assert.sameValue(this, handler, "trap context is the handler object"); + assert.sameValue(target, Target, "first parameter is the target object"); + assert.sameValue(args.length, 2, "arguments list contains all construct arguments"); + + var a = args[0]; + var b = args[1]; + assert.sameValue(a, 1, "arguments list has first construct argument"); + assert.sameValue(b, 2, "arguments list has second construct argument"); + assert.sameValue(newTarget, NewTarget, "newTarget is passed as the third parameter"); + + return { + sum: a + b + }; + }, }; var P = new Proxy(Target, handler); diff --git a/test/built-ins/Proxy/construct/call-parameters.js b/test/built-ins/Proxy/construct/call-parameters.js index f52f7b84251589bfcdf6a59e808344eb002cef54..7d0e9cc1e44663fb45fef9d2a626fa9ce75f7445 100644 --- a/test/built-ins/Proxy/construct/call-parameters.js +++ b/test/built-ins/Proxy/construct/call-parameters.js @@ -13,17 +13,18 @@ info: | ---*/ var _target, _handler, _args, _P; + function Target() {} var handler = { - construct: function(t, args, newTarget) { - _handler = this; - _target = t; - _args = args; - _P = newTarget; + construct: function(t, args, newTarget) { + _handler = this; + _target = t; + _args = args; + _P = newTarget; - return new t(args[0], args[1]); - } + return new t(args[0], args[1]); + } }; var P = new Proxy(Target, handler); diff --git a/test/built-ins/Proxy/construct/call-result.js b/test/built-ins/Proxy/construct/call-result.js index f47ddb9016bc14f3a0a1bc02fe5b0a12cd88cf44..7740f1fe858507f0b7e28fe909d917f7077c2208 100644 --- a/test/built-ins/Proxy/construct/call-result.js +++ b/test/built-ins/Proxy/construct/call-result.js @@ -11,12 +11,14 @@ info: | ---*/ function Target(a, b) { - this.sum = a + b; + this.sum = a + b; }; var handler = { - construct: function(t, c, args) { - return { sum: 42 }; - } + construct: function(t, c, args) { + return { + sum: 42 + }; + } }; var P = new Proxy(Target, handler); diff --git a/test/built-ins/Proxy/construct/null-handler.js b/test/built-ins/Proxy/construct/null-handler.js index 3c60321618318ee2130d00585eaf16e30f7ad2c8..816d04d4f741617dfa98aa49d676e68ad0d94f17 100644 --- a/test/built-ins/Proxy/construct/null-handler.js +++ b/test/built-ins/Proxy/construct/null-handler.js @@ -14,5 +14,5 @@ var p = Proxy.revocable(function() {}, {}); p.revoke(); assert.throws(TypeError, function() { - new p.proxy(); + new p.proxy(); }); diff --git a/test/built-ins/Proxy/construct/return-is-abrupt.js b/test/built-ins/Proxy/construct/return-is-abrupt.js index de42204fd4d02ac19947f49b9cf000070f1368e8..c0d41aa4ee2ffb7f2028f887deaaffb48c15cd25 100644 --- a/test/built-ins/Proxy/construct/return-is-abrupt.js +++ b/test/built-ins/Proxy/construct/return-is-abrupt.js @@ -13,11 +13,11 @@ info: | function Target() {} var P = new Proxy(Target, { - construct: function() { - throw new Test262Error(); - } + construct: function() { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - new P(); + new P(); }); diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-boolean.js b/test/built-ins/Proxy/construct/return-not-object-throws-boolean.js index 0edd139a8c61c23c8f3eb95afe9eb2005bf875ac..5c40d5c8c827f7707478eff5adcdac439a656bde 100644 --- a/test/built-ins/Proxy/construct/return-not-object-throws-boolean.js +++ b/test/built-ins/Proxy/construct/return-not-object-throws-boolean.js @@ -11,14 +11,14 @@ info: | ---*/ function Target() { - this.attr = "done"; + this.attr = "done"; }; var P = new Proxy(Target, { - construct: function() { - return true; - } + construct: function() { + return true; + } }); assert.throws(TypeError, function() { - new P(); + new P(); }); diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-number.js b/test/built-ins/Proxy/construct/return-not-object-throws-number.js index a7e27c6a8f7332cb02356cde0869361489b3fbb9..7e97a803b89fa0f9015dea883ae16ebfb028dffc 100644 --- a/test/built-ins/Proxy/construct/return-not-object-throws-number.js +++ b/test/built-ins/Proxy/construct/return-not-object-throws-number.js @@ -11,14 +11,14 @@ info: | ---*/ function Target() { - this.attr = "done"; + this.attr = "done"; }; var P = new Proxy(Target, { - construct: function() { - return 0; - } + construct: function() { + return 0; + } }); assert.throws(TypeError, function() { - new P(); + new P(); }); diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-string.js b/test/built-ins/Proxy/construct/return-not-object-throws-string.js index 4de604814b3a2807ada555d3e8c5a18518bfbb7e..ca2f5af05ca8ff06de84c264790127873d3c56ba 100644 --- a/test/built-ins/Proxy/construct/return-not-object-throws-string.js +++ b/test/built-ins/Proxy/construct/return-not-object-throws-string.js @@ -11,14 +11,14 @@ info: | ---*/ function Target() { - this.attr = "done"; + this.attr = "done"; }; var P = new Proxy(Target, { - construct: function() { - return ""; - } + construct: function() { + return ""; + } }); assert.throws(TypeError, function() { - new P(); + new P(); }); diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-symbol.js b/test/built-ins/Proxy/construct/return-not-object-throws-symbol.js index ade72bfae54e014d42ba2967bed4e0281a23be6b..963812950a7d9e2822a8cac9ea490df57da74928 100644 --- a/test/built-ins/Proxy/construct/return-not-object-throws-symbol.js +++ b/test/built-ins/Proxy/construct/return-not-object-throws-symbol.js @@ -12,14 +12,14 @@ features: [Symbol] ---*/ function Target() { - this.attr = "done"; + this.attr = "done"; }; var P = new Proxy(Target, { - construct: function() { - return Symbol(); - } + construct: function() { + return Symbol(); + } }); assert.throws(TypeError, function() { - new P(); + new P(); }); diff --git a/test/built-ins/Proxy/construct/return-not-object-throws-undefined.js b/test/built-ins/Proxy/construct/return-not-object-throws-undefined.js index 9547263b92e01beb02b6127c4c86c3516771472a..347dd3dd92223e7b9e9cf3b849358254929d658c 100644 --- a/test/built-ins/Proxy/construct/return-not-object-throws-undefined.js +++ b/test/built-ins/Proxy/construct/return-not-object-throws-undefined.js @@ -11,14 +11,14 @@ info: | ---*/ function Target() { - this.attr = "done"; + this.attr = "done"; }; var P = new Proxy(Target, { - construct: function() { - return undefined; - } + construct: function() { + return undefined; + } }); assert.throws(TypeError, function() { - new P(); + new P(); }); diff --git a/test/built-ins/Proxy/construct/trap-is-not-callable.js b/test/built-ins/Proxy/construct/trap-is-not-callable.js index f0c66394a5e1d266e178b3a8af4d471d8003308a..41bc0c700c64b6e695e2dfaa430a00211a022253 100644 --- a/test/built-ins/Proxy/construct/trap-is-not-callable.js +++ b/test/built-ins/Proxy/construct/trap-is-not-callable.js @@ -8,9 +8,9 @@ description: > function Target() {} var p = new Proxy(Target, { - construct: {} + construct: {} }); assert.throws(TypeError, function() { - new p(); + new p(); }); diff --git a/test/built-ins/Proxy/construct/trap-is-null.js b/test/built-ins/Proxy/construct/trap-is-null.js index 0a895bc57255f1a05dd5c44608494ebdd609c445..9bc1ab29f3fa6eaf41f7e323db4218abff369de0 100644 --- a/test/built-ins/Proxy/construct/trap-is-null.js +++ b/test/built-ins/Proxy/construct/trap-is-null.js @@ -27,13 +27,18 @@ features: [Reflect.construct] var calls = 0; function NewTarget() {} + function Target(a, b) { - assert.sameValue(new.target, NewTarget); - calls += 1; - return {sum: a + b}; + assert.sameValue(new.target, NewTarget); + calls += 1; + return { + sum: a + b + }; } -var P = new Proxy(Target, {construct: null}); +var P = new Proxy(Target, { + construct: null +}); var obj = Reflect.construct(P, [3, 4], NewTarget); assert.sameValue(obj.sum, 7, "`construct` trap is `null`"); assert.sameValue(calls, 1, "target is called once"); diff --git a/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js b/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js index a50384f5952bc67ca171c5f65c0e37d3f0d85b05..4157f7b234f861d40036ed486040db258078069a 100644 --- a/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js +++ b/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js @@ -16,10 +16,13 @@ features: [Reflect.construct] var calls = 0; function NewTarget() {} + function Target(a, b) { - assert.sameValue(new.target, NewTarget); - calls += 1; - return {sum: a + b}; + assert.sameValue(new.target, NewTarget); + calls += 1; + return { + sum: a + b + }; } var P = new Proxy(Target, {}); diff --git a/test/built-ins/Proxy/construct/trap-is-undefined.js b/test/built-ins/Proxy/construct/trap-is-undefined.js index d1a6c71066b0160e3e6cf9dfc5779d901a08dc72..97580c6d6476059ba0aa47a4728b270dd69cfcf0 100644 --- a/test/built-ins/Proxy/construct/trap-is-undefined.js +++ b/test/built-ins/Proxy/construct/trap-is-undefined.js @@ -27,13 +27,18 @@ features: [Reflect.construct] var calls = 0; function NewTarget() {} + function Target(a, b) { - assert.sameValue(new.target, NewTarget); - calls += 1; - return {sum: a + b}; + assert.sameValue(new.target, NewTarget); + calls += 1; + return { + sum: a + b + }; } -var P = new Proxy(Target, {construct: undefined}); +var P = new Proxy(Target, { + construct: undefined +}); var obj = Reflect.construct(P, [3, 4], NewTarget); assert.sameValue(obj.sum, 7, "`construct` trap is `undefined`"); assert.sameValue(calls, 1, "target is called once"); diff --git a/test/built-ins/Proxy/create-handler-is-revoked-proxy.js b/test/built-ins/Proxy/create-handler-is-revoked-proxy.js index 5126e4cb0f8c08b1aae7f42165f040ba96111808..151ad36f41618c46a6a81f52f039a93c9930b096 100644 --- a/test/built-ins/Proxy/create-handler-is-revoked-proxy.js +++ b/test/built-ins/Proxy/create-handler-is-revoked-proxy.js @@ -16,5 +16,5 @@ var revocable = Proxy.revocable({}, {}); revocable.revoke(); assert.throws(TypeError, function() { - new Proxy({}, revocable.proxy); + new Proxy({}, revocable.proxy); }); diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-boolean.js b/test/built-ins/Proxy/create-handler-not-object-throw-boolean.js index 891c1826b183b2ddc2752fea8aec03741e30c287..e1846af107874994ed0bc6c74b1e4b27b71b98bc 100644 --- a/test/built-ins/Proxy/create-handler-not-object-throw-boolean.js +++ b/test/built-ins/Proxy/create-handler-not-object-throw-boolean.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy({}, false); + new Proxy({}, false); }); diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-null.js b/test/built-ins/Proxy/create-handler-not-object-throw-null.js index 7abcc0b2dbdc422f4c872d0b747c246dc838a836..c22244d25f8071ceafc812b2f4de84c1a579532b 100644 --- a/test/built-ins/Proxy/create-handler-not-object-throw-null.js +++ b/test/built-ins/Proxy/create-handler-not-object-throw-null.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy({}, null); + new Proxy({}, null); }); diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-number.js b/test/built-ins/Proxy/create-handler-not-object-throw-number.js index 7cb41f20b5ed73ef38ab8a635b99626f74bad0a2..262a99067258dbbe2836a6118aac09ebe125a3f1 100644 --- a/test/built-ins/Proxy/create-handler-not-object-throw-number.js +++ b/test/built-ins/Proxy/create-handler-not-object-throw-number.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy({}, 0); + new Proxy({}, 0); }); diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-string.js b/test/built-ins/Proxy/create-handler-not-object-throw-string.js index 25f1982ec3f6ab620ad2d9731cfd775b5dd6cf9c..3882b313e69be9f7101c58a250d766b97a9e1657 100644 --- a/test/built-ins/Proxy/create-handler-not-object-throw-string.js +++ b/test/built-ins/Proxy/create-handler-not-object-throw-string.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy({}, ""); + new Proxy({}, ""); }); diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-symbol.js b/test/built-ins/Proxy/create-handler-not-object-throw-symbol.js index 38013342310f75d5c878224f39b62fc2c41a4839..78234d8e22f70efa75b6900bb05693b2451e7708 100644 --- a/test/built-ins/Proxy/create-handler-not-object-throw-symbol.js +++ b/test/built-ins/Proxy/create-handler-not-object-throw-symbol.js @@ -11,5 +11,5 @@ features: [Symbol] ---*/ assert.throws(TypeError, function() { - new Proxy({}, Symbol()); + new Proxy({}, Symbol()); }); diff --git a/test/built-ins/Proxy/create-handler-not-object-throw-undefined.js b/test/built-ins/Proxy/create-handler-not-object-throw-undefined.js index 8dd8f172b44e0dabac5a185d67e9818ff9fce8f6..78a78ba640f99efbb45ffe797237218aa9d16228 100644 --- a/test/built-ins/Proxy/create-handler-not-object-throw-undefined.js +++ b/test/built-ins/Proxy/create-handler-not-object-throw-undefined.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy({}, undefined); + new Proxy({}, undefined); }); diff --git a/test/built-ins/Proxy/create-target-is-not-callable.js b/test/built-ins/Proxy/create-target-is-not-callable.js index 7bb2dae6c22922e9f2c9bd784b4a3244d6df1384..b29ed9cd0d3e11c1a8561a80c317facf418d74c1 100644 --- a/test/built-ins/Proxy/create-target-is-not-callable.js +++ b/test/built-ins/Proxy/create-target-is-not-callable.js @@ -21,5 +21,5 @@ info: | var p = new Proxy({}, {}); assert.throws(TypeError, function() { - p.call(); + p.call(); }); diff --git a/test/built-ins/Proxy/create-target-is-not-constructor.js b/test/built-ins/Proxy/create-target-is-not-constructor.js index 7bce1979cd6095b3dd56a3578d88328d1e011484..f369b5ef215b15f03bd01bdc8fc0765856793b14 100644 --- a/test/built-ins/Proxy/create-target-is-not-constructor.js +++ b/test/built-ins/Proxy/create-target-is-not-constructor.js @@ -24,5 +24,5 @@ var p = new Proxy(eval, {}); p(); // the Proxy object is callable assert.throws(TypeError, function() { - new p(); + new p(); }); diff --git a/test/built-ins/Proxy/create-target-is-revoked-proxy.js b/test/built-ins/Proxy/create-target-is-revoked-proxy.js index f68607b36dab7cd8f533d0988043bcfd3aab1f91..fb8b118de38d9ce4c957547e8d21b8cc0c8c9f00 100644 --- a/test/built-ins/Proxy/create-target-is-revoked-proxy.js +++ b/test/built-ins/Proxy/create-target-is-revoked-proxy.js @@ -16,5 +16,5 @@ var revocable = Proxy.revocable({}, {}); revocable.revoke(); assert.throws(TypeError, function() { - new Proxy(revocable.proxy, {}); + new Proxy(revocable.proxy, {}); }); diff --git a/test/built-ins/Proxy/create-target-not-object-throw-boolean.js b/test/built-ins/Proxy/create-target-not-object-throw-boolean.js index d43e653e9860cb5998732735370a5cba9e26c32b..d8b9f1856f9930d6a313e5e58aab57e2783874d6 100644 --- a/test/built-ins/Proxy/create-target-not-object-throw-boolean.js +++ b/test/built-ins/Proxy/create-target-not-object-throw-boolean.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy(false, {}); + new Proxy(false, {}); }); diff --git a/test/built-ins/Proxy/create-target-not-object-throw-null.js b/test/built-ins/Proxy/create-target-not-object-throw-null.js index 845cb6592fcfb8d68469cb6eb6d3f282e34dbdea..af64c1e46b84b5d6e1fdf0f38435eb3d9c305358 100644 --- a/test/built-ins/Proxy/create-target-not-object-throw-null.js +++ b/test/built-ins/Proxy/create-target-not-object-throw-null.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy(null, {}); + new Proxy(null, {}); }); diff --git a/test/built-ins/Proxy/create-target-not-object-throw-number.js b/test/built-ins/Proxy/create-target-not-object-throw-number.js index 2dae22e7983beb3bae8eca9f67fb4960086b6486..ba788934410aaeae7cc30fb063fcb3f95a4bad6a 100644 --- a/test/built-ins/Proxy/create-target-not-object-throw-number.js +++ b/test/built-ins/Proxy/create-target-not-object-throw-number.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy(0, {}); + new Proxy(0, {}); }); diff --git a/test/built-ins/Proxy/create-target-not-object-throw-string.js b/test/built-ins/Proxy/create-target-not-object-throw-string.js index d442b2e1503e8d8e9a1485934606e13890fecf95..aa1fcd96ff94c7af467763058c9e607e658fafde 100644 --- a/test/built-ins/Proxy/create-target-not-object-throw-string.js +++ b/test/built-ins/Proxy/create-target-not-object-throw-string.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy("", {}); + new Proxy("", {}); }); diff --git a/test/built-ins/Proxy/create-target-not-object-throw-symbol.js b/test/built-ins/Proxy/create-target-not-object-throw-symbol.js index a3569f23db1bcd3f315932d334c99d50a1c2d299..825e7145af2fcce1b7f1ae0e2a969bcb0c2c5c5e 100644 --- a/test/built-ins/Proxy/create-target-not-object-throw-symbol.js +++ b/test/built-ins/Proxy/create-target-not-object-throw-symbol.js @@ -11,5 +11,5 @@ features: [Symbol] ---*/ assert.throws(TypeError, function() { - new Proxy(Symbol(), {}); + new Proxy(Symbol(), {}); }); diff --git a/test/built-ins/Proxy/create-target-not-object-throw-undefined.js b/test/built-ins/Proxy/create-target-not-object-throw-undefined.js index 9cda79c82988d8ab6ada707f19eedf44db48a517..42895cf623ae986261e82a6dcd95b07184f01790 100644 --- a/test/built-ins/Proxy/create-target-not-object-throw-undefined.js +++ b/test/built-ins/Proxy/create-target-not-object-throw-undefined.js @@ -10,5 +10,5 @@ description: > ---*/ assert.throws(TypeError, function() { - new Proxy(undefined, {}); + new Proxy(undefined, {}); }); diff --git a/test/built-ins/Proxy/defineProperty/call-parameters.js b/test/built-ins/Proxy/defineProperty/call-parameters.js index ade8bb97163d966087c7b6dc4592cacab0275338..6afb6f5baf2c14aef2243c1665ce42538e4f7f93 100644 --- a/test/built-ins/Proxy/defineProperty/call-parameters.js +++ b/test/built-ins/Proxy/defineProperty/call-parameters.js @@ -18,20 +18,20 @@ info: | var _handler, _target, _prop, _desc; var target = {}; var descriptor = { - configurable: true, - enumerable: true, - writable: true, - value: 1 + configurable: true, + enumerable: true, + writable: true, + value: 1 }; var handler = { - defineProperty: function(t, prop, desc) { - _handler = this; - _target = t; - _prop = prop; - _desc = desc; + defineProperty: function(t, prop, desc) { + _handler = this; + _target = t; + _prop = prop; + _desc = desc; - return true; - } + return true; + } }; var p = new Proxy(target, handler); @@ -42,8 +42,8 @@ assert.sameValue(_target, target); assert.sameValue(_prop, "attr"); assert.sameValue( - Object.keys(_desc).length, 4, - "descriptor arg has the same amount of keys as given descriptor" + Object.keys(_desc).length, 4, + "descriptor arg has the same amount of keys as given descriptor" ); assert(_desc.configurable); diff --git a/test/built-ins/Proxy/defineProperty/null-handler.js b/test/built-ins/Proxy/defineProperty/null-handler.js index ffbf14733787daa65c7bafef2098efba6e587184..aa83c1ff03652848acb98cb54e9aed4418fbbb6f 100644 --- a/test/built-ins/Proxy/defineProperty/null-handler.js +++ b/test/built-ins/Proxy/defineProperty/null-handler.js @@ -11,8 +11,8 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - Object.defineProperty(p.proxy, "foo", { - configurable: true, - enumerable: true - }); + Object.defineProperty(p.proxy, "foo", { + configurable: true, + enumerable: true + }); }); diff --git a/test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js b/test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js index 2e4699cbf6e65d74cd269b458d8ce758e36966bc..0f7594a143619343403da7026090d6014d575c9b 100644 --- a/test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js +++ b/test/built-ins/Proxy/defineProperty/return-boolean-and-define-target.js @@ -12,16 +12,16 @@ includes: [propertyHelper.js] var target = {}; var p = new Proxy(target, { - defineProperty: function(t, prop, desc) { - return Object.defineProperty(t, prop, desc); - } + defineProperty: function(t, prop, desc) { + return Object.defineProperty(t, prop, desc); + } }); var result = Reflect.defineProperty(p, "attr", { - configurable: true, - enumerable: true, - writable: true, - value: 1 + configurable: true, + enumerable: true, + writable: true, + value: 1 }); assert.sameValue(result, true, "result === true"); @@ -32,10 +32,10 @@ verifyEnumerable(target, "attr"); verifyConfigurable(target, "attr"); result = Reflect.defineProperty(p, "attr", { - configurable: false, - enumerable: false, - writable: false, - value: 2 + configurable: false, + enumerable: false, + writable: false, + value: 2 }); assert.sameValue(result, true, "result === true"); diff --git a/test/built-ins/Proxy/defineProperty/return-is-abrupt.js b/test/built-ins/Proxy/defineProperty/return-is-abrupt.js index 574c72816bad6c9b8674b51a1b6a190fb99a195d..5914eacf60561888a3cdaf41ad9752ce7c74ff92 100644 --- a/test/built-ins/Proxy/defineProperty/return-is-abrupt.js +++ b/test/built-ins/Proxy/defineProperty/return-is-abrupt.js @@ -15,11 +15,11 @@ info: | ---*/ var p = new Proxy({}, { - defineProperty: function(t, prop, desc) { - throw new Test262Error(); - } + defineProperty: function(t, prop, desc) { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - Object.defineProperty(p, "foo", {}); + Object.defineProperty(p, "foo", {}); }); diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js b/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js index 620ffbd89e1511288dfdfab010300afd2b36f6f5..25bf8817131b5b19b67faae4bd788b5d129ba83f 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable.js @@ -17,19 +17,19 @@ info: | var target = {}; var p = new Proxy(target, { - defineProperty: function(t, prop, desc) { - return true; - } + defineProperty: function(t, prop, desc) { + return true; + } }); Object.defineProperty(target, "foo", { - value: 1, - configurable: true + value: 1, + configurable: true }); assert.throws(TypeError, function() { - Object.defineProperty(p, "foo", { - value: 1, - configurable: false - }); + Object.defineProperty(p, "foo", { + value: 1, + configurable: false + }); }); diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js index 229b373e24331f375604272e8171e2dd220c33ed..14ce2cc2441d08332477d70f16092bb82fcfd903 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target.js @@ -17,19 +17,19 @@ info: | var target = {}; var p = new Proxy(target, { - defineProperty: function(t, prop, desc) { - return true; - } + defineProperty: function(t, prop, desc) { + return true; + } }); Object.defineProperty(target, "foo", { - value: 1, - configurable: false + value: 1, + configurable: false }); assert.throws(TypeError, function() { - Object.defineProperty(p, "foo", { - value: 1, - configurable: true - }); + Object.defineProperty(p, "foo", { + value: 1, + configurable: true + }); }); diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js index 595766db995a70fb958f769fc5a00d589d937328..1a671b3a0b79282035442dd2424ef5b8b6945528 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor.js @@ -17,17 +17,17 @@ info: | var target = {}; var p = new Proxy(target, { - defineProperty: function(t, prop, desc) { - return true; - } + defineProperty: function(t, prop, desc) { + return true; + } }); Object.defineProperty(target, "foo", { - value: 1 + value: 1 }); assert.throws(TypeError, function() { - Object.defineProperty(p, "foo", { - value: 2 - }); + Object.defineProperty(p, "foo", { + value: 2 + }); }); diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js index 730e25e6f716c09764e1399ca9a7481f7b54beb4..ca6f80c86641036d0ed6f8ae8eb3c7f4e129efd5 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor.js @@ -17,13 +17,13 @@ info: | var target = {}; var p = new Proxy(target, { - defineProperty: function(t, prop, desc) { - return true; - } + defineProperty: function(t, prop, desc) { + return true; + } }); assert.throws(TypeError, function() { - Object.defineProperty(p, "foo", { - configurable: false - }); + Object.defineProperty(p, "foo", { + configurable: false + }); }); diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js index 8596b704d23c875bc2e6c4779ae6196e93fcdacc..9f5a53c7d37307cb8039b1396405426a21ec0c1f 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible.js @@ -16,13 +16,13 @@ info: | var target = {}; var p = new Proxy(target, { - defineProperty: function(t, prop, desc) { - return true; - } + defineProperty: function(t, prop, desc) { + return true; + } }); Object.preventExtensions(target); assert.throws(TypeError, function() { - Object.defineProperty(p, "foo", {}); + Object.defineProperty(p, "foo", {}); }); diff --git a/test/built-ins/Proxy/defineProperty/trap-is-not-callable.js b/test/built-ins/Proxy/defineProperty/trap-is-not-callable.js index a0e9500ed1306ae835730e7c10eb3908946e510c..d75b215674e71e53b9c9d7e35cbe618e152918f3 100644 --- a/test/built-ins/Proxy/defineProperty/trap-is-not-callable.js +++ b/test/built-ins/Proxy/defineProperty/trap-is-not-callable.js @@ -19,11 +19,11 @@ info: | var target = {}; var p = new Proxy(target, { - defineProperty: {} + defineProperty: {} }); assert.throws(TypeError, function() { - Object.defineProperty(p, "foo", { - value: 1 - }); + Object.defineProperty(p, "foo", { + value: 1 + }); }); diff --git a/test/built-ins/Proxy/defineProperty/trap-is-undefined.js b/test/built-ins/Proxy/defineProperty/trap-is-undefined.js index 58b63dbbb4272441beb9a74605803d16126d454d..3fe044b29e6b874ebd37aa5e49e2e35a29a13ce8 100644 --- a/test/built-ins/Proxy/defineProperty/trap-is-undefined.js +++ b/test/built-ins/Proxy/defineProperty/trap-is-undefined.js @@ -18,10 +18,10 @@ var target = {}; var p = new Proxy(target, {}); Object.defineProperty(p, "attr", { - configurable: true, - enumerable: true, - writable: true, - value: 1 + configurable: true, + enumerable: true, + writable: true, + value: 1 }); verifyEqualTo(target, "attr", 1); @@ -30,10 +30,10 @@ verifyEnumerable(target, "attr"); verifyConfigurable(target, "attr"); Object.defineProperty(p, "attr", { - configurable: false, - enumerable: false, - writable: false, - value: 2 + configurable: false, + enumerable: false, + writable: false, + value: 2 }); verifyEqualTo(target, "attr", 2); diff --git a/test/built-ins/Proxy/defineProperty/trap-return-is-false.js b/test/built-ins/Proxy/defineProperty/trap-return-is-false.js index 969c52aae556385aaac989fb3bfba3bb345cdb13..a401653c5196b9b05dd6e7cf67bbb5b2559d24b4 100644 --- a/test/built-ins/Proxy/defineProperty/trap-return-is-false.js +++ b/test/built-ins/Proxy/defineProperty/trap-return-is-false.js @@ -15,13 +15,13 @@ features: [Reflect] var target = {}; var p = new Proxy(target, { - defineProperty: function(t, prop, desc) { - return 0; - } + defineProperty: function(t, prop, desc) { + return 0; + } }); assert.sameValue(Reflect.defineProperty(p, "attr", {}), false); assert.sameValue( - Object.getOwnPropertyDescriptor(target, "attr"), - undefined + Object.getOwnPropertyDescriptor(target, "attr"), + undefined ); diff --git a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js index 148a7b81af97996f8e5842ae23a310684157582b..4419f0a19c2a7720a01e4047c92678a2a874802c 100644 --- a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js +++ b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js @@ -11,20 +11,20 @@ features: [Reflect] var target = {}; var p = new Proxy(target, { - deleteProperty: function() { - return 0; - } + deleteProperty: function() { + return 0; + } }); Object.defineProperties(target, { - isConfigurable: { - value: 1, - configurable: true - }, - notConfigurable: { - value: 1, - configurable: false - } + isConfigurable: { + value: 1, + configurable: true + }, + notConfigurable: { + value: 1, + configurable: false + } }); assert.sameValue(Reflect.deleteProperty(p, "attr"), false); diff --git a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js index fe506f109e46ebd1b23f77d14119ed27fbb0f018..93345e580bbf564d518a687153098f76c52cef98 100644 --- a/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js +++ b/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js @@ -9,9 +9,9 @@ description: > ---*/ var p = new Proxy({}, { - deleteProperty: function() { - return 1; - } + deleteProperty: function() { + return 1; + } }); assert.sameValue(Reflect.deleteProperty(p, "attr"), true); diff --git a/test/built-ins/Proxy/deleteProperty/call-parameters.js b/test/built-ins/Proxy/deleteProperty/call-parameters.js index e84586345a41d1e25a407f43148e7f8606726e5d..bfd8e3b0810d7f9cbfa2bd8ccb617dd891f84cd0 100644 --- a/test/built-ins/Proxy/deleteProperty/call-parameters.js +++ b/test/built-ins/Proxy/deleteProperty/call-parameters.js @@ -14,15 +14,15 @@ info: | var _handler, _target, _prop; var target = { - attr: 1 + attr: 1 }; var handler = { - deleteProperty: function(t, prop) { - _handler = this; - _target = t; - _prop = prop; - return delete t[prop]; - } + deleteProperty: function(t, prop) { + _handler = this; + _target = t; + _prop = prop; + return delete t[prop]; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/deleteProperty/null-handler.js b/test/built-ins/Proxy/deleteProperty/null-handler.js index 1b280f79ed2282c68c7fd88cd15fa4f69f0a79ae..ddc6c8d8a7e3b16ed049f618b6cb25ce9e7187da 100644 --- a/test/built-ins/Proxy/deleteProperty/null-handler.js +++ b/test/built-ins/Proxy/deleteProperty/null-handler.js @@ -9,11 +9,11 @@ description: > ---*/ var p = Proxy.revocable({ - attr: 1 + attr: 1 }, {}); p.revoke(); assert.throws(TypeError, function() { - delete p.proxy.attr; + delete p.proxy.attr; }); diff --git a/test/built-ins/Proxy/deleteProperty/return-false-not-strict.js b/test/built-ins/Proxy/deleteProperty/return-false-not-strict.js index c0785c90bf5f31a4ce1966f039e995f594ebd122..6c485ec64e63b66ffe405028098f9069dcd69292 100644 --- a/test/built-ins/Proxy/deleteProperty/return-false-not-strict.js +++ b/test/built-ins/Proxy/deleteProperty/return-false-not-strict.js @@ -10,9 +10,9 @@ flags: [noStrict] ---*/ var p = new Proxy({}, { - deleteProperty: function() { - return false; - } + deleteProperty: function() { + return false; + } }); assert.sameValue(delete p.attr, false); diff --git a/test/built-ins/Proxy/deleteProperty/return-false-strict.js b/test/built-ins/Proxy/deleteProperty/return-false-strict.js index 94d33a91e35c31ebe24c575c91f3f98f231969ac..befa2c60abb7f3c5a2cade3450bb027b24830f98 100644 --- a/test/built-ins/Proxy/deleteProperty/return-false-strict.js +++ b/test/built-ins/Proxy/deleteProperty/return-false-strict.js @@ -11,9 +11,9 @@ features: [Reflect] ---*/ var p = new Proxy({}, { - deleteProperty: function() { - return false; - } + deleteProperty: function() { + return false; + } }); assert.sameValue(Reflect.deleteProperty(p, "attr"), false); diff --git a/test/built-ins/Proxy/deleteProperty/return-is-abrupt.js b/test/built-ins/Proxy/deleteProperty/return-is-abrupt.js index c22fd398fb532f878c9f711f265751813b50ae80..7e9f76bf476f39c34a6074c1d7808d3e13576189 100644 --- a/test/built-ins/Proxy/deleteProperty/return-is-abrupt.js +++ b/test/built-ins/Proxy/deleteProperty/return-is-abrupt.js @@ -10,11 +10,11 @@ info: | ---*/ var p = new Proxy({}, { - deleteProperty: function(t, prop) { - throw new Test262Error(); - } + deleteProperty: function(t, prop) { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - delete p.attr; + delete p.attr; }); diff --git a/test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js b/test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js index d0299d5d930e8b65cb03fbf522fac53678ffda88..7923974dc857df24515eb11d737155ae7e4ff594 100644 --- a/test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js +++ b/test/built-ins/Proxy/deleteProperty/targetdesc-is-not-configurable.js @@ -13,16 +13,16 @@ info: | var target = {}; var p = new Proxy(target, { - deleteProperty: function() { - return true; - } + deleteProperty: function() { + return true; + } }); Object.defineProperty(target, "attr", { - configurable: false, - value: 1 + configurable: false, + value: 1 }); assert.throws(TypeError, function() { - delete p.attr; + delete p.attr; }); diff --git a/test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js b/test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js index fc70773fa7df2ebe8c2b79642d1dc8bdbbec5b14..d3d2d77397dc26cf9a575ca96f9f597663f592b1 100644 --- a/test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js +++ b/test/built-ins/Proxy/deleteProperty/targetdesc-is-undefined-return-true.js @@ -9,9 +9,9 @@ description: > ---*/ var p = new Proxy({}, { - deleteProperty: function() { - return true; - } + deleteProperty: function() { + return true; + } }); assert.sameValue(delete p.attr, true); diff --git a/test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js b/test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js index 60c76025dc927fb47356a8a129147a10026321b4..29ee6d64ca74e646235f73b4b689477b951ee849 100644 --- a/test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js +++ b/test/built-ins/Proxy/deleteProperty/trap-is-not-callable.js @@ -16,9 +16,9 @@ info: | ---*/ var p = new Proxy({}, { - deleteProperty: {} + deleteProperty: {} }); assert.throws(TypeError, function() { - delete p.attr; + delete p.attr; }); diff --git a/test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js b/test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js index 3adf23123b344d719e2ee7cc53a8533701d76e60..0f174367f12500d55f2a58882e6a0d308af69ed1 100644 --- a/test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js +++ b/test/built-ins/Proxy/deleteProperty/trap-is-undefined-not-strict.js @@ -10,21 +10,21 @@ flags: [noStrict] ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, {}); assert.sameValue(delete p.attr, true); assert.sameValue(delete p.notThere, true); assert.sameValue( - Object.getOwnPropertyDescriptor(target, "attr"), - undefined + Object.getOwnPropertyDescriptor(target, "attr"), + undefined ); Object.defineProperty(target, "attr", { - configurable: false, - enumerable: true, - value: 1 + configurable: false, + enumerable: true, + value: 1 }); assert.sameValue(delete p.attr, false); diff --git a/test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js b/test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js index 070fba7f5ab91699c0fd352040ef99ab9ad48988..d1c1df2bf244846c97a3941395a1ff4118542185 100644 --- a/test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js +++ b/test/built-ins/Proxy/deleteProperty/trap-is-undefined-strict.js @@ -11,21 +11,21 @@ features: [Reflect] ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, {}); assert.sameValue(delete p.attr, true); assert.sameValue(delete p.notThere, true); assert.sameValue( - Object.getOwnPropertyDescriptor(target, "attr"), - undefined + Object.getOwnPropertyDescriptor(target, "attr"), + undefined ); Object.defineProperty(target, "attr", { - configurable: false, - enumerable: true, - value: 1 + configurable: false, + enumerable: true, + value: 1 }); assert.sameValue(Reflect.deleteProperty(p, "attr"), false); diff --git a/test/built-ins/Proxy/function-prototype.js b/test/built-ins/Proxy/function-prototype.js index e501f9160e626f0c998d9da20dc1a31be832fae4..b37f51b56e0a7ab8a0616f9295f8358f4c8ef041 100644 --- a/test/built-ins/Proxy/function-prototype.js +++ b/test/built-ins/Proxy/function-prototype.js @@ -8,7 +8,7 @@ description: > ---*/ assert.sameValue( - Object.getPrototypeOf(Proxy), - Function.prototype, - "`Object.getPrototypeOf(Proxy)` returns `Function.prototype`" + Object.getPrototypeOf(Proxy), + Function.prototype, + "`Object.getPrototypeOf(Proxy)` returns `Function.prototype`" ); diff --git a/test/built-ins/Proxy/get-fn-realm.js b/test/built-ins/Proxy/get-fn-realm.js index 08968ff9207d1d05159cd2ffc3e60995ca2b7dcd..922a6ffd0dc8bdd308eba3c728e7531dc706e80c 100644 --- a/test/built-ins/Proxy/get-fn-realm.js +++ b/test/built-ins/Proxy/get-fn-realm.js @@ -22,6 +22,8 @@ features: [cross-realm] var other = $262.createRealm().global; var C = new other.Function(); // Ensure that the proxy does not report a `prototype` property -var P = new Proxy(C, { get: function() {} }); +var P = new Proxy(C, { + get: function() {} +}); assert.sameValue(Object.getPrototypeOf(new P()), other.Object.prototype); diff --git a/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js b/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js index e8735486ed1e740dd48ea98ecee7ead461b9cd47..4427d5b807fed91ff20d3371747b96ae7a2c56c4 100644 --- a/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js +++ b/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js @@ -17,20 +17,20 @@ info: | var target = {}; var p = new Proxy(target, { - get: function() { - return 2; - } + get: function() { + return 2; + } }); Object.defineProperty(target, 'attr', { - configurable: false, - get: undefined + configurable: false, + get: undefined }); assert.throws(TypeError, function() { - p.attr; + p.attr; }); assert.throws(TypeError, function() { - p['attr']; + p['attr']; }); diff --git a/test/built-ins/Proxy/get/call-parameters.js b/test/built-ins/Proxy/get/call-parameters.js index 648ddc9ad714acedee0c6c40ecd70527c163f73d..b4f0e11d31f70669da7f0ad3ad1876c132b52673 100644 --- a/test/built-ins/Proxy/get/call-parameters.js +++ b/test/built-ins/Proxy/get/call-parameters.js @@ -14,15 +14,15 @@ info: | var _target, _handler, _prop, _receiver; var target = { - attr: 1 + attr: 1 }; var handler = { - get: function(t, prop, receiver) { - _handler = this; - _target = t; - _prop = prop; - _receiver = receiver; - } + get: function(t, prop, receiver) { + _handler = this; + _target = t; + _prop = prop; + _receiver = receiver; + } }; var p = new Proxy(target, handler); @@ -36,6 +36,6 @@ assert.sameValue(_receiver, p, "receiver is the Proxy object"); _prop = null; p["attr"]; assert.sameValue( - _prop, "attr", - "trap is triggered both by p.attr and p['attr']" + _prop, "attr", + "trap is triggered both by p.attr and p['attr']" ); diff --git a/test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js b/test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js index af8cb67393640aacec47ff45901c27b08b873035..ce6f0a1fc92062bac4809047e4c9dad2759aa6ec 100644 --- a/test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js +++ b/test/built-ins/Proxy/get/not-same-value-configurable-false-writable-false-throws.js @@ -17,21 +17,21 @@ info: | var target = {}; var p = new Proxy(target, { - get: function() { - return 2; - } + get: function() { + return 2; + } }); Object.defineProperty(target, 'attr', { - configurable: false, - writable: false, - value: 1 + configurable: false, + writable: false, + value: 1 }); assert.throws(TypeError, function() { - p.attr; + p.attr; }); assert.throws(TypeError, function() { - p['attr']; + p['attr']; }); diff --git a/test/built-ins/Proxy/get/null-handler.js b/test/built-ins/Proxy/get/null-handler.js index 82dc3a187c986cddee2587c9b1ac509a1160cbcd..0be40457c769a2be4867b673fff0b6587d0ffce8 100644 --- a/test/built-ins/Proxy/get/null-handler.js +++ b/test/built-ins/Proxy/get/null-handler.js @@ -13,9 +13,9 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - p.proxy.attr; + p.proxy.attr; }); assert.throws(TypeError, function() { - p.proxy['attr']; + p.proxy['attr']; }); diff --git a/test/built-ins/Proxy/get/return-is-abrupt.js b/test/built-ins/Proxy/get/return-is-abrupt.js index f0a8e7e423d8792b718554f4509dd90ab713613f..c632d8e5f0264cc7bb37e4c92322ec2aaa2c6695 100644 --- a/test/built-ins/Proxy/get/return-is-abrupt.js +++ b/test/built-ins/Proxy/get/return-is-abrupt.js @@ -12,15 +12,15 @@ info: | ---*/ var p = new Proxy({}, { - get: function() { - throw new Test262Error(); - } + get: function() { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - p.attr; + p.attr; }); assert.throws(Test262Error, function() { - p["attr"]; + p["attr"]; }); diff --git a/test/built-ins/Proxy/get/return-trap-result-accessor-property.js b/test/built-ins/Proxy/get/return-trap-result-accessor-property.js index 560bd56506f4d9492ee03af69faa309552578ffc..e50ae367ee9cd03e0461900a0c0c85bb0b325c83 100644 --- a/test/built-ins/Proxy/get/return-trap-result-accessor-property.js +++ b/test/built-ins/Proxy/get/return-trap-result-accessor-property.js @@ -10,15 +10,15 @@ description: > var target = {}; var p = new Proxy(target, { - get: function() { - return 2; - } + get: function() { + return 2; + } }); Object.defineProperty(target, 'attr', { - get: function() { - return 1; - } + get: function() { + return 1; + } }); assert.sameValue(p.attr, 2); diff --git a/test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js b/test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js index 46ddaeff0b3abf4bedf1d7efb9a8658edc3069cf..feadb297d0016637d2e4f726dc45bbbfd7481138 100644 --- a/test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js +++ b/test/built-ins/Proxy/get/return-trap-result-configurable-false-writable-true.js @@ -10,15 +10,15 @@ description: > var target = {}; var p = new Proxy(target, { - get: function() { - return 2; - } + get: function() { + return 2; + } }); Object.defineProperty(target, 'attr', { - configurable: false, - writable: true, - value: 1 + configurable: false, + writable: true, + value: 1 }); assert.sameValue(p.attr, 2); diff --git a/test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js b/test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js index 930265b6e6b39bd33dbcfe3e2e9a366a0e86b984..5afb94229a856f2e0fa180eaa7cb498a79edaa7a 100644 --- a/test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js +++ b/test/built-ins/Proxy/get/return-trap-result-configurable-true-assessor-get-undefined.js @@ -10,14 +10,14 @@ description: > var target = {}; var p = new Proxy(target, { - get: function() { - return 2; - } + get: function() { + return 2; + } }); Object.defineProperty(target, 'attr', { - configurable: true, - get: undefined + configurable: true, + get: undefined }); assert.sameValue(p.attr, 2); diff --git a/test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js b/test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js index 1ad1eca0a657b2d67701ec6b97dad3c962d30c82..31d494104ac332eebff1e34b510dd19c40e0d3c8 100644 --- a/test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js +++ b/test/built-ins/Proxy/get/return-trap-result-configurable-true-writable-false.js @@ -10,15 +10,15 @@ description: > var target = {}; var p = new Proxy(target, { - get: function() { - return 2; - } + get: function() { + return 2; + } }); Object.defineProperty(target, 'attr', { - configurable: true, - writable: false, - value: 1 + configurable: true, + writable: false, + value: 1 }); assert.sameValue(p.attr, 2); diff --git a/test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js b/test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js index a95e79201475ed1e48a30987e1f3b02f805b8648..f26b48638857d00dfe7b29b6dc97c0853171ce47 100644 --- a/test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js +++ b/test/built-ins/Proxy/get/return-trap-result-same-value-configurable-false-writable-false.js @@ -19,15 +19,15 @@ info: | var target = {}; var p = new Proxy(target, { - get: function() { - return 1; - } + get: function() { + return 1; + } }); Object.defineProperty(target, 'attr', { - configurable: false, - writable: false, - value: 1 + configurable: false, + writable: false, + value: 1 }); assert.sameValue(p.attr, 1); diff --git a/test/built-ins/Proxy/get/return-trap-result.js b/test/built-ins/Proxy/get/return-trap-result.js index d045e1492763d02fb2db383123ddee8f9c60a009..7e1b945f782856ebf249a4414bc5ca2bdac59f6b 100644 --- a/test/built-ins/Proxy/get/return-trap-result.js +++ b/test/built-ins/Proxy/get/return-trap-result.js @@ -9,12 +9,12 @@ description: > ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, { - get: function() { - return 2; - } + get: function() { + return 2; + } }); assert.sameValue(p.attr, 2); diff --git a/test/built-ins/Proxy/get/trap-is-not-callable.js b/test/built-ins/Proxy/get/trap-is-not-callable.js index addd5352947c7944160d463f61843ad48c5548d5..50b129401808bc81bd0e8e6500d9d8dabf382839 100644 --- a/test/built-ins/Proxy/get/trap-is-not-callable.js +++ b/test/built-ins/Proxy/get/trap-is-not-callable.js @@ -16,13 +16,13 @@ info: | ---*/ var p = new Proxy({}, { - get: {} + get: {} }); assert.throws(TypeError, function() { - p.attr; + p.attr; }); assert.throws(TypeError, function() { - p["attr"]; + p["attr"]; }); diff --git a/test/built-ins/Proxy/get/trap-is-undefined-no-property.js b/test/built-ins/Proxy/get/trap-is-undefined-no-property.js index c9d107f5926b9996b76b2ed2cb8ea140ddee0811..c25ea6ca2ea0877457b0ee974483c38b038bb8a9 100644 --- a/test/built-ins/Proxy/get/trap-is-undefined-no-property.js +++ b/test/built-ins/Proxy/get/trap-is-undefined-no-property.js @@ -9,7 +9,7 @@ description: > ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, {}); diff --git a/test/built-ins/Proxy/get/trap-is-undefined-receiver.js b/test/built-ins/Proxy/get/trap-is-undefined-receiver.js index f900e251fd11f0f73229b5813536cd8703aba095..3cf99140b57c16d7b065a79c5a73bf1c2af153f7 100644 --- a/test/built-ins/Proxy/get/trap-is-undefined-receiver.js +++ b/test/built-ins/Proxy/get/trap-is-undefined-receiver.js @@ -13,12 +13,14 @@ info: | ---*/ var target = { - get attr() { - return this; - } + get attr() { + return this; + } }; -var p = new Proxy(target, { get: null }); +var p = new Proxy(target, { + get: null +}); assert.sameValue(p.attr, p); var pParent = Object.create(new Proxy(target, {})); diff --git a/test/built-ins/Proxy/get/trap-is-undefined.js b/test/built-ins/Proxy/get/trap-is-undefined.js index 4c2257aa612e4cea51c002276fe46eb7be9e3947..b06d573306d01368bfb4436704603cda305fcd15 100644 --- a/test/built-ins/Proxy/get/trap-is-undefined.js +++ b/test/built-ins/Proxy/get/trap-is-undefined.js @@ -10,10 +10,10 @@ description: > ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, { - get: undefined + get: undefined }); assert.sameValue(p.attr, 1, 'return target.attr'); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js index d0d6222d7a73fc14750cc8bd9af7b1fac0c63e15..dada9a171a53e5e6a43107563b4dcc83404e5585 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js @@ -13,15 +13,17 @@ info: | ---*/ var _target, _handler, _prop; -var target = {attr: 1}; +var target = { + attr: 1 +}; var handler = { - getOwnPropertyDescriptor: function(t, prop) { - _target = t; - _handler = this; - _prop = prop; + getOwnPropertyDescriptor: function(t, prop) { + _target = t; + _handler = this; + _prop = prop; - return Object.getOwnPropertyDescriptor(t); - } + return Object.getOwnPropertyDescriptor(t); + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js index a908e072b849ba268fb54e6ad9f96390e141bb7a..61a59ce02310bddeead2d38bbf84a4af9cca0443 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js @@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p.proxy); + Object.getOwnPropertyDescriptor(p.proxy); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js index 0e35b7780fbf494a5262214736821f842b1ac4b7..a19bfedbc8f8a7343429d2239835e3a3f02f2f4a 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-target-is-not-extensible.js @@ -16,17 +16,17 @@ info: | ---*/ var target = { - foo: 1 + foo: 1 }; var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - return; - } + getOwnPropertyDescriptor: function(t, prop) { + return; + } }); Object.preventExtensions(target); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "foo"); + Object.getOwnPropertyDescriptor(p, "foo"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js index 1bc732006372941ed4c3fe1bbb59e675772c77c5..6d62c28bf7d3777f477097fc086312886cc0ac92 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-not-configurable.js @@ -17,17 +17,17 @@ info: | var target = {}; Object.defineProperty(target, "foo", { - configurable: false, - enumerable: false, - value: 1 + configurable: false, + enumerable: false, + value: 1 }); var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - return; - } + getOwnPropertyDescriptor: function(t, prop) { + return; + } }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "foo"); + Object.getOwnPropertyDescriptor(p, "foo"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js index 1d092e2c7dcc16bd68d33648aae1bb9e75f35714..651005509c5e2f1e693ddea6e3f57c751d5e4148 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined-targetdesc-is-undefined.js @@ -17,15 +17,15 @@ info: | var t = {}; var trapped; var p = new Proxy(t, { - getOwnPropertyDescriptor: function(target, prop) { - trapped = true; - return; - } + getOwnPropertyDescriptor: function(target, prop) { + trapped = true; + return; + } }); assert.sameValue( - Object.getOwnPropertyDescriptor(p, "attr"), - undefined + Object.getOwnPropertyDescriptor(p, "attr"), + undefined ); assert(trapped); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js index fb8d21829f8b13786d44d9cfcdc0c27130938ef6..fb881aeba10855ff4613137b096fa3c0f6d14187 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-is-undefined.js @@ -16,13 +16,13 @@ info: | ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - return; - } + getOwnPropertyDescriptor: function(t, prop) { + return; + } }); assert.sameValue(Object.getOwnPropertyDescriptor(p, "attr"), undefined); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js index d27054cf46662ce946fbeac63ebdf4e906c7c217..4b54cba83e7837f5a39847b9db3c87876c189d87 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js @@ -16,7 +16,9 @@ features: [cross-realm] var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { - getOwnPropertyDescriptor: function() { return null; } + getOwnPropertyDescriptor: function() { + return null; + } }); assert.throws(TypeError, function() { diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js index 23fcd2badd44a191bb27be515dd852cef7790dd7..1e706893c98393018fee8fede1ff0f0e55d73d0a 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js @@ -15,34 +15,34 @@ features: [Symbol] ---*/ var target = { - number: 1, - symbol: Symbol(), - string: '', - boolean: true, - fn: function() {} + number: 1, + symbol: Symbol(), + string: '', + boolean: true, + fn: function() {} }; var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - return t[prop]; - } + getOwnPropertyDescriptor: function(t, prop) { + return t[prop]; + } }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "number"); + Object.getOwnPropertyDescriptor(p, "number"); }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "string"); + Object.getOwnPropertyDescriptor(p, "string"); }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "symbol"); + Object.getOwnPropertyDescriptor(p, "symbol"); }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "boolean"); + Object.getOwnPropertyDescriptor(p, "boolean"); }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "fn"); + Object.getOwnPropertyDescriptor(p, "fn"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js index 28fd426c631423ca53c2b0256a4a6086501b2f9e..b256f6907a21e0cd74283833ed14a12f5b0f5f8e 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js @@ -17,15 +17,17 @@ info: | var target = {}; var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - var foo = { bar: 1 }; + getOwnPropertyDescriptor: function(t, prop) { + var foo = { + bar: 1 + }; - return Object.getOwnPropertyDescriptor(foo, "bar"); - } + return Object.getOwnPropertyDescriptor(foo, "bar"); + } }); Object.preventExtensions(target); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "bar"); + Object.getOwnPropertyDescriptor(p, "bar"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js index 4184e28ea181605501765ebe17a7856c0c837cf8..bc99d971baf4789cd4e67fb866d0ab86802f1c1f 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js @@ -17,23 +17,23 @@ info: | ---*/ var target = { - bar: 1 + bar: 1 }; var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - var foo = {}; + getOwnPropertyDescriptor: function(t, prop) { + var foo = {}; - Object.defineProperty(foo, "bar", { - configurable: false, - enumerable: true, - value: 1 - }); + Object.defineProperty(foo, "bar", { + configurable: false, + enumerable: true, + value: 1 + }); - return Object.getOwnPropertyDescriptor(foo, prop); - } + return Object.getOwnPropertyDescriptor(foo, prop); + } }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "bar"); + Object.getOwnPropertyDescriptor(p, "bar"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js index 338883edb5eaad4d4e22a08fdf4c95b9304a4529..4dba72b98d69cc420fa62d7832df7e86eadb9e68 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-undefined.js @@ -29,19 +29,19 @@ info: | var target = {}; var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - var foo = {}; + getOwnPropertyDescriptor: function(t, prop) { + var foo = {}; - Object.defineProperty(foo, "bar", { - configurable: false, - enumerable: true, - value: 1 - }); + Object.defineProperty(foo, "bar", { + configurable: false, + enumerable: true, + value: 1 + }); - return Object.getOwnPropertyDescriptor(foo, prop); - } + return Object.getOwnPropertyDescriptor(foo, prop); + } }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "bar"); + Object.getOwnPropertyDescriptor(p, "bar"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js index 13f46ca31b7942c31fb053e1872e8893efb84150..ed8dd3bcfe709aa983eb60037db92ab130972495 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-configurable.js @@ -9,17 +9,17 @@ description: > var target = {}; var descriptor = { - configurable: true, - enumerable: true, - value: 1 + configurable: true, + enumerable: true, + value: 1 }; Object.defineProperty(target, "bar", descriptor); var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - return Object.getOwnPropertyDescriptor(t, prop); - } + getOwnPropertyDescriptor: function(t, prop) { + return Object.getOwnPropertyDescriptor(t, prop); + } }); var proxyDesc = Object.getOwnPropertyDescriptor(p, "bar"); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js index cc25cc694b2e2edc241fd39a12cf4fc393d3a4a3..928039e340b4a5003c0a43f498805ef6a15b0b07 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-return-not-configurable.js @@ -10,15 +10,15 @@ description: > var target = {}; Object.defineProperty(target, "attr", { - configurable: false, - enumerable: true, - value: 1 + configurable: false, + enumerable: true, + value: 1 }); var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - return Object.getOwnPropertyDescriptor(t, prop); - } + getOwnPropertyDescriptor: function(t, prop) { + return Object.getOwnPropertyDescriptor(t, prop); + } }); var proxyDesc = Object.getOwnPropertyDescriptor(p, "attr"); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js index 26d7c69b6d61ca218d4421ddd70fc3e4419c0bf0..805f068e647abe8979ca3c63b4fd72767bf3cfe0 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/return-is-abrupt.js @@ -14,11 +14,11 @@ info: | ---*/ var p = new Proxy({}, { - getOwnPropertyDescriptor: function(t, prop) { - throw new Test262Error(); - } + getOwnPropertyDescriptor: function(t, prop) { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - Object.getOwnPropertyDescriptor(p, "attr"); + Object.getOwnPropertyDescriptor(p, "attr"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js index a6bfeef4cb1bff7c9b0b227a178e710c54a60592..ce9fd5886e9c36f345ecbaacbf8c5a207c5d41a8 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable.js @@ -22,9 +22,9 @@ info: | var target = {}; var p = new Proxy(target, { - getOwnPropertyDescriptor: {} + getOwnPropertyDescriptor: {} }); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "foo"); + Object.getOwnPropertyDescriptor(p, "foo"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js index 75d7099be40f13b8b8d5e51ddf5e07b8e8a5be88..4471bc1ecb657cd6c8618af3c653bba2a438700e 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js @@ -14,7 +14,9 @@ info: | includes: [propertyHelper.js] ---*/ -var target = {attr: 1}; +var target = { + attr: 1 +}; var p = new Proxy(target, {}); var proxyDesc = Object.getOwnPropertyDescriptor(p, "attr"); diff --git a/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js b/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js index e9e16eb2a644426bab1a031b752d1406177acbaa..a611999421ea66b40333959972b6ad5f868db920 100644 --- a/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js +++ b/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js @@ -22,7 +22,9 @@ info: | ---*/ -var prot = { foo: 1 }; +var prot = { + foo: 1 +}; var p = new Proxy({}, { getPrototypeOf: function() { return prot; diff --git a/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js b/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js index a834aca9e0d23c0a58a3a509bb03e33f69029750..0569ed4edf03d30f8e3f31604dc86fed2582f340 100644 --- a/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js +++ b/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js @@ -25,7 +25,9 @@ info: | ... ---*/ -var target = Object.create({ foo: 1 }); +var target = Object.create({ + foo: 1 +}); var p = new Proxy(target, { getPrototypeOf: function() { @@ -36,5 +38,5 @@ var p = new Proxy(target, { Object.preventExtensions(target); assert.throws(TypeError, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/null-handler.js b/test/built-ins/Proxy/getPrototypeOf/null-handler.js index 38c8e7e4934ac33c37ce757f14fdc96486bcdb1d..37684198091000914522082f689e3ffbd9e57859 100644 --- a/test/built-ins/Proxy/getPrototypeOf/null-handler.js +++ b/test/built-ins/Proxy/getPrototypeOf/null-handler.js @@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - Object.getPrototypeOf(p.proxy); + Object.getPrototypeOf(p.proxy); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js b/test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js index bf04b9e5449056fed79795d9ec47c03d8833fbb6..f81d3ffe3254b1b5e2fe2a26a6eba75deb6d22db 100644 --- a/test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js +++ b/test/built-ins/Proxy/getPrototypeOf/return-is-abrupt.js @@ -16,5 +16,5 @@ var p = new Proxy({}, { }); assert.throws(Test262Error, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js b/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js index e6335e46a535a5aa4d9112a48c2f623bf42d8533..3920ee73dfce6cb368333fcaeda2906687185d94 100644 --- a/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js +++ b/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable.js @@ -7,9 +7,9 @@ description: > ---*/ var p = new Proxy({}, { - getPrototypeOf: {} + getPrototypeOf: {} }); assert.throws(TypeError, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js index c8c0543ba8310725e39bd360f496ec50ffc96e0e..7a534ddc9902508f4970ed18378c1b564445f2e5 100644 --- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js +++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-boolean.js @@ -13,5 +13,5 @@ var p = new Proxy({}, { }); assert.throws(TypeError, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js index d0533f518ca2716667f44139f1e0c980b132d9a7..628e0868cd1a46b165a3975838e074354b3fc858 100644 --- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js +++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-number.js @@ -13,5 +13,5 @@ var p = new Proxy({}, { }); assert.throws(TypeError, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js index 34bea0d5fc4b6629f1d4bd7e46bcc23625eeab9d..29033521ee9eba8f878c8478a78a4407228fcda6 100644 --- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js +++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-string.js @@ -13,5 +13,5 @@ var p = new Proxy({}, { }); assert.throws(TypeError, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js index 9b47cf9a9f5a42446f53b0a1d92e24ac1a3e6cd6..0c88056ee7b2e2fd927dcf5d0d34d607bf9dc6d0 100644 --- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js +++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-symbol.js @@ -14,5 +14,5 @@ var p = new Proxy({}, { }); assert.throws(TypeError, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js index 8e5143d3d87bc3b6c31c3639dbe333b4f1ffd04e..ea4aeff85329690fe55f14c779148f0f5d7627b8 100644 --- a/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js +++ b/test/built-ins/Proxy/getPrototypeOf/trap-result-neither-object-nor-null-throws-undefined.js @@ -13,5 +13,5 @@ var p = new Proxy({}, { }); assert.throws(TypeError, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/has/call-in.js b/test/built-ins/Proxy/has/call-in.js index 1bdc927725036c7d524a1c522fb1581b88c0cfd9..f51d824dbf1f5ee4dafb048eda329e69301e89fe 100644 --- a/test/built-ins/Proxy/has/call-in.js +++ b/test/built-ins/Proxy/has/call-in.js @@ -15,13 +15,13 @@ info: | var _handler, _target, _prop; var target = {}; var handler = { - has: function(t, prop) { - _handler = this; - _target = t; - _prop = prop; + has: function(t, prop) { + _handler = this; + _target = t; + _prop = prop; - return prop in t; - } + return prop in t; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/has/call-object-create.js b/test/built-ins/Proxy/has/call-object-create.js index 9b80cad11d976c0ede839bed8c960f38556fd74b..4bcbe2ca5e40204b7f824ce06442f600cfc5d673 100644 --- a/test/built-ins/Proxy/has/call-object-create.js +++ b/test/built-ins/Proxy/has/call-object-create.js @@ -20,13 +20,13 @@ info: | var _handler, _target, _prop; var target = {}; var handler = { - has: function(t, prop) { - _handler = this; - _target = t; - _prop = prop; + has: function(t, prop) { + _handler = this; + _target = t; + _prop = prop; - return false; - } + return false; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/has/call-with.js b/test/built-ins/Proxy/has/call-with.js index 59e567ffc7759e9e5951f3ca87304a979acbf781..1efe91f2cb13fddf9c39978cf2b6e5ef6d68eb91 100644 --- a/test/built-ins/Proxy/has/call-with.js +++ b/test/built-ins/Proxy/has/call-with.js @@ -16,18 +16,18 @@ flags: [noStrict] var _handler, _target, _prop; var target = {}; var handler = { - has: function(t, prop) { - _handler = this; - _target = t; - _prop = prop; + has: function(t, prop) { + _handler = this; + _target = t; + _prop = prop; - return true; - } + return true; + } }; var p = new Proxy(target, handler); -with (p) { - (attr); +with(p) { + (attr); } assert.sameValue(_handler, handler); diff --git a/test/built-ins/Proxy/has/null-handler-using-with.js b/test/built-ins/Proxy/has/null-handler-using-with.js index 06bd4eaf0ec94a629b019af8171be06cd6cf8cc8..68320160ba38d4d0397ed08d5ee28f2536b85088 100644 --- a/test/built-ins/Proxy/has/null-handler-using-with.js +++ b/test/built-ins/Proxy/has/null-handler-using-with.js @@ -12,7 +12,7 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - with (p.proxy) { - (attr); - } + with(p.proxy) { + (attr); + } }); diff --git a/test/built-ins/Proxy/has/null-handler.js b/test/built-ins/Proxy/has/null-handler.js index 90deca388baa1c2449a8368ce47723eee4979b84..8cc5d8ea32215bf8a188a379083fe7965251deff 100644 --- a/test/built-ins/Proxy/has/null-handler.js +++ b/test/built-ins/Proxy/has/null-handler.js @@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - "attr" in p.proxy; + "attr" in p.proxy; }); diff --git a/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js b/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js index 5847413a2d7dc16f4126cfc5c468d3e12d678ac5..fb3e6f463e47eab8a93f76bfa17327fa5b3039b1 100644 --- a/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js +++ b/test/built-ins/Proxy/has/return-false-target-not-extensible-using-with.js @@ -23,21 +23,21 @@ flags: [noStrict] var target = {}; var handler = { - has: function(t, prop) { - return 0; - } + has: function(t, prop) { + return 0; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, 'attr', { - configurable: true, - value: 1 + configurable: true, + value: 1 }); Object.preventExtensions(target); assert.throws(TypeError, function() { - with (p) { - (attr); - } + with(p) { + (attr); + } }); diff --git a/test/built-ins/Proxy/has/return-false-target-not-extensible.js b/test/built-ins/Proxy/has/return-false-target-not-extensible.js index b1f9c5190089c02f4014a7a0e9ff68eb3719a561..dc5e3a3b90be51a695fadf3df1905e89cd78fb86 100644 --- a/test/built-ins/Proxy/has/return-false-target-not-extensible.js +++ b/test/built-ins/Proxy/has/return-false-target-not-extensible.js @@ -22,19 +22,19 @@ info: | var target = {}; var handler = { - has: function(t, prop) { - return 0; - } + has: function(t, prop) { + return 0; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, "attr", { - configurable: true, - value: 1 + configurable: true, + value: 1 }); Object.preventExtensions(target); assert.throws(TypeError, function() { - "attr" in p; + "attr" in p; }); diff --git a/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js b/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js index d008f1ad2b57d70c8168611d504849e01cff34ca..cb7ebd738e7c3445d7b21d4a13533e1a5bc1689c 100644 --- a/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js +++ b/test/built-ins/Proxy/has/return-false-target-prop-exists-using-with.js @@ -14,15 +14,15 @@ flags: [noStrict] ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, { - has: function(t, prop) { - return false; - } + has: function(t, prop) { + return false; + } }); var attr = 0; -with (p) { - assert.sameValue(attr, 0); +with(p) { + assert.sameValue(attr, 0); } diff --git a/test/built-ins/Proxy/has/return-false-target-prop-exists.js b/test/built-ins/Proxy/has/return-false-target-prop-exists.js index 7a74041c4adcf61aa94881ead32f7183c3d58075..52bc88f4ffa783de722d185fcfbe745a2c87ec36 100644 --- a/test/built-ins/Proxy/has/return-false-target-prop-exists.js +++ b/test/built-ins/Proxy/has/return-false-target-prop-exists.js @@ -13,12 +13,12 @@ info: | ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, { - has: function(t, prop) { - return false; - } + has: function(t, prop) { + return false; + } }); assert.sameValue(("attr" in p), false); diff --git a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js index 43c59aa016a55b16153f383f5280a55f93ae9c43..a6a5517092e44090ccca5cfb2af465648707168b 100644 --- a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js +++ b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable-using-with.js @@ -20,19 +20,19 @@ flags: [noStrict] var target = {}; var handler = { - has: function(t, prop) { - return 0; - } + has: function(t, prop) { + return 0; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, "attr", { - configurable: false, - value: 1 + configurable: false, + value: 1 }); assert.throws(TypeError, function() { - with (p) { - (attr); - } + with(p) { + (attr); + } }); diff --git a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js index 581a4113f3eab4360290278580ea6f43204747bf..71f882c22901df7c756000489deaf538759f0811 100644 --- a/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js +++ b/test/built-ins/Proxy/has/return-false-targetdesc-not-configurable.js @@ -19,17 +19,17 @@ info: | var target = {}; var handler = { - has: function(t, prop) { - return 0; - } + has: function(t, prop) { + return 0; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, "attr", { - configurable: false, - value: 1 + configurable: false, + value: 1 }); assert.throws(TypeError, function() { - "attr" in p; + "attr" in p; }); diff --git a/test/built-ins/Proxy/has/return-is-abrupt-in.js b/test/built-ins/Proxy/has/return-is-abrupt-in.js index d7a7c5a4b55485ebe7be2d8f33344330c97360af..9e42c2d058d1d88926f16ce04862a94c59bf5f97 100644 --- a/test/built-ins/Proxy/has/return-is-abrupt-in.js +++ b/test/built-ins/Proxy/has/return-is-abrupt-in.js @@ -14,11 +14,11 @@ info: | ---*/ var p = new Proxy({}, { - has: function() { - throw new Test262Error(); - } + has: function() { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - "attr" in p; + "attr" in p; }); diff --git a/test/built-ins/Proxy/has/return-is-abrupt-with.js b/test/built-ins/Proxy/has/return-is-abrupt-with.js index 46824ac2d3151537e95d194b2254a9a548d414f1..e4ff88601bd07f9f5c85c24f566607875b6f037c 100644 --- a/test/built-ins/Proxy/has/return-is-abrupt-with.js +++ b/test/built-ins/Proxy/has/return-is-abrupt-with.js @@ -15,13 +15,13 @@ flags: [noStrict] ---*/ var p = new Proxy({}, { - has: function() { - throw new Test262Error(); - } + has: function() { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - with (p) { - (attr); - } + with(p) { + (attr); + } }); diff --git a/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js b/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js index 145073b72022c4907be9e1f69974f8be928d2891..1e58f30f78f1812d6152997c80e79195aef1968a 100644 --- a/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js +++ b/test/built-ins/Proxy/has/return-true-target-prop-exists-using-with.js @@ -9,17 +9,17 @@ flags: [noStrict] ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, { - has: function(t, prop) { - if (prop !== "assert") { - return 42; - } + has: function(t, prop) { + if (prop !== "assert") { + return 42; } + } }); var attr = 0; -with (p) { - assert.sameValue(attr, 1); +with(p) { + assert.sameValue(attr, 1); } diff --git a/test/built-ins/Proxy/has/return-true-target-prop-exists.js b/test/built-ins/Proxy/has/return-true-target-prop-exists.js index 9c5a409da6fd55bdbf09758a607c25b51d11ed00..187ef003046592b5f7bac1733c8b02b9a827e994 100644 --- a/test/built-ins/Proxy/has/return-true-target-prop-exists.js +++ b/test/built-ins/Proxy/has/return-true-target-prop-exists.js @@ -8,12 +8,12 @@ description: > ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, { - has: function(t, prop) { - return 1; - } + has: function(t, prop) { + return 1; + } }); assert.sameValue(("attr" in p), true); diff --git a/test/built-ins/Proxy/has/return-true-without-same-target-prop.js b/test/built-ins/Proxy/has/return-true-without-same-target-prop.js index 9186074a7d2cc4640bc1d180c0ae9ac749a3bf6f..5ee560de89ab22700f8e4f18fdd6212491c1e958 100644 --- a/test/built-ins/Proxy/has/return-true-without-same-target-prop.js +++ b/test/built-ins/Proxy/has/return-true-without-same-target-prop.js @@ -8,9 +8,9 @@ description: > ---*/ var p = new Proxy({}, { - has: function(t, prop) { - return true; - } + has: function(t, prop) { + return true; + } }); assert.sameValue(("attr" in p), true); diff --git a/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js b/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js index 1153bd364fedd60007efe105773d85260d14d7c8..951ebcf43a03bed06590047eff47bcdb768ac445 100644 --- a/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js +++ b/test/built-ins/Proxy/has/trap-is-not-callable-using-with.js @@ -20,11 +20,11 @@ flags: [noStrict] var target = {}; var p = new Proxy(target, { - has: {} + has: {} }); assert.throws(TypeError, function() { - with (p) { - (attr); - } + with(p) { + (attr); + } }); diff --git a/test/built-ins/Proxy/has/trap-is-not-callable.js b/test/built-ins/Proxy/has/trap-is-not-callable.js index 7124198244ae769c54e231618b4da4781425265a..63f4943574be9be8a85c4cfc7e74e8fb8a97dc65 100644 --- a/test/built-ins/Proxy/has/trap-is-not-callable.js +++ b/test/built-ins/Proxy/has/trap-is-not-callable.js @@ -19,9 +19,9 @@ info: | var target = {}; var p = new Proxy(target, { - has: {} + has: {} }); assert.throws(TypeError, function() { - "attr" in p; + "attr" in p; }); diff --git a/test/built-ins/Proxy/has/trap-is-undefined-using-with.js b/test/built-ins/Proxy/has/trap-is-undefined-using-with.js index 26a98bebb044a7c58b4d5f25db5da4199509c9e0..4c3ec37c2709077f2744711bdf0ac632e8292729 100644 --- a/test/built-ins/Proxy/has/trap-is-undefined-using-with.js +++ b/test/built-ins/Proxy/has/trap-is-undefined-using-with.js @@ -18,7 +18,7 @@ var target = Object.create(Array.prototype); var p = new Proxy(target, {}); var foo = 3; -with (target) { - assert.sameValue(length, 0); - assert.sameValue(foo, 3); +with(target) { + assert.sameValue(length, 0); + assert.sameValue(foo, 3); } diff --git a/test/built-ins/Proxy/isExtensible/call-parameters.js b/test/built-ins/Proxy/isExtensible/call-parameters.js index b43ea5619d9840e66577cb02713c7e91a938b585..3327adc8c42e2130ee22f0ba9df372c00d5c80a3 100644 --- a/test/built-ins/Proxy/isExtensible/call-parameters.js +++ b/test/built-ins/Proxy/isExtensible/call-parameters.js @@ -17,11 +17,11 @@ info: | var _target, _handler; var target = {}; var handler = { - isExtensible: function(t) { - _handler = this; - _target = t; - return Object.isExtensible(t); - } + isExtensible: function(t) { + _handler = this; + _target = t; + return Object.isExtensible(t); + } } var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/isExtensible/null-handler.js b/test/built-ins/Proxy/isExtensible/null-handler.js index d8d14bf7c86dca4ac46307628a1ee1537e93700c..0ff2c1b37f631dd926ad6f63a0457926093de93b 100644 --- a/test/built-ins/Proxy/isExtensible/null-handler.js +++ b/test/built-ins/Proxy/isExtensible/null-handler.js @@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - Object.isExtensible(p.proxy); + Object.isExtensible(p.proxy); }); diff --git a/test/built-ins/Proxy/isExtensible/return-is-abrupt.js b/test/built-ins/Proxy/isExtensible/return-is-abrupt.js index aacd87bd0da4fe866e63e85c9dc5758378d5e8d4..ae7591d536fcd9586aa1b17230a5761e717b71a5 100644 --- a/test/built-ins/Proxy/isExtensible/return-is-abrupt.js +++ b/test/built-ins/Proxy/isExtensible/return-is-abrupt.js @@ -14,11 +14,11 @@ info: | ---*/ var p = new Proxy({}, { - isExtensible: function(t) { - throw new Test262Error(); - } + isExtensible: function(t) { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - Object.isExtensible(p); + Object.isExtensible(p); }); diff --git a/test/built-ins/Proxy/isExtensible/return-is-boolean.js b/test/built-ins/Proxy/isExtensible/return-is-boolean.js index 29d54369ed8c51d644850898b20d07b61d07face..5c8bf4e3f03b7afbf0e51986119c69a313b3d66a 100644 --- a/test/built-ins/Proxy/isExtensible/return-is-boolean.js +++ b/test/built-ins/Proxy/isExtensible/return-is-boolean.js @@ -8,13 +8,13 @@ description: > var target = {}; var p = new Proxy(target, { - isExtensible: function(t) { - if ( Object.isExtensible(t) ) { - return 1; - } else { - return 0; - } + isExtensible: function(t) { + if (Object.isExtensible(t)) { + return 1; + } else { + return 0; } + } }); assert.sameValue(Object.isExtensible(p), true); diff --git a/test/built-ins/Proxy/isExtensible/return-is-different-from-target.js b/test/built-ins/Proxy/isExtensible/return-is-different-from-target.js index d40f45293ccc202689279c9d05070803710b2b46..50a76377d846cdbc2355f3005fe238b5655fdf34 100644 --- a/test/built-ins/Proxy/isExtensible/return-is-different-from-target.js +++ b/test/built-ins/Proxy/isExtensible/return-is-different-from-target.js @@ -15,11 +15,11 @@ info: | ---*/ var p = new Proxy({}, { - isExtensible: function(t) { - return false; - } + isExtensible: function(t) { + return false; + } }); assert.throws(TypeError, function() { - Object.isExtensible(p); + Object.isExtensible(p); }); diff --git a/test/built-ins/Proxy/isExtensible/return-same-result-from-target.js b/test/built-ins/Proxy/isExtensible/return-same-result-from-target.js index 4858765c37643c0251f37eefb48335e637331819..0c8406f46a9ea7f1dc2712debfd9f9e3ee7698d4 100644 --- a/test/built-ins/Proxy/isExtensible/return-same-result-from-target.js +++ b/test/built-ins/Proxy/isExtensible/return-same-result-from-target.js @@ -8,9 +8,9 @@ description: > var target = {}; var p = new Proxy(target, { - isExtensible: function(t) { - return Object.isExtensible(t); - } + isExtensible: function(t) { + return Object.isExtensible(t); + } }); assert.sameValue(Object.isExtensible(p), true); diff --git a/test/built-ins/Proxy/isExtensible/trap-is-not-callable.js b/test/built-ins/Proxy/isExtensible/trap-is-not-callable.js index 845cd0b577de20b5767024df12878b77c7336b8d..7db8f4cf6ef250121ceb6dcb29e18abd3bec7b3b 100644 --- a/test/built-ins/Proxy/isExtensible/trap-is-not-callable.js +++ b/test/built-ins/Proxy/isExtensible/trap-is-not-callable.js @@ -22,9 +22,9 @@ info: | var target = {}; var p = new Proxy(target, { - isExtensible: {} + isExtensible: {} }); assert.throws(TypeError, function() { - Object.isExtensible(p); + Object.isExtensible(p); }); diff --git a/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js b/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js index 9ddf4c8652d50093171f0f2ff356b6e7955fb237..112a31da8cde106cf2c50c4f649aead5376978b3 100644 --- a/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js +++ b/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertynames.js @@ -10,16 +10,16 @@ description: > var _target, _handler; var target = { - foo: 1, - bar: 2 + foo: 1, + bar: 2 }; var handler = { - ownKeys: function(t) { - _handler = this; - _target = t; - return Object.getOwnPropertyNames(t); - } + ownKeys: function(t) { + _handler = this; + _target = t; + return Object.getOwnPropertyNames(t); + } } var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js b/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js index ea802c424da704bbece050184d273666ff347680..f788aa2916a3f099b57dd4b3ce7e9a5cdc918b4c 100644 --- a/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js +++ b/test/built-ins/Proxy/ownKeys/call-parameters-object-getownpropertysymbols.js @@ -19,11 +19,11 @@ target[a] = 1; target[b] = 2; var handler = { - ownKeys: function(t) { - _handler = this; - _target = t; - return Object.getOwnPropertySymbols(t); - } + ownKeys: function(t) { + _handler = this; + _target = t; + return Object.getOwnPropertySymbols(t); + } } var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js b/test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js index 9ea0cdf6c49e218b2c6526ce92ef1c0af4579b20..6723d9104b6b312437e5182f3cb34816631eadf4 100644 --- a/test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js +++ b/test/built-ins/Proxy/ownKeys/call-parameters-object-keys.js @@ -10,15 +10,15 @@ description: > var _target, _handler; var target = { - foo: 1, - bar: 2 + foo: 1, + bar: 2 }; var handler = { - ownKeys: function(t) { - _handler = this; - _target = t; - return Object.keys(t); - } + ownKeys: function(t) { + _handler = this; + _target = t; + return Object.keys(t); + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js index 3fc49524d1311b8c6b8ba8ace065efc8f9adacec..6c3cc745e59cd328783d9a4bff92e4ddff50a160 100644 --- a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js +++ b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js @@ -13,10 +13,12 @@ info: | a. Return trapResult. ---*/ -var p = new Proxy({attr: 42}, { - ownKeys: function() { - return ["foo", "bar"]; - } +var p = new Proxy({ + attr: 42 +}, { + ownKeys: function() { + return ["foo", "bar"]; + } }); var keys = Object.getOwnPropertyNames(p); diff --git a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js index ad4073ac0e3554e7813eebdbaa1f674c5731b741..63b06910a29dcb06ea7a35f3852af6bbb4c4645f 100644 --- a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js +++ b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js @@ -15,15 +15,15 @@ info: | var target = {}; Object.defineProperty(target, "foo", { - configurable: false, - enumerable: true, - value: true + configurable: false, + enumerable: true, + value: true }); var p = new Proxy(target, { - ownKeys: function() { - return ["foo", "bar"]; - } + ownKeys: function() { + return ["foo", "bar"]; + } }); var keys = Object.getOwnPropertyNames(p); diff --git a/test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js b/test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js index 88b7b88a1027f0b8e942562cd8fef8d82c447481..cb256bacac6bd090322c0162f0d72201a199fa47 100644 --- a/test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js +++ b/test/built-ins/Proxy/ownKeys/not-extensible-missing-keys-throws.js @@ -15,18 +15,18 @@ info: | ---*/ var target = { - foo: 1, - bar: 2 + foo: 1, + bar: 2 }; var p = new Proxy(target, { - ownKeys: function() { - return ["foo"]; - } + ownKeys: function() { + return ["foo"]; + } }); Object.preventExtensions(target); assert.throws(TypeError, function() { - Object.keys(p); + Object.keys(p); }); diff --git a/test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js b/test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js index 22cc02791537eed72c81897c5f3863724a3cc35c..fb6eddf5f3b6eade4185b03c0344fbaf4384625d 100644 --- a/test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js +++ b/test/built-ins/Proxy/ownKeys/not-extensible-new-keys-throws.js @@ -13,17 +13,17 @@ info: | ---*/ var target = { - foo: 1 + foo: 1 }; var p = new Proxy(target, { - ownKeys: function() { - return ["foo", "bar"]; - } + ownKeys: function() { + return ["foo", "bar"]; + } }); Object.preventExtensions(target); assert.throws(TypeError, function() { - Object.keys(p); + Object.keys(p); }); diff --git a/test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js b/test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js index f7d6832df881da4546a2236262b23e307256e6dd..a491ffb6d0c85c016eddb87273e4dc8c6ac81615 100644 --- a/test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js +++ b/test/built-ins/Proxy/ownKeys/not-extensible-return-keys.js @@ -13,14 +13,14 @@ info: | ---*/ var target = { - foo: 1, - bar: 2 + foo: 1, + bar: 2 }; var p = new Proxy(target, { - ownKeys: function() { - return ["foo", "bar"]; - } + ownKeys: function() { + return ["foo", "bar"]; + } }); Object.preventExtensions(target); diff --git a/test/built-ins/Proxy/ownKeys/null-handler.js b/test/built-ins/Proxy/ownKeys/null-handler.js index e703ece13a8180ce5afbff697f361755fd3c8423..653e1fc8685e937f15d3da28ec159b42fdb8428e 100644 --- a/test/built-ins/Proxy/ownKeys/null-handler.js +++ b/test/built-ins/Proxy/ownKeys/null-handler.js @@ -13,5 +13,5 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - Object.keys(p.proxy); + Object.keys(p.proxy); }); diff --git a/test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js b/test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js index 70a898d5d9ded105c7cab388103776d6791dea56..9cd1c90b4fe0fe3238bb0d5c42e2f84218fcbc79 100644 --- a/test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js +++ b/test/built-ins/Proxy/ownKeys/return-all-non-configurable-keys.js @@ -16,21 +16,21 @@ info: | ---*/ var target = { - foo: 1 + foo: 1 }; Object.defineProperty(target, "attr", { - configurable: false, - enumerable: true, - value: true + configurable: false, + enumerable: true, + value: true }); var p = new Proxy(target, { - ownKeys: function() { - return ["foo"]; - } + ownKeys: function() { + return ["foo"]; + } }); assert.throws(TypeError, function() { - Object.keys(p); + Object.keys(p); }); diff --git a/test/built-ins/Proxy/ownKeys/return-is-abrupt.js b/test/built-ins/Proxy/ownKeys/return-is-abrupt.js index fd48e0f9c27e057e50283f742afd65065474b747..405fbbfbaaa1fa47c8271e46cdeafc295d842314 100644 --- a/test/built-ins/Proxy/ownKeys/return-is-abrupt.js +++ b/test/built-ins/Proxy/ownKeys/return-is-abrupt.js @@ -14,11 +14,11 @@ info: | ---*/ var p = new Proxy({}, { - ownKeys: function() { - throw new Test262Error(); - } + ownKeys: function() { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - Object.keys(p); + Object.keys(p); }); diff --git a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js index 58d211c2f16c7f6196f3ab542496af914e98222f..45e22b3a0a05c48e19b80aced6f9200da1e6dfb6 100644 --- a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js +++ b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js @@ -22,11 +22,11 @@ features: [cross-realm, Symbol] var other = $262.createRealm().global; var p = new other.Proxy({}, { - ownKeys: function() { - return undefined; - } + ownKeys: function() { + return undefined; + } }); assert.throws(TypeError, function() { - Object.keys(p); + Object.keys(p); }); diff --git a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js index 2f08964914e3700052e55905fbd8693d4abc6b03..c3bd07242534c983ae1e2ec6afe734e6dbb06c83 100644 --- a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js +++ b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws.js @@ -22,11 +22,11 @@ features: [Symbol] var target = {}; var p = new Proxy(target, { - ownKeys: function() { - return undefined; - } + ownKeys: function() { + return undefined; + } }); assert.throws(TypeError, function() { - Object.keys(p); + Object.keys(p); }); diff --git a/test/built-ins/Proxy/ownKeys/return-type-throws-array.js b/test/built-ins/Proxy/ownKeys/return-type-throws-array.js index e6f3a3aa24844c12857edb46af84f681e25deaa0..78cc7335f9c61a5003ca88e1bd098b7d1e8b376a 100644 --- a/test/built-ins/Proxy/ownKeys/return-type-throws-array.js +++ b/test/built-ins/Proxy/ownKeys/return-type-throws-array.js @@ -25,7 +25,9 @@ info: | var p = new Proxy({}, { ownKeys() { - return [[]]; + return [ + [] + ]; } }); diff --git a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js index 030d6b5e80bd692d57b5f69fd4816ce71f1c7ef7..0eb431e7dd8d5590a22a00d43ac344cedd622bc4 100644 --- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js @@ -19,7 +19,9 @@ features: [cross-realm] ---*/ var OProxy = $262.createRealm().global.Proxy; -var p = new OProxy({attr:1}, { +var p = new OProxy({ + attr: 1 +}, { ownKeys: {} }); diff --git a/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js b/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js index 6b95478ae45990c14dece83daa119d83464a0c76..20ed2a8fddda323c09b078db3618c71c931ed870 100644 --- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js +++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js @@ -16,10 +16,12 @@ info: | 4. If IsCallable(func) is false, throw a TypeError exception. ---*/ -var p = new Proxy({attr:1}, { - ownKeys: {} +var p = new Proxy({ + attr: 1 +}, { + ownKeys: {} }); assert.throws(TypeError, function() { - Object.keys(p); + Object.keys(p); }); diff --git a/test/built-ins/Proxy/ownKeys/trap-is-undefined.js b/test/built-ins/Proxy/ownKeys/trap-is-undefined.js index 2b983026219e89c98776670c76eb11eeb4b5886c..3b42a49e11981a849f19f0a904a27d689b9cbdb8 100644 --- a/test/built-ins/Proxy/ownKeys/trap-is-undefined.js +++ b/test/built-ins/Proxy/ownKeys/trap-is-undefined.js @@ -9,8 +9,8 @@ description: > ---*/ var target = { - foo: 1, - bar: 2 + foo: 1, + bar: 2 }; var p = new Proxy(target, {}); diff --git a/test/built-ins/Proxy/preventExtensions/call-parameters.js b/test/built-ins/Proxy/preventExtensions/call-parameters.js index 2eb15a36450e744f165dfe969014509b5a09da4d..7774224b8cd42f47adf5a929dcf592c98efe7971 100644 --- a/test/built-ins/Proxy/preventExtensions/call-parameters.js +++ b/test/built-ins/Proxy/preventExtensions/call-parameters.js @@ -16,12 +16,12 @@ info: | var _target, _handler; var target = {}; var handler = { - preventExtensions: function(t) { - _handler = this; - _target = t; + preventExtensions: function(t) { + _handler = this; + _target = t; - return Object.preventExtensions(target); - } + return Object.preventExtensions(target); + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/preventExtensions/null-handler.js b/test/built-ins/Proxy/preventExtensions/null-handler.js index 12b7ee8657c554fbcb607ed49187f78d56b7ee95..e8067f063e12af372ba846fa1f30e8cf093c8ae1 100644 --- a/test/built-ins/Proxy/preventExtensions/null-handler.js +++ b/test/built-ins/Proxy/preventExtensions/null-handler.js @@ -11,5 +11,5 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - Object.preventExtensions(p.proxy); + Object.preventExtensions(p.proxy); }); diff --git a/test/built-ins/Proxy/preventExtensions/return-false.js b/test/built-ins/Proxy/preventExtensions/return-false.js index c448d70e80e5aab0fd28a8a2078667cece326b9e..dbe0c599473283222dda37b3f8bed7094a6e62e9 100644 --- a/test/built-ins/Proxy/preventExtensions/return-false.js +++ b/test/built-ins/Proxy/preventExtensions/return-false.js @@ -9,9 +9,9 @@ features: [Reflect] var target = {}; var p = new Proxy({}, { - preventExtensions: function(t) { - return 0; - } + preventExtensions: function(t) { + return 0; + } }); assert.sameValue(Reflect.preventExtensions(p), false); diff --git a/test/built-ins/Proxy/preventExtensions/return-is-abrupt.js b/test/built-ins/Proxy/preventExtensions/return-is-abrupt.js index cfe31cb7e3fb614fd4482cdbd9a29a599207760d..cb3384df6c5bedac1f8d83db84552fe262aaf04e 100644 --- a/test/built-ins/Proxy/preventExtensions/return-is-abrupt.js +++ b/test/built-ins/Proxy/preventExtensions/return-is-abrupt.js @@ -14,11 +14,11 @@ info: | ---*/ var p = new Proxy({}, { - preventExtensions: function(t) { - throw new Test262Error(); - } + preventExtensions: function(t) { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - Object.preventExtensions(p); + Object.preventExtensions(p); }); diff --git a/test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js b/test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js index 8f170731277cd97a1d81193eb858bfde9d319170..9f922da8ea39b9d5c7a36c9a519a99177e4dccaf 100644 --- a/test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js +++ b/test/built-ins/Proxy/preventExtensions/return-true-target-is-extensible.js @@ -17,11 +17,11 @@ info: | ---*/ var p = new Proxy({}, { - preventExtensions: function(t) { - return true; - } + preventExtensions: function(t) { + return true; + } }); assert.throws(TypeError, function() { - Object.preventExtensions(p); + Object.preventExtensions(p); }); diff --git a/test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js b/test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js index 14143824f490c05baaec8484759f093487565b25..db2287b4924243da27f64add34037c192394101a 100644 --- a/test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js +++ b/test/built-ins/Proxy/preventExtensions/return-true-target-is-not-extensible.js @@ -9,9 +9,9 @@ features: [Reflect] var target = {}; var p = new Proxy(target, { - preventExtensions: function(t) { - return 1; - } + preventExtensions: function(t) { + return 1; + } }); Object.preventExtensions(target); diff --git a/test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js b/test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js index b3826aa21d37274b4ce911aa3ce6e6c20bc419d7..2a42bfdd9704a6bceee47e9794ce089d185ac143 100644 --- a/test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js +++ b/test/built-ins/Proxy/preventExtensions/trap-is-not-callable.js @@ -21,9 +21,9 @@ info: | var target = {}; var p = new Proxy(target, { - preventExtensions: {} + preventExtensions: {} }); assert.throws(TypeError, function() { - Object.preventExtensions(p); + Object.preventExtensions(p); }); diff --git a/test/built-ins/Proxy/proxy-newtarget.js b/test/built-ins/Proxy/proxy-newtarget.js index 9613eb4b9d6df120d6ec1dea76a451c96f2e7ef8..3884cd44d688b2df30d7e31d958ad0ec1ec75d27 100644 --- a/test/built-ins/Proxy/proxy-newtarget.js +++ b/test/built-ins/Proxy/proxy-newtarget.js @@ -22,7 +22,7 @@ description: > var p1 = new Proxy({}, {}); assert.sameValue( - typeof p1, - 'object', - 'Return a newly created Object' + typeof p1, + 'object', + 'Return a newly created Object' ); diff --git a/test/built-ins/Proxy/proxy-undefined-newtarget.js b/test/built-ins/Proxy/proxy-undefined-newtarget.js index b06a7a88611dae79cfff116684403c8e72edf835..9b8566e92ee5ac77014687eacc5ab226203c99c7 100644 --- a/test/built-ins/Proxy/proxy-undefined-newtarget.js +++ b/test/built-ins/Proxy/proxy-undefined-newtarget.js @@ -16,4 +16,3 @@ description: > assert.throws(TypeError, function() { Proxy({}, {}); }); - diff --git a/test/built-ins/Proxy/revocable/proxy.js b/test/built-ins/Proxy/revocable/proxy.js index b08d73c2e3961fbb480ae534de6e510f402c7bb9..32d4c27cd03b38e8291504f524d0f3e40e9dd821 100644 --- a/test/built-ins/Proxy/revocable/proxy.js +++ b/test/built-ins/Proxy/revocable/proxy.js @@ -12,12 +12,12 @@ info: | ---*/ var target = { - attr: "foo" + attr: "foo" }; var r = Proxy.revocable(target, { - get: function(t, prop) { - return t[prop] + "!"; - } + get: function(t, prop) { + return t[prop] + "!"; + } }); assert.sameValue(r.proxy.attr, "foo!"); diff --git a/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js b/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js index 02fc9aa5c4d67c1292088d0deba7096e9e79c4b0..1dd225538a397bf7fc4dc5c24e34fab68594a246 100644 --- a/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js +++ b/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js @@ -14,4 +14,6 @@ info: | var revocationFunction = Proxy.revocable({}, {}).revoke; assert.sameValue(Object.prototype.hasOwnProperty.call(revocationFunction, "prototype"), false); -assert.throws(TypeError, function() { new revocationFunction(); }); +assert.throws(TypeError, function() { + new revocationFunction(); +}); diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js index 0e7100cfc86a26e70132f8705b54ffde13bbbbb0..7f30f31c9479092f6870d4968541b545e57f07d0 100644 --- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js +++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js @@ -11,9 +11,9 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return false; - } + set: function(t, prop, value, receiver) { + return false; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js index c6ca59a13560b36a49428f3fe74808aaeda5dbd5..20ae2d4901b3aa22130a0693907b326db2689d98 100644 --- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js +++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-null-return-false.js @@ -11,9 +11,9 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return null; - } + set: function(t, prop, value, receiver) { + return null; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js index 58380a602dfd06bd4c1d851a5d1ffc6d1897a41c..a1c4f2259b47672a4a65f059fb111da3be4f0421 100644 --- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js +++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-number-return-false.js @@ -11,9 +11,9 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return 0; - } + set: function(t, prop, value, receiver) { + return 0; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js index 9d3783668e2814711e23debd8cbb7abdc3106a7c..78f8d8ec5b177df5159b89efa67bc0a607895cdb 100644 --- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js +++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-string-return-false.js @@ -11,9 +11,9 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return ""; - } + set: function(t, prop, value, receiver) { + return ""; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js index 3d05404a976b6b817a742f24100ae90eed672122..a17dd5a3fedf37580fca70e2ca584bd52e5c39e0 100644 --- a/test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js +++ b/test/built-ins/Proxy/set/boolean-trap-result-is-false-undefined-return-false.js @@ -11,9 +11,9 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return undefined; - } + set: function(t, prop, value, receiver) { + return undefined; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/set/call-parameters.js b/test/built-ins/Proxy/set/call-parameters.js index 812333e9242bb210f89358855a9439c7939332e9..3b2fa4234498af22d6111bc05f2695511e4b2f52 100644 --- a/test/built-ins/Proxy/set/call-parameters.js +++ b/test/built-ins/Proxy/set/call-parameters.js @@ -13,14 +13,14 @@ description: > var _target, _handler, _prop, _value, _receiver; var target = {}; var handler = { - set: function(t, prop, value, receiver) { - _handler = this; - _target = t; - _prop = prop; - _value = value; - _receiver = receiver; - return t[prop] = value; - } + set: function(t, prop, value, receiver) { + _handler = this; + _target = t; + _prop = prop; + _value = value; + _receiver = receiver; + return t[prop] = value; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/set/null-handler.js b/test/built-ins/Proxy/set/null-handler.js index 3b2035085840b1916f8138b6e3a01aba809651bf..637c43a46e5527eb03e6586c0a6b964dda9b857f 100644 --- a/test/built-ins/Proxy/set/null-handler.js +++ b/test/built-ins/Proxy/set/null-handler.js @@ -13,9 +13,9 @@ var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - p.proxy.attr = 1; + p.proxy.attr = 1; }); assert.throws(TypeError, function() { - p.proxy['attr'] = 1; + p.proxy['attr'] = 1; }); diff --git a/test/built-ins/Proxy/set/return-is-abrupt.js b/test/built-ins/Proxy/set/return-is-abrupt.js index 1da66bbdafdf667fa76d2f49576f3612a3cec6af..6f6ee2b25472aed04b118d0ecfa3f0eef389d95f 100644 --- a/test/built-ins/Proxy/set/return-is-abrupt.js +++ b/test/built-ins/Proxy/set/return-is-abrupt.js @@ -14,15 +14,15 @@ info: | ---*/ var p = new Proxy({}, { - set: function(t, prop, value, receiver) { - throw new Test262Error(); - } + set: function(t, prop, value, receiver) { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - p.attr = "bar"; + p.attr = "bar"; }); assert.throws(Test262Error, function() { - p["attr"] = "bar"; + p["attr"] = "bar"; }); diff --git a/test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js b/test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js index 11f35638737664c9968e625bcc5158f25e053f0d..20e5f2a95d0de8613483862999c3b7690b6f45ee 100644 --- a/test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js +++ b/test/built-ins/Proxy/set/return-true-target-property-accessor-is-configurable-set-is-undefined.js @@ -12,15 +12,15 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return true; - } + set: function(t, prop, value, receiver) { + return true; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, "attr", { - configurable: true, - set: undefined + configurable: true, + set: undefined }); assert(Reflect.set(p, "attr", "bar")); diff --git a/test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js b/test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js index 0277b54c18a43da5f796c559906acbb2e09125ce..89547216d36b2ed2846d90d0d0b56011dc2a967e 100644 --- a/test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js +++ b/test/built-ins/Proxy/set/return-true-target-property-accessor-is-not-configurable.js @@ -12,17 +12,17 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return true; - } + set: function(t, prop, value, receiver) { + return true; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, 'attr', { - configurable: false, - set: function( value ) { - return value; - } + configurable: false, + set: function(value) { + return value; + } }); assert(Reflect.set(p, "attr", 1)); diff --git a/test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js b/test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js index 0bd1f6328dc68c78cc17da191e0d860b55fcff7e..730ecafe15b40f66314f53a0bc860514f66c5582 100644 --- a/test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js +++ b/test/built-ins/Proxy/set/return-true-target-property-is-not-configurable.js @@ -12,16 +12,16 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return true; - } + set: function(t, prop, value, receiver) { + return true; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, 'attr', { - configurable: false, - writable: true, - value: 'foo' + configurable: false, + writable: true, + value: 'foo' }); assert(Reflect.set(p, "attr", 1)); diff --git a/test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js b/test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js index 314d164ef0827b2a0bcd3001ea5dfa529473f752..3fd7a5a95737e21fb50649de42d961342182ef3e 100644 --- a/test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js +++ b/test/built-ins/Proxy/set/return-true-target-property-is-not-writable.js @@ -12,16 +12,16 @@ features: [Reflect] var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return true; - } + set: function(t, prop, value, receiver) { + return true; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, "attr", { - configurable: true, - writable: false, - value: "foo" + configurable: true, + writable: false, + value: "foo" }); assert(Reflect.set(p, "attr", "foo")); diff --git a/test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js b/test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js index 5cdb2926ac735d4304fc69aafc535b7224a88b83..582336903d9f31cd4cd7119eb5229caf77aea101 100644 --- a/test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js +++ b/test/built-ins/Proxy/set/target-property-is-accessor-not-configurable-set-is-undefined.js @@ -16,21 +16,21 @@ info: | var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return true; - } + set: function(t, prop, value, receiver) { + return true; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, 'attr', { - configurable: false, - set: undefined + configurable: false, + set: undefined }); assert.throws(TypeError, function() { - p.attr = 'bar'; + p.attr = 'bar'; }); assert.throws(TypeError, function() { - p['attr'] = 'bar'; + p['attr'] = 'bar'; }); diff --git a/test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js b/test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js index 3e46bc33dc66f60d8dc8310a065ace7ceb16fbaa..9bfd14990cef778e233193ef26ca175e16f6df27 100644 --- a/test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js +++ b/test/built-ins/Proxy/set/target-property-is-not-configurable-not-writable-not-equal-to-v.js @@ -17,22 +17,22 @@ info: | var target = {}; var handler = { - set: function(t, prop, value, receiver) { - return true; - } + set: function(t, prop, value, receiver) { + return true; + } }; var p = new Proxy(target, handler); Object.defineProperty(target, 'attr', { - configurable: false, - writable: false, - value: 'foo' + configurable: false, + writable: false, + value: 'foo' }); assert.throws(TypeError, function() { - p.attr = 'bar'; + p.attr = 'bar'; }); assert.throws(TypeError, function() { - p['attr'] = 'bar'; + p['attr'] = 'bar'; }); diff --git a/test/built-ins/Proxy/set/trap-is-not-callable.js b/test/built-ins/Proxy/set/trap-is-not-callable.js index 1aef3ff16efe18e03fd3ed55e771d3cba47ebd1d..cd3622d7c68ec9e6cb2e18910b92c783d211fae5 100644 --- a/test/built-ins/Proxy/set/trap-is-not-callable.js +++ b/test/built-ins/Proxy/set/trap-is-not-callable.js @@ -16,13 +16,13 @@ info: | ---*/ var p = new Proxy({}, { - set: {} + set: {} }); assert.throws(TypeError, function() { - p.attr = 1; + p.attr = 1; }); assert.throws(TypeError, function() { - p["attr"] = 1; + p["attr"] = 1; }); diff --git a/test/built-ins/Proxy/set/trap-is-undefined-no-property.js b/test/built-ins/Proxy/set/trap-is-undefined-no-property.js index f0b29b0ff8f8418b365fc0a1f3f72d4e36b6e3b6..512cb83e1f2e710222a252158a82a8ca21466777 100644 --- a/test/built-ins/Proxy/set/trap-is-undefined-no-property.js +++ b/test/built-ins/Proxy/set/trap-is-undefined-no-property.js @@ -10,7 +10,7 @@ description: > ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, {}); diff --git a/test/built-ins/Proxy/set/trap-is-undefined-receiver.js b/test/built-ins/Proxy/set/trap-is-undefined-receiver.js index f0074b9f11000550513401809662db752e82f98a..4c915c49420f65766687c8a567206a0b69045bc1 100644 --- a/test/built-ins/Proxy/set/trap-is-undefined-receiver.js +++ b/test/built-ins/Proxy/set/trap-is-undefined-receiver.js @@ -14,12 +14,14 @@ info: | var context; var target = { - set attr(val) { - context = this; - } + set attr(val) { + context = this; + } }; -var p = new Proxy(target, { set: null }); +var p = new Proxy(target, { + set: null +}); p.attr = 1; assert.sameValue(context, p); diff --git a/test/built-ins/Proxy/set/trap-is-undefined.js b/test/built-ins/Proxy/set/trap-is-undefined.js index 82399fa34328ae0e7dd064e40584e0939812bd21..06cadd7a0951270fe02625cd0d81e28e4edbcdbc 100644 --- a/test/built-ins/Proxy/set/trap-is-undefined.js +++ b/test/built-ins/Proxy/set/trap-is-undefined.js @@ -10,10 +10,10 @@ description: > ---*/ var target = { - attr: 1 + attr: 1 }; var p = new Proxy(target, { - get: undefined + get: undefined }); p.attr = 1; diff --git a/test/built-ins/Proxy/setPrototypeOf/call-parameters.js b/test/built-ins/Proxy/setPrototypeOf/call-parameters.js index d85199ec09d95b0f5565652b7659cef25bcec185..ff44703df8bdac7219c8adde5c13856975f052d5 100644 --- a/test/built-ins/Proxy/setPrototypeOf/call-parameters.js +++ b/test/built-ins/Proxy/setPrototypeOf/call-parameters.js @@ -15,17 +15,19 @@ info: | var _handler, _target, _value; var target = {}; -var val = {foo: 1}; +var val = { + foo: 1 +}; var handler = { - setPrototypeOf: function(t, v) { - _handler = this; - _target = t; - _value = v; + setPrototypeOf: function(t, v) { + _handler = this; + _target = t; + _value = v; - Object.setPrototypeOf(t, v); + Object.setPrototypeOf(t, v); - return true; - } + return true; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/setPrototypeOf/null-handler.js b/test/built-ins/Proxy/setPrototypeOf/null-handler.js index 4d4a7a6b6897b0b7836cda3efdfe2ad47342b9ef..8a78bc9653e8f963febfac7dc34f1b258715ec86 100644 --- a/test/built-ins/Proxy/setPrototypeOf/null-handler.js +++ b/test/built-ins/Proxy/setPrototypeOf/null-handler.js @@ -6,10 +6,10 @@ description: > Throws a TypeError exception if handler is null ---*/ -var p = Proxy.revocable({},{}); +var p = Proxy.revocable({}, {}); p.revoke(); assert.throws(TypeError, function() { - Object.setPrototypeOf(p.proxy, {}); + Object.setPrototypeOf(p.proxy, {}); }); diff --git a/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js b/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js index cb2ffaff1db3090082bda1b4e6bec1af5973deb3..292515d93daf38c8ec76f5b18b84dfb8660bda65 100644 --- a/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js +++ b/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js @@ -12,11 +12,13 @@ info: | ---*/ var p = new Proxy({}, { - setPrototypeOf: function() { - throw new Test262Error(); - } + setPrototypeOf: function() { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - Object.setPrototypeOf(p, {value: 1}); + Object.setPrototypeOf(p, { + value: 1 + }); }); diff --git a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js index f20f03326c36d3a63c5bd40c3d6f40a3140ab18d..e87fdf93d8f885efc2f188493c862c3431645f7d 100644 --- a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js +++ b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js @@ -32,30 +32,44 @@ var p = new Proxy(target, { var result; -result = Reflect.setPrototypeOf(p, { attr: false }); +result = Reflect.setPrototypeOf(p, { + attr: false +}); assert.sameValue(result, false, "false"); assert.sameValue(called, 0, "false - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: "" }); +result = Reflect.setPrototypeOf(p, { + attr: "" +}); assert.sameValue(result, false, "the empty string"); assert.sameValue(called, 0, "the empty string - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: 0 }); +result = Reflect.setPrototypeOf(p, { + attr: 0 +}); assert.sameValue(result, false, "0"); assert.sameValue(called, 0, "0 - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: -0 }); +result = Reflect.setPrototypeOf(p, { + attr: -0 +}); assert.sameValue(result, false, "-0"); assert.sameValue(called, 0, "-0 - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: null }); +result = Reflect.setPrototypeOf(p, { + attr: null +}); assert.sameValue(result, false, "null"); assert.sameValue(called, 0, "null - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: undefined }); +result = Reflect.setPrototypeOf(p, { + attr: undefined +}); assert.sameValue(result, false, "undefined"); assert.sameValue(called, 0, "undefined - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: NaN }); +result = Reflect.setPrototypeOf(p, { + attr: NaN +}); assert.sameValue(result, false, "NaN"); assert.sameValue(called, 0, "NaN - isExtensible is not called"); diff --git a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js index 189bc701ac4a8eb6c395241726b5af1714b7a837..5353aaf006752b7f94087d0443ba26cc6b6a6534 100644 --- a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js +++ b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js @@ -36,31 +36,43 @@ var p = new Proxy(target, { var result; called = 0; -result = Reflect.setPrototypeOf(p, { attr: true }); +result = Reflect.setPrototypeOf(p, { + attr: true +}); assert.sameValue(result, true, "true"); assert.sameValue(called, 1, "true - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: "false" }); +result = Reflect.setPrototypeOf(p, { + attr: "false" +}); assert.sameValue(result, true, "string"); assert.sameValue(called, 1, "string - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: 42 }); +result = Reflect.setPrototypeOf(p, { + attr: 42 +}); assert.sameValue(result, true, "42"); assert.sameValue(called, 1, "number - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: p }); +result = Reflect.setPrototypeOf(p, { + attr: p +}); assert.sameValue(result, true, "p"); assert.sameValue(called, 1, "object - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: [] }); +result = Reflect.setPrototypeOf(p, { + attr: [] +}); assert.sameValue(result, true, "[]"); assert.sameValue(called, 1, "[] - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: Symbol(1) }); +result = Reflect.setPrototypeOf(p, { + attr: Symbol(1) +}); assert.sameValue(result, true, "symbol"); assert.sameValue(called, 1, "symbol - isExtensible is called"); diff --git a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js index bb0e9cf4b2df55bb41767f4b35c0bbc1d2dfd6a3..7e7b7212d1afb15b42554951be1be4f7b44d0d10 100644 --- a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js @@ -29,7 +29,7 @@ var p = new OProxy({}, { }); assert.throws(TypeError, function() { - Object.setPrototypeOf(p, { - value: 1 - }); + Object.setPrototypeOf(p, { + value: 1 + }); }); diff --git a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js index 6a4d3395e3ce0cd3f8fe729e9109358cab293763..c6977adb34914fc243c37f289da4a7f7005015e8 100644 --- a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js +++ b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable.js @@ -23,11 +23,11 @@ features: [Reflect.setPrototypeOf] var target = {}; var p = new Proxy(target, { - setPrototypeOf: {} + setPrototypeOf: {} }); assert.throws(TypeError, function() { - Reflect.setPrototypeOf(p, { - value: 1 - }); + Reflect.setPrototypeOf(p, { + value: 1 + }); }); diff --git a/test/built-ins/Reflect/apply/call-target.js b/test/built-ins/Reflect/apply/call-target.js index b5b3d97a289a8f4251e66fd412ac8b8d3827e303..bf07a0bfb451c521301bdcb406cb0150befdd0ca 100644 --- a/test/built-ins/Reflect/apply/call-target.js +++ b/test/built-ins/Reflect/apply/call-target.js @@ -15,6 +15,7 @@ info: | var o = {}; var count = 0; var results, args; + function fn() { count++; results = { diff --git a/test/built-ins/Reflect/apply/return-target-call-result.js b/test/built-ins/Reflect/apply/return-target-call-result.js index 9780efdf8fb5b82496ceea23d3a5c0132dc154c2..b506a8091ecae059dd2eff6ee097c86366104e90 100644 --- a/test/built-ins/Reflect/apply/return-target-call-result.js +++ b/test/built-ins/Reflect/apply/return-target-call-result.js @@ -13,6 +13,7 @@ info: | ---*/ var o = {}; + function fn() { return o; } diff --git a/test/built-ins/Reflect/construct/return-with-newtarget-argument.js b/test/built-ins/Reflect/construct/return-with-newtarget-argument.js index 0f92948507859f88b04693082612d45301a86b02..90f816297e9b5e82f25967613863b80298431930 100644 --- a/test/built-ins/Reflect/construct/return-with-newtarget-argument.js +++ b/test/built-ins/Reflect/construct/return-with-newtarget-argument.js @@ -15,6 +15,7 @@ info: | var o = {}; var internPrototype; + function fn() { this.o = o; internPrototype = Object.getPrototypeOf(this); diff --git a/test/built-ins/Reflect/construct/return-without-newtarget-argument.js b/test/built-ins/Reflect/construct/return-without-newtarget-argument.js index ef5ef9a2bb845cdfa3645597aae805ede1411b1a..db88a02a27ce2e50497d5e6371f68f19ee8cdf01 100644 --- a/test/built-ins/Reflect/construct/return-without-newtarget-argument.js +++ b/test/built-ins/Reflect/construct/return-without-newtarget-argument.js @@ -14,6 +14,7 @@ info: | ---*/ var o = {}; + function fn() { this.o = o; } diff --git a/test/built-ins/Reflect/defineProperty/return-boolean.js b/test/built-ins/Reflect/defineProperty/return-boolean.js index da84e3fb7c9544e6b8add5f439bddc9b0c26546b..78a069ae5d1bf8c62a134ecf47e9367f471dbfaf 100644 --- a/test/built-ins/Reflect/defineProperty/return-boolean.js +++ b/test/built-ins/Reflect/defineProperty/return-boolean.js @@ -17,16 +17,22 @@ o.p1 = 'foo'; assert.sameValue(Reflect.defineProperty(o, 'p1', {}), true); assert.sameValue(o.hasOwnProperty('p1'), true); -assert.sameValue(Reflect.defineProperty(o, 'p2', {value: 42}), true); +assert.sameValue(Reflect.defineProperty(o, 'p2', { + value: 42 +}), true); assert.sameValue(o.hasOwnProperty('p2'), true); Object.freeze(o); -assert.sameValue(Reflect.defineProperty(o, 'p2', {value: 43}), false); +assert.sameValue(Reflect.defineProperty(o, 'p2', { + value: 43 +}), false); assert.sameValue(o.p2, 42); assert.sameValue(Reflect.defineProperty(o, 'p3', {}), false); assert.sameValue(o.hasOwnProperty('p4'), false); -assert.sameValue(Reflect.defineProperty(o, 'p4', {value: 1}), false); +assert.sameValue(Reflect.defineProperty(o, 'p4', { + value: 1 +}), false); assert.sameValue(o.hasOwnProperty('p4'), false); diff --git a/test/built-ins/Reflect/get/return-value.js b/test/built-ins/Reflect/get/return-value.js index 605a0784f3ceb56d1c79b2bb99d6a16187a84ed7..c000d52c530564787e02c3a88723a348c0f69d48 100644 --- a/test/built-ins/Reflect/get/return-value.js +++ b/test/built-ins/Reflect/get/return-value.js @@ -55,7 +55,9 @@ assert.sameValue( 'Return Call(getter, Receiver)' ); -var o2 = Object.create({p: 42}); +var o2 = Object.create({ + p: 42 +}); assert.sameValue( Reflect.get(o2, 'p'), 42, 'Return value from prototype without own property.' diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js index da87197bdc54ceb5c3d5423babe4752a8f0385df..4168de3ec1e6bce59b46474ff4f16a0d5d11521e 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js @@ -46,8 +46,7 @@ var result = Reflect.getOwnPropertyDescriptor(o1, 'p'); assert( compareArray( - Object.keys(result), - ['get', 'set', 'enumerable', 'configurable'] + Object.keys(result), ['get', 'set', 'enumerable', 'configurable'] ) ); assert.sameValue(result.enumerable, false); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js index 41ea3103f7c2be0b52fa305d3418503b6e590296..79694d89abe83947a6d3c8f0bf55412ae1a15205 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js @@ -22,8 +22,7 @@ var result = Reflect.getOwnPropertyDescriptor(o1, 'p'); assert( compareArray( - Object.keys(result), - ['value', 'writable', 'enumerable', 'configurable'] + Object.keys(result), ['value', 'writable', 'enumerable', 'configurable'] ) ); assert.sameValue(result.value, 'foo'); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js index 7332d0ba5b2855df4c32d3a1273d576e78aee5a2..4967736134389bdd2c1cb8d4c06aebc375b48d38 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js @@ -29,8 +29,7 @@ var result = Reflect.getOwnPropertyDescriptor(o, s); assert( compareArray( - Object.keys(result), - ['value', 'writable', 'enumerable', 'configurable'] + Object.keys(result), ['value', 'writable', 'enumerable', 'configurable'] ) ); assert.sameValue(result.value, 42); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js index 6de0bd7e59bd2066eda58f45324c9008fc9a0746..0f97d52c54e615a05cd2736928d7d45e69d71657 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js @@ -17,7 +17,9 @@ info: | 1. If Desc is undefined, return undefined. ---*/ -var o = Object.create({p: 1}); +var o = Object.create({ + p: 1 +}); var result = Reflect.getOwnPropertyDescriptor(o, 'p'); assert.sameValue(result, undefined); diff --git a/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js b/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js index 7532b4ade935e91a3a165e95a6e900faaaa58c28..f035cb328d1c2644d5b3dcdc597cbe3a85e923ef 100644 --- a/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js +++ b/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js @@ -13,7 +13,10 @@ info: | var valid = {}; var o = Object.create(valid, { - prototype: {value: 'invalid', enumerable: true} + prototype: { + value: 'invalid', + enumerable: true + } }); assert.sameValue( diff --git a/test/built-ins/Reflect/has/return-boolean.js b/test/built-ins/Reflect/has/return-boolean.js index 7d971705b1d3886ea1c2720274fa026b247a3585..6b74da5f578713ed708228d225629c914d19a875 100644 --- a/test/built-ins/Reflect/has/return-boolean.js +++ b/test/built-ins/Reflect/has/return-boolean.js @@ -33,5 +33,7 @@ assert.sameValue( 'false when property is not present' ); -var o2 = Object.create({p: 42}); +var o2 = Object.create({ + p: 42 +}); assert.sameValue(Reflect.has(o2, 'p'), true, 'true from a prototype property'); diff --git a/test/built-ins/Reflect/ownKeys/return-empty-array.js b/test/built-ins/Reflect/ownKeys/return-empty-array.js index e2ca63512744a07c4081bdbcff1035323baf5cfd..103875e680b430e94d8df73eddf8997ce0e782b5 100644 --- a/test/built-ins/Reflect/ownKeys/return-empty-array.js +++ b/test/built-ins/Reflect/ownKeys/return-empty-array.js @@ -16,6 +16,8 @@ includes: [compareArray.js] assert(compareArray(Reflect.ownKeys({}), [])); -var o = {d: 42}; +var o = { + d: 42 +}; delete o.d; assert(compareArray(Reflect.ownKeys(o), [])); diff --git a/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js b/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js index f3eab256eeb058bd35c0a4a4ce438f40fd704b7b..282b90baae4f6f66db7202be3909914575dab5b1 100644 --- a/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js +++ b/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js @@ -20,7 +20,7 @@ assert( ); assert( - compareArray(Reflect.ownKeys([,,2]), ['2', 'length']), + compareArray(Reflect.ownKeys([, , 2]), ['2', 'length']), 'return array keys' ); diff --git a/test/built-ins/Reflect/set/creates-a-data-descriptor.js b/test/built-ins/Reflect/set/creates-a-data-descriptor.js index bed865533a181689c7cae642aab5b6b37ef22582..8b99a236b142b6eed680318dd81a419c02bf2486 100644 --- a/test/built-ins/Reflect/set/creates-a-data-descriptor.js +++ b/test/built-ins/Reflect/set/creates-a-data-descriptor.js @@ -75,4 +75,3 @@ assert.sameValue( verifyWritable(receiver, 'p'); verifyEnumerable(receiver, 'p'); verifyConfigurable(receiver, 'p'); - diff --git a/test/built-ins/Reflect/set/different-property-descriptors.js b/test/built-ins/Reflect/set/different-property-descriptors.js index 191c1c21e9ec543fb1ae1ceb69c79dd25e1ba1d4..fab96a084e22ec6aebd3a68f2465479cfd614ce9 100644 --- a/test/built-ins/Reflect/set/different-property-descriptors.js +++ b/test/built-ins/Reflect/set/different-property-descriptors.js @@ -52,7 +52,9 @@ assert.sameValue( ); assert.sameValue(o1.hasOwnProperty('p'), false, 'target.p is not set'); -var o2 = {p: 43}; +var o2 = { + p: 43 +}; result = Reflect.set(o2, 'p', 42, receiver); assert.sameValue( result, false, diff --git a/test/built-ins/Reflect/set/receiver-is-not-object.js b/test/built-ins/Reflect/set/receiver-is-not-object.js index b3f32bac604db0abe3206e2b62bbf2d7ddc4164a..bbabeddb3c742df667550eec4095101dc142743f 100644 --- a/test/built-ins/Reflect/set/receiver-is-not-object.js +++ b/test/built-ins/Reflect/set/receiver-is-not-object.js @@ -29,7 +29,9 @@ info: | ... ---*/ -var o1 = {p: 42}; +var o1 = { + p: 42 +}; var receiver = 'receiver is a string'; var result = Reflect.set(o1, 'p', 43, receiver); diff --git a/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js b/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js index 4f820eb4a3cb49047169ea2da0342853ae4470f1..9f484da63127b33ab5824e745e16c9df4ef730e8 100644 --- a/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js +++ b/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js @@ -42,4 +42,3 @@ assert.sameValue( assert.sameValue(args.length, 1, 'target.p set is called with 1 argument'); assert.sameValue(args[0], 42, 'target.p set is called with V'); assert.sameValue(count, 1, 'target.p set is called once'); - diff --git a/test/built-ins/Reflect/set/set-value-on-data-descriptor.js b/test/built-ins/Reflect/set/set-value-on-data-descriptor.js index 3d8291cb25203300b4e0a8b00ec47d6065215d85..6aeaaa2f44f98a7c9ea44aec938d1f813ef1bd01 100644 --- a/test/built-ins/Reflect/set/set-value-on-data-descriptor.js +++ b/test/built-ins/Reflect/set/set-value-on-data-descriptor.js @@ -30,7 +30,9 @@ info: | ... ---*/ -var o1 = {p: 43}; +var o1 = { + p: 43 +}; var result = Reflect.set(o1, 'p', 42); assert.sameValue(result, true, 'returns true on a successful setting'); assert.sameValue( @@ -38,8 +40,12 @@ assert.sameValue( 'sets the new value' ); -var o2 = {p: 43}; -var receiver = {p: 44}; +var o2 = { + p: 43 +}; +var receiver = { + p: 44 +}; var result = Reflect.set(o2, 'p', 42, receiver); assert.sameValue(result, true, 'returns true on a successful setting'); assert.sameValue(o2.p, 43, 'with a receiver, does not set a value on target'); diff --git a/test/built-ins/RegExp/S15.10.1_A1_T1.js b/test/built-ins/RegExp/S15.10.1_A1_T1.js index f9c79821dad34bdc264e78c4bd6812cc00334aa0..6e905fc606df740ba0fdcd1654c1f889ddbc22fc 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T1.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a**" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**"))); + $ERROR('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**"))); } catch (e) { - if ((e instanceof SyntaxError !== true)) { - $ERROR('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError !== true)) { + $ERROR('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T10.js b/test/built-ins/RegExp/S15.10.1_A1_T10.js index 624547011a1cc06ab8345b393960a83a3f1dd6b4..8245cb8dd68b404946f26eeeef6b318e5bb39bf7 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T10.js @@ -9,9 +9,9 @@ description: Tested RegExp is "++a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a"))); + $ERROR('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T11.js b/test/built-ins/RegExp/S15.10.1_A1_T11.js index fc9c257903d0232bf25b3e67473aa12c74a93b8f..1aabb2cc0bad0b43bd839b0b5faea1c137380ed2 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T11.js @@ -9,9 +9,9 @@ description: Tested RegExp is "?a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a"))); + $ERROR('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T12.js b/test/built-ins/RegExp/S15.10.1_A1_T12.js index cfaa01bbfb7884a2759d8616e55fe610a8f93b45..ca7a56f73fa263fe583802c061489dc84cf5e0ea 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T12.js @@ -9,9 +9,9 @@ description: Tested RegExp is "??a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a"))); + $ERROR('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T13.js b/test/built-ins/RegExp/S15.10.1_A1_T13.js index 44d78f511e881a737393c22b5f75eb7b03772852..676dda30e0a4d2741ea3af969a9239939af89f6c 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T13.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T13.js @@ -9,9 +9,9 @@ description: Tested RegExp is "x{1}{1,}" //CHECK#1 try { - $ERROR('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}"))); + $ERROR('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T14.js b/test/built-ins/RegExp/S15.10.1_A1_T14.js index bd04b4980735b2f8a2b5fe5386215ad0f7438bdd..034688f20403c6d6975675f0822195744bff6a88 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T14.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T14.js @@ -9,9 +9,9 @@ description: Tested RegExp is "x{1,2}{1}" //CHECK#1 try { - $ERROR('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}"))); + $ERROR('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T15.js b/test/built-ins/RegExp/S15.10.1_A1_T15.js index 246027320f2efb861ff43b024bae28754b1f728b..f114cbe20bbdc9f2050cd43ca8a6f591ffe6427a 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T15.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T15.js @@ -9,9 +9,9 @@ description: Tested RegExp is "x{1,}{1}" //CHECK#1 try { - $ERROR('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}"))); + $ERROR('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T16.js b/test/built-ins/RegExp/S15.10.1_A1_T16.js index 0b27a884500184a3303beee2ed26f43f20916920..38608055197c6e07a719c5b51e74df1eef203199 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T16.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T16.js @@ -9,9 +9,9 @@ description: Tested RegExp is "x{0,1}{1,}" //CHECK#1 try { - $ERROR('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}"))); + $ERROR('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T2.js b/test/built-ins/RegExp/S15.10.1_A1_T2.js index d461df5c2064b8a6245d22fb36b4bec55eef5914..da514d132bc0d63107acb661460e029c99ae1807 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T2.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a***" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***"))); + $ERROR('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T3.js b/test/built-ins/RegExp/S15.10.1_A1_T3.js index 5d3eb8afa13f4f0c1f599ce6bcefb9b8717e755c..3a10610e23848049d5af54af2cfc5fa278a3cdd5 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T3.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a++" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++"))); + $ERROR('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T4.js b/test/built-ins/RegExp/S15.10.1_A1_T4.js index 3be64a51cb6434d8811ab94a2fa576d71b6179d3..d8050b7632a15bd89db815fddab631ebc7fc752f 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T4.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a+++" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++"))); + $ERROR('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T5.js b/test/built-ins/RegExp/S15.10.1_A1_T5.js index 58130c947cbf6d7d7b13fd05b66693f0d335a92a..fde444c9a5f7e9baf3e1b42ccc71c9e99399b6c6 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T5.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a???" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???"))); + $ERROR('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T6.js b/test/built-ins/RegExp/S15.10.1_A1_T6.js index 68be6d283a4150e849745f40ea9b7a51feb90cfe..f926b910a9d7d989ceca0d347e020f1dc41a150f 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T6.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a????" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????"))); + $ERROR('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T7.js b/test/built-ins/RegExp/S15.10.1_A1_T7.js index adfd0967a50ab5cacb4741da5cb87b312a4af1ef..b3641bfbecb02a9717f230bd922e6d601a6b3421 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T7.js @@ -9,9 +9,9 @@ description: Tested RegExp is "*a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a"))); + $ERROR('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T8.js b/test/built-ins/RegExp/S15.10.1_A1_T8.js index 1d3e53b57e16e8cfb9560a3fec95ac8b0980109e..69ef89717cc751787153ea6c8e4ba203f5a7136b 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T8.js @@ -9,9 +9,9 @@ description: Tested RegExp is "**a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a"))); + $ERROR('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T9.js b/test/built-ins/RegExp/S15.10.1_A1_T9.js index 91cbdc7f9b3d920161102563682b06706fba3667..d39c4b6b9183bd4344114b48bd2138cd5920f552 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T9.js @@ -9,9 +9,9 @@ description: Tested RegExp is "+a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a"))); + $ERROR('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js index a12c544b13c2e10e821a19e4a095041328947768..405e199a7e8fea5c7b7f62d39134a86cd53340c1 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js @@ -8,10 +8,10 @@ description: "ControlLetter :: A - Z" ---*/ //CHECK#0041-005A -var result = true; +var result = true; for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { var str = String.fromCharCode(alpha % 32); - var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str); + var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js index c2fb1bd6ecdc3f5af45aca377c4f55ac63b399a1..746fdf093ddc285869664b76769d031d318805d0 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js @@ -8,10 +8,10 @@ description: "ControlLetter :: a - z" ---*/ //CHECK#0061-007A -var result = true; +var result = true; for (var alpha = 0x0061; alpha <= 0x007A; alpha++) { var str = String.fromCharCode(alpha % 32); - var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str); + var arr = (new RegExp("\\c" + String.fromCharCode(alpha))).exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js index 3a7049b7241b432bd32622832602ea3d4871be08..0dae484f955dafc8cf5d893f7051d3abc2dcf8d4 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js @@ -8,25 +8,25 @@ description: Tested string include equal unicode symbols ---*/ //CHECK#0 -var arr = /\x00/.exec("\u0000"); +var arr = /\x00/.exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { $ERROR('#0: var arr = /\\x00/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } //CHECK#1 -var arr = /\x01/.exec("\u0001"); +var arr = /\x01/.exec("\u0001"); if ((arr === null) || (arr[0] !== "\u0001")) { $ERROR('#1: var arr = /\\x01/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0])); } //CHECK#2 -var arr = /\x0A/.exec("\u000A"); +var arr = /\x0A/.exec("\u000A"); if ((arr === null) || (arr[0] !== "\u000A")) { $ERROR('#2: var arr = /\\x0A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0])); } //CHECK#3 -var arr = /\xFF/.exec("\u00FF"); +var arr = /\xFF/.exec("\u00FF"); if ((arr === null) || (arr[0] !== "\u00FF")) { $ERROR('#3: var arr = /\\xFF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js index 3f99f9eefafa583346a571549b7f0b0f2aa5bcb5..fdd2fa800ec02a34092cdcb46de212e545c08b68 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js @@ -12,7 +12,7 @@ var hex = ["\\x41", "\\x42", "\\x43", "\\x44", "\\x45", "\\x46", "\\x47", "\\x48 var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; var result = true; for (var index = 0; index < hex.length; index++) { - var arr = (new RegExp(hex[index])).exec(character[index]); + var arr = (new RegExp(hex[index])).exec(character[index]); if ((arr === null) || (arr[0] !== character[index])) { result = false; } @@ -20,14 +20,14 @@ for (var index = 0; index < hex.length; index++) { if (result !== true) { $ERROR('#1: ENGLISH CAPITAL ALPHABET'); -} +} //CHECK#61-7A hex = ["\\x61", "\\x62", "\\x63", "\\x64", "\\x65", "\\x66", "\\x67", "\\x68", "\\x69", "\\x6A", "\\x6B", "\\x6C", "\\x6D", "\\x6E", "\\x6F", "\\x70", "\\x71", "\\x72", "\\x73", "\\x74", "\\x75", "\\x76", "\\x77", "\\x78", "\\x79", "\\x7A"]; character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; var result = true; for (index = 0; index < hex.length; index++) { - arr = (new RegExp(hex[index])).exec(character[index]); + arr = (new RegExp(hex[index])).exec(character[index]); if ((arr === null) || (arr[0] !== character[index])) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js index 3d84b921639f26ad48d4392992537a871ccc9164..6d1b5d627408b7714f3bc1aaa16393876740df61 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js @@ -10,37 +10,37 @@ description: RegExp and tested string include uncode symbols ---*/ //CHECK#0 -var arr = /\u0000/.exec("\u0000"); +var arr = /\u0000/.exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { $ERROR('#0: var arr = /\\u0000/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } //CHECK#1 -var arr = /\u0001/.exec("\u0001"); +var arr = /\u0001/.exec("\u0001"); if ((arr === null) || (arr[0] !== "\u0001")) { $ERROR('#1: var arr = /\\u0001/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0])); } //CHECK#2 -var arr = /\u000A/.exec("\u000A"); +var arr = /\u000A/.exec("\u000A"); if ((arr === null) || (arr[0] !== "\u000A")) { $ERROR('#2: var arr = /\\u000A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0])); } //CHECK#3 -var arr = /\u00FF/.exec("\u00FF"); +var arr = /\u00FF/.exec("\u00FF"); if ((arr === null) || (arr[0] !== "\u00FF")) { $ERROR('#3: var arr = /\\u00FF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0])); } //CHECK#4 -var arr = /\u0FFF/.exec("\u0FFF"); +var arr = /\u0FFF/.exec("\u0FFF"); if ((arr === null) || (arr[0] !== "\u0FFF")) { $ERROR('#4: var arr = /\\u0FFF/.exec(\\u0FFF); arr[0] === "\\u0FFF". Actual. ' + (arr && arr[0])); } //CHECK#5 -var arr = /\uFFFF/.exec("\uFFFF"); +var arr = /\uFFFF/.exec("\uFFFF"); if ((arr === null) || (arr[0] !== "\uFFFF")) { $ERROR('#5: var arr = /\\uFFFF/.exec(\\uFFFF); arr[0] === "\\uFFFF". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js index 0e0ed3092c9fc32b5eb4cc3339c0b3ac790270ce..d7dfb0fd0180860a22a8671abeb56db019fb32b6 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js @@ -16,7 +16,7 @@ var hex = ["\\u0041", "\\u0042", "\\u0043", "\\u0044", "\\u0045", "\\u0046", "\\ var character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; var result = true; for (var index = 0; index < hex.length; index++) { - var arr = (new RegExp(hex[index])).exec(character[index]); + var arr = (new RegExp(hex[index])).exec(character[index]); if ((arr === null) || (arr[0] !== character[index])) { result = false; } @@ -24,14 +24,14 @@ for (var index = 0; index < hex.length; index++) { if (result !== true) { $ERROR('#1: ENGLISH CAPITAL ALPHABET'); -} +} //CHECK#61-7A hex = ["\\u0061", "\\u0062", "\\u0063", "\\u0064", "\\u0065", "\\u0066", "\\u0067", "\\u0068", "\\u0069", "\\u006A", "\\u006B", "\\u006C", "\\u006D", "\\u006E", "\\u006F", "\\u0070", "\\u0071", "\\u0072", "\\u0073", "\\u0074", "\\u0075", "\\u0076", "\\u0077", "\\u0078", "\\u0079", "\\u007A"]; character = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; var result = true; for (index = 0; index < hex.length; index++) { - arr = (new RegExp(hex[index])).exec(character[index]); + arr = (new RegExp(hex[index])).exec(character[index]); if ((arr === null) || (arr[0] !== character[index])) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js index 0b2c0e38add637771c711c7ed1302645a89bc2f8..f6f418d72b701bafd70daf4830e1e96e24cda3ab 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js @@ -16,7 +16,7 @@ var hex = ["\\u0410", "\\u0411", "\\u0412", "\\u0413", "\\u0414", "\\u0415", "\\ var character = ["\u0410", "\u0411", "\u0412", "\u0413", "\u0414", "\u0415", "\u0416", "\u0417", "\u0418", "\u0419", "\u041A", "\u041B", "\u041C", "\u041D", "\u041E", "\u041F", "\u0420", "\u0421", "\u0422", "\u0423", "\u0424", "\u0425", "\u0426", "\u0427", "\u0428", "\u0429", "\u042A", "\u042B", "\u042C", "\u042D", "\u042E", "\u042F", "\u0401"]; var result = true; for (var index = 0; index < hex.length; index++) { - var arr = (new RegExp(hex[index])).exec(character[index]); + var arr = (new RegExp(hex[index])).exec(character[index]); if ((arr === null) || (arr[0] !== character[index])) { result = false; } @@ -24,14 +24,14 @@ for (var index = 0; index < hex.length; index++) { if (result !== true) { $ERROR('#1: RUSSIAN CAPITAL ALPHABET'); -} +} //CHECK#0430-044F, 0451 hex = ["\\u0430", "\\u0431", "\\u0432", "\\u0433", "\\u0434", "\\u0435", "\\u0436", "\\u0437", "\\u0438", "\\u0439", "\\u043A", "\\u043B", "\\u043C", "\\u043D", "\\u043E", "\\u043F", "\\u0440", "\\u0441", "\\u0442", "\\u0443", "\\u0444", "\\u0445", "\\u0446", "\\u0447", "\\u0448", "\\u0449", "\\u044A", "\\u044B", "\\u044C", "\\u044D", "\\u044E", "\\u044F", "\\u0451"]; character = ["\u0430", "\u0431", "\u0432", "\u0433", "\u0434", "\u0435", "\u0436", "\u0437", "\u0438", "\u0439", "\u043A", "\u043B", "\u043C", "\u043D", "\u043E", "\u043F", "\u0440", "\u0441", "\u0442", "\u0443", "\u0444", "\u0445", "\u0446", "\u0447", "\u0448", "\u0449", "\u044A", "\u044B", "\u044C", "\u044D", "\u044E", "\u044F", "\u0451"]; var result = true; for (index = 0; index < hex.length; index++) { - arr = (new RegExp(hex[index])).exec(character[index]); + arr = (new RegExp(hex[index])).exec(character[index]); if ((arr === null) || (arr[0] !== character[index])) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T1.js b/test/built-ins/RegExp/S15.10.2.11_A1_T1.js index d60ab2f73b6c463db8e8e51c2ed8fc13542052da..935042ce22ca011afb9c1fc6135dacb0691953ee 100644 --- a/test/built-ins/RegExp/S15.10.2.11_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.11_A1_T1.js @@ -10,13 +10,13 @@ description: > ---*/ //CHECK#1 -var arr = /\0/.exec("\u0000"); +var arr = /\0/.exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { $ERROR('#1: var arr = /\\0/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } //CHECK#2 -var arr = (new RegExp("\\0")).exec("\u0000"); +var arr = (new RegExp("\\0")).exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { $ERROR('#2: var arr = (new RegExp("\\0")).exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T1.js b/test/built-ins/RegExp/S15.10.2.12_A1_T1.js index e08eafa6acab3047c55249021dec784c784d99eb..90f8b136d9ec1cacf6fbcfa5c3a7a1a311e9e997 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.12_A1_T1.js @@ -523,7 +523,9 @@ if (i62.replace(/\s+/g, "") !== o62) { var i63 = ""; for (var j = 64512; j < 65536; j++) { - if (j === 0xFEFF) { continue; } //Ignore BOM + if (j === 0xFEFF) { + continue; + } //Ignore BOM i63 += String.fromCharCode(j); } var o63 = i63; diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T2.js b/test/built-ins/RegExp/S15.10.2.12_A1_T2.js index 51f6443ad00dce10d92fb51e0de11b7be63a3f1e..144e903d42be94e18e4e702b4bf1f5262421e868 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.12_A1_T2.js @@ -19,13 +19,13 @@ if ((arr === null) || (arr[0] !== "\u000A")) { var arr = /\s/.exec("\u000D"); if ((arr === null) || (arr[0] !== "\u000D")) { $ERROR('#2: var arr = /\\s/.exec("\\u000D"); arr[0] === "\\u000D". Actual. ' + (arr && arr[0])); -} +} //CHECK#3 var arr = /\s/.exec("\u2028"); if ((arr === null) || (arr[0] !== "\u2028")) { $ERROR('#3: var arr = /\\s/.exec("\\u2028"); arr[0] === "\\u2028". Actual. ' + (arr && arr[0])); -} +} //CHECK#4 var arr = /\s/.exec("\u2029"); diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T3.js b/test/built-ins/RegExp/S15.10.2.12_A1_T3.js index 3ca8bb9b21a842dd774c54c989dbebfa260b77e7..7bb1112f9d22a51c45066db96de94c497cbcec59 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.12_A1_T3.js @@ -12,7 +12,7 @@ description: ENGLISH ALPHABET var regexp_s = /\s/; //CHECK#0041-005A -var result = true; +var result = true; for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { if (regexp_s.exec(String.fromCharCode(alpha)) !== null) { result = false; @@ -21,10 +21,10 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { if (result !== true) { $ERROR('#1: ENGLISH CAPITAL ALPHABET'); -} +} //CHECK#0061-007A -var result = true; +var result = true; for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (regexp_s.exec(String.fromCharCode(alpha)) !== null) { result = false; diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T4.js b/test/built-ins/RegExp/S15.10.2.12_A1_T4.js index a0f1f8a3f20268706480c805eb88338d36d9c8e6..bbf68f870f4deabd9bd08b836a2d86c7b10b00e5 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.12_A1_T4.js @@ -12,7 +12,7 @@ description: RUSSIAN ALPHABET var regexp_s = /\s/; //CHECK#0410-042F -var result = true; +var result = true; for (var alpha = 0x0410; alpha <= 0x042F; alpha++) { if (regexp_s.exec(String.fromCharCode(alpha)) !== null) { result = false; @@ -24,7 +24,7 @@ if (result !== true) { } //CHECK#0430-044F -var result = true; +var result = true; for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (regexp_s.exec(String.fromCharCode(alpha)) !== null) { result = false; diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T5.js b/test/built-ins/RegExp/S15.10.2.12_A1_T5.js index b3c13999301c2707ea35a8dd8cdecf6586d08187..dd3b18ba5ca2c11e66b88b29d69a2b77d943b87b 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.12_A1_T5.js @@ -15,7 +15,7 @@ description: > //CHECK#1 var non_s = "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"'; if (/\s/.exec(non_s) !== null) { - $ERROR('#1: non-s'); + $ERROR('#1: non-s'); } //CHECK#2 @@ -23,9 +23,9 @@ var non_S = '\f\n\r\t\v '; var regexp_s = /\s/g; var k = 0; while (regexp_s.exec(non_S) !== null) { - k++; + k++; } if (non_S.length !== k) { - $ERROR('#2: non-S'); + $ERROR('#2: non-S'); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T1.js b/test/built-ins/RegExp/S15.10.2.12_A2_T1.js index d89d603100fdd38c7f683a522fc64f32426219cd..0d2a442db91dabb9cbfa80f5d09f0250df076c28 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.12_A2_T1.js @@ -516,7 +516,9 @@ if (i62.replace(/\S+/g, "") !== o62) { var i63 = ""; for (var j = 0xFC00; j < 0x10000; j++) { - if (j === 0xFEFF) { continue; } //Ignore BOM + if (j === 0xFEFF) { + continue; + } //Ignore BOM i63 += String.fromCharCode(j); } var o63 = ""; diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T2.js b/test/built-ins/RegExp/S15.10.2.12_A2_T2.js index 4779d6aa309e99eb33867cebc6da30c3fc96dd0a..7c30b022bb85e452043ba159e713b92296b7ff8b 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.12_A2_T2.js @@ -20,13 +20,13 @@ if (arr !== null) { var arr = /\S/.exec("\u000D"); if (arr !== null) { $ERROR('#2: var arr = /\\S/.exec("\\u000D"); arr[0] === "\\u000D". Actual. ' + (arr && arr[0])); -} +} //CHECK#3 var arr = /\S/.exec("\u2028"); if (arr !== null) { $ERROR('#3: var arr = /\\S/.exec("\\u2028"); arr[0] === "\\u2028". Actual. ' + (arr && arr[0])); -} +} //CHECK#4 var arr = /\S/.exec("\u2029"); diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T3.js b/test/built-ins/RegExp/S15.10.2.12_A2_T3.js index d86881a26523feea1cd1dff566b96b24f42f6a6d..23b859f61061606bfe0d3ccd8db70e5021ac0af7 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.12_A2_T3.js @@ -16,7 +16,7 @@ var regexp_S = /\S/; var result = true; for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { var str = String.fromCharCode(alpha); - var arr = regexp_S.exec(str); + var arr = regexp_S.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } @@ -24,13 +24,13 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { if (result !== true) { $ERROR('#1: ENGLISH CAPITAL ALPHABET'); -} +} //CHECK#0061-007A -var result = true; +var result = true; for (alpha = 0x0061; alpha <= 0x007A; alpha++) { str = String.fromCharCode(alpha); - arr = regexp_S.exec(str); + arr = regexp_S.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T4.js b/test/built-ins/RegExp/S15.10.2.12_A2_T4.js index be9a87442b87421f87a2ccebcf8a1aa2558b0247..f2351097700b9204e96a1d8089f396ad96de51c1 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.12_A2_T4.js @@ -13,10 +13,10 @@ description: RUSSIAN ALPHABET var regexp_S = /\S/; //CHECK#0410-042F -var result = true; +var result = true; for (var alpha = 0x0410; alpha <= 0x042F; alpha++) { var str = String.fromCharCode(alpha); - var arr = regexp_S.exec(str); + var arr = regexp_S.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } @@ -27,10 +27,10 @@ if (result !== true) { } //CHECK#0430-044F -var result = true; +var result = true; for (alpha = 0x0430; alpha <= 0x044F; alpha++) { str = String.fromCharCode(alpha); - arr = regexp_S.exec(str); + arr = regexp_S.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T5.js b/test/built-ins/RegExp/S15.10.2.12_A2_T5.js index ef1284ea080b4f3a748d327b7e2df1495829f724..864e99d4859a8af7f6486c8491994789bb845aaf 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A2_T5.js +++ b/test/built-ins/RegExp/S15.10.2.12_A2_T5.js @@ -18,15 +18,15 @@ var non_s = "0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ~`!@ var regexp_S = /\S/g; var k = 0; while (regexp_S.exec(non_s) !== null) { - k++; + k++; } if (non_s.length !== k) { - $ERROR('#1: non-s'); -} + $ERROR('#1: non-s'); +} //CHECK#2 var non_S = '\f\n\r\t\v '; if (/\S/.exec(non_S) !== null) { - $ERROR('#2: non-S'); + $ERROR('#2: non-S'); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T2.js b/test/built-ins/RegExp/S15.10.2.12_A3_T2.js index 2a868ee15953ac2e92c2f39bcc26d81ae56ef82b..d5450cdb4039777b3914d31df7550fbca81009b1 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.12_A3_T2.js @@ -12,10 +12,10 @@ description: a - z var regexp_w = /\w/; //CHECK#0061-007A -var result = true; +var result = true; for (var alpha = 0x0061; alpha <= 0x007A; alpha++) { var str = String.fromCharCode(alpha); - var arr = regexp_w.exec(str); + var arr = regexp_w.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T3.js b/test/built-ins/RegExp/S15.10.2.12_A3_T3.js index b11e5b46f4c2b1b2096c74356aa264ab0b598377..e46e495ea7e703c39a2c656b015719113ff9d329 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.12_A3_T3.js @@ -12,10 +12,10 @@ description: 0 - 9, _ var regexp_w = /\w/; //CHECK#0030-0039 -var result = true; +var result = true; for (var alpha = 0x0030; alpha <= 0x0039; alpha++) { var str = String.fromCharCode(alpha); - var arr = regexp_w.exec(str); + var arr = regexp_w.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } @@ -26,7 +26,7 @@ if (result !== true) { } //CHECK#005F -var arr = regexp_w.exec("_"); +var arr = regexp_w.exec("_"); if ((arr === null) || (arr[0] !== "\u005F")) { $ERROR('#2: _'); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T4.js b/test/built-ins/RegExp/S15.10.2.12_A3_T4.js index 3e7157c58a79297fc3d2b6a3feb6d1ff707c0fd4..aedc5aa2f7975eca2038ffc2413ded4a1140820d 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.12_A3_T4.js @@ -12,7 +12,7 @@ description: RUSSIAN ALPHABET var regexp_w = /\w/; //CHECK#0410-042F -var result = true; +var result = true; for (var alpha = 0x0410; alpha <= 0x042F; alpha++) { if (regexp_w.exec(String.fromCharCode(alpha)) !== null) { result = false; @@ -24,7 +24,7 @@ if (result !== true) { } //CHECK#0430-044F -var result = true; +var result = true; for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (regexp_w.exec(String.fromCharCode(alpha)) !== null) { result = false; diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T5.js b/test/built-ins/RegExp/S15.10.2.12_A3_T5.js index e0b1289c2a808765fdf2bb81ee526b309b010139..6f8eed6ed355ccc52a84d11d8c1916ae3f84c68f 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.2.12_A3_T5.js @@ -12,7 +12,7 @@ description: non-w //CHECK#1 var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"'; if (/\w/.exec(non_w) !== null) { - $ERROR('#1: non-w'); + $ERROR('#1: non-w'); } //CHECK#2 @@ -20,9 +20,9 @@ var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; var regexp_w = /\w/g; var k = 0; while (regexp_w.exec(non_W) !== null) { - k++; + k++; } if (non_W.length !== k) { - $ERROR('#2: non-W'); + $ERROR('#2: non-W'); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T2.js b/test/built-ins/RegExp/S15.10.2.12_A4_T2.js index fea5d3b20c19cd8564a16b322d43d820f25c576b..003de301d731423331f303bc7edc995d0e3c4bac 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A4_T2.js +++ b/test/built-ins/RegExp/S15.10.2.12_A4_T2.js @@ -12,7 +12,7 @@ description: a - z var regexp_W = /\W/; //CHECK#0061-007A -var result = true; +var result = true; for (var alpha = 0x0061; alpha <= 0x007A; alpha++) { if (regexp_W.exec(String.fromCharCode(alpha)) !== null) { result = false; diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T3.js b/test/built-ins/RegExp/S15.10.2.12_A4_T3.js index 7980c5a22dcedfd8407766400bfcfa22759689e5..e8a2b2abfd8cd42595ecc11384e20a565ae06849 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A4_T3.js +++ b/test/built-ins/RegExp/S15.10.2.12_A4_T3.js @@ -12,7 +12,7 @@ description: 0 - 9 var regexp_W = /\W/; //CHECK#0030-0039 -var result = true; +var result = true; for (var alpha = 0x0030; alpha <= 0x0039; alpha++) { if (regexp_W.exec(String.fromCharCode(alpha)) !== null) { result = false; @@ -29,7 +29,7 @@ if (regexp_W.exec("_") !== null) { } //CHECK#0020 -var arr = regexp_W.exec(" "); +var arr = regexp_W.exec(" "); if ((arr === null) || (arr[0] !== "\u0020")) { $ERROR('#2: '); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T4.js b/test/built-ins/RegExp/S15.10.2.12_A4_T4.js index 305ba64c7c20818bead15aad33348fd79a6432cb..12305f94d3f8723706098d9b3127f825d86d8900 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.2.12_A4_T4.js @@ -12,10 +12,10 @@ description: RUSSIAN ALPHABET var regexp_W = /\W/; //CHECK#0410-042F -var result = true; +var result = true; for (var alpha = 0x0410; alpha <= 0x042F; alpha++) { var str = String.fromCharCode(alpha); - var arr = regexp_W.exec(str); + var arr = regexp_W.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } @@ -26,10 +26,10 @@ if (result !== true) { } //CHECK#0430-044F -var result = true; +var result = true; for (alpha = 0x0430; alpha <= 0x044F; alpha++) { str = String.fromCharCode(alpha); - arr = regexp_W.exec(str); + arr = regexp_W.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T5.js b/test/built-ins/RegExp/S15.10.2.12_A4_T5.js index e1113ee2a5553ddbbd837bdc84a58da6e558d511..c99a80f5fbd9d0feaf125b69427418c96c4ef3d4 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.2.12_A4_T5.js @@ -14,15 +14,15 @@ var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"'; var regexp_W = /\W/g; var k = 0; while (regexp_W.exec(non_w) !== null) { - k++; + k++; } if (non_w.length !== k) { - $ERROR('#1: non-w'); + $ERROR('#1: non-w'); } //CHECK#2 var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; if (/\W/.exec(non_W) !== null) { - $ERROR('#2: non-W'); + $ERROR('#2: non-W'); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A5_T2.js b/test/built-ins/RegExp/S15.10.2.12_A5_T2.js index f8497c56c5e0d4bbb1d26dd626dd9a7ce83a0c52..4ccf17afd3238a2a7d77574e53a199af719dc112 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A5_T2.js +++ b/test/built-ins/RegExp/S15.10.2.12_A5_T2.js @@ -13,7 +13,7 @@ description: ENGLISH ALPHABET var regexp_d = /\d/; //CHECK#0041-005A -var result = true; +var result = true; for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { if (regexp_d.exec(String.fromCharCode(alpha)) !== null) { result = false; @@ -22,10 +22,10 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { if (result !== true) { $ERROR('#1: ENGLISH CAPITAL ALPHABET'); -} +} //CHECK#0061-007A -var result = true; +var result = true; for (alpha = 0x0061; alpha <= 0x007A; alpha++) { if (regexp_d.exec(String.fromCharCode(alpha)) !== null) { result = false; diff --git a/test/built-ins/RegExp/S15.10.2.12_A5_T3.js b/test/built-ins/RegExp/S15.10.2.12_A5_T3.js index bd91138b40ea7002799c1ba22e7a727bd43e0959..4a4f3f3975929748406a87672e00a0e6c67918cb 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A5_T3.js +++ b/test/built-ins/RegExp/S15.10.2.12_A5_T3.js @@ -13,7 +13,7 @@ description: RUSSIAN ALPHABET var regexp_d = /\d/; //CHECK#0410-042F -var result = true; +var result = true; for (var alpha = 0x0410; alpha <= 0x042F; alpha++) { if (regexp_d.exec(String.fromCharCode(alpha)) !== null) { result = false; @@ -25,7 +25,7 @@ if (result !== true) { } //CHECK#0430-044F -var result = true; +var result = true; for (alpha = 0x0430; alpha <= 0x044F; alpha++) { if (regexp_d.exec(String.fromCharCode(alpha)) !== null) { result = false; diff --git a/test/built-ins/RegExp/S15.10.2.12_A5_T4.js b/test/built-ins/RegExp/S15.10.2.12_A5_T4.js index fa41866076cced4e0f162c8a5d3daad9a8b2787b..7322d0c0045218f1fc7badcecc7f16a2d392e839 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A5_T4.js +++ b/test/built-ins/RegExp/S15.10.2.12_A5_T4.js @@ -13,7 +13,7 @@ description: non-d //CHECK#1 var non_d = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"'; if (/\d/.exec(non_d) !== null) { - $ERROR('#1: non-d'); + $ERROR('#1: non-d'); } //CHECK#2 @@ -21,9 +21,9 @@ var non_D = '0123456789'; var regexp_d = /\d/g; var k = 0; while (regexp_d.exec(non_D) !== null) { - k++; + k++; } if (non_D.length !== k) { - $ERROR('#2: non-D'); + $ERROR('#2: non-D'); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A6_T2.js b/test/built-ins/RegExp/S15.10.2.12_A6_T2.js index 3cc2a104d41a4f0010acac08a1eb60fcd32fe8a2..4175862ddc9143848e14936bf8a4b982d99db65b 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A6_T2.js +++ b/test/built-ins/RegExp/S15.10.2.12_A6_T2.js @@ -12,10 +12,10 @@ description: ENGLISH ALPHABET var regexp_D = /\D/; //CHECK#0041-005A -var result = true; +var result = true; for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { var str = String.fromCharCode(alpha); - var arr = regexp_D.exec(str); + var arr = regexp_D.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } @@ -23,13 +23,13 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { if (result !== true) { $ERROR('#1: ENGLISH CAPITAL ALPHABET'); -} +} //CHECK#0061-007A -var result = true; +var result = true; for (alpha = 0x0061; alpha <= 0x007A; alpha++) { str = String.fromCharCode(alpha); - arr = regexp_D.exec(str); + arr = regexp_D.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.12_A6_T3.js b/test/built-ins/RegExp/S15.10.2.12_A6_T3.js index c0bfe30ee5ee01dd58dcdeb7db8f3de37d59342c..ba3b8babc60067c3bbfa7b3e116991b19456a163 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A6_T3.js +++ b/test/built-ins/RegExp/S15.10.2.12_A6_T3.js @@ -12,10 +12,10 @@ description: RUSSIAN ALPHABET var regexp_D = /\D/; //CHECK#0410-042F -var result = true; +var result = true; for (var alpha = 0x0410; alpha <= 0x042F; alpha++) { var str = String.fromCharCode(alpha); - var arr = regexp_D.exec(str); + var arr = regexp_D.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } @@ -26,10 +26,10 @@ if (result !== true) { } //CHECK#0430-044F -var result = true; +var result = true; for (alpha = 0x0430; alpha <= 0x044F; alpha++) { str = String.fromCharCode(alpha); - arr = regexp_D.exec(str); + arr = regexp_D.exec(str); if ((arr === null) || (arr[0] !== str)) { result = false; } diff --git a/test/built-ins/RegExp/S15.10.2.12_A6_T4.js b/test/built-ins/RegExp/S15.10.2.12_A6_T4.js index d40bae9a95f5577fe9446c07f33a2998bbecd66a..f1a0f50f8ca8fc660ce3030736055d3b5d4d0a53 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A6_T4.js +++ b/test/built-ins/RegExp/S15.10.2.12_A6_T4.js @@ -14,15 +14,15 @@ var non_d = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\f\n\r\t\v~`!@ var regexp_D = /\D/g; var k = 0; while (regexp_D.exec(non_d) !== null) { - k++; + k++; } if (non_d.length !== k) { - $ERROR('#1: non-d'); + $ERROR('#1: non-d'); } //CHECK#2 var non_d = '0123456789'; if (/\D/.exec(non_d) !== null) { - $ERROR('#2: non-d'); + $ERROR('#2: non-d'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T1.js b/test/built-ins/RegExp/S15.10.2.13_A1_T1.js index ad99d46040a428a1ae13c35035e9723fa9943417..3696b11975eb38b0137b294bfb8c1dc983703cf5 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T1.js @@ -13,6 +13,6 @@ description: Execute /[]a/.test("\0a\0a") and check results var __executed = /[]a/.test("\0a\0a");; //CHECK#1 - if (__executed) { - $ERROR('#1: /[]a/.test("\\0a\\0a") === false'); +if (__executed) { + $ERROR('#1: /[]a/.test("\\0a\\0a") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T10.js b/test/built-ins/RegExp/S15.10.2.13_A1_T10.js index 808957c8649ba1666c5cfdaf8403970ab7e4c9a5..3b88334a50485a10ee9a7b6849e164894291446f 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T10.js @@ -18,22 +18,22 @@ __expected.input = "\n\n\abc324234\n"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T11.js b/test/built-ins/RegExp/S15.10.2.13_A1_T11.js index bbc3eea3c5cbf1ff6211dc3ea7d6c05cf7cc6a78..0b1119f3beb8c4fe13a8c9ae1383497ec2887270 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T11.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ab[.]?c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /ab[.]?c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ab[.]?c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /ab[.]?c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ab[.]?c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /ab[.]?c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T12.js b/test/built-ins/RegExp/S15.10.2.13_A1_T12.js index 717f4e3a8eb98ce144bc9bc9a44ea88364c06d13..309b66274f6ff73b451e3df70bac1a9a478f8d48 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T12.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[b]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a[b]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[b]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a[b]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[b]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a[b]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T13.js b/test/built-ins/RegExp/S15.10.2.13_A1_T13.js index 118e97754fa731e922765eb45d40397172e061b8..ae2a047460832d0836dbc23a98a75fcddd387398 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T13.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T13.js @@ -20,22 +20,22 @@ __expected.input = "a1b b2c c3d def f4g"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T14.js b/test/built-ins/RegExp/S15.10.2.13_A1_T14.js index b072447884b8a1b8cb42b17bcc1d056516723d6e..ed751e113665f9f417e908ccc1c6bdfe1ef8d919 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T14.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T14.js @@ -18,22 +18,22 @@ __expected.input = "123*&$abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T15.js b/test/built-ins/RegExp/S15.10.2.13_A1_T15.js index b425136a75b245dce564984341546f6c610cc254..c4c792707ce48325239783b4031f0e33bd4cddff 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T15.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T15.js @@ -18,22 +18,22 @@ __expected.input = "line1\nline2"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T17.js b/test/built-ins/RegExp/S15.10.2.13_A1_T17.js index 8c56381a44fdea6dbcb8f0d9e17fc1b13bce0f8a..6bef4680bc5d7f40a11147660224f19676258f94 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T17.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T17.js @@ -14,5 +14,5 @@ var __executed = /[]/.exec("a[b\n[]\tc]d"); //CHECK#1 if (__executed !== null) { - $ERROR('#1: /[]/.exec("a[b\\n[]\\tc]d") === false'); + $ERROR('#1: /[]/.exec("a[b\\n[]\\tc]d") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T2.js b/test/built-ins/RegExp/S15.10.2.13_A1_T2.js index 7f1b7a8f3f350dd60d1fb894b0d143fb4c4eee5e..b71a8e2d0289f1f0b87d97a14c5e3ba67a75ffc7 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T2.js @@ -14,5 +14,5 @@ var __executed = /a[]/.test("\0a\0a");; //CHECK#1 if (__executed) { - $ERROR('#1: /a[]/.test("\\0a\\0a") === false'); + $ERROR('#1: /a[]/.test("\\0a\\0a") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T3.js b/test/built-ins/RegExp/S15.10.2.13_A1_T3.js index 1b65af0b9c786c2eb4ebe4cba72ad985070259b6..a746ec0fe5af5095a67a5d99c7abe784d9e56c17 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T3.js @@ -18,22 +18,22 @@ __expected.input = "qYqy "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T4.js b/test/built-ins/RegExp/S15.10.2.13_A1_T4.js index 5db2c8a2fae58933633178962401bb6ba35be348..45b63c0ba3007af4b4f68fe7e5175e5a77dc9d60 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T4.js @@ -18,22 +18,22 @@ __expected.input = "tqaqy "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T5.js b/test/built-ins/RegExp/S15.10.2.13_A1_T5.js index 1e146ed67f95416d834d9782d7469765d2cd34a6..cfe8a187ca442c1a3082cf00517cad7a98246d41 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T5.js @@ -18,22 +18,22 @@ __expected.input = "tqa\t qy "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T6.js b/test/built-ins/RegExp/S15.10.2.13_A1_T6.js index 41fa114e9bd10c9aca26a5298168a8d44683e374..6f72faa34afd3d98f7d7fbf13964988e0b24f33b 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T6.js @@ -18,22 +18,22 @@ __expected.input = "abcde"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ab[ercst]de/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /ab[ercst]de/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ab[ercst]de/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /ab[ercst]de/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ab[ercst]de/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /ab[ercst]de/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T7.js b/test/built-ins/RegExp/S15.10.2.13_A1_T7.js index 72b8f362ba5c1fed56355c3191a86f76a8ac839f..edb1e72172ad98d977047d1fd0f9250ff42cf0eb 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T7.js @@ -14,5 +14,5 @@ var __executed = /ab[erst]de/.test("abcde"); //CHECK#1 if (__executed) { - $ERROR('#1: /ab[erst]de/.test("abcde") === false'); + $ERROR('#1: /ab[erst]de/.test("abcde") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T8.js b/test/built-ins/RegExp/S15.10.2.13_A1_T8.js index 2e9192931a1671c081d8c56c90dcacf0df961095..19adb92ae5701accdefed1e89a5a040801136bc2 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T8.js @@ -18,22 +18,22 @@ __expected.input = "abcdefghijkl"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T9.js b/test/built-ins/RegExp/S15.10.2.13_A1_T9.js index 7ea19db2323a0cc6a3c01b9caff5d52cbee6c06d..7900c96675c1b1729766fb314260db5e9a6587d5 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T9.js @@ -18,22 +18,22 @@ __expected.input = "abc6defghijkl"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T1.js b/test/built-ins/RegExp/S15.10.2.13_A2_T1.js index b17d762c47a2d4c13cd9c175eafd8fefaf9eabca..decc349eeb295b8ef1b86e722bc8ed0ffa0f3136 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T1.js @@ -18,22 +18,22 @@ __expected.input = "a\naba"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^]a/m.exec("a\\naba"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^]a/m.exec("a\\naba"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^]a/m.exec("a\\naba"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^]a/m.exec("a\\naba"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^]a/m.exec("a\\naba"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^]a/m.exec("a\\naba"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T2.js b/test/built-ins/RegExp/S15.10.2.13_A2_T2.js index b5fa6aa780aa159ccf89bb9b6dfe67cde3a637f8..2e43ffef1750cf9ee2efeade98a3c7c79f977e61 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T2.js @@ -18,22 +18,22 @@ __expected.input = " a\t\n"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[^]/.exec(" a\\t\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a[^]/.exec(" a\\t\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[^]/.exec(" a\\t\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a[^]/.exec(" a\\t\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[^]/.exec(" a\\t\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a[^]/.exec(" a\\t\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T3.js b/test/built-ins/RegExp/S15.10.2.13_A2_T3.js index abe4f9e85cdc9291c73aa8ae726733b97a567000..b14bf9a833663e9c0383822d420c20cd8b5a7dea 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T3.js @@ -18,22 +18,22 @@ __expected.input = "ab an az aY n"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T4.js b/test/built-ins/RegExp/S15.10.2.13_A2_T4.js index a300eaf42f2336e96b99a1ae2bd0ed08909e890f..1ffeede3823607193eb1fdb45c10d655219b2f7e 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T4.js @@ -18,22 +18,22 @@ __expected.input = "easy\bto\u0008ride"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T5.js b/test/built-ins/RegExp/S15.10.2.13_A2_T5.js index 5a52eefb46dae8dcc6daed9e01e399f39cb826a0..cd90cf571913bbd5e47691016c72d6a775ff9b48 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T5.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T5.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[^1-9]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a[^1-9]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[^1-9]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a[^1-9]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[^1-9]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a[^1-9]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T6.js b/test/built-ins/RegExp/S15.10.2.13_A2_T6.js index ba59484a034e2198eb483032a71f245f4a00d6c4..88d00a8b852fb79ad3b6f2eea56233c60b1f2e91 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T6.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T6.js @@ -14,5 +14,5 @@ var __executed = /a[^b]c/.test("abc"); //CHECK#1 if (__executed) { - $ERROR('#1: /a[^b]c/.test("abc") === false'); + $ERROR('#1: /a[^b]c/.test("abc") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T7.js b/test/built-ins/RegExp/S15.10.2.13_A2_T7.js index b1f4c7f73a961dd83d4a5b6bf1c1351f0dfd27cb..4d362fd14a08d7a7402c69a7174fde5afed3675b 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T7.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T7.js @@ -18,22 +18,22 @@ __expected.input = "abc#$%def%&*@ghi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T8.js b/test/built-ins/RegExp/S15.10.2.13_A2_T8.js index ae78004355842802633ba0e5637ecede1d2f8b78..9cc3d5788fe86d18d2a97cfa1b4151edbbaa4a01 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T8.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T8.js @@ -18,22 +18,22 @@ __expected.input = "abc#$%def%&*@ghi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T1.js b/test/built-ins/RegExp/S15.10.2.13_A3_T1.js index 866a2190e19649c1433564bc954904973e14e696..be8039a237957eb3603a23a987841fad25421b97 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.13_A3_T1.js @@ -15,22 +15,22 @@ __expected.input = "abc\bdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T2.js b/test/built-ins/RegExp/S15.10.2.13_A3_T2.js index 4eb9e7140e3434f6aaf8624249495e313e215c75..f2c87ad1121d17bba0e6465a31265cdbbbac0d7c 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.13_A3_T2.js @@ -15,22 +15,22 @@ __expected.input = "abc\b\b\bdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T3.js b/test/built-ins/RegExp/S15.10.2.13_A3_T3.js index 6880d52e000ce214d09ca6dda16cf5a519c4e376..6984efbb69500fcaf3e79f27758db945f5daa501 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.13_A3_T3.js @@ -15,22 +15,22 @@ __expected.input = "abc\bdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T4.js b/test/built-ins/RegExp/S15.10.2.13_A3_T4.js index 9ddad9ee7eaec5764b554806131f11aa27e33d01..50803306b75c573c9982115422170b8a58fcc88b 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.13_A3_T4.js @@ -15,22 +15,22 @@ __expected.input = "abcdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T1.js b/test/built-ins/RegExp/S15.10.2.15_A1_T1.js index 8bd881ecd42cadd5d4762c88cb2676ed35278317..35db425f65f8d20f72d6840a2f5d229eb982b779 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T1.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-ac-e]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T10.js b/test/built-ins/RegExp/S15.10.2.15_A1_T10.js index 7d0fb22e318abcf8b62ac1304c41046aecd09da7..74334e4a02e22bdb77966e9ce57faff219afe83c 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T10.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\10b-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T11.js b/test/built-ins/RegExp/S15.10.2.15_A1_T11.js index 0072be9411ed2696ad04b6b5a4cca8259d88b83b..b5bb8bb0937c8c10f41978a44d97b5bb1257b828 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T11.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\bd-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T12.js b/test/built-ins/RegExp/S15.10.2.15_A1_T12.js index 5a4e4c39162e3cc564dd6aadc610d20dac444256..404cbff869ba986201fb4aa60ed09fdef46c9888 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T12.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Bd-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T13.js b/test/built-ins/RegExp/S15.10.2.15_A1_T13.js index db3165b87304154399cab0b3ac00cbc9398eef64..40d2ce45584b1bd475e1d915e6bf510d67e1db16 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T13.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T13.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\td-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T14.js b/test/built-ins/RegExp/S15.10.2.15_A1_T14.js index 2b47b233cfc8df88ae1a152d555dc5653055d0de..0fe47bfb0c9610f737f1aea0db13cb015547408d 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T14.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T14.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\nd-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T15.js b/test/built-ins/RegExp/S15.10.2.15_A1_T15.js index 8a25edacd162e75e45481a318cc3fe8da27991cc..62334ca9bf237bbc4dcb009b52ed7e9fb26dbdb3 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T15.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T15.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\vd-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T16.js b/test/built-ins/RegExp/S15.10.2.15_A1_T16.js index a9ba20a5fef06a9840c0089913cbee0bfc554f87..e75d7e8d1a06121ad0af1aa8a056588553ff285b 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T16.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T16.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\fd-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T17.js b/test/built-ins/RegExp/S15.10.2.15_A1_T17.js index 212c5454b09683dcfc1692e9460a4f4b7c8923ef..55f1e86f74991c2b4cf002f3ad83cc1a2695a04a 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T17.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T17.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\rd-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T18.js b/test/built-ins/RegExp/S15.10.2.15_A1_T18.js index 1990ea775d4f6ddaeed4116d745b876a74e01dd6..dd1c9cb09aebf6eded7e2c60eafa5e6ab260cfbb 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T18.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T18.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\c0001d-G]").exec("1"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T19.js b/test/built-ins/RegExp/S15.10.2.15_A1_T19.js index 1d240784217252b1e7401cf50c3aab8b7728817c..6dc726ae3d74a0e45dad7684dd8bec0e6053fd3b 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T19.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T19.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\x0061d-G]").exec("1"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T2.js b/test/built-ins/RegExp/S15.10.2.15_A1_T2.js index 63ba144039425438624e30a8b9e53fc138ff9b9a..98a17d6a08b945eb34f5747c11ff64eb7e183f6e 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T2.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[a-dc-b]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T20.js b/test/built-ins/RegExp/S15.10.2.15_A1_T20.js index e6b87b488526ed0ba4403351b53c1686f72f37fa..8969d132f6fe0ded254468c49a088b628f30f0a2 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T20.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T20.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\u0061d-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T21.js b/test/built-ins/RegExp/S15.10.2.15_A1_T21.js index 1045301ea135b5fbceda2bace191c9984cab9417..e772129dd98e18ea4f4adf5ddc006fe2d5b45888 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T21.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T21.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\ad-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T22.js b/test/built-ins/RegExp/S15.10.2.15_A1_T22.js index 9b91aeeadd2f1d59bf55c23ca91e1d806b062cbd..5899bb4d75f770424162879ab3d3c9e3c0a5e516 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T22.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T22.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[c-eb-a]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T23.js b/test/built-ins/RegExp/S15.10.2.15_A1_T23.js index 71e84fc34695ccf81f5ec98cc14f379b6c7afb29..d1e402dcdb62c2198f60e92d667f962f336dfd53 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T23.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T23.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\d]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T24.js b/test/built-ins/RegExp/S15.10.2.15_A1_T24.js index 77f53e08c41aaa1df37f1b29cddb30bb49c07679..41e90cd889d040a6cecce38ca6db9edd5bd1b639 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T24.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T24.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\D]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T25.js b/test/built-ins/RegExp/S15.10.2.15_A1_T25.js index 6bce82385703819887b981dbfd0ee2c5c038b1b9..f65e924e2d92d6c3b145373247adb99a16f579f4 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T25.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T25.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\s]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T26.js b/test/built-ins/RegExp/S15.10.2.15_A1_T26.js index 760666986bc2c8505688c5bdde62915b3f57da9d..32516d36f3915f5077f6ee66628e3aae6ecb8d86 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T26.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T26.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\S]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T27.js b/test/built-ins/RegExp/S15.10.2.15_A1_T27.js index d976e51943367302105cb4ef76d193a97d5bb5fc..96a353500655207b045b89dcdd521191227d0bb9 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T27.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T27.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\w]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T28.js b/test/built-ins/RegExp/S15.10.2.15_A1_T28.js index 6d0b4523446f1bcfa234a8ba0071eb1f20d25391..cc70764fade568be1f9a3fe391d1197168e6d6b1 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T28.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T28.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\W]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T29.js b/test/built-ins/RegExp/S15.10.2.15_A1_T29.js index 62d81b0803d5d902cd088f9e72669dfe964bfd5e..6cce5af79b7f8eed752c4fbe0c90d67bb93342b5 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T29.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T29.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\0]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T3.js b/test/built-ins/RegExp/S15.10.2.15_A1_T3.js index beebc23490c5676dcc365f919b226d6173141f17..bb30b727113d466c638f40bef1d6f96387a031a4 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T3.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\db-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T30.js b/test/built-ins/RegExp/S15.10.2.15_A1_T30.js index bdd269b9b0d3091697b447b953afefa8fbe8ebfa..76fe522197629f7594c446c243d110d65db4065c 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T30.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T30.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\10]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T31.js b/test/built-ins/RegExp/S15.10.2.15_A1_T31.js index e7a2232f18df3340e818acfa73176aae833a8714..b9327953cc9c0382c5aea6be012c32ccf1326e92 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T31.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T31.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\b]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T32.js b/test/built-ins/RegExp/S15.10.2.15_A1_T32.js index 196b513db07cb19a737bd01ab29dc636edf0fc68..708e7e4290e00950dbade99d56276ea9f9c7869a 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T32.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T32.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\B]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T33.js b/test/built-ins/RegExp/S15.10.2.15_A1_T33.js index 31406ee334b4dbe4e5a25a864d252cd6b6a1a432..f85caaae86e8f9e9f3253615244edd50deb53e44 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T33.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T33.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\t]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T34.js b/test/built-ins/RegExp/S15.10.2.15_A1_T34.js index 02e5ec81acd7942a73e97ed7c45e0bee4be8f6b8..6e2db75b3c7cb54f2e72505328b9d2bce2b744fe 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T34.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T34.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\n]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T35.js b/test/built-ins/RegExp/S15.10.2.15_A1_T35.js index 3ea1242f7ed2db6fbc16e9594a9095ab732c87c5..35bb9f9f077a6a315b3939478c6912883657295b 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T35.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T35.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\v]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T36.js b/test/built-ins/RegExp/S15.10.2.15_A1_T36.js index 43c91673a3d26e4286b2a53a0f018b6f0ea5aa80..778be632b9aa704eff5139c322c3f1e64684268a 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T36.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T36.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\f]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T37.js b/test/built-ins/RegExp/S15.10.2.15_A1_T37.js index d074680e430f6371eef2c8e2debc243bfe30e558..a83a2276869fa092a95108b66321b09c6d937aa9 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T37.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T37.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\r]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T38.js b/test/built-ins/RegExp/S15.10.2.15_A1_T38.js index 71bfab090640715b3d3352e55783f1ab75d7dcb7..49d44a838626f2c38236367c8707e9bf55f1b25f 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T38.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T38.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\c0001]").exec("1"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T39.js b/test/built-ins/RegExp/S15.10.2.15_A1_T39.js index 8ec1fa72f509dd5f7d898fb84f17ae5bbaa663a1..5d6c74ca5e7d56cc279606a147684dcfa6f3d05e 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T39.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T39.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\x0061]").exec("1"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T4.js b/test/built-ins/RegExp/S15.10.2.15_A1_T4.js index 78ed635527ee9df5e85a3c9d0b280698ca17eb2e..515e802990c6e4d3b7ee578a66c5e32993c23369 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T4.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Db-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T40.js b/test/built-ins/RegExp/S15.10.2.15_A1_T40.js index 5cb7e7a32b63f62d577faeb2f1cf1298164748b1..3b366a5e26b78383082d3d14a3231ce367cef1d7 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T40.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T40.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\u0061]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T41.js b/test/built-ins/RegExp/S15.10.2.15_A1_T41.js index a0d365bb8957bf12b99f680cea0e7c9e571c6ef6..1e597f91af3c5f8dadc7a2b7807a7c1837492090 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T41.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T41.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\a]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T5.js b/test/built-ins/RegExp/S15.10.2.15_A1_T5.js index d2bf9c0d2acbd52baccac9a1220da36292c1e8b8..bc99d14374121f5c1c0866b6ec644c6d6fe3c703 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T5.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\sb-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T6.js b/test/built-ins/RegExp/S15.10.2.15_A1_T6.js index 488bb63a08403c5f252d5f574bf3df2ff75c37aa..2131259859c033b71bf343d67f0534e0903ada86 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T6.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Sb-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T7.js b/test/built-ins/RegExp/S15.10.2.15_A1_T7.js index 0ced85fe0545ee7b85dd6e50ec3590e95a4905df..4d407f8e2cdb6f7a00e23488becb53597d4be3de 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T7.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\wb-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T8.js b/test/built-ins/RegExp/S15.10.2.15_A1_T8.js index 2fb0c67eb3c8fe311ae2a0df47e5296cad0bdfb8..9869d3456a0c00161fa99d51a354efaf6fc7b51a 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T8.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Wb-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T9.js b/test/built-ins/RegExp/S15.10.2.15_A1_T9.js index 03ca482e5fa7754d8ebad22f556cdc6f21c006b8..2eca251408e7be04195f0e42b565f1fcb07766a4 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T9.js @@ -20,7 +20,7 @@ description: > try { $ERROR('#1.1: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\0b-G]").exec("a"))); } catch (e) { - if((e instanceof SyntaxError) !== true){ + if ((e instanceof SyntaxError) !== true) { $ERROR('#1.2: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T1.js b/test/built-ins/RegExp/S15.10.2.3_A1_T1.js index 5a63327d9c0ed9b54f3254564d461ac2d887d786..458c1d576cc534fddc2946ad27ff0d6bf45cfc3d 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T1.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a|ab/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a|ab/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a|ab/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a|ab/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a|ab/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a|ab/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a|ab/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a|ab/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T10.js b/test/built-ins/RegExp/S15.10.2.3_A1_T10.js index 86d8dc77844139920e8fcf12ac46fa5e11ae1b9f..2330fa26c14a0d566da2a08d4721ecfd6115463b 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T10.js @@ -18,22 +18,22 @@ __expected.input = "AEKeFCDab"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T11.js b/test/built-ins/RegExp/S15.10.2.3_A1_T11.js index d6a7f09147d85ee5a0a162b5addf5b8144df6e91..38caf9afaf4da2bf05302ad3de1efb7d6fe9120d 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T11.js @@ -18,22 +18,22 @@ __expected.input = "1111111111111111"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /11111|111/.exec("1111111111111111"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /11111|111/.exec("1111111111111111"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /11111|111/.exec("1111111111111111"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /11111|111/.exec("1111111111111111"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /11111|111/.exec("1111111111111111"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /11111|111/.exec("1111111111111111"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /11111|111/.exec("1111111111111111"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /11111|111/.exec("1111111111111111"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T12.js b/test/built-ins/RegExp/S15.10.2.3_A1_T12.js index 6b65ab266ebbd776990242e7d1adc95bf79af020..f226a21acf1d5558570390f1712695adda58c708 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T12.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /xyz|.../.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /xyz|.../.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /xyz|.../.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /xyz|.../.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /xyz|.../.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /xyz|.../.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /xyz|.../.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /xyz|.../.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T13.js b/test/built-ins/RegExp/S15.10.2.3_A1_T13.js index ce657c9b58eccd54cf5b327c3464cebce395780f..36e4be4cae299a26b12bbea196a9ec102c310632 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T13.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T13.js @@ -12,28 +12,28 @@ description: Execute /(.)..|abc/.exec("abc") and check results var __executed = /(.)..|abc/.exec("abc"); -var __expected = ["abc","a"]; +var __expected = ["abc", "a"]; __expected.index = 0; __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(.)..|abc/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(.)..|abc/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(.)..|abc/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(.)..|abc/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(.)..|abc/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(.)..|abc/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(.)..|abc/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(.)..|abc/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T14.js b/test/built-ins/RegExp/S15.10.2.3_A1_T14.js index bbb173b11e826d520e9f7b02597dc285eb3028f4..1f5c46884a8ec5ae0e5a96e8bb4f22d661f29eee 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T14.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T14.js @@ -12,28 +12,28 @@ description: "Execute /.+: gr(a|e)y/.exec(\"color: grey\") and check results" var __executed = /.+: gr(a|e)y/.exec("color: grey"); -var __expected = ["color: grey","e"]; +var __expected = ["color: grey", "e"]; __expected.index = 0; __expected.input = "color: grey"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T15.js b/test/built-ins/RegExp/S15.10.2.3_A1_T15.js index 29393f0ad1fd3666fa76675e255359d6a090b717..00df529876e14e3a2e01c8c97eeadbe3d966dcc1 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T15.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T15.js @@ -14,28 +14,28 @@ description: > var __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); -var __expected = ["Bob",undefined,"Bob", undefined, undefined]; +var __expected = ["Bob", undefined, "Bob", undefined, undefined]; __expected.index = 3; __expected.input = "Hi Bob"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T16.js b/test/built-ins/RegExp/S15.10.2.3_A1_T16.js index 9ea5be2b96d5f9b0839857169bb8cf949eac62b5..389006122fd01c8bf98c1d211d282653a2ca0c3b 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T16.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T16.js @@ -12,28 +12,28 @@ description: Execute /()|/.exec("") and check results var __executed = /()|/.exec(""); -var __expected = ["",""]; +var __expected = ["", ""]; __expected.index = 0; __expected.input = ""; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /()|/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /()|/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /()|/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /()|/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /()|/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /()|/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /()|/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /()|/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T17.js b/test/built-ins/RegExp/S15.10.2.3_A1_T17.js index 7e660850b2491adb809056b4ca97e8b75ee63179..62d6321649eb9b5ff3a8adcb389657a1dbfa21f9 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T17.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T17.js @@ -12,28 +12,28 @@ description: Execute /|()/.exec("") and check results var __executed = /|()/.exec(""); -var __expected = ["",undefined]; +var __expected = ["", undefined]; __expected.index = 0; __expected.input = ""; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /|()/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /|()/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /|()/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /|()/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /|()/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /|()/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /|()/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /|()/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T2.js b/test/built-ins/RegExp/S15.10.2.3_A1_T2.js index ece297f651de13008d2f1aae1b0969d73c8aefbe..9e3241c2a8a26831d64476ff80920d811cdea1a6 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T2.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T3.js b/test/built-ins/RegExp/S15.10.2.3_A1_T3.js index bcbb8b0c9f298bd69c4e933922770d097aa81798..b4c9ef27e0a95cc5d4705041e2ce5f25ac210ca7 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T3.js @@ -20,22 +20,22 @@ __expected.input = "2, 12 and of course repeat 12"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T4.js b/test/built-ins/RegExp/S15.10.2.3_A1_T4.js index 729ecc6180c634d915ec839b34b27ed9b739a669..79326b76c3faeadb19848e21bd5b8d66b659c733 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T4.js @@ -20,22 +20,22 @@ __expected.input = "2, 12 and 234 AND of course repeat 12"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T5.js b/test/built-ins/RegExp/S15.10.2.3_A1_T5.js index 0a29065998d69e6dd00e11c932841ebf19731b13..6c2505d6aaf0754b9bef69864e0ef5107bb7d8e0 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T5.js @@ -16,5 +16,5 @@ var __executed = /\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") === false'); + $ERROR('#1: /\\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T6.js b/test/built-ins/RegExp/S15.10.2.3_A1_T6.js index 86709f1fa06cb6d49e880a61503a998eacc279da..ae0956e6f05fabd79fd2d4c48fa41ff678f78669 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T6.js @@ -18,22 +18,22 @@ __expected.input = "AEKFCD"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T7.js b/test/built-ins/RegExp/S15.10.2.3_A1_T7.js index 7243bfabb1379b739a629adb3148ea7f6b306d94..b464a8f071ae0f0dede27823c91c86b1787742c3 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T7.js @@ -14,5 +14,5 @@ var __executed = /ab|cd|ef/.test("AEKFCD"); //CHECK#1 if (__executed) { - $ERROR('#1: /ab|cd|ef/.test("AEKFCD") === false'); + $ERROR('#1: /ab|cd|ef/.test("AEKFCD") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T8.js b/test/built-ins/RegExp/S15.10.2.3_A1_T8.js index b5e67b726a4fb99a9a093505b144813219e755fe..e85f7744aa20e3a48820ac850415f22910ed85d8 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T8.js @@ -18,22 +18,22 @@ __expected.input = "AEKFCD"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T9.js b/test/built-ins/RegExp/S15.10.2.3_A1_T9.js index f50659e42d9f6a918f7ed70193d6fa4607e6c87a..42b1f02417d0a18365f89df826ccb82e76215474 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T9.js @@ -18,22 +18,22 @@ __expected.input = "AEKFCDab"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T1.js b/test/built-ins/RegExp/S15.10.2.5_A1_T1.js index c13919e911d73f720e250df7a714933ad14ce363..b220f38822ef9de604523115205f64e80f83481a 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T1.js @@ -17,22 +17,22 @@ __expected.input = "abcdefghi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T2.js b/test/built-ins/RegExp/S15.10.2.5_A1_T2.js index 51523e43c051306c09d0c881b280d794f165f2fa..a2c34158da2d7057a0df32161378a69d6fd27e92 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T2.js @@ -17,22 +17,22 @@ __expected.input = "abcdefghi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T3.js b/test/built-ins/RegExp/S15.10.2.5_A1_T3.js index 060407424588c9404808a7e692f10a2542213b38..0432503ce135c43a8e4caa4af7478c64b914f92e 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T3.js @@ -17,22 +17,22 @@ __expected.input = "aabaac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T4.js b/test/built-ins/RegExp/S15.10.2.5_A1_T4.js index a5ca2b115a700ea73438eb7d6916f79eb45c0c11..c62dd1441edbdd7be7ca63d595e816aed666368c 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T4.js @@ -17,22 +17,22 @@ __expected.input = "zaacbbbcac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T5.js b/test/built-ins/RegExp/S15.10.2.5_A1_T5.js index e67c8d9d16fec96f640e175af787e565e74d7e77..397aa6383bcd648785a2e1bdb0a423b44d46428b 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T5.js @@ -17,22 +17,22 @@ __expected.input = "baaaac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T1.js b/test/built-ins/RegExp/S15.10.2.6_A1_T1.js index b1fc175fe5a6179bce71a163ef0ebfe46d504316..e844416e7182ca2e86339b5d522e9cd28da328f2 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T1.js @@ -13,5 +13,5 @@ var __executed = /s$/.test("pairs\nmakes\tdouble"); //CHECK#1 if (__executed) { - $ERROR('#1: /s$/.test("pairs\\nmakes\\tdouble") === false'); + $ERROR('#1: /s$/.test("pairs\\nmakes\\tdouble") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T2.js b/test/built-ins/RegExp/S15.10.2.6_A1_T2.js index a019c6d1bdd50982d27543c66fef293712da96f7..68f0b16e9b6e454dd5820bf0530e2f086f3bdf36 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T2.js @@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T3.js b/test/built-ins/RegExp/S15.10.2.6_A1_T3.js index 77bdd6b53f1863385160d4c3a5c030b6c2acf9dc..0d59db23ffda69989007977ba4ee18b5a5982e72 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T3.js @@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T4.js b/test/built-ins/RegExp/S15.10.2.6_A1_T4.js index 7150d522c01fb8a823f7faea4d14855540088060..eb88e50dcbc94a65804491aca1666f0e40014934 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T4.js @@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T5.js b/test/built-ins/RegExp/S15.10.2.6_A1_T5.js index 77880ddb2a3b2a505a876922d0c4ff51532ecbb9..220eaee8366794f237324a6236fe0ebe2c890493 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T5.js @@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdoubles"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T1.js b/test/built-ins/RegExp/S15.10.2.6_A2_T1.js index c071d800903145f5efbe90e548c1c90d37877a31..f9699320c3d16b0246d4140bdbde79b88ec03dcc 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T1.js @@ -13,5 +13,5 @@ var __executed = /^m/.test("pairs\nmakes\tdouble"); //CHECK#1 if (__executed) { - $ERROR('#1: /^m/.test("pairs\\nmakes\\tdouble") === false'); + $ERROR('#1: /^m/.test("pairs\\nmakes\\tdouble") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T10.js b/test/built-ins/RegExp/S15.10.2.6_A2_T10.js index c69aac7da37c0dac0f500a3e00b5bf53f83da550..b974c27c6f819e5044ff7f7806acb351ac9bc843 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T10.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T10.js @@ -17,22 +17,22 @@ __expected.input = "abc\n123xyz"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T2.js b/test/built-ins/RegExp/S15.10.2.6_A2_T2.js index b2449252503efe29e65fba4f1385d926d4cda3f9..576902a410c94e573196678f2fa27013d6b833e7 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T2.js @@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T3.js b/test/built-ins/RegExp/S15.10.2.6_A2_T3.js index e0e0bb42f72298d4b25d4bf6c75d30a56baa17d0..6c17255d926994f844c9ff3309e7a91aeaad1d7e 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T3.js @@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T4.js b/test/built-ins/RegExp/S15.10.2.6_A2_T4.js index f2aab4aa204182a1ebe4193b90f9b42af6ccff3f..32e22548137a210f66185e17bd68c2d06a572afa 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T4.js @@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T5.js b/test/built-ins/RegExp/S15.10.2.6_A2_T5.js index 4ae39e2c0173e3c9636bd8288af9463ecdcd152c..c0f80cfa198c2749221227cf10b121d78fa88763 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T5.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T5.js @@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T6.js b/test/built-ins/RegExp/S15.10.2.6_A2_T6.js index f041a8e8f0df7b26b0007a644317039c9b62dd6c..0b6223385a18dc32050975906158180d2c797836 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T6.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T6.js @@ -17,22 +17,22 @@ __expected.input = "abcde"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^ab/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^ab/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^ab/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^ab/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^ab/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^ab/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^ab/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^ab/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T7.js b/test/built-ins/RegExp/S15.10.2.6_A2_T7.js index 5550511beba285beb81a8bc0d38009bdcbaf7f0d..82bae81eeaff93f6bc646f13a42570dd3e4496aa 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T7.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T7.js @@ -13,5 +13,5 @@ var __executed = /^..^e/.test("ab\ncde"); //CHECK#1 if (__executed) { - $ERROR('#1: /^..^e/.test("ab\\ncde") === false'); + $ERROR('#1: /^..^e/.test("ab\\ncde") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T8.js b/test/built-ins/RegExp/S15.10.2.6_A2_T8.js index bd7fefa60b15682d3d0487424b26c0c4ce8f3a00..f4e7e3a5553756bea7c16a4d1852c3aebd294484 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T8.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T8.js @@ -13,5 +13,5 @@ var __executed = /^xxx/.test("yyyyy"); //CHECK#1 if (__executed) { - $ERROR('#1: /^xxx/.test("yyyyy") === false'); + $ERROR('#1: /^xxx/.test("yyyyy") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T9.js b/test/built-ins/RegExp/S15.10.2.6_A2_T9.js index 31577527889be1e471c485bde752403a57e5e915..49ed3934e7dd5dcf4fb016c4ed7888c91488a547 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T9.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T9.js @@ -17,22 +17,22 @@ __expected.input = "^^^x"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^\\^+/.exec("^^^x"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^\\^+/.exec("^^^x"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^\\^+/.exec("^^^x"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^\\^+/.exec("^^^x"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^\\^+/.exec("^^^x"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^\\^+/.exec("^^^x"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^\\^+/.exec("^^^x"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^\\^+/.exec("^^^x"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T1.js b/test/built-ins/RegExp/S15.10.2.6_A3_T1.js index e0e29ca20112c5ccd5a8249ffb09d1b9391035e1..c279e3739c6e971b2da3b0cdcd41e3c9ab1c2f16 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T1.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T10.js b/test/built-ins/RegExp/S15.10.2.6_A3_T10.js index e4d91c3ea4a5cb7b346497455a75d84144dd438e..c19873c2a379c1c20123057ca098da0f9bccca26 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T10.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T10.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T11.js b/test/built-ins/RegExp/S15.10.2.6_A3_T11.js index 93fb400bcb0776a84814274508e37c52f9dad91a..545beb17dc8224b04543afa6327b037c3b50febf 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T11.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T11.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T12.js b/test/built-ins/RegExp/S15.10.2.6_A3_T12.js index fb1255f5dae18cb974e71a77f5d7f5086dc5c688..19c0afa37f7feb7eeadcfa3b95f03493ee792dc3 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T12.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T12.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T13.js b/test/built-ins/RegExp/S15.10.2.6_A3_T13.js index 672a36920ba4944f2ce8b9000db0aeae67941735..35a6dac2c1a35b14f11811aafb24a958c563c05d 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T13.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T13.js @@ -15,5 +15,5 @@ var __executed = /op\b/.test("pilot\nsoviet robot\topenoffice"); //CHECK#1 if (__executed) { - $ERROR('#1: /op\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); + $ERROR('#1: /op\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T14.js b/test/built-ins/RegExp/S15.10.2.6_A3_T14.js index 7eee46bf7eddaba6690c092c3a956ae52b81909c..507ef10a5e79e10b34a8dba3206b188c1a83737f 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T14.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T14.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T15.js b/test/built-ins/RegExp/S15.10.2.6_A3_T15.js index 3f9a62100b6bfc9003f3f71e778f154c8962de98..5f7986a08f58c5a10f328c4359d94e0253e84efd 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T15.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T15.js @@ -15,5 +15,5 @@ var __executed = /\be/.test("pilot\nsoviet robot\topenoffic\u0065"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\be/.test("pilot\\nsoviet robot\\topenoffic\\u0065") === false'); + $ERROR('#1: /\\be/.test("pilot\\nsoviet robot\\topenoffic\\u0065") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T2.js b/test/built-ins/RegExp/S15.10.2.6_A3_T2.js index 22d8ee9f9e9b74494980e81110491dd647f0e0af..e7c91a375575b4311bc1d4af01394524feb24852 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T2.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T3.js b/test/built-ins/RegExp/S15.10.2.6_A3_T3.js index 8522ca9ce22e042dd0d40301aa4df33b2c607c04..6e8f3f3b37d0e92066e728b44a39255074ed65da 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T3.js @@ -15,5 +15,5 @@ var __executed = /\bot/.test("pilot\nsoviet robot\topenoffice"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\bot/.test("pilot\\nsoviet robot\\topenoffice") === false'); + $ERROR('#1: /\\bot/.test("pilot\\nsoviet robot\\topenoffice") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T4.js b/test/built-ins/RegExp/S15.10.2.6_A3_T4.js index a04d59e2f1a216ed22de7f568fea5b44896d0dc9..1eca044933d796adc90d456809282e3124afb184 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T4.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T5.js b/test/built-ins/RegExp/S15.10.2.6_A3_T5.js index 3372ab113706c260f18b7bfeedc623721eba2114..e8fc33383e53f783e4e4a60f514d3501681a692b 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T5.js @@ -15,5 +15,5 @@ var __executed = /so\b/.test("pilot\nsoviet robot\topenoffice"); //CHECK#1 if (__executed) { - $ERROR('#1: /so\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); + $ERROR('#1: /so\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T6.js b/test/built-ins/RegExp/S15.10.2.6_A3_T6.js index 376ac498afcba45e19cccab5bdfd963f4dd6a06a..daea40fcdf501d95b293428e82637af2d5e66372 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T6.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T6.js @@ -19,22 +19,22 @@ __expected.input = "pilOt\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T7.js b/test/built-ins/RegExp/S15.10.2.6_A3_T7.js index f7df23257345445d6a7dc05d9982e09c2ac64162..58e6c17e20651f08615baf05ce4231a788b1c422 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T7.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T7.js @@ -19,22 +19,22 @@ __expected.input = "pilOt\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T8.js b/test/built-ins/RegExp/S15.10.2.6_A3_T8.js index d3311f334db9a1426695c7d8a90ce4e329dfeb93..922a44d04190b56445cc338eb4377bf574387ca0 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T8.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T8.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T9.js b/test/built-ins/RegExp/S15.10.2.6_A3_T9.js index f6f4801133d51a1ebfaafac2f4b5bcb50fe090d6..593fbf016a2bec13954bc864ffda0858b4b7bed5 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T9.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T9.js @@ -15,5 +15,5 @@ var __executed = /r\b/.test("pilot\nsoviet robot\topenoffice"); //CHECK#1 if (__executed) { - $ERROR('#1: /r\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); + $ERROR('#1: /r\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T1.js b/test/built-ins/RegExp/S15.10.2.6_A4_T1.js index 4f042b9004915900567252edff5a7b2e43a2411c..ee6373848ce3d8c8c787ddcc141949ff866b87a4 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T1.js @@ -19,22 +19,22 @@ __expected.input = "devils arise\tfor\nevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T2.js b/test/built-ins/RegExp/S15.10.2.6_A4_T2.js index 0bf29b8cd9e7da66a856fe5ec70922a61119ec8c..66944df9a5a8b3057689f122fc5199f37b069e74 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T2.js @@ -19,22 +19,22 @@ __expected.input = "devils arise\tfor\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T3.js b/test/built-ins/RegExp/S15.10.2.6_A4_T3.js index 09a5ec3a9a2e92c3d9cefc93d7dacc0f3109f344..2b11180077a6183facea7416238712140a271d81 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T3.js @@ -17,22 +17,22 @@ __expected.input = "devils arise\tfOr\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T4.js b/test/built-ins/RegExp/S15.10.2.6_A4_T4.js index 51029b78950caa8265cb1e842a66f8165db38947..aa7a5745d21249b3b425639e73ed13152101e6e5 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T4.js @@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T5.js b/test/built-ins/RegExp/S15.10.2.6_A4_T5.js index 1c6705d59c9b92a0000c69c8d93bdc5792ce6ef2..0dc01ed29a09c42983848ddec94e5731ec9ba24f 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T5.js @@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T6.js b/test/built-ins/RegExp/S15.10.2.6_A4_T6.js index 26125791d5c09b284b2b52349cd572f4a23d5fec..add5f297e3b2ee34be492115e5670a59eaac97b3 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T6.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T6.js @@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T7.js b/test/built-ins/RegExp/S15.10.2.6_A4_T7.js index d56cf6e2a1e3162a2b5499d2f901459e3b6bfe8b..b8f86f3c5744f8d356866721bf89f617318f18e1 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T7.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T7.js @@ -19,22 +19,22 @@ __expected.input = "devil arise\tforzzx\nevils"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T8.js b/test/built-ins/RegExp/S15.10.2.6_A4_T8.js index 32e8dfcb3b9ae8300bb3dbd79301f9c64f7cba79..d88e9dc8809201422c969f242f614da9925be9aa 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T8.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T8.js @@ -19,22 +19,22 @@ __expected.input = "devil arise\tforzzx\nevils"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A5_T1.js b/test/built-ins/RegExp/S15.10.2.6_A5_T1.js index a01a6cfe44edcfe285c0592d6a4a17316b04fb59..11339ed561b8d2ba811cee7fdb562951f45a0e44 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A5_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A5_T1.js @@ -17,22 +17,22 @@ __expected.input = "robot"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A5_T2.js b/test/built-ins/RegExp/S15.10.2.6_A5_T2.js index 81ea28c7a9a3883de7e80462b926bff1badff1a7..a8c29e8c4895402cc2fe525a098a25248cf12724 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A5_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A5_T2.js @@ -19,22 +19,22 @@ __expected.input = "robot wall-e"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T1.js b/test/built-ins/RegExp/S15.10.2.6_A6_T1.js index 95c95bb7925bbacc328607372eaa347ab54f3470..59291226cb3aa098a2777de6137d3e2078ca7fff 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A6_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A6_T1.js @@ -17,22 +17,22 @@ __expected.input = "Hello World"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^.*?$/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^.*?$/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^.*?$/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^.*?$/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^.*?$/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^.*?$/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^.*?$/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^.*?$/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T2.js b/test/built-ins/RegExp/S15.10.2.6_A6_T2.js index fa7c83537f004ef079078c269617c7cd246d909c..b3e5c57f8a9094cf1c8791416aebc02b0745c22e 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A6_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A6_T2.js @@ -15,22 +15,22 @@ __expected.input = "Hello World"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^.*?/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^.*?/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^.*?/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^.*?/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^.*?/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^.*?/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^.*?/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^.*?/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T3.js b/test/built-ins/RegExp/S15.10.2.6_A6_T3.js index 1c0db1e9cca1c4c343965eac585f6d216c149b5f..f973e84f6ea3c21576486aeebaf9fa27b447b73e 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A6_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A6_T3.js @@ -15,22 +15,22 @@ __expected.input = "Hello: World"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T4.js b/test/built-ins/RegExp/S15.10.2.6_A6_T4.js index bab82b143edd4693b5714431b66275db7ab2fab7..0384fd2751af79795292b7a714f9c960b21232d7 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A6_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A6_T4.js @@ -15,22 +15,22 @@ __expected.input = "Hello: World"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^.*(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^.*(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T1.js b/test/built-ins/RegExp/S15.10.2.7_A1_T1.js index 2a9de52adc919b03342258a8959291752d17604e..7364f69a3db9bc3f7aaa51650def86a7b9074528 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T1.js @@ -17,22 +17,22 @@ __expected.input = "the answer is 42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T10.js b/test/built-ins/RegExp/S15.10.2.7_A1_T10.js index f046fb1fc50f4a76ad7f1d1c98142242dd097a55..1aa0743b6accb0be84d83cc74072ccb9bf590935 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T10.js @@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T11.js b/test/built-ins/RegExp/S15.10.2.7_A1_T11.js index 3dfcfb2d97e4cf6d7f495884d9f236d4cc3f8a37..17f64fade2be66a63999c5f1638eeaa18b3b2017 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T11.js @@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T12.js b/test/built-ins/RegExp/S15.10.2.7_A1_T12.js index 5242db86334ca1737dadcd643f95597353646e85..e3185632b1f696733e160f3e88d1fcd711b9e84b 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T12.js @@ -17,22 +17,22 @@ __expected.input = "weirwerdf"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.{0,93}/.exec("weirwerdf"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /.{0,93}/.exec("weirwerdf"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.{0,93}/.exec("weirwerdf"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /.{0,93}/.exec("weirwerdf"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.{0,93}/.exec("weirwerdf"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /.{0,93}/.exec("weirwerdf"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.{0,93}/.exec("weirwerdf"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /.{0,93}/.exec("weirwerdf"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T2.js b/test/built-ins/RegExp/S15.10.2.7_A1_T2.js index 317fd309e3fdfb185090b297c8e5df6c79a61861..07a1e3386c6c01ef075f6593ba315c5bde666ad3 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T2.js @@ -13,5 +13,5 @@ var __executed = /\d{2,4}/.test("the 7 movie"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\d{2,4}/.test("the 7 movie") === false'); + $ERROR('#1: /\\d{2,4}/.test("the 7 movie") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T3.js b/test/built-ins/RegExp/S15.10.2.7_A1_T3.js index d5cb2be7bae6f970b3f813e535041a9284994846..7b873ac7140e72a939bd5c019ee8bf572e17d0ff 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T3.js @@ -19,22 +19,22 @@ __expected.input = "the 20000 Leagues Under the Sea book"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T4.js b/test/built-ins/RegExp/S15.10.2.7_A1_T4.js index 9ef9234533d677140c170be777c5135e0478c2d5..00f46a858be5ff6c36b99708cd72c2e973622d67 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T4.js @@ -17,22 +17,22 @@ __expected.input = "the Fahrenheit 451 book"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T5.js b/test/built-ins/RegExp/S15.10.2.7_A1_T5.js index b430c88593b59d63914b561997cf374ef1e18a4b..1bfb6cf45b924571af376475774f702af010235d 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T5.js @@ -17,22 +17,22 @@ __expected.input = "the 1984 novel"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T6.js b/test/built-ins/RegExp/S15.10.2.7_A1_T6.js index 9201d4c6b1d8538672739455c5723e907850089d..f19b67befb79d35d5ae3e67ada03b56cc4c37491 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T6.js @@ -17,22 +17,22 @@ __expected.input = "0a011b"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T7.js b/test/built-ins/RegExp/S15.10.2.7_A1_T7.js index e9af6cb75747b48650202c137a6b36392bea21bf..d98ebd9fc5d4888fa1762bd82e7c0025df22addf 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T7.js @@ -17,22 +17,22 @@ __expected.input = "0a01122b"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T8.js b/test/built-ins/RegExp/S15.10.2.7_A1_T8.js index af586602f0dffca302141fff72f62c3593746a90..e8907a4e002296b6200775e87840f8796b289ec8 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T8.js @@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T9.js b/test/built-ins/RegExp/S15.10.2.7_A1_T9.js index 090adf085abd5b8f5d692a30942ee69cfe1f66d5..a421d09e9498e7821ac88ea640c1e5c2f47f5ce5 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T9.js @@ -13,5 +13,5 @@ var __executed = /b{42,93}c/.test("aaabbbbcccddeeeefffff"); //CHECK#1 if (__executed) { - $ERROR('#1: /b{42,93}c/.test("aaabbbbcccddeeeefffff") === false'); + $ERROR('#1: /b{42,93}c/.test("aaabbbbcccddeeeefffff") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T1.js b/test/built-ins/RegExp/S15.10.2.7_A2_T1.js index f251c5899a3ee9f28601cfdb9f6dd728e0311d21..0139648dfbf6ce76ebcb1784e67815797ab9d620 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A2_T1.js @@ -17,22 +17,22 @@ __expected.input = "CE\uFFFFL\uFFDDbox127"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T2.js b/test/built-ins/RegExp/S15.10.2.7_A2_T2.js index e29e4c24ca44a4d7b76c24d8d460eaf1c81fdebb..01fe1f97a4cebe82b8956e47862a0c882999fd1c 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A2_T2.js @@ -17,22 +17,22 @@ __expected.input = "CELL\uFFDDbox127"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T3.js b/test/built-ins/RegExp/S15.10.2.7_A2_T3.js index 586726b2ea496bde7a2db8fbfabfbf43e7d9a89f..115df9dfa1ec0e8328f7ccac2676db06435c2378 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A2_T3.js @@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T4.js b/test/built-ins/RegExp/S15.10.2.7_A2_T4.js index f078746d2a61f459b530622fdeb9f5cc8ba68822..3e4c7feeb937132e7debabe124a1cd8edb8d031c 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A2_T4.js @@ -13,5 +13,5 @@ var __executed = /b{8}/.test("aaabbbbcccddeeeefffff"); //CHECK#1 if (__executed) { - $ERROR('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false'); + $ERROR('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T1.js b/test/built-ins/RegExp/S15.10.2.7_A3_T1.js index 64561179947e036a62876712b82cd3c3887f065e..6a333777c118bc8cc491bb0ac188d3b82dca300a 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T1.js @@ -17,22 +17,22 @@ __expected.input = "language java\n"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T10.js b/test/built-ins/RegExp/S15.10.2.7_A3_T10.js index 2bf469f6ef77f5b4370c2efba727ed952842b21a..cf5c85bc3b02343468f0af1c8cee5a8108a1201b 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T10.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T10.js @@ -13,5 +13,5 @@ var __executed = /o+/.test("abcdefg"); //CHECK#1 if (__executed) { - $ERROR('#1: /o+/.test("abcdefg") === false'); + $ERROR('#1: /o+/.test("abcdefg") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T11.js b/test/built-ins/RegExp/S15.10.2.7_A3_T11.js index b70b42af0ce4d85f1f53ea8d936c23be6ae43142..17108a29b5a121aed0b6086ecfa2e460f40eb44b 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T11.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T11.js @@ -17,22 +17,22 @@ __expected.input = "abcdefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /d+/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /d+/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /d+/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /d+/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /d+/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /d+/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /d+/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /d+/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T12.js b/test/built-ins/RegExp/S15.10.2.7_A3_T12.js index 6dca42d241a83354e296b0579866ecb9b7347dc3..9bcbb9d2413ae5a28641518904351cf907549e19 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T12.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T12.js @@ -11,28 +11,28 @@ description: Execute /(b+)(b+)(b+)/.exec("abbbbbbbc") and check results var __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); -var __expected = ["bbbbbbb","bbbbb","b","b"]; +var __expected = ["bbbbbbb", "bbbbb", "b", "b"]; __expected.index = 1; __expected.input = "abbbbbbbc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T13.js b/test/built-ins/RegExp/S15.10.2.7_A3_T13.js index c471fc2d2f6b4c74d871d06d1f3cfa95d568d3f7..2c9096b78d2c4d1da70d86438e25cb5158060bd8 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T13.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T13.js @@ -11,28 +11,28 @@ description: Execute /(b+)(b*)/.exec("abbbbbbbc") and check results var __executed = /(b+)(b*)/.exec("abbbbbbbc"); -var __expected = ["bbbbbbb","bbbbbbb",""]; +var __expected = ["bbbbbbb", "bbbbbbb", ""]; __expected.index = 1; __expected.input = "abbbbbbbc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T14.js b/test/built-ins/RegExp/S15.10.2.7_A3_T14.js index d076e2ef59b5ca0f62ce891131b8e58612519a46..5a486c0f9c0cf4fedac2984de97e8b4089600491 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T14.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T14.js @@ -17,22 +17,22 @@ __expected.input = "abbbbbbbc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b*b+/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /b*b+/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b*b+/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /b*b+/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b*b+/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /b*b+/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b*b+/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /b*b+/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T2.js b/test/built-ins/RegExp/S15.10.2.7_A3_T2.js index 9db765459a6828b5667fc97d38d2e5976ceb3bcd..c9be7d87c185365acacd9f0e139e200b10112599 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T2.js @@ -17,22 +17,22 @@ __expected.input = "\t java object"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T3.js b/test/built-ins/RegExp/S15.10.2.7_A3_T3.js index af32a18d46bfbb70d54b789bb5c4ed5bf61a7c89..9c7f4dc8896fa109cbf1a8f004c6e4f99af1a910 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T3.js @@ -13,5 +13,5 @@ var __executed = /\s+java\s+/.test("\t javax package"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\s+java\\s+/.test("\\t javax package") === false'); + $ERROR('#1: /\\s+java\\s+/.test("\\t javax package") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T4.js b/test/built-ins/RegExp/S15.10.2.7_A3_T4.js index 70971cea66daa4e530dba967e1582506439ded95..1b4ae926ca770a3d53dbed16b5e7584cc6ac5024 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T4.js @@ -13,5 +13,5 @@ var __executed = /\s+java\s+/.test("java\n\nobject"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\s+java\\s+/.test("java\\n\\nobject") === false'); + $ERROR('#1: /\\s+java\\s+/.test("java\\n\\nobject") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T5.js b/test/built-ins/RegExp/S15.10.2.7_A3_T5.js index 639bd44181e4441136e033d7215febf79ad3d711..abf3b3b76c78e23cd26ba617468efa2412f16173 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T5.js @@ -19,22 +19,22 @@ __expected.input = "x 2 ff 55 x2 as1 z12 abc12.0"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T6.js b/test/built-ins/RegExp/S15.10.2.7_A3_T6.js index 148747555c919d780b6544a27d7ad7c837dfe266..6f8ec08b55bebf8f82f80efe7258da0e2e4a07ba 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T6.js @@ -17,22 +17,22 @@ __expected.input = "__abc123.0"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T7.js b/test/built-ins/RegExp/S15.10.2.7_A3_T7.js index 65a18821287a3776ba7daf0bb15b79a8dc056cf1..e3355626f960cc74d91ad8f78264d76af33382a9 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T7.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T7.js @@ -13,28 +13,28 @@ description: > var __executed = /[a-z]+(\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); -var __expected = ["x2","2"]; +var __expected = ["x2", "2"]; __expected.index = 10; __expected.input = "x 2 ff 55 x2 as1 z12 abc12.0"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T8.js b/test/built-ins/RegExp/S15.10.2.7_A3_T8.js index 0ff489005a4eb54ea5a8251abf01b4948920a7ae..2bd5c0c7e71f561de351c1f7a5bb1e69617e3aa7 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T8.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T8.js @@ -11,28 +11,28 @@ description: Execute /[a-z]+(\d+)/.exec("__abc123.0") and check results var __executed = /[a-z]+(\d+)/.exec("__abc123.0"); -var __expected = ["abc123","123"]; +var __expected = ["abc123", "123"]; __expected.index = 2; __expected.input = "__abc123.0"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T9.js b/test/built-ins/RegExp/S15.10.2.7_A3_T9.js index 26e67e6ed74baddee4cb75b556bbaca0c8fe6111..70a90aaeeb5ffe90d2280aa26181862ce0d6e756 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T9.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T9.js @@ -17,22 +17,22 @@ __expected.input = "abcdddddefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /d+/.exec("abcdddddefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /d+/.exec("abcdddddefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /d+/.exec("abcdddddefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /d+/.exec("abcdddddefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /d+/.exec("abcdddddefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /d+/.exec("abcdddddefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /d+/.exec("abcdddddefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /d+/.exec("abcdddddefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T1.js b/test/built-ins/RegExp/S15.10.2.7_A4_T1.js index c23c145b8439688d16fb234af65e30ce6b41f851..58d7dd0a6ff234723e4e508dde27196e84c06d42 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T1.js @@ -17,22 +17,22 @@ __expected.input = '"beast"-nickname'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T10.js b/test/built-ins/RegExp/S15.10.2.7_A4_T10.js index acd87fdf8d082fa187954777ad8ea55267ccb9ad..6f16f0ec6eea5ee8fb2ac2481ae7a5245748cde1 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T10.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T10.js @@ -17,22 +17,22 @@ __expected.input = 'abcddddefg'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /d*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /d*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /d*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /d*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /d*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /d*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /d*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /d*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T11.js b/test/built-ins/RegExp/S15.10.2.7_A4_T11.js index a3e19636c04036b9fe6d6096fea9d51c3d16ac4e..946f80632ece72c6d7bc8428a9c850d8528a0dac 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T11.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T11.js @@ -17,22 +17,22 @@ __expected.input = 'abcddddefg'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /cd*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /cd*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /cd*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /cd*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /cd*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /cd*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /cd*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /cd*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T12.js b/test/built-ins/RegExp/S15.10.2.7_A4_T12.js index 521ccb5744118b7d89bafcf4c1384ccd14fb3313..fa3df8305595fcedb3736aaa2105f3a6368d23ae 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T12.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T12.js @@ -17,22 +17,22 @@ __expected.input = 'abcdefg'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /cx*d/.exec(\'abcdefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /cx*d/.exec(\'abcdefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /cx*d/.exec(\'abcdefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /cx*d/.exec(\'abcdefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /cx*d/.exec(\'abcdefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /cx*d/.exec(\'abcdefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /cx*d/.exec(\'abcdefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /cx*d/.exec(\'abcdefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T13.js b/test/built-ins/RegExp/S15.10.2.7_A4_T13.js index 0cdbb3ed5c3d80fd2d39b76e0a4cf7dd8a179cc9..17817c2a6096ecc003b9da6320402e6e004294d6 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T13.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T13.js @@ -11,28 +11,28 @@ description: Execute /(x*)(x+)/.exec('xxxxxxx') and check results var __executed = /(x*)(x+)/.exec('xxxxxxx'); -var __expected = ["xxxxxxx","xxxxxx","x"]; +var __expected = ["xxxxxxx", "xxxxxx", "x"]; __expected.index = 0; __expected.input = 'xxxxxxx'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T14.js b/test/built-ins/RegExp/S15.10.2.7_A4_T14.js index 405d3a236ca879c0646162ec317d1bcf77ce4eb5..9fc2f139fed9d44092fc23b6cd7cdac4326f5b9d 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T14.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T14.js @@ -11,28 +11,28 @@ description: Execute /(\d*)(\d+)/.exec('1234567890') and check results var __executed = /(\d*)(\d+)/.exec('1234567890'); -var __expected = ["1234567890","123456789","0"]; +var __expected = ["1234567890", "123456789", "0"]; __expected.index = 0; __expected.input = '1234567890'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T15.js b/test/built-ins/RegExp/S15.10.2.7_A4_T15.js index 22e0ddcd3d6c2352bcad614057b5aebfc5fd9227..ebf44966e7e0b55fbe4ebffa94200ae7109df92e 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T15.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T15.js @@ -11,28 +11,28 @@ description: Execute /(\d*)\d(\d+)/.exec('1234567890') and check results var __executed = /(\d*)\d(\d+)/.exec('1234567890'); -var __expected = ["1234567890","12345678","0"]; +var __expected = ["1234567890", "12345678", "0"]; __expected.index = 0; __expected.input = '1234567890'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T16.js b/test/built-ins/RegExp/S15.10.2.7_A4_T16.js index a076f126c5505daf26b3b9be0b3049b652f21f44..46ebecde20e7e02d6c7b0a2be5b93388253f5df7 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T16.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T16.js @@ -11,28 +11,28 @@ description: Execute /(x+)(x*)/.exec('xxxxxxx') and check results var __executed = /(x+)(x*)/.exec('xxxxxxx'); -var __expected = ["xxxxxxx","xxxxxxx",""]; +var __expected = ["xxxxxxx", "xxxxxxx", ""]; __expected.index = 0; __expected.input = 'xxxxxxx'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T17.js b/test/built-ins/RegExp/S15.10.2.7_A4_T17.js index 0dc0ffed859197f718d14d62fe9ae962712ee031..202a6dd9d4f07286d546de301501c25c809e00ff 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T17.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T17.js @@ -17,22 +17,22 @@ __expected.input = 'xxxxxxyyyyyy'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T18.js b/test/built-ins/RegExp/S15.10.2.7_A4_T18.js index 884dcd9b6cfd62ebf078122c4042f763580dac45..3719303891d98d9849e9a27a4a8a805636017b0f 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T18.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T18.js @@ -17,22 +17,22 @@ __expected.input = 'abcdef'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T19.js b/test/built-ins/RegExp/S15.10.2.7_A4_T19.js index 17379e2906c546cefc612a2d4d76f721cfbdc711..b6027f2b726e7a6d9f2c795c8d1cb9cfdfc81662 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T19.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T19.js @@ -17,22 +17,22 @@ __expected.input = 'abcdef'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T2.js b/test/built-ins/RegExp/S15.10.2.7_A4_T2.js index 4c813338d06066e7a31867bcbdc2990b48208140..d46e2f427fa3eb1f864058f3b3d8a5f2768bc270 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T2.js @@ -17,22 +17,22 @@ __expected.input = 'alice said: "don\'t"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T20.js b/test/built-ins/RegExp/S15.10.2.7_A4_T20.js index 9b9f8cd00e4184a85e8ed782dfcf883c992fee5a..3688356ca128d8f887e6fda48ee40149dbb687fd 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T20.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T20.js @@ -17,22 +17,22 @@ __expected.input = 'a1b2c3'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.*/.exec(\'a1b2c3\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /.*/.exec(\'a1b2c3\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.*/.exec(\'a1b2c3\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /.*/.exec(\'a1b2c3\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.*/.exec(\'a1b2c3\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /.*/.exec(\'a1b2c3\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.*/.exec(\'a1b2c3\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /.*/.exec(\'a1b2c3\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T21.js b/test/built-ins/RegExp/S15.10.2.7_A4_T21.js index 7f49b3fe759bd647f16f0fae1c4c1d7ee463c8c4..b8ca4521532edbe06ab9b85e100fc54165568eb4 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T21.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T21.js @@ -13,5 +13,5 @@ var __executed = /[xyz]*1/.test('a0.b2.c3'); //CHECK#1 if (__executed) { - $ERROR('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false'); + $ERROR('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T3.js b/test/built-ins/RegExp/S15.10.2.7_A4_T3.js index a74d0d2e4323533be9d918e358e722b351a398d1..d828cdf8e51838870e46e76206d0d655d1f7d192 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T3.js @@ -17,22 +17,22 @@ __expected.input = "before\'i\'start"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec("before\'i\'start"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^"]*/.exec("before\'i\'start"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec("before\'i\'start"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^"]*/.exec("before\'i\'start"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec("before\'i\'start"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^"]*/.exec("before\'i\'start"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec("before\'i\'start"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^"]*/.exec("before\'i\'start"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T4.js b/test/built-ins/RegExp/S15.10.2.7_A4_T4.js index bd78fde0806eef1cdfa637c07bd55452f984faf3..6c838e52829f526c23e3abded1d11614b7647d56 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T4.js @@ -19,22 +19,22 @@ __expected.input = 'alice \"sweep\": "don\'t"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T5.js b/test/built-ins/RegExp/S15.10.2.7_A4_T5.js index 41a46fa7664f30b8ba178639da1f025e9f9b5c12..41e6f885378f3f18fe473b018ef424e236ca1b5f 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T5.js @@ -19,22 +19,22 @@ __expected.input = 'alice "sweep": "don\'t"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T6.js b/test/built-ins/RegExp/S15.10.2.7_A4_T6.js index 1c6d375596a27837195fe13e60e74e91b204e644..09f8369580d5e86fe7b18d427d8cb04be354f5bf 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T6.js @@ -19,22 +19,22 @@ __expected.input = 'alice "sweep": "don\'t"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T7.js b/test/built-ins/RegExp/S15.10.2.7_A4_T7.js index 0c13f607e9d58e761a64885886274ee49520d8bf..613f1fd6b2d4686b87dd1058e654cfbad513fc14 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T7.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T7.js @@ -19,22 +19,22 @@ __expected.input = 'alice cries out: \'don\'t\''; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T8.js b/test/built-ins/RegExp/S15.10.2.7_A4_T8.js index 73cdaa3d6590c6b3d669fc7b17a94cc569befcb2..1312a5dd4abf2122ed56ba8b964cf259f84dcba8 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T8.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T8.js @@ -15,5 +15,5 @@ var __executed = /["'][^"']*["']/.test('alice cries out: don\'t'); //CHECK#1 if (__executed) { - $ERROR('#1: /["\'][^"\']*["\']/.test(\'alice cries out: don\'t\') === false'); + $ERROR('#1: /["\'][^"\']*["\']/.test(\'alice cries out: don\'t\') === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T9.js b/test/built-ins/RegExp/S15.10.2.7_A4_T9.js index 0ae792c8be8b707f69b1474993e5ce9d45e296a3..55ba72e101a2e7082b06e653e0ec32df2ab370c0 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T9.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T9.js @@ -19,22 +19,22 @@ __expected.input = 'alice cries out:\"\"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T1.js b/test/built-ins/RegExp/S15.10.2.7_A5_T1.js index 1914219cc4a0ee9a93154aa3884050cadb9bbf57..00f3ea1d80dd6acfc30bbdace78c8fc78a2dd2d0 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T1.js @@ -19,22 +19,22 @@ __expected.input = "state: javascript is extension of ecma script"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T10.js b/test/built-ins/RegExp/S15.10.2.7_A5_T10.js index 21ff449c56fc0724769ec5271c75b410d6c6457c..cbcf26dd62f2666435001b40e81d4340e7292bf7 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T10.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T10.js @@ -17,22 +17,22 @@ __expected.input = "123az789"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T11.js b/test/built-ins/RegExp/S15.10.2.7_A5_T11.js index 4a6094382275483db02a5295c70650ee51a5e469..aaf6db6739c5b14b410a52e014f6028da06f19da 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T11.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T11.js @@ -17,22 +17,22 @@ __expected.input = "?????"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T12.js b/test/built-ins/RegExp/S15.10.2.7_A5_T12.js index 8c57773935dd8d416fe81cca98a1acd7b8f6a57c..a4d6d73b8231fae5c9813a985696a4040914e350 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T12.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T12.js @@ -17,22 +17,22 @@ __expected.input = "test"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T2.js b/test/built-ins/RegExp/S15.10.2.7_A5_T2.js index 4cb889534a2f57a906ae3afda33526c8af28d932..bb34799b4f18545372ca576aa3cd4c08639d5545 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T2.js @@ -19,22 +19,22 @@ __expected.input = "state: java and javascript are vastly different"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T3.js b/test/built-ins/RegExp/S15.10.2.7_A5_T3.js index 419d7e4e12ea60b9208740cf6bde1d96fa0201b0..0e6e139dc44ec5e5a16ab520a2bb6d6af49d937d 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T3.js @@ -15,5 +15,5 @@ var __executed = /java(script)?/.test("state: both Java and JavaScript used in w //CHECK#1 if (__executed) { - $ERROR('#1: /java(script)?/.test("state: both Java and JavaScript used in web development") === false'); + $ERROR('#1: /java(script)?/.test("state: both Java and JavaScript used in web development") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T4.js b/test/built-ins/RegExp/S15.10.2.7_A5_T4.js index ae949468d0c845232f87bd44ffae368ff14139eb..b247a8fc49779cc6eddcb7d72cd1b11dc2a2f727 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T4.js @@ -17,22 +17,22 @@ __expected.input = "abcdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /cd?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /cd?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /cd?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /cd?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /cd?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /cd?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /cd?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /cd?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T5.js b/test/built-ins/RegExp/S15.10.2.7_A5_T5.js index 3cf99843be9dde82ae5ba026eae9cd35fe16bc71..0c2143492bad54a002a815a93eef9ab40f0e7dab 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T5.js @@ -17,22 +17,22 @@ __expected.input = "abcdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /cdx?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /cdx?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /cdx?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /cdx?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /cdx?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /cdx?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /cdx?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /cdx?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T6.js b/test/built-ins/RegExp/S15.10.2.7_A5_T6.js index 84bdd79bd0e89b0f7904b8fbd2754d95f1941947..821027ec2620c0bdd698cf7899af9ac8c3abdc35 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T6.js @@ -17,22 +17,22 @@ __expected.input = "pqrstuvw"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /o?pqrst/.exec("pqrstuvw"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /o?pqrst/.exec("pqrstuvw"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T7.js b/test/built-ins/RegExp/S15.10.2.7_A5_T7.js index 3cf22e3efee05e7f8ca30cb8f8d1ef79e3ba1d61..503ba1c1c8c5f66b0dc62c2ffa55284befdc99d8 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T7.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T7.js @@ -17,22 +17,22 @@ __expected.input = "abcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /x?y?z?/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /x?y?z?/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /x?y?z?/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /x?y?z?/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /x?y?z?/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /x?y?z?/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /x?y?z?/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /x?y?z?/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T8.js b/test/built-ins/RegExp/S15.10.2.7_A5_T8.js index efebcaac4f1ee2cd9db6ef9b11fbbcf407215421..d00bc69206206fa05ce3eb7feb702755c395f48e 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T8.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T8.js @@ -17,22 +17,22 @@ __expected.input = "abcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /x?ay?bz?c/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /x?ay?bz?c/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /x?ay?bz?c/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /x?ay?bz?c/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /x?ay?bz?c/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /x?ay?bz?c/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /x?ay?bz?c/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /x?ay?bz?c/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T9.js b/test/built-ins/RegExp/S15.10.2.7_A5_T9.js index 008fe13a962ecb7dcfd2f92c5caf556cc5ed0e4e..67cf77547a23f83524cb2341dbd2611e3fff52db 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T9.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T9.js @@ -17,22 +17,22 @@ __expected.input = "abbbbc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b?b?b?b/.exec("abbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /b?b?b?b/.exec("abbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b?b?b?b/.exec("abbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /b?b?b?b/.exec("abbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b?b?b?b/.exec("abbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /b?b?b?b/.exec("abbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b?b?b?b/.exec("abbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /b?b?b?b/.exec("abbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T1.js b/test/built-ins/RegExp/S15.10.2.7_A6_T1.js index c4209a18f32b19bfa61076f62181804b1eed4303..bc20cc946fd42622d45e4c93e9db53adcfd84701 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T1.js @@ -18,22 +18,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T2.js b/test/built-ins/RegExp/S15.10.2.7_A6_T2.js index 774bd23cf86422f8249add5fdc50c5eb69d6b16b..7a8378827df81b5fdafe0b83034c1f620b024551 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T2.js @@ -14,5 +14,5 @@ var __executed = /b{8,}c/.test("aaabbbbcccddeeeefffff"); //CHECK#1 if (__executed) { - $ERROR('#1: /b{8,}c/.test("aaabbbbcccddeeeefffff") === false'); + $ERROR('#1: /b{8,}c/.test("aaabbbbcccddeeeefffff") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T3.js b/test/built-ins/RegExp/S15.10.2.7_A6_T3.js index 2d77da10f49cd62f6458281e08a4575c5ca2ed9a..9acb162761ac4e1fd71ab6ac80c3e64fda21cc91 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T3.js @@ -18,22 +18,22 @@ __expected.input = "wqe456646dsff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T4.js b/test/built-ins/RegExp/S15.10.2.7_A6_T4.js index e5268e2962303e141e98c6e56e5fb80839c02a83..0d356303633791e8e345a9ed9d017624050247ae 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T4.js @@ -12,28 +12,28 @@ description: Execute /(123){1,}/.exec("123123") and check results var __executed = /(123){1,}/.exec("123123"); -var __expected = ["123123","123"]; +var __expected = ["123123", "123"]; __expected.index = 0; __expected.input = "123123"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(123){1,}/.exec("123123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(123){1,}/.exec("123123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(123){1,}/.exec("123123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(123){1,}/.exec("123123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(123){1,}/.exec("123123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(123){1,}/.exec("123123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(123){1,}/.exec("123123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(123){1,}/.exec("123123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T5.js b/test/built-ins/RegExp/S15.10.2.7_A6_T5.js index a8d8313a8a95f18e2b805515137001c02cf92330..206bb8a256f594019c2779de70adde8e28045b1d 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T5.js @@ -12,28 +12,28 @@ description: Execute /(123){1,}x\1/.exec("123123x123") and check results var __executed = /(123){1,}x\1/.exec("123123x123"); -var __expected = ["123123x123","123"]; +var __expected = ["123123x123", "123"]; __expected.index = 0; __expected.input = "123123x123"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(123){1,}x\\1\\/.exec("123123x123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(123){1,}x\\1\\/.exec("123123x123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T6.js b/test/built-ins/RegExp/S15.10.2.7_A6_T6.js index 2040ef9c6896f2199bce932b18ad22cd714221af..f1a8401ed88ec0dd53c913f5de989f198b442ed2 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T6.js @@ -18,22 +18,22 @@ __expected.input = "xxxxxxx"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T1.js b/test/built-ins/RegExp/S15.10.2.8_A1_T1.js index ccbc98197b83c084af441b79d2f50b8dc4b31c18..f5c432035d860da16322aa37d85162a467b769a0 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T1.js @@ -18,22 +18,22 @@ __expected.input = "baaabac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?=(a+))/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(?=(a+))/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?=(a+))/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(?=(a+))/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?=(a+))/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(?=(a+))/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?=(a+))/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(?=(a+))/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T2.js b/test/built-ins/RegExp/S15.10.2.8_A1_T2.js index 197d3de34f7698c97e163cecb71bfd82a94ffa74..6745b6034918c2ddf7cece601bda34442546bcc9 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T2.js @@ -18,22 +18,22 @@ __expected.input = "baaabac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T3.js b/test/built-ins/RegExp/S15.10.2.8_A1_T3.js index 4ee93307e0286bf2893243bdaa0ac994dbd4f3d7..5c4e855b599b3246dc6466e3b99d64b6742898ce 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T3.js @@ -20,22 +20,22 @@ __expected.input = "just Javascript: the way af jedi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T4.js b/test/built-ins/RegExp/S15.10.2.8_A1_T4.js index 4d598bc68352661a05f91ca536bbfbb8897dba49..2aacc7deb99a29f54ce6260d9a703085aeffa7d3 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T4.js @@ -20,22 +20,22 @@ __expected.input = "taste of java: the cookbook "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T5.js b/test/built-ins/RegExp/S15.10.2.8_A1_T5.js index 3088fd08cf7eaaacf2a6b2cc088386ce6ab462b2..053dc73783df8268aaafac573c11c690d496c9d4 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T5.js @@ -16,5 +16,5 @@ var __executed = /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript engine"); //CHECK#1 if (__executed) { - $ERROR('#1: /[Jj]ava([Ss]cript)?(?=\\:)/.test("rhino is JavaScript engine") === false'); + $ERROR('#1: /[Jj]ava([Ss]cript)?(?=\\:)/.test("rhino is JavaScript engine") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T1.js b/test/built-ins/RegExp/S15.10.2.8_A2_T1.js index f4647025b33668f77b99cbb97a5f4dce841f489b..4a29869d4c42759b5be8aecf3d6398ffcdad63fd 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T1.js @@ -20,22 +20,22 @@ __expected.input = "baaabaac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T10.js b/test/built-ins/RegExp/S15.10.2.8_A2_T10.js index 99385202e7a206c43edce655ccae7759b402f268..ff6eb10990c2fbe50f6a176ba24bd3e023c2b33f 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T10.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T10.js @@ -18,22 +18,22 @@ __expected.input = "bc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?!a|b)|c/.exec("bc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(?!a|b)|c/.exec("bc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?!a|b)|c/.exec("bc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(?!a|b)|c/.exec("bc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?!a|b)|c/.exec("bc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(?!a|b)|c/.exec("bc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?!a|b)|c/.exec("bc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(?!a|b)|c/.exec("bc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T11.js b/test/built-ins/RegExp/S15.10.2.8_A2_T11.js index 4d58e957ad293eb0f179bba22174d5237db164db..f1b5d5983db5568a1b116b1dad117d97ae9ebc84 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T11.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T11.js @@ -18,22 +18,22 @@ __expected.input = "d"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?!a|b)|c/.exec("d"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(?!a|b)|c/.exec("d"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?!a|b)|c/.exec("d"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(?!a|b)|c/.exec("d"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?!a|b)|c/.exec("d"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(?!a|b)|c/.exec("d"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?!a|b)|c/.exec("d"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(?!a|b)|c/.exec("d"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T2.js b/test/built-ins/RegExp/S15.10.2.8_A2_T2.js index 2e4389980f2f121d33305004704a953bdf3df2d1..316ec4965fde4caab5e0fe129d1eff2245b4bba3 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T2.js @@ -20,22 +20,22 @@ __expected.input = "using of JavaBeans technology"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T3.js b/test/built-ins/RegExp/S15.10.2.8_A2_T3.js index 46511a6a553850c27563d37f9a0de4a76a76be88..e572f8370cc735f0080884673c6c16526dce8c28 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T3.js @@ -16,5 +16,5 @@ var __executed = /Java(?!Script)([A-Z]\w*)/.test("using of Java language"); //CHECK#1 if (__executed) { - $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("using of Java language") === false'); + $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("using of Java language") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T4.js b/test/built-ins/RegExp/S15.10.2.8_A2_T4.js index d165c04ff99de8e4babf4f1aa7de748735bd42d6..95ed08438b35407a650d87be0df062fd166b46a8 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T4.js @@ -16,5 +16,5 @@ var __executed = /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter "); //CHECK#1 if (__executed) { - $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false'); + $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T5.js b/test/built-ins/RegExp/S15.10.2.8_A2_T5.js index 7f6a2c61d9da3d499053842214e3397aaa7436e2..0a6f898b4851a9c295eba575ff650399837006b7 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T5.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T5.js @@ -20,22 +20,22 @@ __expected.input = "JavaScr oops ipt "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T6.js b/test/built-ins/RegExp/S15.10.2.8_A2_T6.js index 222e740fd0c426fe071772a9d7f7d8cb096b1311..b3bcc8a7fb7a98a3c2acd247247692301a838052 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T6.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T6.js @@ -18,22 +18,22 @@ __expected.input = "ah.info"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T7.js b/test/built-ins/RegExp/S15.10.2.8_A2_T7.js index b51f7948afe564cad15d1801e10964c6556ded02..d7212ee1d9e09074da824f6e57973429a0542031 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T7.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T7.js @@ -18,22 +18,22 @@ __expected.input = "ah/info"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T8.js b/test/built-ins/RegExp/S15.10.2.8_A2_T8.js index c636d32d61f17c91fd8a03f70151ba1bdce2ddc3..b2dbc0fefdb17177650076ec0f4c65417b31a609 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T8.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T8.js @@ -14,5 +14,5 @@ var __executed = /(\.(?!com|org)|\/)/.test("ah.com"); //CHECK#1 if (__executed) { - $ERROR('#1: /(\\.(?!com|org)|\\/)/.test("ah.com") === false'); + $ERROR('#1: /(\\.(?!com|org)|\\/)/.test("ah.com") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T9.js b/test/built-ins/RegExp/S15.10.2.8_A2_T9.js index 79067208ee0b6e8773b432078d3af179675f328c..02e4e39c7dc3f4282db86c0c19d93540c724d78d 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T9.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T9.js @@ -18,22 +18,22 @@ __expected.input = ""; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?!a|b)|c/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(?!a|b)|c/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?!a|b)|c/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(?!a|b)|c/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?!a|b)|c/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(?!a|b)|c/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?!a|b)|c/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(?!a|b)|c/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T1.js b/test/built-ins/RegExp/S15.10.2.8_A3_T1.js index 2a2b46edcd2cb1f0abb3fc7445994c26d032cffb..b296c2a524cae6798b4ad76cf7629d851dbd8b74 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T1.js @@ -15,28 +15,28 @@ description: > var __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Learning javaScript is funny, really"); -var __expected = ["javaScript is funny","javaScript","Script","funny"]; +var __expected = ["javaScript is funny", "javaScript", "Script", "funny"]; __expected.index = 9; __expected.input = "Learning javaScript is funny, really"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T10.js b/test/built-ins/RegExp/S15.10.2.8_A3_T10.js index 5288ce7e4d4586c086ac6b1e240dabbeaa5b4915..3acb5a4d4efa5496234ac60128918ca8cabbcd59 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T10.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T10.js @@ -13,28 +13,28 @@ description: Execute /(\d{3})(\d{3})\1\2/.exec("123456123456") and check results var __executed = /(\d{3})(\d{3})\1\2/.exec("123456123456"); -var __expected = ["123456123456","123","456"]; +var __expected = ["123456123456", "123", "456"]; __expected.index = 0; __expected.input = "123456123456"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T11.js b/test/built-ins/RegExp/S15.10.2.8_A3_T11.js index 1caea9d733f2b97fc4c41d19c600743874f2ad9f..be49cb2195eff85770bf6cd572f8b8a813c86d5f 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T11.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T11.js @@ -13,28 +13,28 @@ description: Execute /a(..(..)..)/.exec("abcdefgh") and check results var __executed = /a(..(..)..)/.exec("abcdefgh"); -var __expected = ["abcdefg","bcdefg","de"]; +var __expected = ["abcdefg", "bcdefg", "de"]; __expected.index = 0; __expected.input = "abcdefgh"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T12.js b/test/built-ins/RegExp/S15.10.2.8_A3_T12.js index a23895599dd52d1d40986c621c4b45b7478e3857..a6612cfd33f84ee0a046922a7c3d8758551fecad 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T12.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T12.js @@ -13,28 +13,28 @@ description: Execute /(a(b(c)))(d(e(f)))/.exec("xabcdefg") and check results var __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); -var __expected = ["abcdef","abc","bc","c","def","ef","f"]; +var __expected = ["abcdef", "abc", "bc", "c", "def", "ef", "f"]; __expected.index = 1; __expected.input = "xabcdefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T13.js b/test/built-ins/RegExp/S15.10.2.8_A3_T13.js index d84b98fe354f18d28d4a5d3a6ce26d5ad47b9588..9569ff49189f8e482fdfe6738d5352e51b93d5e4 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T13.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T13.js @@ -15,28 +15,28 @@ description: > var __executed = /(a(b(c)))(d(e(f)))\2\5/.exec("xabcdefbcefg"); -var __expected = ["abcdefbcef","abc","bc","c","def","ef","f"]; +var __expected = ["abcdefbcef", "abc", "bc", "c", "def", "ef", "f"]; __expected.index = 1; __expected.input = "xabcdefbcefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T14.js b/test/built-ins/RegExp/S15.10.2.8_A3_T14.js index 345cc11121ca585f77c32218138fbb5e18fcece7..1c44aaf4df1fd48611854bc0d67e44b1272aef38 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T14.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T14.js @@ -13,28 +13,28 @@ description: Execute /a(.?)b\1c\1d\1/.exec("abcd") and check results var __executed = /a(.?)b\1c\1d\1/.exec("abcd"); -var __expected = ["abcd",""]; +var __expected = ["abcd", ""]; __expected.index = 0; __expected.input = "abcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T15.js b/test/built-ins/RegExp/S15.10.2.8_A3_T15.js index 972ed33fa28ec0543f1670a9b75a67b7be0ae633..4131d002fe6bbdd5bcdf8752cd438d5ccdc4eca8 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T15.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T15.js @@ -16,43 +16,43 @@ var __openParen = '('; var __closeParen = ')'; var __pattern = ''; var numParens = 200; - -for (var i=0; i<numParens; i++) - __pattern += __openParen; - + +for (var i = 0; i < numParens; i++) + __pattern += __openParen; + __pattern += __strOriginal; -for (i=0; i<numParens; i++) - __pattern += __closeParen; - +for (i = 0; i < numParens; i++) + __pattern += __closeParen; + var __re = new RegExp(__pattern); var __executed = __re.exec(__strOriginal); var __expected = []; -for (var i=0; i<=numParens; i++) - __expected.push(__strOriginal); +for (var i = 0; i <= numParens; i++) + __expected.push(__strOriginal); __expected.index = 0; __expected.input = __strOriginal; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T16.js b/test/built-ins/RegExp/S15.10.2.8_A3_T16.js index 60e86bbc26bd4b46863751678587e06154f54174..e0f528a9ba15c5456afa6979feaa93afa3d1088b 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T16.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T16.js @@ -16,15 +16,15 @@ var __openParen = '(?:'; var __closeParen = ')'; var __pattern = ''; var numParens = 200; - -for (var i=0; i<numParens; i++) - __pattern += __openParen; - + +for (var i = 0; i < numParens; i++) + __pattern += __openParen; + __pattern += __strOriginal; -for (i=0; i<numParens; i++) - __pattern += __closeParen; - +for (i = 0; i < numParens; i++) + __pattern += __closeParen; + var __re = new RegExp(__pattern); var __executed = __re.exec(__strOriginal); @@ -35,22 +35,22 @@ __expected.input = __strOriginal; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T17.js b/test/built-ins/RegExp/S15.10.2.8_A3_T17.js index 67079d3cdc47cf26a1bc902dc95be45b66c50f0b..ff69d930c3e3b33dc799ce0c6e1e8870dcb43b2b 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T17.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T17.js @@ -11,13 +11,13 @@ es5id: 15.10.2.8_A3_T17 description: "see bug http:bugzilla.mozilla.org/show_bug.cgi?id=169497" ---*/ -var __body=""; +var __body = ""; __body += '<body onXXX="alert(event.type);">\n'; __body += '<p>Kibology for all<\/p>\n'; __body += '<p>All for Kibology<\/p>\n'; __body += '<\/body>'; -var __html=""; +var __html = ""; __html += '<html>\n'; __html += __body; __html += '\n<\/html>'; @@ -30,22 +30,22 @@ __expected.input = __html; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /<body.*>((.*\\n?)*?)<\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T18.js b/test/built-ins/RegExp/S15.10.2.8_A3_T18.js index 16e866376f967e4958a8e46e9fe4b71c91074f1a..9228e64b3f47566d17df97e81e8b02c81186530f 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T18.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T18.js @@ -17,5 +17,5 @@ var __expected = 'To sign up click <a href="https:www.xxxx.org/subscribe.htm">he //CHECK#1 if (__replaced !== __expected) { - $ERROR('#1: __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, \'<a href="$4">$2</a>\'); __replaced === ' + __expected + '. Actual: ' + __replaced); + $ERROR('#1: __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, \'<a href="$4">$2</a>\'); __replaced === ' + __expected + '. Actual: ' + __replaced); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T19.js b/test/built-ins/RegExp/S15.10.2.8_A3_T19.js index 4da3e6fe538abcff063ba4f87b0ca75037f39384..93c9090f20af688a00fe63021c3bf11da9177003 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T19.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T19.js @@ -15,28 +15,28 @@ description: > var __executed = /([\S]+([ \t]+[\S]+)*)[ \t]*=[ \t]*[\S]+/.exec("Course_Creator = Test"); -var __expected = ["Course_Creator = Test","Course_Creator",undefined]; +var __expected = ["Course_Creator = Test", "Course_Creator", undefined]; __expected.index = 0; __expected.input = "Course_Creator = Test"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T2.js b/test/built-ins/RegExp/S15.10.2.8_A3_T2.js index d65ecc0e7d4ae579bda1d3704a48d3547745a0ea..ebd0e895118ffeb3a756e517fe877e5cf70a69f0 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T2.js @@ -15,28 +15,28 @@ description: > var __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.exec("Developing with Java is fun, try it"); -var __expected = ["Java is fun","Java",undefined,"fun"]; +var __expected = ["Java is fun", "Java", undefined, "fun"]; __expected.index = 16; __expected.input = "Developing with Java is fun, try it"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T20.js b/test/built-ins/RegExp/S15.10.2.8_A3_T20.js index cd750fb9d120b5e648cf99b3924e10c11c586c33..6f148d50f6d46a0ed6924858900bf696cd15bbd5 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T20.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T20.js @@ -13,28 +13,28 @@ description: Execute /^(A)?(A.*)$/.exec("AAA") and check results var __executed = /^(A)?(A.*)$/.exec("AAA"); -var __expected = ["AAA","A","AA"]; +var __expected = ["AAA", "A", "AA"]; __expected.index = 0; __expected.input = "AAA"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T21.js b/test/built-ins/RegExp/S15.10.2.8_A3_T21.js index a47a45c977b7dbc3c148928306856d2e0f90ac60..8e6b2e7b4c5b30beaa52fd4145c91320e5c09be7 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T21.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T21.js @@ -13,28 +13,28 @@ description: Execute /^(A)?(A.*)$/.exec("AA") and check results var __executed = /^(A)?(A.*)$/.exec("AA"); -var __expected = ["AA","A","A"]; +var __expected = ["AA", "A", "A"]; __expected.index = 0; __expected.input = "AA"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("AA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T22.js b/test/built-ins/RegExp/S15.10.2.8_A3_T22.js index 27752d9bb99d78f3e40dcf4f7a00d2b4da88ba99..f64a69edab0990a5fc5d8ca7acf5e91eaafe6e37 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T22.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T22.js @@ -13,28 +13,28 @@ description: Execute /^(A)?(A.*)$/.exec("A") and check results var __executed = /^(A)?(A.*)$/.exec("A"); -var __expected = ["A",undefined,"A"]; +var __expected = ["A", undefined, "A"]; __expected.index = 0; __expected.input = "A"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("A"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("A"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("A"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("A"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("A"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("A"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("A"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /^(A)?(A.*)$/.exec("A"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T23.js b/test/built-ins/RegExp/S15.10.2.8_A3_T23.js index 7e974f5f0a73af2976e121cdfced4def6e830265..9789375339890f2aa7ec66aa43681e5a7ed5c3d6 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T23.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T23.js @@ -17,28 +17,28 @@ var __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; var __executed = /(A)?(A.*)/.exec(__string); -var __expected = ["AAAaaAAaaaf;lrlrzs","A","AAaaAAaaaf;lrlrzs"]; +var __expected = ["AAAaaAAaaaf;lrlrzs", "A", "AAaaAAaaaf;lrlrzs"]; __expected.index = 13; __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T24.js b/test/built-ins/RegExp/S15.10.2.8_A3_T24.js index f3c400e2b6e168045bf49e93c56ac0b7c78a4d61..6b01cade8b4363886a42869fa9fa8d6100fe7bf8 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T24.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T24.js @@ -17,28 +17,28 @@ var __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; var __executed = /(A)?(A.*)/.exec(__string); -var __expected = ["AAaaAAaaaf;lrlrzs","A","AaaAAaaaf;lrlrzs"]; +var __expected = ["AAaaAAaaaf;lrlrzs", "A", "AaaAAaaaf;lrlrzs"]; __expected.index = 13; __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T25.js b/test/built-ins/RegExp/S15.10.2.8_A3_T25.js index 82f567dddb586e76e22d20d289b62aff194b91f3..a8108f0ca92ff37fd356e0bae5f3cdc938f461b5 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T25.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T25.js @@ -17,28 +17,28 @@ var __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; var __executed = /(A)?(A.*)/.exec(__string); -var __expected = ["AaaAAaaaf;lrlrzs",undefined,"AaaAAaaaf;lrlrzs"]; +var __expected = ["AaaAAaaaf;lrlrzs", undefined, "AaaAAaaaf;lrlrzs"]; __expected.index = 13; __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T26.js b/test/built-ins/RegExp/S15.10.2.8_A3_T26.js index 4a122d15c7b8c70351cafadade3ddfaacbb45809..a27e53b1a2fbe9bc1a5bbd36684ceafb784eed89 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T26.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T26.js @@ -15,28 +15,28 @@ var __string = "a"; var __executed = /(a)?a/.exec(__string); -var __expected = ["a",undefined]; +var __expected = ["a", undefined]; __expected.index = 0; __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "a"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "a"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T27.js b/test/built-ins/RegExp/S15.10.2.8_A3_T27.js index 777aa82f82a011b3ebf5d2dc76e3e9518529a95b..1eb78a151636e6853a67228b006259d01c748d95 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T27.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T27.js @@ -15,28 +15,28 @@ var __string = "a"; var __executed = /a|(b)/.exec(__string); -var __expected = ["a",undefined]; +var __expected = ["a", undefined]; __expected.index = 0; __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "a"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "a"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T28.js b/test/built-ins/RegExp/S15.10.2.8_A3_T28.js index 28d9b538411bdd4aaa8c3c0743106dfcf45c8612..e1cfc1f2111a0e2324d2d8e46616934298c26d47 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T28.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T28.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T29.js b/test/built-ins/RegExp/S15.10.2.8_A3_T29.js index 8e028ec862252e897b8657b05894a700df555638..e2bbc60f4960cf383bcce137cb40e212d1e8c840 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T29.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T29.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T3.js b/test/built-ins/RegExp/S15.10.2.8_A3_T3.js index f041a02b6a1c2b3d790b923de0e5d996dcded9fc..2d7ef90666c7a0b1a4585c31e6e22d0e2922145f 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T3.js @@ -18,5 +18,5 @@ var __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.test("Developing with Jav //CHECK#1 if (__executed) { - $ERROR('#1: /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") === false'); + $ERROR('#1: /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T30.js b/test/built-ins/RegExp/S15.10.2.8_A3_T30.js index 3cce8f11f297544bd1178a094604e5e9e171922d..bf4d94b66395d4f130fd2714d79517c76c38c425 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T30.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T30.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T31.js b/test/built-ins/RegExp/S15.10.2.8_A3_T31.js index b4614efea3df66acc38fe6ce94c063dd66fda65e..b0821bf509eda36b5798fc8560d006a81befd3f8 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T31.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T31.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T32.js b/test/built-ins/RegExp/S15.10.2.8_A3_T32.js index 304d4e3d8b7412a5a6536b173408d9205f2651c6..0e2704b77871498189adddbe5f7e957e54dc1786 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T32.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T32.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T33.js b/test/built-ins/RegExp/S15.10.2.8_A3_T33.js index b59a54d646fd5ce04ab7bec10ba4533698dc2195..cefeb9f33cfd16da7836101cece3c53f90736941 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T33.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T33.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T4.js b/test/built-ins/RegExp/S15.10.2.8_A3_T4.js index 24599175b8daddb670a9416003bc767128ea61cf..0f19d72edd4e1682a9ccfc4bf383f558259efa70 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T4.js @@ -13,28 +13,28 @@ description: Execute /(abc)/.exec("abc") and check results var __executed = /(abc)/.exec("abc"); -var __expected = ["abc","abc"]; +var __expected = ["abc", "abc"]; __expected.index = 0; __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(abc)/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(abc)/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(abc)/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(abc)/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(abc)/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(abc)/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(abc)/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(abc)/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T5.js b/test/built-ins/RegExp/S15.10.2.8_A3_T5.js index 979691b2a9ec735df74c611d9f10cc75034a29d1..596dbff14ddb645e778873b9167fb1124b6dc27b 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T5.js @@ -13,28 +13,28 @@ description: Execute /a(bc)d(ef)g/.exec("abcdefg") and check results var __executed = /a(bc)d(ef)g/.exec("abcdefg"); -var __expected = ["abcdefg","bc","ef"]; +var __expected = ["abcdefg", "bc", "ef"]; __expected.index = 0; __expected.input = "abcdefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T6.js b/test/built-ins/RegExp/S15.10.2.8_A3_T6.js index 42fb18903bbd26ec99b4f00d8e79cffafc3ba2a5..8197542d72b3d50ead30fdd07fa441347123aa24 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T6.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T6.js @@ -13,28 +13,28 @@ description: Execute /(.{3})(.{4})/.exec("abcdefgh") and check results var __executed = /(.{3})(.{4})/.exec("abcdefgh"); -var __expected = ["abcdefg","abc","defg"]; +var __expected = ["abcdefg", "abc", "defg"]; __expected.index = 0; __expected.input = "abcdefgh"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T7.js b/test/built-ins/RegExp/S15.10.2.8_A3_T7.js index 6c30ce8c04c48c3c4139349b71dbccabbaae900f..4b59585f3036eed993c7e43796285ec4af962dbd 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T7.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T7.js @@ -13,28 +13,28 @@ description: Execute /(aa)bcd\1/.exec("aabcdaabcd") and check results var __executed = /(aa)bcd\1/.exec("aabcdaabcd"); -var __expected = ["aabcdaa","aa"]; +var __expected = ["aabcdaa", "aa"]; __expected.index = 0; __expected.input = "aabcdaabcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T8.js b/test/built-ins/RegExp/S15.10.2.8_A3_T8.js index 2edd5268b738736d39f3063aadd1ff0d9806726d..4d1f6b64f5aebf933bc52c43b4ae33183d94b9b4 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T8.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T8.js @@ -13,28 +13,28 @@ description: Execute /(aa).+\1/.exec("aabcdaabcd") and check results var __executed = /(aa).+\1/.exec("aabcdaabcd"); -var __expected = ["aabcdaa","aa"]; +var __expected = ["aabcdaa", "aa"]; __expected.index = 0; __expected.input = "aabcdaabcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T9.js b/test/built-ins/RegExp/S15.10.2.8_A3_T9.js index 706298b3ce41c599cefaf26038bd4dbdff1f9024..0b2c48bc1932fa06350a9469016495ea8ab157bb 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T9.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T9.js @@ -13,28 +13,28 @@ description: Execute /(.{2}).+\1/.exec("aabcdaabcd") and check results var __executed = /(.{2}).+\1/.exec("aabcdaabcd"); -var __expected = ["aabcdaa","aa"]; +var __expected = ["aabcdaa", "aa"]; __expected.index = 0; __expected.input = "aabcdaabcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T1.js b/test/built-ins/RegExp/S15.10.2.8_A4_T1.js index 77f1a0b4ccbdafefc0fb3b778a069218b403d0e0..fedcd77506cf46e4284eb5b3c8310d2a7ab856ec 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T1.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T2.js b/test/built-ins/RegExp/S15.10.2.8_A4_T2.js index 2d43f56b8efe45a43bfd29088120621be01be8b2..f4b2359afe5ceceb7938c97c74804c34003733eb 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T2.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T3.js b/test/built-ins/RegExp/S15.10.2.8_A4_T3.js index 9f934ce5913ac0e9d41351e3970e64ca1018a511..90b4b631f018d0c29845df0c9cdb0f62e04c6681 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T3.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T3.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T4.js b/test/built-ins/RegExp/S15.10.2.8_A4_T4.js index 105daa3b605e8b3cfe045588c2728ee1b09cb2ac..0ab6b7aecfc2b57812f717a3cffd26801d84748c 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T4.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T5.js b/test/built-ins/RegExp/S15.10.2.8_A4_T5.js index 6d69d1db3f6c1cbad9d1f7cace3b89065e98c166..67953918fcb70feb249431b4c631676e877f014d 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T5.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "...."; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "...."; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "...."; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "...."; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "...."; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "...."; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "...."; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "...."; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T6.js b/test/built-ins/RegExp/S15.10.2.8_A4_T6.js index c311af54a2e1b9238a6fbe9cfb83d4fa254388b0..cb1401cc82e616acc8a8e9a39a3e464421786227 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T6.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T6.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T7.js b/test/built-ins/RegExp/S15.10.2.8_A4_T7.js index 45b1bcd812359df00b7b126a547ae3d176a1d523..61f0fe9113f377153a017913ada9d9568fae0204 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T7.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T7.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T8.js b/test/built-ins/RegExp/S15.10.2.8_A4_T8.js index b76942c432fe26b08c47ef75d77955fcb32c6e5f..5589b330b07725a4ee1539eb2b6145f810dd403c 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T8.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T8.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T9.js b/test/built-ins/RegExp/S15.10.2.8_A4_T9.js index a26ce200abb0989ee9a5ea1ab703dfed3b46ace2..fe82987ad8a954278d8200e520db69c8d3906f68 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T9.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T9.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A5_T1.js b/test/built-ins/RegExp/S15.10.2.8_A5_T1.js index 5afd7b265cec2774d3de52bac3a22d51d37404e0..1306d39a8129587aa160717637c5f75b49f10c77 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A5_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A5_T1.js @@ -18,22 +18,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A5_T2.js b/test/built-ins/RegExp/S15.10.2.8_A5_T2.js index 2671822ad68579ca1cc0e5a261a32edd7c6d2646..f6f5711bfd2e133b419693043f4899f54989db3a 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A5_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A5_T2.js @@ -18,22 +18,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T1.js b/test/built-ins/RegExp/S15.10.2.9_A1_T1.js index b718e3f32df167ff710af08c2ae7f71b98c47fbb..02c0cc609aadabc7789cd54f4e492826e34eb866 100644 --- a/test/built-ins/RegExp/S15.10.2.9_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.9_A1_T1.js @@ -20,22 +20,22 @@ __expected.input = "do you listen the the band"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T2.js b/test/built-ins/RegExp/S15.10.2.9_A1_T2.js index 0ef2125624cc6dfde299fa6ba90ab5b325f83982..c0b0fa020964aa07f323c2e8ffac9e3cbc6deb10 100644 --- a/test/built-ins/RegExp/S15.10.2.9_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.9_A1_T2.js @@ -21,22 +21,22 @@ __expected.input = "x09x12x01x01u00FFu00FFx04x04x23"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T3.js b/test/built-ins/RegExp/S15.10.2.9_A1_T3.js index 6c3bfb0ac1ad1ae1b0ac8cac0237159feec3d4bb..0358e6ff4a0a7c1e3f58065f3889bc208c2189e6 100644 --- a/test/built-ins/RegExp/S15.10.2.9_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.9_A1_T3.js @@ -21,22 +21,22 @@ __expected.input = "x09x12x01x05u00FFu00FFx04x04x23"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T5.js b/test/built-ins/RegExp/S15.10.2.9_A1_T5.js index b97e62d57315271d4008e662a4d340939564fb78..1dd2a19adc9d5eab935e62372451f2deba7f0e26 100644 --- a/test/built-ins/RegExp/S15.10.2.9_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.9_A1_T5.js @@ -18,22 +18,22 @@ __expected.input = "baaac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/S15.10.2_A1_T1.js b/test/built-ins/RegExp/S15.10.2_A1_T1.js index 9ebce76ca21e9631fed214a60eec711d72eace64..a3f9d4a5e0f95f107f677398b704c7d41ee415f1 100644 --- a/test/built-ins/RegExp/S15.10.2_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2_A1_T1.js @@ -46,41 +46,42 @@ var XML_SPE = TextSE + "|" + MarkupSPE; //// ///// -var __patterns = [TextSE,UntilHyphen,Until2Hyphens,CommentCE,UntilRSBs,CDATA_CE,S,NameStrt, NameChar, -Name, QuoteSE, DT_IdentSE, MarkupDeclCE, S1,UntilQMs, PI_Tail, DT_ItemSE, DocTypeCE, DeclCE, -PI_CE, EndTagCE, AttValSE, ElemTagCE, MarkupSPE, XML_SPE]; +var __patterns = [TextSE, UntilHyphen, Until2Hyphens, CommentCE, UntilRSBs, CDATA_CE, S, NameStrt, NameChar, + Name, QuoteSE, DT_IdentSE, MarkupDeclCE, S1, UntilQMs, PI_Tail, DT_ItemSE, DocTypeCE, DeclCE, + PI_CE, EndTagCE, AttValSE, ElemTagCE, MarkupSPE, XML_SPE +]; -var __html=""+ -'<html xmlns="http://www.w3.org/1999/xhtml"\n' + -' xmlns:xlink="http://www.w3.org/XML/XLink/0.9">\n' + -' <head><title>Three Namespaces</title></head>\n' + -' <body>\n' + -' <h1 align="center">An Ellipse and a Rectangle</h1>\n' + -' <svg xmlns="http://www.w3.org/Graphics/SVG/SVG-19991203.dtd"\n' + -' width="12cm" height="10cm">\n' + -' <ellipse rx="110" ry="130" />\n' + -' <rect x="4cm" y="1cm" width="3cm" height="6cm" />\n' + -' </svg>\n' + -' <p xlink:type="simple" xlink:href="ellipses.html">\n' + -' More about ellipses\n' + -' </p>\n' + -' <p xlink:type="simple" xlink:href="rectangles.html">\n' + -' More about rectangles\n' + -' </p>\n' + -' <hr/>\n' + -' <p>Last Modified February 13, 2000</p>\n' + -' </body>\n' + -'</html>'; +var __html = "" + + '<html xmlns="http://www.w3.org/1999/xhtml"\n' + + ' xmlns:xlink="http://www.w3.org/XML/XLink/0.9">\n' + + ' <head><title>Three Namespaces</title></head>\n' + + ' <body>\n' + + ' <h1 align="center">An Ellipse and a Rectangle</h1>\n' + + ' <svg xmlns="http://www.w3.org/Graphics/SVG/SVG-19991203.dtd"\n' + + ' width="12cm" height="10cm">\n' + + ' <ellipse rx="110" ry="130" />\n' + + ' <rect x="4cm" y="1cm" width="3cm" height="6cm" />\n' + + ' </svg>\n' + + ' <p xlink:type="simple" xlink:href="ellipses.html">\n' + + ' More about ellipses\n' + + ' </p>\n' + + ' <p xlink:type="simple" xlink:href="rectangles.html">\n' + + ' More about rectangles\n' + + ' </p>\n' + + ' <hr/>\n' + + ' <p>Last Modified February 13, 2000</p>\n' + + ' </body>\n' + + '</html>'; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - for(var index=0; index<__patterns.length; index++) { - var __re = new RegExp(__patterns[index]); - __re.test(__html); - } + for (var index = 0; index < __patterns.length; index++) { + var __re = new RegExp(__patterns[index]); + __re.test(__html); + } } catch (e) { - $ERROR('#'+index+": XML Shallow Parsing with Regular Expression: "+__patterns[index]); + $ERROR('#' + index + ": XML Shallow Parsing with Regular Expression: " + __patterns[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T1.js b/test/built-ins/RegExp/S15.10.3.1_A1_T1.js index 80e248317737ad96a65e0e982c78647005e13701..653bb0a6101c0ee1972c4cfda66f2d07b911feb0 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T1.js @@ -15,5 +15,5 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = /x/i; __instance = RegExp(__re); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + $ERROR('#1: __re = /x/i; __instance = RegExp(__re); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T2.js b/test/built-ins/RegExp/S15.10.3.1_A1_T2.js index a40609dcb7fbb92a8339b98faed0cc20fec70591..2be1111639bc757b674a896eb0d867bc58ee094e 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T2.js @@ -10,10 +10,10 @@ description: R is new RegExp and instance is RegExp(R, function(){}()) ---*/ var __re = new RegExp; -var __instance = RegExp(__re, function(){}()); +var __instance = RegExp(__re, function() {}()); __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = new RegExp; __instance = RegExp(__re, function(){}()); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + $ERROR('#1: __re = new RegExp; __instance = RegExp(__re, function(){}()); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T3.js b/test/built-ins/RegExp/S15.10.3.1_A1_T3.js index 42fe6507e5fc341c70017089a3967f431beb7d4a..a73fdc6e5ddf25b8d027fc3c16325fa2e0944199 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T3.js @@ -17,7 +17,7 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = new RegExp(); __instance = RegExp(__re, x); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + $ERROR('#1: __re = new RegExp(); __instance = RegExp(__re, x); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } var x; diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T4.js b/test/built-ins/RegExp/S15.10.3.1_A1_T4.js index 9416e9ee79c5619d29e8ea4a1f8e355a82fb71db..72453d3e5de88af5391cc1235b140b4f7e77aa49 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T4.js @@ -15,5 +15,5 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = RegExp(); __instance = RegExp(__re, void 0); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + $ERROR('#1: __re = RegExp(); __instance = RegExp(__re, void 0); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T5.js b/test/built-ins/RegExp/S15.10.3.1_A1_T5.js index 9e826ff86d5a4c28f6aae52947abf792139acfdc..59658029c4569958da979938f8322a639e743eb3 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T5.js @@ -15,5 +15,5 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = /\\b/m; __instance = RegExp(__re, undefined); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + $ERROR('#1: __re = /\\b/m; __instance = RegExp(__re, undefined); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A2_T1.js b/test/built-ins/RegExp/S15.10.3.1_A2_T1.js index 61e7e6874e1cd1c1cbc440e4d6976136153b81c2..b4af65a7d561d180031413040258b7b58bb5efce 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.3.1_A2_T1.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (RegExp(new RegExp("\d"), "1"))); + $ERROR('#1.1: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (RegExp(new RegExp("\d"), "1"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.3.1_A2_T2.js b/test/built-ins/RegExp/S15.10.3.1_A2_T2.js index 51f01d47a7e9a500bd5563a815652272ec86d4ab..df67961a765a30986a6245dc49935b8dd48e14c9 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.3.1_A2_T2.js @@ -15,9 +15,9 @@ var x = 1; //CHECK#1 try { - $ERROR('#1.1: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (RegExp(/[a-b]?/, x))); + $ERROR('#1.1: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (RegExp(/[a-b]?/, x))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.3.1_A3_T1.js b/test/built-ins/RegExp/S15.10.3.1_A3_T1.js index 086b41c710a0dee37bde790955b28305d66ba758..2eb733cd30e0ac4d64b6655d4660893a9142b532 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.3.1_A3_T1.js @@ -14,10 +14,10 @@ var __instance = RegExp(__re, "i"); //CHECK#1 if (__instance.constructor !== RegExp) { - $ERROR('#1: __re = "d+"; __instance = RegExp(__re, "i"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); + $ERROR('#1: __re = "d+"; __instance = RegExp(__re, "i"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); } //CHECK#2 if (__instance.source !== __re) { - $ERROR('#2: __re = "d+"; __instance = RegExp(__re, "i"); __instance.source === __re. Actual: '+ (__instance.source)); + $ERROR('#2: __re = "d+"; __instance = RegExp(__re, "i"); __instance.source === __re. Actual: ' + (__instance.source)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js index a65663218bc9ffe7bc4b51216cd913adc5b4cff9..2737fa7ad47bdbdcab8645eb1129abe8b67165c4 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js @@ -11,14 +11,18 @@ description: > RegExp(R,"gm") ---*/ -var __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); +var __instance = RegExp({ + toString: function() { + return "[a-c]*"; + } +}, "gm"); //CHECK#1 if (__instance.constructor !== RegExp) { - $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); + $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); } //CHECK#2 if (__instance.source !== "[a-c]*") { - $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: '+ (__instance.source)); + $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: ' + (__instance.source)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T1.js b/test/built-ins/RegExp/S15.10.4.1_A1_T1.js index d038262d15cb49f31439af33b976bf197bba5b6d..5e6e04c040ad1efae0bf326f98ada57977eec872 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T1.js @@ -10,11 +10,11 @@ description: Pattern is /./i and RegExp is new RegExp(pattern) ---*/ var __pattern = /./i; -var __re = new RegExp(__pattern); +var __re = new RegExp(__pattern); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = /./i; __re = new RegExp(__pattern); __re.source === __pattern.source. Actual: '+ (__re.source)); + $ERROR('#1: __pattern = /./i; __re = new RegExp(__pattern); __re.source === __pattern.source. Actual: ' + (__re.source)); } //CHECK#2 diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T2.js b/test/built-ins/RegExp/S15.10.4.1_A1_T2.js index bbcfff4d93dae48999ae43eb4706a8da90cb6969..ef0fce22e4dfc86f44d568c168f6874863e2e2d5 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T2.js @@ -16,7 +16,7 @@ var __re = new RegExp(__pattern, x); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.source === __pattern.source. Actual: '+ (__re.source)); + $ERROR('#1: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.source === __pattern.source. Actual: ' + (__re.source)); } //CHECK#2 diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T3.js b/test/built-ins/RegExp/S15.10.4.1_A1_T3.js index 21f523524198bdf61079eb493e108f16b4c6bc4f..40eacdfa5b1ca6d32bac26935c6669a6a483e8da 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T3.js @@ -14,7 +14,7 @@ var __re = new RegExp(__pattern, void 0); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.source === __pattern.source. Actual: '+ (__re.source)); + $ERROR('#1: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.source === __pattern.source. Actual: ' + (__re.source)); } //CHECK#2 diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T4.js b/test/built-ins/RegExp/S15.10.4.1_A1_T4.js index 9585f8479e6cb6bb3b13c2742a040e87f363ded1..f03b42870967ec4d4f7ab8c95c1c9921ac53c348 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T4.js @@ -14,7 +14,7 @@ var __re = new RegExp(__pattern, undefined); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.source === __pattern.source. Actual: '+ (__re.source)); + $ERROR('#1: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.source === __pattern.source. Actual: ' + (__re.source)); } //CHECK#2 diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T5.js b/test/built-ins/RegExp/S15.10.4.1_A1_T5.js index e318c03fb7bb120cc9ccd668231176cd63af93bc..79f7c6cd6ba5ec3568299e621ad1761220bbeb02 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T5.js @@ -11,12 +11,12 @@ description: > RegExp(pattern,(function(){})()) ---*/ -var __pattern = RegExp("1?","mig"); -var __re = new RegExp(__pattern, (function(){})()); +var __pattern = RegExp("1?", "mig"); +var __re = new RegExp(__pattern, (function() {})()); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.source === __pattern.source. Actual: '+ (__re.source)); + $ERROR('#1: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.source === __pattern.source. Actual: ' + (__re.source)); } //CHECK#2 diff --git a/test/built-ins/RegExp/S15.10.4.1_A3_T5.js b/test/built-ins/RegExp/S15.10.4.1_A3_T5.js index 1fb6251a8bc5b3be9f959a37c427e5b67e794cc6..c632d95374f642f3708dfdfc4cf83eec39c11f54 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A3_T5.js @@ -7,7 +7,7 @@ es5id: 15.10.4.1_A3_T5 description: RegExp is new RegExp((function(){})()) ---*/ -var __re = new RegExp((function(){})()); +var __re = new RegExp((function() {})()); //CHECK#2 if (__re.multiline !== false) { diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T1.js b/test/built-ins/RegExp/S15.10.4.1_A4_T1.js index f9db74f336a673777e6d9caa081334e9621b974b..c3fee8b28b61d157b43421e0c22f81721da1005c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A4_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A4_T1.js @@ -11,7 +11,7 @@ var __re = new RegExp(null, void 0); //CHECK#1 if (__re.source !== "null") { - $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: '+ (__re.source)); + $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: ' + (__re.source)); } //CHECK#2 diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T4.js b/test/built-ins/RegExp/S15.10.4.1_A4_T4.js index ab2f6ebf4f1bd7cab10359683e69d1e69cd203d9..be9b3e42b2d2acda896568ae998ce5d22b587754 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A4_T4.js @@ -11,7 +11,7 @@ var __re = new RegExp(null, void 0); //CHECK#1 if (__re.source !== "null") { - $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: '+ (__re.source)); + $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: ' + (__re.source)); } //CHECK#2 diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T5.js b/test/built-ins/RegExp/S15.10.4.1_A4_T5.js index 7fbffaa1ad9d647622018bffbf40bf8292361ce4..ca987b8ad7ce8518087eed6074492648e646a999 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A4_T5.js @@ -7,7 +7,7 @@ es5id: 15.10.4.1_A4_T5 description: RegExp is new RegExp("",(function(){})()) ---*/ -var __re = new RegExp("", (function(){})()); +var __re = new RegExp("", (function() {})()); //CHECK#2 if (__re.multiline !== false) { diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T1.js b/test/built-ins/RegExp/S15.10.4.1_A5_T1.js index 8aebbec678d8fd29190f0d418ba6af7f9ff090d8..70882c2cbe64a2a1c09aaed8c8c561cfa219d880 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T1.js @@ -11,9 +11,9 @@ description: Checking if using "ii" as F leads to throwing the correct exception //CHECK#1 try { - $ERROR('#1.1: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (new RegExp(undefined,"ii"))); + $ERROR('#1.1: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (new RegExp(undefined, "ii"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T3.js b/test/built-ins/RegExp/S15.10.4.1_A5_T3.js index 6113d779e08d043fa87dd9c31f1246f8aa2a3141..2d005f34cd3ff6ffb93e5472e50c067d62b562ec 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T3.js @@ -11,9 +11,9 @@ description: Checking by using eval, try to use eval("\"migr\"") as F //CHECK#1 try { - $ERROR('#1.1: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (new RegExp("",eval("\"migr\"")))); + $ERROR('#1.1: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (new RegExp("", eval("\"migr\"")))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T4.js b/test/built-ins/RegExp/S15.10.4.1_A5_T4.js index 4949563edbdeab95fd92ab438ef8e424e46a6e85..5cb04e03acde7717b0f64243bde0b755cff53b02 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T4.js @@ -11,9 +11,9 @@ description: Checking if using "z" as F leads to throwing the correct exception //CHECK#1 try { - $ERROR('#1.1: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (new RegExp("a|b","z"))); + $ERROR('#1.1: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (new RegExp("a|b", "z"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T6.js b/test/built-ins/RegExp/S15.10.4.1_A5_T6.js index 6cf250705b5c15f3f263fdf3a91638de5a29ceee..756e3b78d20b454823a9607a6749f27598cbac9f 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T6.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T6.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp(".",null) throw SyntaxError. Actual: ' + (new RegExp(".",null))); + $ERROR('#1.1: new RegExp(".",null) throw SyntaxError. Actual: ' + (new RegExp(".", null))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp(".",null) throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp(".",null) throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T7.js b/test/built-ins/RegExp/S15.10.4.1_A5_T7.js index 6830240524a492949ec473bebfb76cb6dd1caffb..159e00841305706a1836a3280d3f076ed1df6675 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T7.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T7.js @@ -11,9 +11,9 @@ description: Checking if using 1.0 as F leads to throwing the correct exception //CHECK#1 try { - $ERROR('#1.1: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (new RegExp("^",1.0))); + $ERROR('#1.1: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (new RegExp("^", 1.0))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T8.js b/test/built-ins/RegExp/S15.10.4.1_A5_T8.js index a88675aae9aac370482f52fed7ad7c504ea48d0c..f15d5131ed9a309a70960d9c26bc27cfbd681779 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T8.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T8.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("|",true) throw SyntaxError. Actual: ' + (new RegExp("|",true))); + $ERROR('#1.1: new RegExp("|",true) throw SyntaxError. Actual: ' + (new RegExp("|", true))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("|",true) throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("|",true) throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T9.js b/test/built-ins/RegExp/S15.10.4.1_A5_T9.js index 432b4eddd8b8b41467d0d7d1fa635fb355081801..69e5cbb15a383b619ba8e57cc8e786efa84e2ee4 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T9.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T9.js @@ -13,9 +13,11 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (new RegExp("$sup",{toString:function(){}}))); + $ERROR('#1.1: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (new RegExp("$sup", { + toString: function() {} + }))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A6_T1.js b/test/built-ins/RegExp/S15.10.4.1_A6_T1.js index 0ab30d722a2234ee0542bdc4389ab93126f5658e..add5ef6b9a0bb3488aa361fa52a58a8552a5e8e3 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A6_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A6_T1.js @@ -11,6 +11,6 @@ var __re = new RegExp; __re.toString = Object.prototype.toString; //CHECK#1 -if (__re.toString() !== "[object "+"RegExp"+"]") { - $ERROR('#1: __re = new RegExp; __re.toString = Object.prototype.toString; __re.toString() === "[object "+"RegExp"+"]". Actual: ' + (__re.toString())); +if (__re.toString() !== "[object " + "RegExp" + "]") { + $ERROR('#1: __re = new RegExp; __re.toString = Object.prototype.toString; __re.toString() === "[object "+"RegExp"+"]". Actual: ' + (__re.toString())); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A7_T1.js b/test/built-ins/RegExp/S15.10.4.1_A7_T1.js index e4d0d102e48be6eef6c6821b343330d037a1bcfb..f9f2b87cf2f11bf9956c334aa289f84f6eeecf9c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A7_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A7_T1.js @@ -17,5 +17,5 @@ RegExp.prototype.indicator = 1; //CHECK#1 if (__re.indicator !== 1) { - $ERROR('#1: __re = new RegExp; RegExp.prototype.indicator = 1; __re.indicator === 1. Actual: ' + (__re.indicator)); + $ERROR('#1: __re = new RegExp; RegExp.prototype.indicator = 1; __re.indicator === 1. Actual: ' + (__re.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A7_T2.js b/test/built-ins/RegExp/S15.10.4.1_A7_T2.js index f3edd64f6745d82156c1d209fc4baea95958d8a3..18fb090724fe2c2cca3620e6fb38cfefcc2700bd 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A7_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A7_T2.js @@ -14,5 +14,5 @@ var __re = new RegExp(); //CHECK#1 if (RegExp.prototype.isPrototypeOf(__re) !== true) { - $ERROR('#1: __re = new RegExp(); RegExp.prototype.isPrototypeOf(__re) === true. Actual: ' + (RegExp.prototype.isPrototypeOf(__re))); + $ERROR('#1: __re = new RegExp(); RegExp.prototype.isPrototypeOf(__re) === true. Actual: ' + (RegExp.prototype.isPrototypeOf(__re))); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T1.js b/test/built-ins/RegExp/S15.10.4.1_A8_T1.js index c1a063c854ced02c5a2a1e40bf523b2976073eb6..e5c086b6bcf3d12b5cc57a5d184c274c5612f038 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T1.js @@ -7,29 +7,29 @@ es5id: 15.10.4.1_A8_T1 description: Pattern is "a|b" and flags is "i" ---*/ -var __re = new RegExp("a|b","i"); +var __re = new RegExp("a|b", "i"); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp("a|b","i"); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp("a|b","i"); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp("a|b","i"); __re.multiline === false. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp("a|b","i"); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp("a|b","i"); __re.global === false. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp("a|b","i"); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp("a|b","i"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp("a|b","i"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp("a|b","i"); typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp("a|b","i"); typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T10.js b/test/built-ins/RegExp/S15.10.4.1_A8_T10.js index 23dbb0d1aa683066264c8de85acfec5d90bbff65..189c20bbd2fbffc375b91354e3f47807c1e16935 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T10.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T10.js @@ -7,29 +7,29 @@ es5id: 15.10.4.1_A8_T10 description: Pattern is true and flags is "m" ---*/ -var __re = new RegExp(true,"m"); +var __re = new RegExp(true, "m"); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp(true,"m"); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp(true,"m"); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== true) { - $ERROR('#2: __re = new RegExp(true,"m"); __re.multiline === true. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp(true,"m"); __re.multiline === true. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(true,"m"); __re.global === false. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp(true,"m"); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(true,"m"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp(true,"m"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(true,"m"); typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp(true,"m"); typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T11.js b/test/built-ins/RegExp/S15.10.4.1_A8_T11.js index 1e38cc3184ad3420ff2648414445195680dabcd1..3aa637f8097b53322c1359d35f52f8b4869221d9 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T11.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T11.js @@ -7,29 +7,29 @@ es5id: 15.10.4.1_A8_T11 description: Checking by using eval, pattern is Math and flags is eval("\"g\"") ---*/ -var __re = new RegExp(Math,eval("\"g\"")); +var __re = new RegExp(Math, eval("\"g\"")); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp(Math,eval("\\"g\\"")); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp(Math,eval("\\"g\\"")); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(Math,eval("\\"g\\"")); __re.multiline === false. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp(Math,eval("\\"g\\"")); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp(Math,eval("\\"g\\"")); __re.global === true. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp(Math,eval("\\"g\\"")); __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(Math,eval("\\"g\\"")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp(Math,eval("\\"g\\"")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(Math,eval("\\"g\\"")); typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp(Math,eval("\\"g\\"")); typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T12.js b/test/built-ins/RegExp/S15.10.4.1_A8_T12.js index 988bd7c402041216358abb1aeacc737d716d082a..a8d1c9f41508ad5faff84952e2756e6053cbac22 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T12.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T12.js @@ -11,9 +11,14 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp("\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}))); + $ERROR('#1.1: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp("\u0042", { + toString: void 0, + valueOf: function() { + throw "invalof"; + } + }))); } catch (e) { - if (e !== "invalof" ) { - $ERROR('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); - } + if (e !== "invalof") { + $ERROR('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T13.js b/test/built-ins/RegExp/S15.10.4.1_A8_T13.js index e69d236f2a022012458ac367ceb5d57b79fe21b6..11ba74a1c2f48cf9569c230e1c3d334c9987ee1d 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T13.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T13.js @@ -11,9 +11,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (new RegExp("1", {toString:function(){throw "intostr";}}))); + $ERROR('#1.1: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (new RegExp("1", { + toString: function() { + throw "intostr"; + } + }))); } catch (e) { - if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T2.js b/test/built-ins/RegExp/S15.10.4.1_A8_T2.js index ed7b3b7ce4a98e5f055ccea79e62d8ab38e075f8..f17f8819b35be1ef936e9370ad5fcb2c4317a2d5 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T2.js @@ -7,29 +7,31 @@ es5id: 15.10.4.1_A8_T2 description: Pattern is function(){return "a|b|[]";}() and flags is "ig" ---*/ -var __re = new RegExp(function(){return "a|b|[]";}(),"ig"); +var __re = new RegExp(function() { + return "a|b|[]"; +}(), "ig"); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp(function(){return "a|b|[]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp(function(){return "a|b|[]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(function(){return "a|b|[]"; __re.multiline === false. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp(function(){return "a|b|[]"; __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp(function(){return "a|b|[]"; __re.global === true. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp(function(){return "a|b|[]"; __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(function(){return "a|b|[]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp(function(){return "a|b|[]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T3.js b/test/built-ins/RegExp/S15.10.4.1_A8_T3.js index 17855d660de137e282c6139f9bcab611e61bde26..8fd699f48cb01107baed65ea9fa6bcec4aba29c6 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T3.js @@ -9,29 +9,35 @@ description: > (function(){return "m";})() ---*/ -var __re = new RegExp({toString:function(){return "[0-9]";}}, (function(){return "m";})()); +var __re = new RegExp({ + toString: function() { + return "[0-9]"; + } +}, (function() { + return "m"; +})()); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp({toString:function(){return "[0-9]"; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp({toString:function(){return "[0-9]"; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== true) { - $ERROR('#2: __re = new RegExp({toString:function(){return "[0-9]"; __re.multiline === true. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp({toString:function(){return "[0-9]"; __re.multiline === true. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp({toString:function(){return "[0-9]"; __re.global === false. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp({toString:function(){return "[0-9]"; __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp({toString:function(){return "[0-9]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp({toString:function(){return "[0-9]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T4.js b/test/built-ins/RegExp/S15.10.4.1_A8_T4.js index e2aeb316802aaafa3c9a0fff2155f7a8c024a9a5..463482d2bb9276bb45afc07a59664b2d920403f0 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T4.js @@ -9,29 +9,39 @@ description: > and flags is {toString:void 0,valueOf:function(){return "mig";}} ---*/ -var __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]";}}, {toString:void 0,valueOf:function(){return "mig";}}); +var __re = new RegExp({ + toString: void 0, + valueOf: function() { + return "[z-z]"; + } +}, { + toString: void 0, + valueOf: function() { + return "mig"; + } +}); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== true) { - $ERROR('#2: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.multiline === true. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.multiline === true. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.global === true. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T5.js b/test/built-ins/RegExp/S15.10.4.1_A8_T5.js index c451a0df78374695512c022136f9fc11917e5c27..7c2b13d60a5844d73a0d1893250bc202d6d95856 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T5.js @@ -9,29 +9,33 @@ description: > {toString:function(){return "";}} ---*/ -var __re = new RegExp(new Object("abc{1}"), {toString:function(){return "";}}); +var __re = new RegExp(new Object("abc{1}"), { + toString: function() { + return ""; + } +}); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.multiline === false. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.global === false. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T6.js b/test/built-ins/RegExp/S15.10.4.1_A8_T6.js index 63d049009c744a3755288d11ceadfda50202d8b6..8ef204406baddda7b6e1cbf8370576041038cb5f 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T6.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T6.js @@ -11,9 +11,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "i"))); + $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (new RegExp({ + toString: function() { + throw "intostr"; + } + }, "i"))); } catch (e) { - if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T7.js b/test/built-ins/RegExp/S15.10.4.1_A8_T7.js index a28ed37aebeab70135541eb90c1841c285004321..ff5d388662ac7948d305a1b9df90862bccb5d41c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T7.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T7.js @@ -11,9 +11,14 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}))); + $ERROR('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({ + toString: void 0, + valueOf: function() { + throw "invalof"; + } + }))); } catch (e) { - if (e !== "invalof" ) { - $ERROR('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); - } + if (e !== "invalof") { + $ERROR('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T8.js b/test/built-ins/RegExp/S15.10.4.1_A8_T8.js index 7e9cea428e4f4f7ea52ceea8fd4b74365e54dab9..32987b29543e1fb8093aab2844adf7fa80be375a 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T8.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T8.js @@ -11,9 +11,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "error"))); + $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (new RegExp({ + toString: function() { + throw "intostr"; + } + }, "error"))); } catch (e) { - if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T9.js b/test/built-ins/RegExp/S15.10.4.1_A8_T9.js index 48746e19a33383e0a155e945c53993c13b46c2d9..c0061c11f40ea42d65b287894542654aea40d16a 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T9.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T9.js @@ -11,25 +11,25 @@ var __re = new RegExp(1, new Object("gi")); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp(1, new Object("gi")); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp(1, new Object("gi")); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(1, new Object("gi")); __re.multiline === false. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp(1, new Object("gi")); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp(1, new Object("gi")); __re.global === true. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp(1, new Object("gi")); __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(1, new Object("gi")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp(1, new Object("gi")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(1, new Object("gi")); typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp(1, new Object("gi")); typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T1.js b/test/built-ins/RegExp/S15.10.4.1_A9_T1.js index 84f56e4cefdafee6e2a305b62d8e054616bc33b8..063b5d3f7068eab515e71f89547554336acfff09 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A9_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A9_T1.js @@ -11,9 +11,9 @@ description: Pattern is "??" //CHECK#1 try { - $ERROR('#1.1: new RegExp("??") throw SyntaxError. Actual: ' + (new RegExp("??"))); + $ERROR('#1.1: new RegExp("??") throw SyntaxError. Actual: ' + (new RegExp("??"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("??") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("??") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T2.js b/test/built-ins/RegExp/S15.10.4.1_A9_T2.js index 49ea6f3315f8fc144cee98484f65b140c74c8e7f..6ae0d4b3f5d51f51ffa9b27aea89eb6d21e8824b 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A9_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A9_T2.js @@ -11,9 +11,9 @@ description: Pattern is "[{-z]" //CHECK#1 try { - $ERROR('#1.1: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (new RegExp("[{-z]"))); + $ERROR('#1.1: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (new RegExp("[{-z]"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T3.js b/test/built-ins/RegExp/S15.10.4.1_A9_T3.js index 0e245efe917330c49c28a394f9d727ac1d6a284d..689422dab58a96c06dc2a78f73e320eb60132659 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A9_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A9_T3.js @@ -11,9 +11,9 @@ description: Pattern is "[a--z]" //CHECK#1 try { - $ERROR('#1.1: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (new RegExp("[a--z]"))); + $ERROR('#1.1: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (new RegExp("[a--z]"))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.5_A1.js b/test/built-ins/RegExp/S15.10.5_A1.js index d048f8985a6022e13be74472cc1457e1146b8e80..c2e3cd0a06c2561252b9b73c3d8bef7a7a1053a2 100644 --- a/test/built-ins/RegExp/S15.10.5_A1.js +++ b/test/built-ins/RegExp/S15.10.5_A1.js @@ -9,5 +9,5 @@ description: Checking RegExp.length property //CHECK#1 if (RegExp.length !== 2) { - $ERROR('#1: RegExp.length === 2. Actual: ' + (RegExp.length)); + $ERROR('#1: RegExp.length === 2. Actual: ' + (RegExp.length)); } diff --git a/test/built-ins/RegExp/S15.10.5_A2_T1.js b/test/built-ins/RegExp/S15.10.5_A2_T1.js index d32dfeb6017f489ae47110583c76c987a250bade..a0f41bf647636054cd0735d5fc720a8fd49a56b7 100644 --- a/test/built-ins/RegExp/S15.10.5_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.5_A2_T1.js @@ -11,5 +11,5 @@ description: Checking Function.prototype.isPrototypeOf(RegExp) //CHECK#1 if (Function.prototype.isPrototypeOf(RegExp) !== true) { - $ERROR('#1: Function.prototype.isPrototypeOf(RegExp) === true'); + $ERROR('#1: Function.prototype.isPrototypeOf(RegExp) === true'); } diff --git a/test/built-ins/RegExp/S15.10.5_A2_T2.js b/test/built-ins/RegExp/S15.10.5_A2_T2.js index 6dc911159b8ad122caf05ae751204f8bbadc3ac8..4978ec3a99564cf270af4d335c3f95b028709120 100644 --- a/test/built-ins/RegExp/S15.10.5_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.5_A2_T2.js @@ -13,7 +13,7 @@ description: > Function.prototype.indicator = 1; - //CHECK#1 +//CHECK#1 if (RegExp.indicator !== 1) { - $ERROR('#1: Function.prototype.indicator = 1; RegExp.indicator === 1. Actual: ' + (RegExp.indicator)); + $ERROR('#1: Function.prototype.indicator = 1; RegExp.indicator === 1. Actual: ' + (RegExp.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.7_A1_T1.js b/test/built-ins/RegExp/S15.10.7_A1_T1.js index 32a29be58e79d782228ea3380a9a9487071eadbc..19fa62eec0c4adc3a9e07d1d7364486b1ae64ba8 100644 --- a/test/built-ins/RegExp/S15.10.7_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.7_A1_T1.js @@ -9,9 +9,9 @@ description: Checking if call of RegExp instance fails //CHECK#1 try { - $ERROR('#1.1: /[^a]*/() throw TypeError. Actual: ' + (/[^a]*/())); + $ERROR('#1.1: /[^a]*/() throw TypeError. Actual: ' + (/[^a]*/ ())); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: /[^a]*/() throw TypeError. Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: /[^a]*/() throw TypeError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.7_A1_T2.js b/test/built-ins/RegExp/S15.10.7_A1_T2.js index 96dfbeb1d6e160d850d014346a41cb8c1bf57207..411f9e7210b07b14879d96caf92ecb0443740912 100644 --- a/test/built-ins/RegExp/S15.10.7_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.7_A1_T2.js @@ -9,7 +9,7 @@ description: Checking if call of RegExp("a|b","g")() fails //CHECK#1 try { - $ERROR('#1.1: RegExp("a|b","g")() throw TypeError. Actual: ' + (RegExp("a|b","g")())); + $ERROR('#1.1: RegExp("a|b","g")() throw TypeError. Actual: ' + (RegExp("a|b", "g")())); } catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#1.2: RegExp("a|b","g")() throw TypeError. Actual: ' + (e)); diff --git a/test/built-ins/RegExp/S15.10.7_A2_T1.js b/test/built-ins/RegExp/S15.10.7_A2_T1.js index 8d403ad8554d57b2dd5cf4f903f21c09220399b4..67dc970faf70df677cd364e25ab0325467c0c787 100644 --- a/test/built-ins/RegExp/S15.10.7_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.7_A2_T1.js @@ -9,7 +9,7 @@ description: Checking if creating new RegExp instance fails //CHECK#1 try { - $ERROR('#1.1: new /z/() throw TypeError. Actual: ' + (new /z/())); + $ERROR('#1.1: new /z/() throw TypeError. Actual: ' + (new / z / ())); } catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#1.2: new /z/() throw TypeError. Actual: ' + (e)); diff --git a/test/built-ins/RegExp/S15.10.7_A3_T1.js b/test/built-ins/RegExp/S15.10.7_A3_T1.js index b93fa54cded6d9bdc9175b3ae9f5a111d30844e6..bc65ba08a9510b8e528b6d73aeec4cb1e26b1cdf 100644 --- a/test/built-ins/RegExp/S15.10.7_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.7_A3_T1.js @@ -13,15 +13,15 @@ var __re = /[^a]*/; //CHECK#1 if (typeof __re !== "object") { - $ERROR('#1: __re = /[^a]*/; typeof __re === "object". Actual: ' + (typeof __re)); + $ERROR('#1: __re = /[^a]*/; typeof __re === "object". Actual: ' + (typeof __re)); } //CHECK#1 if (__re.constructor !== RegExp) { - $ERROR('#2: __re = /[^a]*/; __re.constructor === RegExp. Actual: ' + (__re.constructor)); + $ERROR('#2: __re = /[^a]*/; __re.constructor === RegExp. Actual: ' + (__re.constructor)); } //CHECK#3 if ((__re instanceof RegExp) !== true) { - $ERROR('#3: __re = /[^a]*/; (__re instanceof RegExp) === true'); + $ERROR('#3: __re = /[^a]*/; (__re instanceof RegExp) === true'); } diff --git a/test/built-ins/RegExp/S15.10.7_A3_T2.js b/test/built-ins/RegExp/S15.10.7_A3_T2.js index 956d9e6fdf32d1cc36d63d59391dce4f5a027c54..27a105a532d973b09ab51fca2a214a47f569024b 100644 --- a/test/built-ins/RegExp/S15.10.7_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.7_A3_T2.js @@ -13,15 +13,15 @@ var __re = new RegExp; //CHECK#1 if (typeof __re !== "object") { - $ERROR('#1: __re = new RegExp; typeof __re === "object". Actual: ' + (typeof __re)); + $ERROR('#1: __re = new RegExp; typeof __re === "object". Actual: ' + (typeof __re)); } //CHECK#1 if (__re.constructor !== RegExp) { - $ERROR('#2: __re = new RegExp; __re.constructor === RegExp. Actual: ' + (__re.constructor)); + $ERROR('#2: __re = new RegExp; __re.constructor === RegExp. Actual: ' + (__re.constructor)); } //CHECK#3 if ((__re instanceof RegExp) !== true) { - $ERROR('#3: __re = new RegExp; (__re instanceof RegExp) === true'); + $ERROR('#3: __re = new RegExp; (__re instanceof RegExp) === true'); } diff --git a/test/built-ins/RegExp/from-regexp-like-get-source-err.js b/test/built-ins/RegExp/from-regexp-like-get-source-err.js index 1c2a4e3e90ad36954396b550ee8d056d39c080ce..6972182a8f818afd9029f737a913091d2ac073b6 100644 --- a/test/built-ins/RegExp/from-regexp-like-get-source-err.js +++ b/test/built-ins/RegExp/from-regexp-like-get-source-err.js @@ -15,6 +15,7 @@ features: [Symbol, Symbol.match] ---*/ var obj = {}; + function CustomError() {} Object.defineProperty(obj, 'source', { get: function() { diff --git a/test/built-ins/RegExp/lookBehind/back-references.js b/test/built-ins/RegExp/lookBehind/back-references.js index 062bff0339430df5e0c5a716f020f3e4a3a432fa..ae218646454df3fb7c310d1a8cd2507844810803 100644 --- a/test/built-ins/RegExp/lookBehind/back-references.js +++ b/test/built-ins/RegExp/lookBehind/back-references.js @@ -40,4 +40,3 @@ assert.sameValue("aabb".match(/(..)(?<=\1\1\1)/), null, "#15"); assert.sameValue("abab".match(/(..)(?<=\1\1\1)/), null, "#16"); assert.sameValue("fabxbab".match(/(..)(?<=\1\1\1)/), null, "#17"); assert.sameValue("faxabab".match(/(..)(?<=\1\1\1)/), null, "#18"); - diff --git a/test/built-ins/RegExp/named-groups/functional-replace-global.js b/test/built-ins/RegExp/named-groups/functional-replace-global.js index 819045ec138039ae5138902868d8d32519db5613..83d32592c2a6545c3859cf99f62b7c79c6f3bd18 100644 --- a/test/built-ins/RegExp/named-groups/functional-replace-global.js +++ b/test/built-ins/RegExp/named-groups/functional-replace-global.js @@ -22,35 +22,34 @@ for (let flags of ["g", "gu"]) { let i = 0; let re = new RegExp(source, flags); let result = "abcd".replace(re, - (match, fst, snd, offset, str, groups) => { - if (i == 0) { - assert.sameValue("ab", match); - assert.sameValue("a", groups.fst); - assert.sameValue("b", groups.snd); - assert.sameValue("a", fst); - assert.sameValue("b", snd); - assert.sameValue(0, offset); - assert.sameValue("abcd", str); - } else if (i == 1) { - assert.sameValue("cd", match); - assert.sameValue("c", groups.fst); - assert.sameValue("d", groups.snd); - assert.sameValue("c", fst); - assert.sameValue("d", snd); - assert.sameValue(2, offset); - assert.sameValue("abcd", str); - } else { - assertUnreachable(); - } - i++; - return `${groups.snd}${groups.fst}`; - }); + (match, fst, snd, offset, str, groups) => { + if (i == 0) { + assert.sameValue("ab", match); + assert.sameValue("a", groups.fst); + assert.sameValue("b", groups.snd); + assert.sameValue("a", fst); + assert.sameValue("b", snd); + assert.sameValue(0, offset); + assert.sameValue("abcd", str); + } else if (i == 1) { + assert.sameValue("cd", match); + assert.sameValue("c", groups.fst); + assert.sameValue("d", groups.snd); + assert.sameValue("c", fst); + assert.sameValue("d", snd); + assert.sameValue(2, offset); + assert.sameValue("abcd", str); + } else { + assertUnreachable(); + } + i++; + return `${groups.snd}${groups.fst}`; + }); assert.sameValue("badc", result); assert.sameValue(i, 2); let re2 = new RegExp(alternateSource, flags); assert.sameValue("undefinedundefinedundefinedundefined", - "abcd".replace(re2, - (match, fst, snd, offset, str, groups) => groups.snd)); + "abcd".replace(re2, + (match, fst, snd, offset, str, groups) => groups.snd)); } - diff --git a/test/built-ins/RegExp/named-groups/functional-replace-non-global.js b/test/built-ins/RegExp/named-groups/functional-replace-non-global.js index 0572a0545f79463839fb68441c37e6fb5bf9e04c..54d2a0b7e321ba0bb0b246bdaa9fce1d7f930b06 100644 --- a/test/built-ins/RegExp/named-groups/functional-replace-non-global.js +++ b/test/built-ins/RegExp/named-groups/functional-replace-non-global.js @@ -22,22 +22,22 @@ for (let flags of ["", "u"]) { let i = 0; let re = new RegExp(source, flags); let result = "abcd".replace(re, - (match, fst, snd, offset, str, groups) => { - assert.sameValue(i++, 0); - assert.sameValue("ab", match); - assert.sameValue("a", groups.fst); - assert.sameValue("b", groups.snd); - assert.sameValue("a", fst); - assert.sameValue("b", snd); - assert.sameValue(0, offset); - assert.sameValue("abcd", str); - return `${groups.snd}${groups.fst}`; - }); + (match, fst, snd, offset, str, groups) => { + assert.sameValue(i++, 0); + assert.sameValue("ab", match); + assert.sameValue("a", groups.fst); + assert.sameValue("b", groups.snd); + assert.sameValue("a", fst); + assert.sameValue("b", snd); + assert.sameValue(0, offset); + assert.sameValue("abcd", str); + return `${groups.snd}${groups.fst}`; + }); assert.sameValue("bacd", result); assert.sameValue(i, 1); let re2 = new RegExp(alternateSource, flags); assert.sameValue("undefinedbcd", - "abcd".replace(re2, - (match, fst, snd, offset, str, groups) => groups.snd)); + "abcd".replace(re2, + (match, fst, snd, offset, str, groups) => groups.snd)); } diff --git a/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js b/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js index 4542868a8ce4e71f55644cf9ce2ee79a1e12acff..1bbc2a9e5b4ded85fb5679c75b2be6b9bf251113 100644 --- a/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js +++ b/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js @@ -29,7 +29,9 @@ const result = re.exec("ab"); assert.sameValue(Object.getPrototypeOf(result), Array.prototype); assert.sameValue(false, result.hasOwnProperty("groups")); -Array.prototype.groups = { a: "b" }; +Array.prototype.groups = { + a: "b" +}; Object.getPrototypeOf(Array.prototype.groups).b = "c"; assert.sameValue("b", "ab".replace(re, "$<a>")); assert.sameValue("c", "ab".replace(re, "$<b>")); diff --git a/test/built-ins/RegExp/named-groups/groups-object-subclass.js b/test/built-ins/RegExp/named-groups/groups-object-subclass.js index ab3da38e9f761130c2bd633181d2423788f832b1..88cb12cb289cbdf8c33c2e5255f44d1c3515c554 100644 --- a/test/built-ins/RegExp/named-groups/groups-object-subclass.js +++ b/test/built-ins/RegExp/named-groups/groups-object-subclass.js @@ -19,7 +19,9 @@ class FakeRegExp extends RegExp { exec(subject) { const fakeResult = ["ab", "a"]; fakeResult.index = 0; - fakeResult.groups = { a: "b" }; + fakeResult.groups = { + a: "b" + }; Object.getPrototypeOf(fakeResult.groups).b = "c"; return fakeResult; } diff --git a/test/built-ins/RegExp/named-groups/groups-object-undefined.js b/test/built-ins/RegExp/named-groups/groups-object-undefined.js index fea8fd0bface535a95c4fc3578f3f1c5ed9123e3..bf832a2175d17ad0989c4f52bd82b209202908a6 100644 --- a/test/built-ins/RegExp/named-groups/groups-object-undefined.js +++ b/test/built-ins/RegExp/named-groups/groups-object-undefined.js @@ -28,6 +28,8 @@ verifyProperty(result, "groups", { configurable: true, }); -Array.prototype.groups = { a: "b" }; +Array.prototype.groups = { + a: "b" +}; assert.sameValue("$<a>", "a".replace(re, "$<a>")); Array.prototype.groups = undefined; diff --git a/test/built-ins/RegExp/named-groups/groups-object-unmatched.js b/test/built-ins/RegExp/named-groups/groups-object-unmatched.js index fb0bdca8ff424eafbb4b396d4dce1f43008bb2db..8b9df648c3b43317b2358c7b0137db9e863b3bf1 100644 --- a/test/built-ins/RegExp/named-groups/groups-object-unmatched.js +++ b/test/built-ins/RegExp/named-groups/groups-object-unmatched.js @@ -28,7 +28,11 @@ assert.sameValue(undefined, result.groups.x); // `a` is a matched named capture, `b` is an unmatched named capture, and `z` // is not a named capture. -Array.prototype.groups = { a: "b", x: "y", z: "z" }; +Array.prototype.groups = { + a: "b", + x: "y", + z: "z" +}; assert.sameValue("a", "ab".replace(re, "$<a>")); assert.sameValue("", "ab".replace(re, "$<x>")); assert.sameValue("", "ab".replace(re, "$<z>")); diff --git a/test/built-ins/RegExp/named-groups/groups-object.js b/test/built-ins/RegExp/named-groups/groups-object.js index 32a85bf759e04eaceb4375139e5f5feb19c7e9ca..8b3f7da384ba3bed32bbffac281b4fac3547b211 100644 --- a/test/built-ins/RegExp/named-groups/groups-object.js +++ b/test/built-ins/RegExp/named-groups/groups-object.js @@ -18,7 +18,9 @@ info: | // `groups` is created with Define, not Set. let counter = 0; Object.defineProperty(Array.prototype, "groups", { - set() { counter++; } + set() { + counter++; + } }); let match = /(?<x>.)/.exec("a"); @@ -34,6 +36,8 @@ verifyProperty(match, "groups", { // The `__proto__` property on the groups object is not special, // and does not affect the [[Prototype]] of the resulting groups object. -let {groups} = /(?<__proto__>.)/.exec("a"); +let { + groups +} = /(?<__proto__>.)/.exec("a"); assert.sameValue("a", groups.__proto__); assert.sameValue(null, Object.getPrototypeOf(groups)); diff --git a/test/built-ins/RegExp/named-groups/groups-properties.js b/test/built-ins/RegExp/named-groups/groups-properties.js index 9d7aa66f2efae5c2f5a31e79d88468de84ddd326..a0c6ea377bad8f392cbbde5b9a582e908df5f99e 100644 --- a/test/built-ins/RegExp/named-groups/groups-properties.js +++ b/test/built-ins/RegExp/named-groups/groups-properties.js @@ -16,12 +16,16 @@ info: | // Properties created on result.groups in textual order. assert(compareArray(["fst", "snd"], - Object.getOwnPropertyNames( - /(?<fst>.)|(?<snd>.)/u.exec("abcd").groups))); + Object.getOwnPropertyNames( + /(?<fst>.)|(?<snd>.)/u.exec("abcd").groups))); // Properties are created with Define, not Set let counter = 0; -Object.defineProperty(Object.prototype, 'x', {set() { counter++; }}); +Object.defineProperty(Object.prototype, 'x', { + set() { + counter++; + } +}); let match = /(?<x>.)/.exec('a'); let groups = match.groups; assert.sameValue(counter, 0); diff --git a/test/built-ins/RegExp/named-groups/lookbehind.js b/test/built-ins/RegExp/named-groups/lookbehind.js index e3926bc97e12c415ea6d7462afbb9aeb42e6edee..1748732efb928283f13edd484866bc9f6c6d137a 100644 --- a/test/built-ins/RegExp/named-groups/lookbehind.js +++ b/test/built-ins/RegExp/named-groups/lookbehind.js @@ -42,5 +42,5 @@ assert(compareArray(["f", undefined], "abcdef".match(/(?<a>(?<!\D{3}))f|f/))); // Even within a lookbehind, properties are created in left to right order assert(compareArray(["fst", "snd"], - Object.getOwnPropertyNames( - /(?<=(?<fst>.)|(?<snd>.))/u.exec("abcd").groups))); + Object.getOwnPropertyNames( + /(?<=(?<fst>.)|(?<snd>.))/u.exec("abcd").groups))); diff --git a/test/built-ins/RegExp/named-groups/non-unicode-match.js b/test/built-ins/RegExp/named-groups/non-unicode-match.js index 7904c75e4309da2d3b6395805f47ab0b7cf2a856..7255c4704b311ed6dfd650f0c5f42b378d59122d 100644 --- a/test/built-ins/RegExp/named-groups/non-unicode-match.js +++ b/test/built-ins/RegExp/named-groups/non-unicode-match.js @@ -19,7 +19,11 @@ assert(compareArray(["bab", "ab"], "bab".match(/.(?<a>\w\w)/))); assert(compareArray(["bab", "bab"], "bab".match(/(?<a>\w\w\w)/))); assert(compareArray(["bab", "ba", "b"], "bab".match(/(?<a>\w\w)(?<b>\w)/))); -let {a, b, c} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/.exec("abccba").groups; +let { + a, + b, + c +} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/.exec("abccba").groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); assert.sameValue(c, "c"); @@ -38,6 +42,6 @@ assert(compareArray("bab".match(/(\w\w)(\w)/), "bab".match(/(?<a>\w\w)(?<b>\w)/) assert(compareArray(["bab", "b"], "bab".match(/(?<b>b).\1/))); assert(compareArray(["baba", "b", "a"], "baba".match(/(.)(?<a>a)\1\2/))); assert(compareArray(["baba", "b", "a", "b", "a"], - "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/))); + "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/))); assert(compareArray(["<a", "<"], "<a".match(/(?<lt><)a/))); assert(compareArray([">a", ">"], ">a".match(/(?<gt>>)a/))); diff --git a/test/built-ins/RegExp/named-groups/non-unicode-property-names.js b/test/built-ins/RegExp/named-groups/non-unicode-property-names.js index 9c02d0b5170be6aaa4aeaf060e11d09757e49988..390f628ca49915a31c0201b51aa0ab0f982ca8fa 100644 --- a/test/built-ins/RegExp/named-groups/non-unicode-property-names.js +++ b/test/built-ins/RegExp/named-groups/non-unicode-property-names.js @@ -14,8 +14,8 @@ assert.sameValue("a", /(?<π>a)/.exec("bab").groups.\u03C0); assert.sameValue("a", /(?<$>a)/.exec("bab").groups.$); assert.sameValue("a", /(?<_>a)/.exec("bab").groups._); assert.throws(SyntaxError, () => eval('/(?<$𐒤>a)/'), "Individual surrogates not in ID_Continue"); -assert.sameValue("a", /(?<_\u200C>a)/.exec("bab").groups._\u200C); -assert.sameValue("a", /(?<_\u200D>a)/.exec("bab").groups._\u200D); +assert.sameValue("a", /(?<_\u200C>a)/.exec("bab").groups._\ u200C); +assert.sameValue("a", /(?<_\u200D>a)/.exec("bab").groups._\ u200D); assert.sameValue("a", /(?<ಠ_ಠ>a)/.exec("bab").groups.ಠ_ಠ); assert.throws(SyntaxError, () => eval('/(?<❤>a)/')); assert.throws(SyntaxError, () => eval('/(?<𐒤>a)/'), "Individual surrogate not in ID_Start."); diff --git a/test/built-ins/RegExp/named-groups/non-unicode-references.js b/test/built-ins/RegExp/named-groups/non-unicode-references.js index 33d62a3f0a566cf895a64af0512b32815d119a39..4a283aa7f6f285856b979cb04fd0d9d88a07a85c 100644 --- a/test/built-ins/RegExp/named-groups/non-unicode-references.js +++ b/test/built-ins/RegExp/named-groups/non-unicode-references.js @@ -20,7 +20,10 @@ assert.sameValue("b", "bab".match(/(?<a>\k<a>\w)../).groups.a); assert(compareArray(["bab", "b"], "bab".match(/\k<a>(?<a>b)\w\k<a>/))); assert.sameValue("b", "bab".match(/\k<a>(?<a>b)\w\k<a>/).groups.a); assert(compareArray(["bab", "b", "a"], "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/))); -let {a, b} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/).groups; +let { + a, + b +} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/).groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); diff --git a/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js b/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js index 76f134cc86f0f9ecd9556521aa121a7140b05d6e..4ae21e7f83cd67bce3d4f1e0a78fd86d68973d32 100644 --- a/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js +++ b/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js @@ -29,4 +29,3 @@ for (let flags of ["", "u"]) { assert.sameValue("$<fth>cd", "abcd".replace(re, "$<fth>")); assert.sameValue("$<a>cd", "abcd".replace(re, "$<$1>")); } - diff --git a/test/built-ins/RegExp/named-groups/string-replace-numbered.js b/test/built-ins/RegExp/named-groups/string-replace-numbered.js index c825df398087315b99818605e5a39ffaf2f0a1a1..516624b305933d7d94ff6b315f7dabb461e19c19 100644 --- a/test/built-ins/RegExp/named-groups/string-replace-numbered.js +++ b/test/built-ins/RegExp/named-groups/string-replace-numbered.js @@ -26,4 +26,3 @@ for (let flags of ["", "u"]) { let re = new RegExp(source, flags); assert.sameValue("bacd", "abcd".replace(re, "$2$1")); } - diff --git a/test/built-ins/RegExp/named-groups/unicode-malformed.js b/test/built-ins/RegExp/named-groups/unicode-malformed.js index 5c9c131a4857aec2ff24b9f1d580b4d218c87cdb..87ae6134c553c03057d2a7ec54ae777a747771b6 100644 --- a/test/built-ins/RegExp/named-groups/unicode-malformed.js +++ b/test/built-ins/RegExp/named-groups/unicode-malformed.js @@ -26,4 +26,3 @@ assert.throws(SyntaxError, () => eval("/(?<a>a)\\k<ab>/u"), "Invalid reference") assert.throws(SyntaxError, () => eval("/(?<ab>a)\\k<a>/u"), "Invalid reference"); assert.throws(SyntaxError, () => eval("/\\k<a>(?<ab>a)/u"), "Invalid reference"); assert.throws(SyntaxError, () => eval("/(?<a>\\a)/u"), "Identity escape in capture"); - diff --git a/test/built-ins/RegExp/named-groups/unicode-match.js b/test/built-ins/RegExp/named-groups/unicode-match.js index a8e1059bdb7f20f0da70acd44b02ebe3cbd33957..c72a292c812c0b25a32d9c0e94d1a49f09698720 100644 --- a/test/built-ins/RegExp/named-groups/unicode-match.js +++ b/test/built-ins/RegExp/named-groups/unicode-match.js @@ -19,7 +19,11 @@ assert(compareArray(["bab", "ab"], "bab".match(/.(?<a>\w\w)/u))); assert(compareArray(["bab", "bab"], "bab".match(/(?<a>\w\w\w)/u))); assert(compareArray(["bab", "ba", "b"], "bab".match(/(?<a>\w\w)(?<b>\w)/u))); -let {a, b, c} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/u.exec("abccba").groups; +let { + a, + b, + c +} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/u.exec("abccba").groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); assert.sameValue(c, "c"); @@ -38,11 +42,15 @@ assert(compareArray("bab".match(/(\w\w)(\w)/u), "bab".match(/(?<a>\w\w)(?<b>\w)/ assert(compareArray(["bab", "b"], "bab".match(/(?<b>b).\1/u))); assert(compareArray(["baba", "b", "a"], "baba".match(/(.)(?<a>a)\1\2/u))); assert(compareArray(["baba", "b", "a", "b", "a"], - "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/u))); + "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/u))); assert(compareArray(["<a", "<"], "<a".match(/(?<lt><)a/u))); assert(compareArray([">a", ">"], ">a".match(/(?<gt>>)a/u))); // Nested groups. assert(compareArray(["bab", "bab", "ab", "b"], "bab".match(/(?<a>.(?<b>.(?<c>.)))/u))); -assert(compareArray({a: "bab", b: "ab", c: "b"}, - "bab".match(/(?<a>.(?<b>.(?<c>.)))/u).groups)); +assert(compareArray({ + a: "bab", + b: "ab", + c: "b" + }, + "bab".match(/(?<a>.(?<b>.(?<c>.)))/u).groups)); diff --git a/test/built-ins/RegExp/named-groups/unicode-property-names.js b/test/built-ins/RegExp/named-groups/unicode-property-names.js index 24e4a6ade9c9dace21ea165a0127464768c30b3e..a8007cce049b632f252edca65f1faecae06d36e8 100644 --- a/test/built-ins/RegExp/named-groups/unicode-property-names.js +++ b/test/built-ins/RegExp/named-groups/unicode-property-names.js @@ -14,8 +14,8 @@ assert.sameValue("a", /(?<\u{03C0}>a)/u.exec("bab").groups.\u03C0); assert.sameValue("a", /(?<$>a)/u.exec("bab").groups.$); assert.sameValue("a", /(?<_>a)/u.exec("bab").groups._); assert.sameValue("a", /(?<$𐒤>a)/u.exec("bab").groups.$𐒤); -assert.sameValue("a", /(?<_\u200C>a)/u.exec("bab").groups._\u200C); -assert.sameValue("a", /(?<_\u200D>a)/u.exec("bab").groups._\u200D); +assert.sameValue("a", /(?<_\u200C>a)/u.exec("bab").groups._\ u200C); +assert.sameValue("a", /(?<_\u200D>a)/u.exec("bab").groups._\ u200D); assert.sameValue("a", /(?<ಠ_ಠ>a)/u.exec("bab").groups.ಠ_ಠ); assert.throws(SyntaxError, () => eval('/(?<❤>a)/u')); assert.throws(SyntaxError, () => eval('/(?<𐒤>a)/u'), "ID_Continue but not ID_Start."); diff --git a/test/built-ins/RegExp/named-groups/unicode-references.js b/test/built-ins/RegExp/named-groups/unicode-references.js index 1f95a2f40c033626af9372d3d26523d84017af89..9f8df10f5ba17d3c66f5e5f1f91dda624086e06e 100644 --- a/test/built-ins/RegExp/named-groups/unicode-references.js +++ b/test/built-ins/RegExp/named-groups/unicode-references.js @@ -33,7 +33,10 @@ assert.sameValue("b", "bab".match(/(?<a>\k<a>\w)../u).groups.a); assert(compareArray(["bab", "b"], "bab".match(/\k<a>(?<a>b)\w\k<a>/u))); assert.sameValue("b", "bab".match(/\k<a>(?<a>b)\w\k<a>/u).groups.a); assert(compareArray(["bab", "b", "a"], "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u))); -let {a, b} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u).groups; +let { + a, + b +} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u).groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); diff --git a/test/built-ins/RegExp/property-escapes/generated/Any.js b/test/built-ins/RegExp/property-escapes/generated/Any.js index f351d2b74816e5dee3a19560f0a97f245c209daf..21f75822ec718271ccb3368bd5215bcda2a612a6 100644 --- a/test/built-ins/RegExp/property-escapes/generated/Any.js +++ b/test/built-ins/RegExp/property-escapes/generated/Any.js @@ -28,7 +28,6 @@ testPropertyEscapes( "\\p{Any}" ); -assert( - !/\P{Any}/u.test(""), +assert(!/\P{Any}/u.test(""), "`\\P{Any}` should match nothing (not even the empty string)" ); diff --git a/test/built-ins/RegExp/prototype/15.10.6.js b/test/built-ins/RegExp/prototype/15.10.6.js index a1d12241f2515cae7e10be442ea0da22fecb140b..05c035447b05990ad0e86407a8ff868df53c73a2 100644 --- a/test/built-ins/RegExp/prototype/15.10.6.js +++ b/test/built-ins/RegExp/prototype/15.10.6.js @@ -6,6 +6,6 @@ es5id: 15.10.6 description: RegExp.prototype is itself a not RegExp ---*/ - var s = Object.prototype.toString.call(RegExp.prototype); +var s = Object.prototype.toString.call(RegExp.prototype); assert.sameValue(s, '[object Object]', 's'); diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js index 3b3136cfbdfd0eb59f6a0399b0884dcd3098d30d..e65d4797ff64801b9c7cc92e61ba85b7af46f9e5 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js @@ -9,5 +9,5 @@ description: Checking RegExp.prototype property //CHECK#1 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); + $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); } diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js index a34b24306b7b1be783c8480d0cd331bff87cee84..7941aca9a496ebe2e1631355e82c94c52a93aa0e 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js @@ -9,20 +9,20 @@ description: Checking if enumerating the RegExp.prototype property fails //CHECK#0 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true'); + $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true'); } - //CHECK#1 +//CHECK#1 if (RegExp.propertyIsEnumerable('prototype') !== false) { - $ERROR('#1: RegExp.propertyIsEnumerable(\'prototype\') === false'); + $ERROR('#1: RegExp.propertyIsEnumerable(\'prototype\') === false'); } - //CHECK#2 -var count=0; -for (var p in RegExp){ - if (p==="prototype") count++; +//CHECK#2 +var count = 0; +for (var p in RegExp) { + if (p === "prototype") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in RegExp){ if (p==="prototype") count++; } count === 0. Actual: ' + (count)); + $ERROR('#2: count=0; for (p in RegExp){ if (p==="prototype") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js index 1ad8fa95eaa558ba28153f702cb72c891b4c409f..6f37f06783a46d0bc371950f454d601ea4e6c05f 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] //CHECK#0 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true'); + $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true'); } verifyNotConfigurable(RegExp, "prototype"); @@ -27,5 +27,5 @@ try { //CHECK#2 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#2: delete RegExp.prototype; RegExp.hasOwnProperty(\'prototype\') === true'); + $ERROR('#2: delete RegExp.prototype; RegExp.hasOwnProperty(\'prototype\') === true'); } diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js index 48bf65f19d2fd1c3eb7a82eb7511f5bbbffe0f86..a39576d7dc45f9ae8a9cd40b141871c0d9afd8aa 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js @@ -10,14 +10,16 @@ includes: [propertyHelper.js] //CHECK#1 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); + $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); } var __obj = RegExp.prototype; -verifyNotWritable(RegExp, "prototype", null, function(){return "shifted";}); +verifyNotWritable(RegExp, "prototype", null, function() { + return "shifted"; +}); //CHECK#2 if (RegExp.prototype !== __obj) { - $ERROR('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype)); + $ERROR('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js index 1330fa46e01f807d6a48a975ced2839ac0cb3858..b01c39d2755cc22b2bc5200d7099792511f4d502 100644 --- a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js +++ b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js @@ -11,5 +11,5 @@ description: Compare RegExp.prototype.constructor with RegExp //CHECK#1 if (RegExp.prototype.constructor !== RegExp) { - $ERROR('#1: RegExp.prototype.constructor === RegExp. Actual: ' + (RegExp.prototype.constructor)); + $ERROR('#1: RegExp.prototype.constructor === RegExp. Actual: ' + (RegExp.prototype.constructor)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js index be0d1695770a5f230d9547445836dc388f97af7b..6c0f0fe9933865fd4790565a7913588042150051 100644 --- a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js +++ b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js @@ -17,10 +17,10 @@ var __instance = new __FACTORY; //CHECK#1 if ((__instance instanceof RegExp) !== true) { - $ERROR('#1: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; (__instance instanceof RegExp) === true'); + $ERROR('#1: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; (__instance instanceof RegExp) === true'); } //CHECK#2 if (__instance.constructor !== RegExp) { - $ERROR('#2: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); + $ERROR('#2: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js b/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js index 9cf925c6b1f41756f313da3c8b6634f42d80ef1d..8b0b0de88d6033c703bcbdfad0fc098f5bb6ff6d 100644 --- a/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js +++ b/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js @@ -11,5 +11,5 @@ description: Checking Object.prototype.isPrototypeOf(RegExp.prototype) //CHECK#1 if (Object.prototype.isPrototypeOf(RegExp.prototype) !== true) { - $ERROR('#1: Object.prototype.isPrototypeOf(RegExp.prototype) === true'); + $ERROR('#1: Object.prototype.isPrototypeOf(RegExp.prototype) === true'); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js b/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js index 8b42feccef515ca3c72262387bfd5f8747f2a930..a850481d6b986363d0d4e97616627f443f2f8e3a 100644 --- a/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js +++ b/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js @@ -15,5 +15,5 @@ Object.prototype.indicator = 1; //CHECK#1 if (RegExp.prototype.indicator !== 1) { - $ERROR('#1: Object.prototype.indicator = 1; RegExp.prototype.indicator === 1. Actual: ' + (RegExp.prototype.indicator)); + $ERROR('#1: Object.prototype.indicator = 1; RegExp.prototype.indicator === 1. Actual: ' + (RegExp.prototype.indicator)); } diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js index 94688c0226deb631dea01824781768514a8b9800..57deb31e6c7cb7269faa34991f3b2838652fe841 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js @@ -32,7 +32,9 @@ features: [Symbol.match] ---*/ var r = /a/g; -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.match]('b'); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js index e6af1fc36e9ce8480abfb492edb3ebc88b77042a..c5109072c7fa622c8be2fc3c3bb9f5a18ed4f150 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js @@ -32,4 +32,4 @@ info: | features: [Symbol.match] ---*/ -assert.sameValue(/a/y[Symbol.match]('ba'), null); +assert.sameValue(/a/y [Symbol.match]('ba'), null); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js index a6510b684461c088c599d19b694b4c8692597052..a75af7385034a9c93b7f9fc895aaf036661bf89c 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js @@ -35,7 +35,9 @@ features: [Symbol.match] var r = /a/y; -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.match]('ba'); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js index b579d13fbf2f4edd702b9395c64bf7eae498e6fe..6d551469a7a6e858d68cf3be4f2bd5331bb848e4 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js @@ -30,9 +30,13 @@ features: [Symbol.match] var r; r = /\udf06/; -Object.defineProperty(r, 'unicode', { value: true }); +Object.defineProperty(r, 'unicode', { + value: true +}); assert.notSameValue(r[Symbol.match]('\ud834\udf06'), null); r = /\udf06/u; -Object.defineProperty(r, 'unicode', { value: false }); +Object.defineProperty(r, 'unicode', { + value: false +}); assert.sameValue(r[Symbol.match]('\ud834\udf06'), null); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js index 14b24a188c418e25a38d6e2225cabdf061fa9df0..7e5a605a243b9efd52ffbdaf2381755ae3f0924b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js @@ -43,7 +43,9 @@ var callCount = 0; // completion originates from the second property modification. Object.defineProperty(r, 'exec', { get: function() { - Object.defineProperty(r, 'lastIndex', { writable: false }); + Object.defineProperty(r, 'lastIndex', { + writable: false + }); } }); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js index ef566fb259c0d7ead38e51969de11b6c1cf2858f..b83b3f9894dcde60c0f973f8ffaf56bbe52670cf 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js @@ -32,7 +32,9 @@ features: [Symbol.match] // The conflicting values for the "global" flag are necessary to observe the // final modification of `lastIndex` in RegExpBuiltinExec var r = /b/g; -Object.defineProperty(r, 'global', { value: false }); +Object.defineProperty(r, 'global', { + value: false +}); r[Symbol.match]('abc'); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js index c33934f66cc69c1bde1c216b75f26ea93f65bdd0..fa34869dbba54ea8cf2b27881c3a6d1c3aea3283 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js @@ -38,7 +38,7 @@ info: | features: [Symbol.match] ---*/ -var result = /b(.).(.)./[Symbol.match]('abcdefg'); +var result = /b(.).(.)./ [Symbol.match]('abcdefg'); assert(Array.isArray(result)); assert.sameValue(result.index, 1); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js index 77c03e4bedaacf41be29adb102b9caefe0d23264..a88a41ed75b1b75fca032013e8e1d5e7af86b1df 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val.js @@ -31,7 +31,7 @@ info: | features: [Symbol.match] ---*/ -var result = /b./[Symbol.match]('abcd'); +var result = /b./ [Symbol.match]('abcd'); assert(Array.isArray(result)); assert.sameValue(result.index, 1); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js index 40e1af1193fdc68b42e0f79d01397323786bc93a..1ebc0461e84486044292fde7372f88892ebc45a2 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-u-return-val-groups.js @@ -40,7 +40,7 @@ info: | features: [Symbol.match] ---*/ -var result = /b(.).(.)./u[Symbol.match]('ab\ud834\udf06defg'); +var result = /b(.).(.)./u [Symbol.match]('ab\ud834\udf06defg'); assert(Array.isArray(result)); assert.sameValue(result.index, 1); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js index ae4780bd108bc83c3a00fe5435ca28242a9d74e3..c8f3e2c2c2011941c3b9e2a4a0f0a6d8f3da4601 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js @@ -29,7 +29,9 @@ features: [Symbol.match] var r = /a/y; -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.match]('a'); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js index 399b91a97a63683c37320d51fa36ea934a73278c..5a9497f4d1db7fe16d43df340dac675aec060417 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js @@ -21,5 +21,5 @@ var str = { }; assert.throws(Test262Error, function() { - /./[Symbol.match](str); + /./ [Symbol.match](str); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js index 9fea45f93af7544e873fe06c3b64adf57840ad36..daf9b803d2233f3041d084f77990f221bb419670 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js @@ -22,4 +22,4 @@ var obj = { } }; -assert.notSameValue(/toString value/[Symbol.match](obj), null); +assert.notSameValue(/toString value/ [Symbol.match](obj), null); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js b/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js index f90e75596fb423309e41c4d0c283d3f11f3dd332..e1cc62d3031e6a796dceb28da11c0ed4c834f703 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js @@ -28,7 +28,9 @@ var r, result, execCount; r = /a/g; r.exec = exec; -Object.defineProperty(r, 'global', { writable: true }); +Object.defineProperty(r, 'global', { + writable: true +}); execCount = 0; r.global = undefined; @@ -62,7 +64,9 @@ assert.sameValue(execCount, 1, 'value: ""'); r = /a/; r.exec = exec; -Object.defineProperty(r, 'global', { writable: true }); +Object.defineProperty(r, 'global', { + writable: true +}); r.global = true; execCount = 0; diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js index 999a03a0a77aebf9e72fccd4f536c000e102f1b4..63d84085135b5f8be67402a98af40f1d67504e84 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js @@ -23,7 +23,9 @@ info: | features: [Symbol.match] ---*/ -var r = { global: true }; +var r = { + global: true +}; Object.defineProperty(r, 'exec', { get: function() { throw new Test262Error(); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js index 73d0f249a808df0d78b8a540b85ac6e527dbaae9..1a6bd10309d8d9fb4ffcc0d6456cc40c88def134 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js @@ -15,7 +15,9 @@ features: [Symbol.match] ---*/ var r = /./g; -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.match](''); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js index a3fb320adc7b213c597dace900f9f08a81dc71af..81b2e70ce19ecf5c5d1b1d6359516caf820a8088 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js @@ -26,7 +26,7 @@ info: | features: [Symbol.match] ---*/ -var result = /(?:)/g[Symbol.match]('abc'); +var result = /(?:)/g [Symbol.match]('abc'); assert.notSameValue(result, null); assert.sameValue(result.length, 4); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js index 4341d85fe3600a00995524a4b53d7830fa0d7ff7..fc6c81d1efdf93e2e3157342189174c960d8291b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js @@ -32,7 +32,9 @@ var exec = function() { nextMatch = null; return { get 0() { - Object.defineProperty(r, 'lastIndex', { writable: false }); + Object.defineProperty(r, 'lastIndex', { + writable: false + }); return thisMatch; } }; diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js index 3427d2f516b35b242bf2487a639250af2fc0cfa0..f98a9d07a1293239990e68c38e2eb101ba0f14fb 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js @@ -30,7 +30,9 @@ var exec = function() { nextMatch = null; return { get 0() { - Object.defineProperty(r, 'lastIndex', { writable: false }); + Object.defineProperty(r, 'lastIndex', { + writable: false + }); return thisMatch; } }; diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js b/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js index ca52115e7c30962ea7b49b282c7aadf5b4d9d4e8..f30e987bbcb1f90ec971245e8af0468b6797051c 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js @@ -21,7 +21,7 @@ info: | features: [Symbol.match] ---*/ -var result = /.(.)./g[Symbol.match]('abcdefghi'); +var result = /.(.)./g [Symbol.match]('abcdefghi'); assert(Array.isArray(result)); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js b/test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js index 4cf5c10f0b992b5404cee20ab67fe6e5f9cf726a..7d7461abc63f6ec0ff68d74a47dc84ef0305afae 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-zero-matches.js @@ -18,4 +18,4 @@ info: | features: [Symbol.match] ---*/ -assert.sameValue(/a/g[Symbol.match]('b'), null); +assert.sameValue(/a/g [Symbol.match]('b'), null); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js b/test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js index cd3815a7167152eec74aaa6519b1e403c7d37453..5407bc3715789d0c3b3b6ff216a1e172be6d7a48 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/u-advance-after-empty.js @@ -23,7 +23,7 @@ info: | features: [Symbol.match] ---*/ -var match = /^|\udf06/ug[Symbol.match]('\ud834\udf06'); +var match = /^|\udf06/ug [Symbol.match]('\ud834\udf06'); assert(match !== null); assert.sameValue(match.length, 1); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js b/test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js index c7da00f59c23d44ef5946286bb5d07d24696ea6f..f66c7be9b37960c6a28e2d306708fa555d628291 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/y-fail-global-return.js @@ -39,7 +39,7 @@ info: | features: [Symbol.match] ---*/ -var result = /a/yg[Symbol.match]('aaba'); +var result = /a/yg [Symbol.match]('aaba'); assert.notSameValue(result, null); assert.sameValue(result.length, 2); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js b/test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js index 7c1330c07cc07e4eeb86ac22579472fe6d42cdf8..a1b654b8e4afa28ce0c820a24381a2e6e491c412 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/y-fail-return.js @@ -30,4 +30,4 @@ info: | features: [Symbol.match] ---*/ -assert.sameValue(/b/y[Symbol.match]('ab'), null); +assert.sameValue(/b/y [Symbol.match]('ab'), null); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js index b12647ba1f56c238a1a6384ab9a898d0416e496c..c0809c650f809603426459b634fe9d5c03a6f8e0 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce-err.js @@ -20,5 +20,5 @@ var arg = { }; assert.throws(Test262Error, function() { - /./[Symbol.replace](arg); + /./ [Symbol.replace](arg); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js index dab31fc7d4fc032bda25da1390d11a921440a4a9..991ab658730244a71d4d0fd03192f59b7dfec91b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js @@ -22,4 +22,4 @@ var arg = { } }; -assert.sameValue(/./[Symbol.replace](arg, 'x'), 'xoString value'); +assert.sameValue(/./ [Symbol.replace](arg, 'x'), 'xoString value'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js index af11c4b92efbfc1cd85faf2729983fc030188ccf..5195e7124244fd8adeb9936aface78c05fe0fd08 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce-err.js @@ -22,5 +22,5 @@ var arg = { }; assert.throws(Test262Error, function() { - /./[Symbol.replace]('', arg); + /./ [Symbol.replace]('', arg); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js index c98886c527aa85768f845c8bd3607a35b90f065d..e4ed0461353ab82dac6a07e058faf6967d5645d8 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js @@ -24,4 +24,4 @@ var arg = { } }; -assert.sameValue(/./[Symbol.replace]('string', arg), 'toString valuetring'); +assert.sameValue(/./ [Symbol.replace]('string', arg), 'toString valuetring'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js index 41547753a629f85cbdd9cf3ac45389df02bfcb7d..c2d5a2464d748ae0bd63ede1e2c69b37de64ad17 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js @@ -15,7 +15,9 @@ features: [Symbol.replace] Array.print = print; var r = /a/g; -Object.defineProperty(r, 'global', { writable: true }); +Object.defineProperty(r, 'global', { + writable: true +}); r.lastIndex = 0; r.global = undefined; @@ -43,7 +45,9 @@ assert.sameValue(r[Symbol.replace]('aa', 'b'), 'ba', 'value: ""'); var execCount = 0; r = /a/; -Object.defineProperty(r, 'global', { writable: true }); +Object.defineProperty(r, 'global', { + writable: true +}); r.exec = function() { execCount += 1; if (execCount === 1) { diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js index 498ea88560c76cd5ed3178490999e36754f68ea6..6ea18eda91ab16b5f9292ca314029e59b1ec5d55 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js @@ -15,7 +15,9 @@ features: [Symbol.replace] ---*/ var r = /^|\udf06/g; -Object.defineProperty(r, 'unicode', { writable: true }); +Object.defineProperty(r, 'unicode', { + writable: true +}); r.unicode = undefined; assert.sameValue(r[Symbol.replace]('\ud834\udf06', 'XXX'), 'XXX\ud834XXX'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js index ebfe89ceac8c5f00ea9a84514bb86038cacc5229..cc25a77dffeca45c7ef255dd9d1fdb5b394f1e73 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js @@ -30,5 +30,5 @@ var replacer = function() { }; assert.throws(Test262Error, function() { - /x/[Symbol.replace]('[x]', replacer); + /x/ [Symbol.replace]('[x]', replacer); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js index 5ecc7b47b179344a68d69dbf660c838a6f1d5144..9783753173a80e36f02b55381806e88fa4889c11 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement.js @@ -26,4 +26,4 @@ var replacer = function() { }; }; -assert.sameValue(/x/[Symbol.replace]('[x]', replacer), '[toString value]'); +assert.sameValue(/x/ [Symbol.replace]('[x]', replacer), '[toString value]'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js index b35ba4435fedb8f47df520a5ff3ed684fdf224fd..120866908b942c2492ad7dad9cacd63f658c9fd1 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-err.js @@ -25,5 +25,5 @@ var replacer = function() { }; assert.throws(Test262Error, function() { - /./[Symbol.replace]('a', replacer); + /./ [Symbol.replace]('a', replacer); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js index 301a4673dafda61b390cc5d8a6a41fbeccbc2ff8..a1d32ab57d071727b0cf299f34ba94dd357806b6 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-args.js @@ -22,7 +22,7 @@ var replacer = function() { args = arguments; }; -/b(.).(.)/[Symbol.replace]('abcdef', replacer); +/b(.).(.)/ [Symbol.replace]('abcdef', replacer); assert.notSameValue(args, undefined); assert.sameValue(args.length, 5); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js index 5f9a58aee833c37f294eeb4abd56515a2c1c9704..62aec4b3064eead643afb03c24bfd44016dfd945 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-no-strict.js @@ -24,6 +24,6 @@ var replacer = function() { thisVal = this; }; -/./[Symbol.replace]('x', replacer); +/./ [Symbol.replace]('x', replacer); assert.sameValue(thisVal, this); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js index 2b556a8b4356533eecea1d4771f4a7c62471e854..44c2a570b4597cfe2279bc0a1f925b39274e56a9 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/fn-invoke-this-strict.js @@ -24,6 +24,6 @@ var replacer = function() { thisVal = this; }; -/./[Symbol.replace]('x', replacer); +/./ [Symbol.replace]('x', replacer); assert.sameValue(thisVal, undefined); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js index a6a97f7539e0da8f4bed607c7764c39d0305a578..7b49452e5bd71e6fa830c57997ed0046d389c4c4 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js @@ -22,7 +22,9 @@ var r = /./g; // Avoid false positives from unrelated TypeErrors r[Symbol.replace]('x', 'x'); -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.replace]('x', 'x'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js index 2a03846f945a393c12488f6421ae7df5dd462cb1..7447ac6d8b670c72f58caa100c1ddc359a44ff83 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js @@ -29,9 +29,17 @@ r.exec = function() { callCount += 1; if (callCount === 1) { - return { index: 3, length: 1, 0: 0 }; + return { + index: 3, + length: 1, + 0: 0 + }; } else if (callCount === 2) { - return { index: 1, length: 1, 0: 0 }; + return { + index: 1, + length: 1, + 0: 0 + }; } return null; diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js index 000ba643b8de779202eb67d0101001df12ed099e..2af11e676b083463967758c64cf1080e0098c68b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js @@ -29,9 +29,17 @@ r.exec = function() { callCount += 1; if (callCount === 1) { - return { index: 1, length: 1, 0: 0 }; + return { + index: 1, + length: 1, + 0: 0 + }; } else if (callCount === 2) { - return { index: 3, length: 1, 0: 0 }; + return { + index: 3, + length: 1, + 0: 0 + }; } return null; diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js index 902ae442386361cb9d71205477c583699b2851ae..8d5bf5b79f8b913861f462d42675f890896c1b08 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js @@ -19,7 +19,9 @@ info: | features: [Symbol.replace] ---*/ -var r = { global: true }; +var r = { + global: true +}; Object.defineProperty(r, 'exec', { get: function() { throw new Test262Error(); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js b/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js index 33df517c261dcea9f5199a44b0f7b03f5f3a4900..e1ff4fee273bc9dded575470d1701c3ff50437d6 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js @@ -24,4 +24,4 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/x/[Symbol.replace]('abc', 'X'), 'abc'); +assert.sameValue(/x/ [Symbol.replace]('abc', 'X'), 'abc'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js b/test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js index 62ecbb9bf022e17097aaef8f12198163aaf0ce74..136ea6c2394d076778c5f48a5aac90e45a507793 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/replace-with-trailing.js @@ -14,11 +14,11 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/abc/[Symbol.replace]('abcd', 'X'), 'Xd'); -assert.sameValue(/bc/[Symbol.replace]('abcd', 'X'), 'aXd'); -assert.sameValue(/c/[Symbol.replace]('abcd', 'X'), 'abXd'); +assert.sameValue(/abc/ [Symbol.replace]('abcd', 'X'), 'Xd'); +assert.sameValue(/bc/ [Symbol.replace]('abcd', 'X'), 'aXd'); +assert.sameValue(/c/ [Symbol.replace]('abcd', 'X'), 'abXd'); -assert.sameValue(/ab/[Symbol.replace]('abcd', 'X'), 'Xcd'); -assert.sameValue(/b/[Symbol.replace]('abcd', 'X'), 'aXcd'); +assert.sameValue(/ab/ [Symbol.replace]('abcd', 'X'), 'Xcd'); +assert.sameValue(/b/ [Symbol.replace]('abcd', 'X'), 'aXcd'); -assert.sameValue(/a/[Symbol.replace]('abcd', 'X'), 'Xbcd'); +assert.sameValue(/a/ [Symbol.replace]('abcd', 'X'), 'Xbcd'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js b/test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js index 22a0e3dd1e95075befa47001c4979ab8d7e3e105..c59779e4189abcda56ea74acdf7f1f20b66a9068 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/replace-without-trailing.js @@ -10,7 +10,7 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/abcd/[Symbol.replace]('abcd', 'X'), 'X'); -assert.sameValue(/bcd/[Symbol.replace]('abcd', 'X'), 'aX'); -assert.sameValue(/cd/[Symbol.replace]('abcd', 'X'), 'abX'); -assert.sameValue(/d/[Symbol.replace]('abcd', 'X'), 'abcX'); +assert.sameValue(/abcd/ [Symbol.replace]('abcd', 'X'), 'X'); +assert.sameValue(/bcd/ [Symbol.replace]('abcd', 'X'), 'aX'); +assert.sameValue(/cd/ [Symbol.replace]('abcd', 'X'), 'abX'); +assert.sameValue(/d/ [Symbol.replace]('abcd', 'X'), 'abcX'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js index a42a59168b6ca4c956f86a8e88d276fe7c5ab2f7..5d9a60511888c762ad964d6071f4643e5f94e227 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-after.js @@ -28,5 +28,5 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/c/[Symbol.replace]('abc', '[$\']'), 'ab[]'); -assert.sameValue(/b/[Symbol.replace]('abc', '[$\']'), 'a[c]c'); +assert.sameValue(/c/ [Symbol.replace]('abc', '[$\']'), 'ab[]'); +assert.sameValue(/b/ [Symbol.replace]('abc', '[$\']'), 'a[c]c'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js index 828e247fe083ef112ab421d28cd7d78ca46f68ba..0f7276a3248f2bef62ebba472ea5e616636815a2 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-before.js @@ -28,5 +28,5 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/a/[Symbol.replace]('abc', '[$`]'), '[]bc'); -assert.sameValue(/b/[Symbol.replace]('abc', '[$`]'), 'a[a]c'); +assert.sameValue(/a/ [Symbol.replace]('abc', '[$`]'), '[]bc'); +assert.sameValue(/b/ [Symbol.replace]('abc', '[$`]'), 'a[a]c'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js index 17287cd44be7dfaec1096fcfd8bd6835dd94a1b7..52d19ea0303cc5668891bffc78aa73e8b30f9f07 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-1.js @@ -32,6 +32,6 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/b(c)(z)?(.)/[Symbol.replace]('abcde', '[$1$2$3]'), 'a[cd]e'); +assert.sameValue(/b(c)(z)?(.)/ [Symbol.replace]('abcde', '[$1$2$3]'), 'a[cd]e'); -assert.sameValue(/b(c)(z)?(.)/[Symbol.replace]('abcde', '[$1$2$3$4$0]'), 'a[cd$4$0]e'); +assert.sameValue(/b(c)(z)?(.)/ [Symbol.replace]('abcde', '[$1$2$3$4$0]'), 'a[cd$4$0]e'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js index a84e790cc9cec31bf55d3773a8f8603fc538fbc2..6b255d458bf92cafb246e5cc43521ad17cdec996 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-capture-idx-2.js @@ -33,9 +33,9 @@ features: [Symbol.replace] ---*/ assert.sameValue( - /b(c)(z)?(.)/[Symbol.replace]('abcde', '[$01$02$03]'), 'a[cd]e' + /b(c)(z)?(.)/ [Symbol.replace]('abcde', '[$01$02$03]'), 'a[cd]e' ); assert.sameValue( - /b(c)(z)?(.)/[Symbol.replace]('abcde', '[$01$02$03$04$00]'), 'a[cd$04$00]e' + /b(c)(z)?(.)/ [Symbol.replace]('abcde', '[$01$02$03$04$00]'), 'a[cd$04$00]e' ); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js index 8cae30de425a7fa9c9dcb87344e0ec58c2a2ff9e..95df622a4c7118c033af68fd60be6beeee289c6f 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-dollar.js @@ -29,15 +29,15 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/./[Symbol.replace]('abc', '$$'), '$bc', '"escaped" version'); +assert.sameValue(/./ [Symbol.replace]('abc', '$$'), '$bc', '"escaped" version'); assert.sameValue( - /./[Symbol.replace]('abc', '$'), '$bc', '"unescaped" version' + /./ [Symbol.replace]('abc', '$'), '$bc', '"unescaped" version' ); assert.sameValue( - /./[Symbol.replace]('abc', '\\$'), '\\$bc', 'backslash-prefixed' + /./ [Symbol.replace]('abc', '\\$'), '\\$bc', 'backslash-prefixed' ); assert.sameValue( - /./[Symbol.replace]('abc', '$$$'), + /./ [Symbol.replace]('abc', '$$$'), '$$bc', '"escaped" followed by "unuescaped"' ); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js b/test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js index 20649e5181efb6c931b32306a1063051c48dadf7..c13bf187c7b1310982a722d594159ef09d3dc63e 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/subst-matched.js @@ -23,4 +23,4 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/.4?./[Symbol.replace]('abc', '[$&]'), '[ab]c'); +assert.sameValue(/.4?./ [Symbol.replace]('abc', '[$&]'), '[ab]c'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js b/test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js index a9824f81583dbf85061945625970b86b14d995fc..d571c797903a10220304224a72917b84ae88798d 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/u-advance-after-empty.js @@ -26,5 +26,5 @@ info: | features: [Symbol.replace] ---*/ -var str = /^|\udf06/ug[Symbol.replace]('\ud834\udf06', 'XXX'); +var str = /^|\udf06/ug [Symbol.replace]('\ud834\udf06', 'XXX'); assert.sameValue(str, 'XXX\ud834\udf06'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js b/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js index 81fee39c59db08175e4c5106814204bd6864a2b0..10dd25140ccc9e504346b910f6f0145890601776 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-global-return.js @@ -36,4 +36,4 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/a/yg[Symbol.replace]('aaba', 'x'), 'xxba'); +assert.sameValue(/a/yg [Symbol.replace]('aaba', 'x'), 'xxba'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js b/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js index 5b2746f38374302d9f920d6189e2be3b82580ec7..ee76f1a92ade56f746f2d096a21924844843a8be 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/y-fail-return.js @@ -28,4 +28,4 @@ info: | features: [Symbol.replace] ---*/ -assert.sameValue(/b/y[Symbol.replace]('ab', 'x'), 'ab'); +assert.sameValue(/b/y [Symbol.replace]('ab', 'x'), 'ab'); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js b/test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js index 889dbdac76595483f71bc33815d0b1476a1ae0f9..ce69827b0f031256833f453672d4cffca90e43a3 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/coerce-string-err.js @@ -18,9 +18,9 @@ var uncoercibleObj = { }; assert.throws(Test262Error, function() { - /./[Symbol.search](uncoercibleObj); + /./ [Symbol.search](uncoercibleObj); }); assert.throws(TypeError, function() { - /./[Symbol.search](Symbol.search); + /./ [Symbol.search](Symbol.search); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js b/test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js index 9b59d5d83d5539ad150dfeaed33817673b64f12c..01645c749413aede48808380bcf284a414584db2 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/coerce-string.js @@ -17,4 +17,4 @@ var obj = { } }; -assert.sameValue(/ring/[Symbol.search](obj), 4); +assert.sameValue(/ring/ [Symbol.search](obj), 4); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js b/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js index 398209d3898521c9583778527c164a34c01dde60..ccd4e48897e2660d4279b925dff09194a645441d 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js @@ -25,7 +25,9 @@ features: [Symbol.search] var fakeRe = { exec: function() { - return { index: 86 }; + return { + index: 86 + }; } }; diff --git a/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js b/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js index 458f57691c58aa1984b2409d011f4a9c9de601df..5b4c75ca0d67dd6fb410714a49c425aeb1be397c 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js @@ -10,4 +10,4 @@ info: | features: [Symbol.search] ---*/ -assert.sameValue(/z/[Symbol.search]('a'), -1); +assert.sameValue(/z/ [Symbol.search]('a'), -1); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js b/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js index 8f85a5e11757d96a06abcd1547107a3757f915cd..f3333c64c37aed5bd7228b6b00fdf3e354317c6a 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js @@ -15,7 +15,9 @@ features: [Symbol.search] var callCount; var poisonedLastIndex = { - get lastIndex() { return this.lastIndex_; }, + get lastIndex() { + return this.lastIndex_; + }, set lastIndex(_) { if (callCount === 1) { throw new Test262Error(); @@ -30,7 +32,9 @@ var poisonedLastIndex = { var nonWritableLastIndex = { exec: function() { Object.defineProperty( - nonWritableLastIndex, 'lastIndex', { writable: false } + nonWritableLastIndex, 'lastIndex', { + writable: false + } ); callCount += 1; return null; diff --git a/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js b/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js index e8bd0ee007383a0914639db5572d2607bf31bae9..948673373a773f7fcf56139fee6110814268b2ea 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js @@ -10,6 +10,6 @@ info: | features: [Symbol.search] ---*/ -assert.sameValue(/a/[Symbol.search]('abc'), 0); -assert.sameValue(/b/[Symbol.search]('abc'), 1); -assert.sameValue(/c/[Symbol.search]('abc'), 2); +assert.sameValue(/a/ [Symbol.search]('abc'), 0); +assert.sameValue(/b/ [Symbol.search]('abc'), 1); +assert.sameValue(/c/ [Symbol.search]('abc'), 2); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js b/test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js index 913b6451658ba532bea26fbe7132a5a8f92b3d86..eae1d9a177c9a6d4349def24a4a2f47b6cfc4dd1 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/u-lastindex-advance.js @@ -20,4 +20,4 @@ info: | features: [Symbol.search] ---*/ -assert.sameValue(/\udf06/u[Symbol.search]('\ud834\udf06'), -1); +assert.sameValue(/\udf06/u [Symbol.search]('\ud834\udf06'), -1); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js b/test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js index 3edf19d288098da1186d9a56ecd0723d2e6614ca..e23fec9a113d9dcfc1ee5d24b6ed129dc1f39c09 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/y-fail-return.js @@ -27,4 +27,4 @@ info: | features: [Symbol.search] ---*/ -assert.sameValue(/a/y[Symbol.search]('ba'), -1); +assert.sameValue(/a/y [Symbol.search]('ba'), -1); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js index fc69ddb02e32932a955354f52a1727feecc2fdf4..fc2b372a09d2d7a0b56327b5fae115e40906d64d 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit-err.js @@ -19,9 +19,9 @@ var uncoercibleObj = { }; assert.throws(TypeError, function() { - /./[Symbol.split]('', Symbol.split); + /./ [Symbol.split]('', Symbol.split); }); assert.throws(Test262Error, function() { - /./[Symbol.split]('', uncoercibleObj); + /./ [Symbol.split]('', uncoercibleObj); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js index 5d66443c406ff78a560ec431a5e9c6b759116752..093f3ec2f7d3a754288463e2c7f85070ec984124 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js @@ -14,15 +14,15 @@ features: [Symbol.split] var result; // ToUint32(-23) = 4294967273 -result = /./[Symbol.split]('abc', -23); +result = /./ [Symbol.split]('abc', -23); assert(Array.isArray(result)); assert.sameValue(result.length, 4); -result = /./[Symbol.split]('abc', 1.9); +result = /./ [Symbol.split]('abc', 1.9); assert(Array.isArray(result)); assert.sameValue(result.length, 1); assert.sameValue(result[0], ''); -result = /./[Symbol.split]('abc', NaN); +result = /./ [Symbol.split]('abc', NaN); assert(Array.isArray(result)); assert.sameValue(result.length, 0); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js index aae5072236edc97a550c320e1db2055fbcf2004b..32c3c0ee3c8f893858ad57a557e46be37e1a0f3b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-string-err.js @@ -18,9 +18,9 @@ var uncoercibleObj = { }; assert.throws(Test262Error, function() { - /./[Symbol.split](uncoercibleObj); + /./ [Symbol.split](uncoercibleObj); }); assert.throws(TypeError, function() { - /./[Symbol.split](Symbol.split); + /./ [Symbol.split](Symbol.split); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js index 58ad484d618736e3866ef50ee2de474a54f18efb..88194a186a18404b9a959ac7cf4d6e01e09adcca 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-string.js @@ -18,7 +18,7 @@ var obj = { }; var result; -result = / /[Symbol.split](obj); +result = / / [Symbol.split](obj); assert(Array.isArray(result)); assert.sameValue(result.length, 2); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js b/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js index f9b662f5042e79822aeee601844be85e1a38f621..26fbbad4633c775b0f47ec646bff455d91aefd6f 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js @@ -22,7 +22,10 @@ var string = "foo"; RegExp.prototype.exec = function() { this.lastIndex = 100; - return {length: 0, index: 0}; + return { + length: 0, + index: 0 + }; }; var result = regExp[Symbol.split](string); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js index 3425f46237aa2eb3f58a471ef1aea5c01140d6da..2550e2e00b67b63116a200c3e56f103ff5d3f4de 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js @@ -19,7 +19,9 @@ info: | features: [Symbol.split] ---*/ -var obj = { flags: '' }; +var obj = { + flags: '' +}; // Avoid false positives from unrelated TypeErrors RegExp.prototype[Symbol.split].call(obj); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js index b83974bee65c48ef23222e8af09c22534f76906e..26faf11173d3b66d71a71ff46ebb0e20da8707a8 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js @@ -31,5 +31,7 @@ Object.defineProperty(poisonedSpecies, Symbol.species, { }); assert.throws(Test262Error, function() { - RegExp.prototype[Symbol.split].call({ constructor: poisonedSpecies }); + RegExp.prototype[Symbol.split].call({ + constructor: poisonedSpecies + }); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js b/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js index 7d6dfdd820a876fad711ec64f07b377e0fe17079..d99763cf6de65613317f265f68b663b5d975a855 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js @@ -20,7 +20,7 @@ info: | features: [Symbol.split] ---*/ -var result = /(?:)/[Symbol.split]('abc'); +var result = /(?:)/ [Symbol.split]('abc'); assert(Array.isArray(result)); assert.sameValue(result.length, 3); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js index 0292e08466bcee05fd6316fae922f87a7623ffc6..5e89b6c1905f07b5b1e9c670ea1de224d7449860 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js @@ -42,7 +42,9 @@ assert.throws(TypeError, function() { }); badLastIndex = { - valueOf: function() { throw new Test262Error(); } + valueOf: function() { + throw new Test262Error(); + } }; assert.throws(Test262Error, function() { RegExp.prototype[Symbol.split].call(obj, 'abcd'); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js index 6e987a56abc64bd94f3761fd0b6ffeded775ef19..5f1bb6e7903fa13b899ed4eebef0bcedea41a483 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js @@ -13,7 +13,7 @@ info: | features: [Symbol.split] ---*/ -var result = /(?:)/[Symbol.split](''); +var result = /(?:)/ [Symbol.split](''); assert(Array.isArray(result)); assert.sameValue(result.length, 0); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js index 9d3f5964e1fc18d16642de819764282c75d3ac58..c6bea6bd633f7b2070f9bc5a37b1a09350d79353 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-no-match.js @@ -17,7 +17,7 @@ info: | features: [Symbol.split] ---*/ -var result = /./[Symbol.split](''); +var result = /./ [Symbol.split](''); assert(Array.isArray(result)); assert.sameValue(result.length, 1); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js b/test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js index c4fe2036a25dedb82f7f81f17d3d7df8d0384eaa..8b0f5e497ef6f6c81225335764072d8a3abac315 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/str-limit-capturing.js @@ -21,7 +21,7 @@ info: | features: [Symbol.split] ---*/ -var result = /c(d)(e)/[Symbol.split]('abcdefg', 2); +var result = /c(d)(e)/ [Symbol.split]('abcdefg', 2); assert(Array.isArray(result)); assert.sameValue(result.length, 2); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-limit.js b/test/built-ins/RegExp/prototype/Symbol.split/str-limit.js index a10409309ad701eb17d27f07ef240cbd68f60cb7..67858db7c38cc6a964188d96de4556a94d31faba 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/str-limit.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/str-limit.js @@ -21,7 +21,7 @@ info: | features: [Symbol.split] ---*/ -var result = /x/[Symbol.split]('axbxcxdxe', 3); +var result = /x/ [Symbol.split]('axbxcxdxe', 3); assert(Array.isArray(result)); assert.sameValue(result.length, 3); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js b/test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js index c781dde5ecc707cc4b538d25442a1e16c17dafc3..c4b57d4a67223cce8118b89fe8817199cb2bc873 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/str-trailing-chars.js @@ -14,7 +14,7 @@ info: | features: [Symbol.split] ---*/ -var result = /d/[Symbol.split]('abcdefg'); +var result = /d/ [Symbol.split]('abcdefg'); assert(Array.isArray(result)); assert.sameValue(result.length, 2); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js b/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js index 476dbf950a9918c90899563097927d68b8599151..8cbc45e382f3a7e94c933516981b68c99ab8742f 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-failure.js @@ -23,6 +23,6 @@ info: | features: [Symbol.split] ---*/ -var result = /\udf06/u[Symbol.split]('\ud834\udf06'); +var result = /\udf06/u [Symbol.split]('\ud834\udf06'); assert.sameValue(result.length, 1); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js b/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js index 1e370c1931b7872a5253c147b651aa54682af831..767c4d842271341f1051bfe83084be6b530c31c3 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/u-lastindex-adv-thru-match.js @@ -27,7 +27,7 @@ info: | features: [Symbol.split] ---*/ -var result = /./u[Symbol.split]('\ud834\udf06'); +var result = /./u [Symbol.split]('\ud834\udf06'); assert.sameValue(result.length, 2); assert.sameValue(result[0], ''); diff --git a/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js b/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js index ab93d95a8a3cc03d5a8e2f1d04e8b7931fafe7e3..4ccfba20f7e6695978e9699d32ba01f488b1b692 100644 --- a/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js +++ b/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js @@ -8,9 +8,9 @@ description: > current algorithm ---*/ - var str = "Hello World!"; - var regObj = new RegExp("World"); - var result = false; - result = regObj.exec(str).toString() === "World"; +var str = "Hello World!"; +var regObj = new RegExp("World"); +var result = false; +result = regObj.exec(str).toString() === "World"; assert(result, 'result !== true'); diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js index 5c69cca8ef20e86231b466291be3376eb1537c1f..3b8b330290cfde7dd6d20353f5827870c63890f5 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js @@ -15,7 +15,9 @@ if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { var __obj = RegExp.prototype.exec.length; -verifyNotWritable(RegExp.prototype.exec, "length", null, function(){return "shifted";}); +verifyNotWritable(RegExp.prototype.exec, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (RegExp.prototype.exec.length !== __obj) { diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js index 1fd0f84ac87cbf07166e3e177e2eb893d4dbca43..cbac6ac4c51725c45063dfd1caef373359ce5ab6 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js @@ -8,7 +8,7 @@ description: Checking RegExp.prototype.exec ---*/ (/foo/).test('xfoox'); -var match = new RegExp('(.|\r|\n)*','').exec()[0]; +var match = new RegExp('(.|\r|\n)*', '').exec()[0]; if (match === 'xfoox') { $ERROR('#1: regExp.exec() leaks match globally'); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js index f76ef50e60831adab1857ceaacb19d562485bd89..0b7c3689c7dbd0784b132ac6cc4329dfddb14d74 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js @@ -12,12 +12,12 @@ description: String is "123" and RegExp is /1|12/ var __executed = /1|12/.exec("123"); var __expected = ["1"]; -__expected.index=0; -__expected.input="123"; +__expected.index = 0; +__expected.input = "123"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /1|12/.exec("123"); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /1|12/.exec("123"); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /1|12/.exec("123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js index 824d63114f15ad37b2998c7eb317470070a7535e..dc640a28d39ee1958e8114beb4b6e7f082c7ecae 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js @@ -12,12 +12,12 @@ description: String is 1.01 and RegExp is /1|12/ var __executed = /1|12/.exec(1.01); var __expected = ["1"]; -__expected.index=0; -__expected.input="1.01"; +__expected.index = 0; +__expected.input = "1.01"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /1|12/.exec(1.01); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /1|12/.exec(1.01); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /1|12/.exec(1.01); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js index e1cbaccf1163b707cf32dabe28ea6a6e89a9c7e2..10dc7b5c536cec8f5de0f343fae9a8769481f341 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js @@ -12,12 +12,12 @@ description: String is new Number(1.012) and RegExp is /2|12/ var __executed = /2|12/.exec(new Number(1.012)); var __expected = ["12"]; -__expected.index=3; -__expected.input="1.012"; +__expected.index = 3; +__expected.input = "1.012"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /2|12/.exec(new Number(1.012)); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /2|12/.exec(new Number(1.012)); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /2|12/.exec(new Number(1.012)); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js index f019f3cebbaf529c47ec28d4141e9cff90a18f8b..1fef458d1aea31e246dc4501c811f60048738a82 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js @@ -11,15 +11,19 @@ description: > /\.14/ ---*/ -var __executed = /\.14/.exec({toString:function(){return Math.PI}}); +var __executed = /\.14/.exec({ + toString: function() { + return Math.PI + } +}); var __expected = [".14"]; -__expected.index=1; -__expected.input=String(Math.PI); +__expected.index = 1; +__expected.input = String(Math.PI); //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true'); } //CHECK#1 @@ -38,7 +42,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js index 806522d574978272c0580903eed51c93e7cb8440..ef9f1b47fbf4362d3975eb0cb6b1046f99aa00e9 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js @@ -12,12 +12,12 @@ description: String is true and RegExp is /t[a-b|q-s]/ var __executed = /t[a-b|q-s]/.exec(true); var __expected = ["tr"]; -__expected.index=0; -__expected.input="true"; +__expected.index = 0; +__expected.input = "true"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /t[a-b|q-s]/.exec(true); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /t[a-b|q-s]/.exec(true); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /t[a-b|q-s]/.exec(true); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js index f52b8ffb8aa5fc3ebb72e63a97ddbb7024fa99e2..ab68f596c1aa9966799d21ee36b04f76172e140e 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js @@ -12,12 +12,12 @@ description: String is new Boolean and RegExp is /AL|se/ var __executed = /AL|se/.exec(new Boolean); var __expected = ["se"]; -__expected.index=3; -__expected.input="false"; +__expected.index = 3; +__expected.input = "false"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /AL|se/.exec(new Boolean); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /AL|se/.exec(new Boolean); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /AL|se/.exec(new Boolean); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js index 8a19ebf509f685a9195e40b65bf6b3972d521174..d9cd5c4afe32f148f0de6ad488dc1fb028362a1e 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js @@ -9,15 +9,19 @@ es5id: 15.10.6.2_A1_T15 description: "String is {toString:function(){return false;}} and RegExp is /LS/i" ---*/ -var __executed = /LS/i.exec({toString:function(){return false}}); +var __executed = /LS/i.exec({ + toString: function() { + return false + } +}); var __expected = ["ls"]; -__expected.index=2; -__expected.input="false"; +__expected.index = 2; +__expected.input = "false"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +40,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /LS/i.exec({toString:function(){return false}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js index a0a229e5f2950b71c9ce59f193c6f86b80f760a2..371f41238f41d4a13c15e87d9b9163a16a5e4d97 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js @@ -11,5 +11,5 @@ description: RegExp is /undefined/ and call exec() without arguments var __re = /undefined/.exec()[0]; if (__re !== "undefined") { - $ERROR('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re)); + $ERROR('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js index b8b290bc3032b814e5cac4a228164eced0ddc95f..6b2c1501e1f14674bf0bf7a17fb735eb7bcca606 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js @@ -12,12 +12,12 @@ description: String is null and RegExp is /ll|l/ var __executed = /ll|l/.exec(null); var __expected = ["ll"]; -__expected.index=2; -__expected.input="null"; +__expected.index = 2; +__expected.input = "null"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /ll|l/.exec(null); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /ll|l/.exec(null); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /ll|l/.exec(null); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js index 5095f634c71ff2621b8bfc69282085c7d35889a4..bcee432f12f7d20903ef3c0fed41c9f8b847eb30 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js @@ -12,12 +12,12 @@ description: String is undefined and RegExp is /nd|ne/ var __executed = /nd|ne/.exec(undefined); var __expected = ["nd"]; -__expected.index=1; -__expected.input="undefined"; +__expected.index = 1; +__expected.input = "undefined"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /nd|ne/.exec(undefined); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /nd|ne/.exec(undefined); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /nd|ne/.exec(undefined); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js index e5d74add5a6b358257ea6291ece3332ca0abced9..e56a3b0e9306e60c9dc6208b410bcb02d577596d 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js @@ -12,12 +12,12 @@ description: String is void 0 and RegExp is /e{1}/ var __executed = /e{1}/.exec(void 0); var __expected = ["e"]; -__expected.index=3; -__expected.input="undefined"; +__expected.index = 3; +__expected.input = "undefined"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /e{1}/.exec(void 0); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /e{1}/.exec(void 0); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /e{1}/.exec(void 0); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js index 38f3be48b05698232367d39a312702d5def5bc86..3823541a136f02d1e078c9fd5d372a557fda60eb 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js @@ -13,12 +13,12 @@ var __re = /((1)|(12))((3)|(23))/; var __executed = __re.exec(new String("123")); var __expected = ["123", "1", "1", undefined, "23", undefined, "23"]; -__expected.index=0; -__expected.input="123"; +__expected.index = 0; +__expected.input = "123"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} (__executed instanceof Array) === true'); + $ERROR('#0: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} (__executed instanceof Array) === true'); } //CHECK#1 @@ -37,7 +37,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js index b6bbf42f9dc417d0283ad0203084799421c0bd04..245fd746e805c5c9f1dcbf8a517043bf1168c7e9 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js @@ -12,12 +12,12 @@ description: String is x and RegExp is /[a-f]d/, where x is undefined variable var __executed = /[a-f]d/.exec(x); var __expected = ["ed"]; -__expected.index=7; -__expected.input="undefined"; +__expected.index = 7; +__expected.input = "undefined"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /[a-f]d/.exec(x); var x; (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /[a-f]d/.exec(x); var x; (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /[a-f]d/.exec(x); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js index ad82053385e1d784d1ef4df4e6d80520023cd3db..d6499080c5029a2736705d71820fc5f270859323 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js @@ -9,15 +9,15 @@ es5id: 15.10.6.2_A1_T21 description: String is function(){}() and RegExp is /[a-z]n/ ---*/ -var __executed = /[a-z]n/.exec(function(){}()); +var __executed = /[a-z]n/.exec(function() {}()); var __expected = ["un"]; -__expected.index=0; -__expected.input="undefined"; +__expected.index = 0; +__expected.input = "undefined"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /[a-z]n/.exec(function(){}()); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /[a-z]n/.exec(function(){}()); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /[a-z]n/.exec(function(){}()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js index f65da3263aa7d64909314617baaf5e2081d53c47..d0de1daf6b4d8f5e90bddb330f7d0f00b5c51b6b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js @@ -12,12 +12,12 @@ description: String is new Object("abcdefghi") and RegExp is /a[a-z]{2,4}/ var __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); var __expected = ["abcde"]; -__expected.index=0; -__expected.input="abcdefghi"; +__expected.index = 0; +__expected.input = "abcdefghi"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +36,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js index e5ecd573af3cb352017ec45b3d37f999efb01cf0..580ced07afc6f9b6d66078d7fd9c585eb3d9e186 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js @@ -11,15 +11,19 @@ description: > /a[a-z]{2,4}?/ ---*/ -var __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); +var __executed = /a[a-z]{2,4}?/.exec({ + toString: function() { + return "abcdefghi" + } +}); var __expected = ["abc"]; -__expected.index=0; -__expected.input="abcdefghi"; +__expected.index = 0; +__expected.input = "abcdefghi"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true'); } //CHECK#1 @@ -38,7 +42,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js index 2bb8b42d50d28433d4cc2885c894b2461ee6871f..c0344cfa2c9115de923df390eb320fa626f438df 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js @@ -12,15 +12,22 @@ description: > /(aa|aabaac|ba|b|c)* / ---*/ -var __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); +var __executed = /(aa|aabaac|ba|b|c)*/.exec({ + toString: function() { + return {}; + }, + valueOf: function() { + return "aabaac"; + } +}); var __expected = ["aaba", "ba"]; -__expected.index=0; -__expected.input="aabaac"; +__expected.index = 0; +__expected.input = "aabaac"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true'); } //CHECK#1 @@ -39,7 +46,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js index e80bc22ba0a5a9166f15276f83595f7cefe397a4..56ab7b92e9db519b98ae4713f125c992ce1cbc8f 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js @@ -11,15 +11,17 @@ description: > /(z)((a+)?(b+)?(c))* / ---*/ -var __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); +var __executed = /(z)((a+)?(b+)?(c))*/.exec((function() { + return "zaacbbbcac" +})()); var __expected = ["zaacbbbcac", "z", "ac", "a", undefined, "c"]; -__expected.index=0; -__expected.input="zaacbbbcac"; +__expected.index = 0; +__expected.input = "zaacbbbcac"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true'); } //CHECK#1 @@ -38,7 +40,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js index 27e416f17e435d4fff7cf0e8517af81108173a3e..ba3a84f04b61bc021545330b4c1b2f2d02429a9d 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js @@ -13,9 +13,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({toString:function(){throw "intostr"}}))); + $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({ + toString: function() { + throw "intostr" + } + }))); } catch (e) { - if (e !== "intostr") { - $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js index ee0dad0cd1339fcf21b35127eb76a4082aea6543..dbea95b386d1396546fdb7197a2bf1171a878f77 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js @@ -13,7 +13,12 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}))); + $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({ + toString: void 0, + valueOf: function() { + throw "invalof" + } + }))); } catch (e) { if (e !== "invalof") { $ERROR('#1.2: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (e)); diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js index 2fe4adc12da5f273da23601896ac45e846504581..60704445aa14a7ba4fe1e532495f5ecd1a07b5e8 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js @@ -14,7 +14,7 @@ var __string; //CHECK#1 var __re = /1|12/; if (__re.exec(__string) !== null) { - $ERROR('#1: var __string; /1|12/.exec(__string) === null; function __string(){}. Actual: ' + (__re)); + $ERROR('#1: var __string; /1|12/.exec(__string) === null; function __string(){}. Actual: ' + (__re)); } -function __string(){}; +function __string() {}; diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js index da9044c917cb746f986dbaa919177b2354eaaee7..0bea5bf1b96695389a5e84d4f21e659bca9b90be 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js @@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = new Object; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + $ERROR('#1.1: __instance = new Object; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js index d76e16ca96f860adf931bcd22373a97db2b6c4ff..61b203f0ff5afe032e4f269aa577438d7789be26 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js @@ -13,9 +13,9 @@ var exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (exec("message to investigate"))); + $ERROR('#1.1: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (exec("message to investigate"))); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js index 461f4dafec22d9cd0f0025367d3baedb7c6b6142..8a1d3bf5b9ce2550bfcbcc9404d1c8811580a8d7 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js @@ -16,9 +16,9 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { __instance.exec("message to investigate"); - $ERROR('#1.1: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate")'); + $ERROR('#1.1: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate")'); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js index ae0fefba1459a034fd86c6e6e1cc60729d126efa..b7cbc10ffff43e9ccb89289048253b40ab48586b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js @@ -14,11 +14,11 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { __instance.exec("message to investigate"); - $ERROR('#1.1: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}'); + $ERROR('#1.1: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}'); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}. Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}. Actual: ' + (e)); + } } -function __instance(){}; +function __instance() {}; diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js index 8cd33f8c3ca75d8a95b207ab2d2aeca7ba91838a..c71ddfcd82b17e3b8bfe5e29eef592120537edf3 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js @@ -14,10 +14,10 @@ var __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; //CHECK#1 - try { - $ERROR('#1.1: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); - } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); - } - } +try { + $ERROR('#1.1: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); +} catch (e) { + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); + } +} diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js index 146eeacf467ed96d603c6e10cccf709e427838f5..1b75152edcd054366062ea72abc182a915ca3c65 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js @@ -14,10 +14,10 @@ var __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; //CHECK#1 - try { - $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); - } catch (e) { - if ((e instanceof TypeError !== true)) { - $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); - } +try { + $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); +} catch (e) { + if ((e instanceof TypeError !== true)) { + $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); } +} diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js index 5c2fa4f00c07807ce3e644c42e835daabeed0f09..8238d3f8d36dc373e2a54b65e8a28e770f8af31a 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js @@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (__instance["exec"]("message to investigate"))); + $ERROR('#1.1: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (__instance["exec"]("message to investigate"))); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js index 7c0a55e09bf84452e33176440eb4b9575150b8a3..6d19fc062f56fb95446a478a002a543303bdfd98 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js @@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + $ERROR('#1.1: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js index 8c31afbbf0b3f825620e5571ea5b810ab6bab902..bc35c777a26b78d2e04983396bace4fd198f4c6e 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js @@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + $ERROR('#1.1: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js index f71557bf6a0132df3636a47f24bd0401185378a4..5ee95865a3043f77285271031983f757fbfdebb5 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js @@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + $ERROR('#1.1: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js index 4052d931acd553869652af0c56f5185108682a9b..14ad64b907293d772a1138ab7248180af96f9c0b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js @@ -16,23 +16,23 @@ var __matched = []; var __expected = ["ab", "cd2", "ab3", "cd"]; -do{ - var __executed = __re.exec("ab cd2 ab34 cd"); - if (__executed !== null) { - __matched.push(__executed[0]); - } else { - break; - } -}while(true); +do { + var __executed = __re.exec("ab cd2 ab34 cd"); + if (__executed !== null) { + __matched.push(__executed[0]); + } else { + break; + } +} while (true); //CHECK#1 if (__expected.length !== __matched.length) { - $ERROR('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); + $ERROR('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); } //CHECK#2 -for(var index=0; index<__expected.length; index++) { - if (__expected[index] !== __matched[index]) { - $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__expected[index] !== __matched[index]) { + $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js index 34a0fe65ad4860d094997cab489fd7733d675f88..756ec7a45e8675fc2263fa64cf073a132f95be86 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js @@ -11,144 +11,144 @@ description: RegExp is /[Nn]evermore/g and tested string is very long string ---*/ var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + - "Over many a quaint and curious volume of forgotten lore," + - "While I nodded, nearly napping, suddenly there came a tapping," + - "As of some one gently rapping, rapping at my chamber door." + - "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + - "Only this, and nothing more.'" + - "Ah, distinctly I remember it was in the bleak December," + - "And each separate dying ember wrought its ghost upon the floor." + - "Eagerly I wished the morrow; - vainly I had sought to borrow" + - "From my books surcease of sorrow - sorrow for the lost Lenore -" + - "For the rare and radiant maiden whom the angels named Lenore -" + - "Nameless here for evermore." + - "\n" + - "And the silken sad uncertain rustling of each purple curtain" + - "Thrilled me - filled me with fantastic terrors never felt before;" + - "So that now, to still the beating of my heart, I stood repeating" + - "`'Tis some visitor entreating entrance at my chamber door -" + - "Some late visitor entreating entrance at my chamber door; -" + - "This it is, and nothing more,'" + - "Presently my soul grew stronger; hesitating then no longer," + - "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + - "But the fact is I was napping, and so gently you came rapping," + - "And so faintly you came tapping, tapping at my chamber door," + - "That I scarce was sure I heard you' - here I opened wide the door; -" + - "Darkness there, and nothing more." + - "\n" + - "Deep into that darkness peering, long I stood there wondering, fearing," + - "Doubting, dreaming dreams no mortal ever dared to dream before" + - "But the silence was unbroken, and the darkness gave no token," + - "And the only word there spoken was the whispered word, `Lenore!'" + - "This I whispered, and an echo murmured back the word, `Lenore!'" + - "Merely this and nothing more." + - "\n" + - "Back into the chamber turning, all my soul within me burning," + - "Soon again I heard a tapping somewhat louder than before." + - "`Surely,' said I, `surely that is something at my window lattice;" + - "Let me see then, what thereat is, and this mystery explore -" + - "Let my heart be still a moment and this mystery explore; -" + - "'Tis the wind and nothing more!'" + - "\n" + - "Open here I flung the shutter, when, with many a flirt and flutter," + - "In there stepped a stately raven of the saintly days of yore." + - "Not the least obeisance made he; not a minute stopped or stayed he;" + - "But, with mien of lord or lady, perched above my chamber door -" + - "Perched upon a bust of Pallas just above my chamber door -" + - "Perched, and sat, and nothing more." + - "\n" + - "Then this ebony bird beguiling my sad fancy into smiling," + - "By the grave and stern decorum of the countenance it wore," + - "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + - "Ghastly grim and ancient raven wandering from the nightly shore -" + - "Tell me what thy lordly name is on the Night's Plutonian shore!'" + - "Quoth the raven, `Nevermore.'" + - "-n" + - "Much I marvelled this ungainly fowl to hear discourse so plainly," + - "Though its answer little meaning - little relevancy bore;" + - "For we cannot help agreeing that no living human being" + - "Ever yet was blessed with seeing bird above his chamber door -" + - "Bird or beast above the sculptured bust above his chamber door," + - "With such name as `Nevermore.'" + - "\n" + - "But the raven, sitting lonely on the placid bust, spoke only," + - "That one word, as if his soul in that one word he did outpour." + - "Nothing further then he uttered - not a feather then he fluttered -" + - "Till I scarcely more than muttered `Other friends have flown before -" + - "On the morrow he will leave me, as my hopes have flown before.'" + - "Then the bird said, `Nevermore.'" + - "\n" + - "Startled at the stillness broken by reply so aptly spoken," + - "`Doubtless,' said I, `what it utters is its only stock and store," + - "Caught from some unhappy master whom unmerciful disaster" + - "Followed fast and followed faster till his songs one burden bore -" + - "Till the dirges of his hope that melancholy burden bore" + - "Of \"Never-nevermore.\"'" + - "\n" + - "But the raven still beguiling all my sad soul into smiling," + - "Straight I wheeled a cushioned seat in front of bird and bust and door;" + - "Then, upon the velvet sinking, I betook myself to linking" + - "Fancy unto fancy, thinking what this ominous bird of yore -" + - "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + - "Meant in croaking `Nevermore.'" + - "\n" + - "This I sat engaged in guessing, but no syllable expressing" + - "To the fowl whose fiery eyes now burned into my bosom's core;" + - "This and more I sat divining, with my head at ease reclining" + - "On the cushion's velvet lining that the lamp-light gloated o'er," + - "But whose velvet violet lining with the lamp-light gloating o'er," + - "She shall press, ah, nevermore!" + - "\n" + - "Then, methought, the air grew denser, perfumed from an unseen censer" + - "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + - "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + - "Respite - respite and nepenthe from thy memories of Lenore!" + - "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + - "Whether tempter sent, or whether tempest tossed thee here ashore," + - "Desolate yet all undaunted, on this desert land enchanted -" + - "On this home by horror haunted - tell me truly, I implore -" + - "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + - "By that Heaven that bends above us - by that God we both adore -" + - "Tell this soul with sorrow laden if, within the distant Aidenn," + - "It shall clasp a sainted maiden whom the angels named Lenore -" + - "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + - "`Get thee back into the tempest and the Night's Plutonian shore!" + - "Leave no black plume as a token of that lie thy soul hath spoken!" + - "Leave my loneliness unbroken! - quit the bust above my door!" + - "Take thy beak from out my heart, and take thy form from off my door!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "And the raven, never flitting, still is sitting, still is sitting" + - "On the pallid bust of Pallas just above my chamber door;" + - "And his eyes have all the seeming of a demon's that is dreaming," + - "And the lamp-light o'er him streaming throws his shadow on the floor;" + - "And my soul from out that shadow that lies floating on the floor" + - "Shall be lifted - nevermore!" + "Over many a quaint and curious volume of forgotten lore," + + "While I nodded, nearly napping, suddenly there came a tapping," + + "As of some one gently rapping, rapping at my chamber door." + + "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + + "Only this, and nothing more.'" + + "Ah, distinctly I remember it was in the bleak December," + + "And each separate dying ember wrought its ghost upon the floor." + + "Eagerly I wished the morrow; - vainly I had sought to borrow" + + "From my books surcease of sorrow - sorrow for the lost Lenore -" + + "For the rare and radiant maiden whom the angels named Lenore -" + + "Nameless here for evermore." + + "\n" + + "And the silken sad uncertain rustling of each purple curtain" + + "Thrilled me - filled me with fantastic terrors never felt before;" + + "So that now, to still the beating of my heart, I stood repeating" + + "`'Tis some visitor entreating entrance at my chamber door -" + + "Some late visitor entreating entrance at my chamber door; -" + + "This it is, and nothing more,'" + + "Presently my soul grew stronger; hesitating then no longer," + + "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + + "But the fact is I was napping, and so gently you came rapping," + + "And so faintly you came tapping, tapping at my chamber door," + + "That I scarce was sure I heard you' - here I opened wide the door; -" + + "Darkness there, and nothing more." + + "\n" + + "Deep into that darkness peering, long I stood there wondering, fearing," + + "Doubting, dreaming dreams no mortal ever dared to dream before" + + "But the silence was unbroken, and the darkness gave no token," + + "And the only word there spoken was the whispered word, `Lenore!'" + + "This I whispered, and an echo murmured back the word, `Lenore!'" + + "Merely this and nothing more." + + "\n" + + "Back into the chamber turning, all my soul within me burning," + + "Soon again I heard a tapping somewhat louder than before." + + "`Surely,' said I, `surely that is something at my window lattice;" + + "Let me see then, what thereat is, and this mystery explore -" + + "Let my heart be still a moment and this mystery explore; -" + + "'Tis the wind and nothing more!'" + + "\n" + + "Open here I flung the shutter, when, with many a flirt and flutter," + + "In there stepped a stately raven of the saintly days of yore." + + "Not the least obeisance made he; not a minute stopped or stayed he;" + + "But, with mien of lord or lady, perched above my chamber door -" + + "Perched upon a bust of Pallas just above my chamber door -" + + "Perched, and sat, and nothing more." + + "\n" + + "Then this ebony bird beguiling my sad fancy into smiling," + + "By the grave and stern decorum of the countenance it wore," + + "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + + "Ghastly grim and ancient raven wandering from the nightly shore -" + + "Tell me what thy lordly name is on the Night's Plutonian shore!'" + + "Quoth the raven, `Nevermore.'" + + "-n" + + "Much I marvelled this ungainly fowl to hear discourse so plainly," + + "Though its answer little meaning - little relevancy bore;" + + "For we cannot help agreeing that no living human being" + + "Ever yet was blessed with seeing bird above his chamber door -" + + "Bird or beast above the sculptured bust above his chamber door," + + "With such name as `Nevermore.'" + + "\n" + + "But the raven, sitting lonely on the placid bust, spoke only," + + "That one word, as if his soul in that one word he did outpour." + + "Nothing further then he uttered - not a feather then he fluttered -" + + "Till I scarcely more than muttered `Other friends have flown before -" + + "On the morrow he will leave me, as my hopes have flown before.'" + + "Then the bird said, `Nevermore.'" + + "\n" + + "Startled at the stillness broken by reply so aptly spoken," + + "`Doubtless,' said I, `what it utters is its only stock and store," + + "Caught from some unhappy master whom unmerciful disaster" + + "Followed fast and followed faster till his songs one burden bore -" + + "Till the dirges of his hope that melancholy burden bore" + + "Of \"Never-nevermore.\"'" + + "\n" + + "But the raven still beguiling all my sad soul into smiling," + + "Straight I wheeled a cushioned seat in front of bird and bust and door;" + + "Then, upon the velvet sinking, I betook myself to linking" + + "Fancy unto fancy, thinking what this ominous bird of yore -" + + "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + + "Meant in croaking `Nevermore.'" + + "\n" + + "This I sat engaged in guessing, but no syllable expressing" + + "To the fowl whose fiery eyes now burned into my bosom's core;" + + "This and more I sat divining, with my head at ease reclining" + + "On the cushion's velvet lining that the lamp-light gloated o'er," + + "But whose velvet violet lining with the lamp-light gloating o'er," + + "She shall press, ah, nevermore!" + + "\n" + + "Then, methought, the air grew denser, perfumed from an unseen censer" + + "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + + "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + + "Respite - respite and nepenthe from thy memories of Lenore!" + + "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + + "Whether tempter sent, or whether tempest tossed thee here ashore," + + "Desolate yet all undaunted, on this desert land enchanted -" + + "On this home by horror haunted - tell me truly, I implore -" + + "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + + "By that Heaven that bends above us - by that God we both adore -" + + "Tell this soul with sorrow laden if, within the distant Aidenn," + + "It shall clasp a sainted maiden whom the angels named Lenore -" + + "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + + "`Get thee back into the tempest and the Night's Plutonian shore!" + + "Leave no black plume as a token of that lie thy soul hath spoken!" + + "Leave my loneliness unbroken! - quit the bust above my door!" + + "Take thy beak from out my heart, and take thy form from off my door!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "And the raven, never flitting, still is sitting, still is sitting" + + "On the pallid bust of Pallas just above my chamber door;" + + "And his eyes have all the seeming of a demon's that is dreaming," + + "And the lamp-light o'er him streaming throws his shadow on the floor;" + + "And my soul from out that shadow that lies floating on the floor" + + "Shall be lifted - nevermore!" + +var NEVERMORE = 11; -var NEVERMORE=11; - var __re = /[Nn]evermore/g; -var __matched=0; +var __matched = 0; -do{ - var __executed = __re.exec(__the__raven); - if (__executed !== null) { - __matched++; - } else { - break; - } -}while(1); +do { + var __executed = __re.exec(__the__raven); + if (__executed !== null) { + __matched++; + } else { + break; + } +} while (1); //CHECK#1 if (__matched !== NEVERMORE) { - $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)'+__matched); + $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)' + __matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js index 8afc2f5a58ad440fb6ec719dbe8cce61cedb765e..52f8f6ff8c7a91fb9a79630a928c604fdd1ac4ea 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js @@ -11,144 +11,144 @@ description: RegExp is /[Nn]?evermore/g and tested string is very long string ---*/ var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + - "Over many a quaint and curious volume of forgotten lore," + - "While I nodded, nearly napping, suddenly there came a tapping," + - "As of some one gently rapping, rapping at my chamber door." + - "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + - "Only this, and nothing more.'" + - "Ah, distinctly I remember it was in the bleak December," + - "And each separate dying ember wrought its ghost upon the floor." + - "Eagerly I wished the morrow; - vainly I had sought to borrow" + - "From my books surcease of sorrow - sorrow for the lost Lenore -" + - "For the rare and radiant maiden whom the angels named Lenore -" + - "Nameless here for evermore." + - "\n" + - "And the silken sad uncertain rustling of each purple curtain" + - "Thrilled me - filled me with fantastic terrors never felt before;" + - "So that now, to still the beating of my heart, I stood repeating" + - "`'Tis some visitor entreating entrance at my chamber door -" + - "Some late visitor entreating entrance at my chamber door; -" + - "This it is, and nothing more,'" + - "Presently my soul grew stronger; hesitating then no longer," + - "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + - "But the fact is I was napping, and so gently you came rapping," + - "And so faintly you came tapping, tapping at my chamber door," + - "That I scarce was sure I heard you' - here I opened wide the door; -" + - "Darkness there, and nothing more." + - "\n" + - "Deep into that darkness peering, long I stood there wondering, fearing," + - "Doubting, dreaming dreams no mortal ever dared to dream before" + - "But the silence was unbroken, and the darkness gave no token," + - "And the only word there spoken was the whispered word, `Lenore!'" + - "This I whispered, and an echo murmured back the word, `Lenore!'" + - "Merely this and nothing more." + - "\n" + - "Back into the chamber turning, all my soul within me burning," + - "Soon again I heard a tapping somewhat louder than before." + - "`Surely,' said I, `surely that is something at my window lattice;" + - "Let me see then, what thereat is, and this mystery explore -" + - "Let my heart be still a moment and this mystery explore; -" + - "'Tis the wind and nothing more!'" + - "\n" + - "Open here I flung the shutter, when, with many a flirt and flutter," + - "In there stepped a stately raven of the saintly days of yore." + - "Not the least obeisance made he; not a minute stopped or stayed he;" + - "But, with mien of lord or lady, perched above my chamber door -" + - "Perched upon a bust of Pallas just above my chamber door -" + - "Perched, and sat, and nothing more." + - "\n" + - "Then this ebony bird beguiling my sad fancy into smiling," + - "By the grave and stern decorum of the countenance it wore," + - "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + - "Ghastly grim and ancient raven wandering from the nightly shore -" + - "Tell me what thy lordly name is on the Night's Plutonian shore!'" + - "Quoth the raven, `Nevermore.'" + - "-n" + - "Much I marvelled this ungainly fowl to hear discourse so plainly," + - "Though its answer little meaning - little relevancy bore;" + - "For we cannot help agreeing that no living human being" + - "Ever yet was blessed with seeing bird above his chamber door -" + - "Bird or beast above the sculptured bust above his chamber door," + - "With such name as `Nevermore.'" + - "\n" + - "But the raven, sitting lonely on the placid bust, spoke only," + - "That one word, as if his soul in that one word he did outpour." + - "Nothing further then he uttered - not a feather then he fluttered -" + - "Till I scarcely more than muttered `Other friends have flown before -" + - "On the morrow he will leave me, as my hopes have flown before.'" + - "Then the bird said, `Nevermore.'" + - "\n" + - "Startled at the stillness broken by reply so aptly spoken," + - "`Doubtless,' said I, `what it utters is its only stock and store," + - "Caught from some unhappy master whom unmerciful disaster" + - "Followed fast and followed faster till his songs one burden bore -" + - "Till the dirges of his hope that melancholy burden bore" + - "Of \"Never-nevermore.\"'" + - "\n" + - "But the raven still beguiling all my sad soul into smiling," + - "Straight I wheeled a cushioned seat in front of bird and bust and door;" + - "Then, upon the velvet sinking, I betook myself to linking" + - "Fancy unto fancy, thinking what this ominous bird of yore -" + - "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + - "Meant in croaking `Nevermore.'" + - "\n" + - "This I sat engaged in guessing, but no syllable expressing" + - "To the fowl whose fiery eyes now burned into my bosom's core;" + - "This and more I sat divining, with my head at ease reclining" + - "On the cushion's velvet lining that the lamp-light gloated o'er," + - "But whose velvet violet lining with the lamp-light gloating o'er," + - "She shall press, ah, nevermore!" + - "\n" + - "Then, methought, the air grew denser, perfumed from an unseen censer" + - "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + - "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + - "Respite - respite and nepenthe from thy memories of Lenore!" + - "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + - "Whether tempter sent, or whether tempest tossed thee here ashore," + - "Desolate yet all undaunted, on this desert land enchanted -" + - "On this home by horror haunted - tell me truly, I implore -" + - "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + - "By that Heaven that bends above us - by that God we both adore -" + - "Tell this soul with sorrow laden if, within the distant Aidenn," + - "It shall clasp a sainted maiden whom the angels named Lenore -" + - "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + - "`Get thee back into the tempest and the Night's Plutonian shore!" + - "Leave no black plume as a token of that lie thy soul hath spoken!" + - "Leave my loneliness unbroken! - quit the bust above my door!" + - "Take thy beak from out my heart, and take thy form from off my door!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "And the raven, never flitting, still is sitting, still is sitting" + - "On the pallid bust of Pallas just above my chamber door;" + - "And his eyes have all the seeming of a demon's that is dreaming," + - "And the lamp-light o'er him streaming throws his shadow on the floor;" + - "And my soul from out that shadow that lies floating on the floor" + - "Shall be lifted - nevermore!" + "Over many a quaint and curious volume of forgotten lore," + + "While I nodded, nearly napping, suddenly there came a tapping," + + "As of some one gently rapping, rapping at my chamber door." + + "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + + "Only this, and nothing more.'" + + "Ah, distinctly I remember it was in the bleak December," + + "And each separate dying ember wrought its ghost upon the floor." + + "Eagerly I wished the morrow; - vainly I had sought to borrow" + + "From my books surcease of sorrow - sorrow for the lost Lenore -" + + "For the rare and radiant maiden whom the angels named Lenore -" + + "Nameless here for evermore." + + "\n" + + "And the silken sad uncertain rustling of each purple curtain" + + "Thrilled me - filled me with fantastic terrors never felt before;" + + "So that now, to still the beating of my heart, I stood repeating" + + "`'Tis some visitor entreating entrance at my chamber door -" + + "Some late visitor entreating entrance at my chamber door; -" + + "This it is, and nothing more,'" + + "Presently my soul grew stronger; hesitating then no longer," + + "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + + "But the fact is I was napping, and so gently you came rapping," + + "And so faintly you came tapping, tapping at my chamber door," + + "That I scarce was sure I heard you' - here I opened wide the door; -" + + "Darkness there, and nothing more." + + "\n" + + "Deep into that darkness peering, long I stood there wondering, fearing," + + "Doubting, dreaming dreams no mortal ever dared to dream before" + + "But the silence was unbroken, and the darkness gave no token," + + "And the only word there spoken was the whispered word, `Lenore!'" + + "This I whispered, and an echo murmured back the word, `Lenore!'" + + "Merely this and nothing more." + + "\n" + + "Back into the chamber turning, all my soul within me burning," + + "Soon again I heard a tapping somewhat louder than before." + + "`Surely,' said I, `surely that is something at my window lattice;" + + "Let me see then, what thereat is, and this mystery explore -" + + "Let my heart be still a moment and this mystery explore; -" + + "'Tis the wind and nothing more!'" + + "\n" + + "Open here I flung the shutter, when, with many a flirt and flutter," + + "In there stepped a stately raven of the saintly days of yore." + + "Not the least obeisance made he; not a minute stopped or stayed he;" + + "But, with mien of lord or lady, perched above my chamber door -" + + "Perched upon a bust of Pallas just above my chamber door -" + + "Perched, and sat, and nothing more." + + "\n" + + "Then this ebony bird beguiling my sad fancy into smiling," + + "By the grave and stern decorum of the countenance it wore," + + "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + + "Ghastly grim and ancient raven wandering from the nightly shore -" + + "Tell me what thy lordly name is on the Night's Plutonian shore!'" + + "Quoth the raven, `Nevermore.'" + + "-n" + + "Much I marvelled this ungainly fowl to hear discourse so plainly," + + "Though its answer little meaning - little relevancy bore;" + + "For we cannot help agreeing that no living human being" + + "Ever yet was blessed with seeing bird above his chamber door -" + + "Bird or beast above the sculptured bust above his chamber door," + + "With such name as `Nevermore.'" + + "\n" + + "But the raven, sitting lonely on the placid bust, spoke only," + + "That one word, as if his soul in that one word he did outpour." + + "Nothing further then he uttered - not a feather then he fluttered -" + + "Till I scarcely more than muttered `Other friends have flown before -" + + "On the morrow he will leave me, as my hopes have flown before.'" + + "Then the bird said, `Nevermore.'" + + "\n" + + "Startled at the stillness broken by reply so aptly spoken," + + "`Doubtless,' said I, `what it utters is its only stock and store," + + "Caught from some unhappy master whom unmerciful disaster" + + "Followed fast and followed faster till his songs one burden bore -" + + "Till the dirges of his hope that melancholy burden bore" + + "Of \"Never-nevermore.\"'" + + "\n" + + "But the raven still beguiling all my sad soul into smiling," + + "Straight I wheeled a cushioned seat in front of bird and bust and door;" + + "Then, upon the velvet sinking, I betook myself to linking" + + "Fancy unto fancy, thinking what this ominous bird of yore -" + + "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + + "Meant in croaking `Nevermore.'" + + "\n" + + "This I sat engaged in guessing, but no syllable expressing" + + "To the fowl whose fiery eyes now burned into my bosom's core;" + + "This and more I sat divining, with my head at ease reclining" + + "On the cushion's velvet lining that the lamp-light gloated o'er," + + "But whose velvet violet lining with the lamp-light gloating o'er," + + "She shall press, ah, nevermore!" + + "\n" + + "Then, methought, the air grew denser, perfumed from an unseen censer" + + "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + + "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + + "Respite - respite and nepenthe from thy memories of Lenore!" + + "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + + "Whether tempter sent, or whether tempest tossed thee here ashore," + + "Desolate yet all undaunted, on this desert land enchanted -" + + "On this home by horror haunted - tell me truly, I implore -" + + "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + + "By that Heaven that bends above us - by that God we both adore -" + + "Tell this soul with sorrow laden if, within the distant Aidenn," + + "It shall clasp a sainted maiden whom the angels named Lenore -" + + "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + + "`Get thee back into the tempest and the Night's Plutonian shore!" + + "Leave no black plume as a token of that lie thy soul hath spoken!" + + "Leave my loneliness unbroken! - quit the bust above my door!" + + "Take thy beak from out my heart, and take thy form from off my door!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "And the raven, never flitting, still is sitting, still is sitting" + + "On the pallid bust of Pallas just above my chamber door;" + + "And his eyes have all the seeming of a demon's that is dreaming," + + "And the lamp-light o'er him streaming throws his shadow on the floor;" + + "And my soul from out that shadow that lies floating on the floor" + + "Shall be lifted - nevermore!" + +var NEVERMORE_AND_EVERMORE = 12; -var NEVERMORE_AND_EVERMORE=12; - var __re = /[Nn]?evermore/g; -var __matched=0; +var __matched = 0; -do{ - var __executed = __re.exec(__the__raven); - if (__executed !== null) { - __matched++; - } else { - break; - } -}while(1); +do { + var __executed = __re.exec(__the__raven); + if (__executed !== null) { + __matched++; + } else { + break; + } +} while (1); //CHECK#1 if (__matched !== NEVERMORE_AND_EVERMORE) { - $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)'+__matched); + $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)' + __matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js index 278549a27925f7ba9177cb05edaa9dc74ea5f1a4..b652749b653d3a5e6e691060731154274dae6e92 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js @@ -13,144 +13,144 @@ description: > ---*/ var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + - "Over many a quaint and curious volume of forgotten lore," + - "While I nodded, nearly napping, suddenly there came a tapping," + - "As of some one gently rapping, rapping at my chamber door." + - "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + - "Only this, and nothing more.'" + - "Ah, distinctly I remember it was in the bleak December," + - "And each separate dying ember wrought its ghost upon the floor." + - "Eagerly I wished the morrow; - vainly I had sought to borrow" + - "From my books surcease of sorrow - sorrow for the lost Lenore -" + - "For the rare and radiant maiden whom the angels named Lenore -" + - "Nameless here for evermore." + - "\n" + - "And the silken sad uncertain rustling of each purple curtain" + - "Thrilled me - filled me with fantastic terrors never felt before;" + - "So that now, to still the beating of my heart, I stood repeating" + - "`'Tis some visitor entreating entrance at my chamber door -" + - "Some late visitor entreating entrance at my chamber door; -" + - "This it is, and nothing more,'" + - "Presently my soul grew stronger; hesitating then no longer," + - "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + - "But the fact is I was napping, and so gently you came rapping," + - "And so faintly you came tapping, tapping at my chamber door," + - "That I scarce was sure I heard you' - here I opened wide the door; -" + - "Darkness there, and nothing more." + - "\n" + - "Deep into that darkness peering, long I stood there wondering, fearing," + - "Doubting, dreaming dreams no mortal ever dared to dream before" + - "But the silence was unbroken, and the darkness gave no token," + - "And the only word there spoken was the whispered word, `Lenore!'" + - "This I whispered, and an echo murmured back the word, `Lenore!'" + - "Merely this and nothing more." + - "\n" + - "Back into the chamber turning, all my soul within me burning," + - "Soon again I heard a tapping somewhat louder than before." + - "`Surely,' said I, `surely that is something at my window lattice;" + - "Let me see then, what thereat is, and this mystery explore -" + - "Let my heart be still a moment and this mystery explore; -" + - "'Tis the wind and nothing more!'" + - "\n" + - "Open here I flung the shutter, when, with many a flirt and flutter," + - "In there stepped a stately raven of the saintly days of yore." + - "Not the least obeisance made he; not a minute stopped or stayed he;" + - "But, with mien of lord or lady, perched above my chamber door -" + - "Perched upon a bust of Pallas just above my chamber door -" + - "Perched, and sat, and nothing more." + - "\n" + - "Then this ebony bird beguiling my sad fancy into smiling," + - "By the grave and stern decorum of the countenance it wore," + - "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + - "Ghastly grim and ancient raven wandering from the nightly shore -" + - "Tell me what thy lordly name is on the Night's Plutonian shore!'" + - "Quoth the raven, `Nevermore.'" + - "-n" + - "Much I marvelled this ungainly fowl to hear discourse so plainly," + - "Though its answer little meaning - little relevancy bore;" + - "For we cannot help agreeing that no living human being" + - "Ever yet was blessed with seeing bird above his chamber door -" + - "Bird or beast above the sculptured bust above his chamber door," + - "With such name as `Nevermore.'" + - "\n" + - "But the raven, sitting lonely on the placid bust, spoke only," + - "That one word, as if his soul in that one word he did outpour." + - "Nothing further then he uttered - not a feather then he fluttered -" + - "Till I scarcely more than muttered `Other friends have flown before -" + - "On the morrow he will leave me, as my hopes have flown before.'" + - "Then the bird said, `Nevermore.'" + - "\n" + - "Startled at the stillness broken by reply so aptly spoken," + - "`Doubtless,' said I, `what it utters is its only stock and store," + - "Caught from some unhappy master whom unmerciful disaster" + - "Followed fast and followed faster till his songs one burden bore -" + - "Till the dirges of his hope that melancholy burden bore" + - "Of \"Never-nevermore.\"'" + - "\n" + - "But the raven still beguiling all my sad soul into smiling," + - "Straight I wheeled a cushioned seat in front of bird and bust and door;" + - "Then, upon the velvet sinking, I betook myself to linking" + - "Fancy unto fancy, thinking what this ominous bird of yore -" + - "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + - "Meant in croaking `Nevermore.'" + - "\n" + - "This I sat engaged in guessing, but no syllable expressing" + - "To the fowl whose fiery eyes now burned into my bosom's core;" + - "This and more I sat divining, with my head at ease reclining" + - "On the cushion's velvet lining that the lamp-light gloated o'er," + - "But whose velvet violet lining with the lamp-light gloating o'er," + - "She shall press, ah, nevermore!" + - "\n" + - "Then, methought, the air grew denser, perfumed from an unseen censer" + - "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + - "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + - "Respite - respite and nepenthe from thy memories of Lenore!" + - "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + - "Whether tempter sent, or whether tempest tossed thee here ashore," + - "Desolate yet all undaunted, on this desert land enchanted -" + - "On this home by horror haunted - tell me truly, I implore -" + - "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + - "By that Heaven that bends above us - by that God we both adore -" + - "Tell this soul with sorrow laden if, within the distant Aidenn," + - "It shall clasp a sainted maiden whom the angels named Lenore -" + - "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + - "`Get thee back into the tempest and the Night's Plutonian shore!" + - "Leave no black plume as a token of that lie thy soul hath spoken!" + - "Leave my loneliness unbroken! - quit the bust above my door!" + - "Take thy beak from out my heart, and take thy form from off my door!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "And the raven, never flitting, still is sitting, still is sitting" + - "On the pallid bust of Pallas just above my chamber door;" + - "And his eyes have all the seeming of a demon's that is dreaming," + - "And the lamp-light o'er him streaming throws his shadow on the floor;" + - "And my soul from out that shadow that lies floating on the floor" + - "Shall be lifted - nevermore!" + "Over many a quaint and curious volume of forgotten lore," + + "While I nodded, nearly napping, suddenly there came a tapping," + + "As of some one gently rapping, rapping at my chamber door." + + "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + + "Only this, and nothing more.'" + + "Ah, distinctly I remember it was in the bleak December," + + "And each separate dying ember wrought its ghost upon the floor." + + "Eagerly I wished the morrow; - vainly I had sought to borrow" + + "From my books surcease of sorrow - sorrow for the lost Lenore -" + + "For the rare and radiant maiden whom the angels named Lenore -" + + "Nameless here for evermore." + + "\n" + + "And the silken sad uncertain rustling of each purple curtain" + + "Thrilled me - filled me with fantastic terrors never felt before;" + + "So that now, to still the beating of my heart, I stood repeating" + + "`'Tis some visitor entreating entrance at my chamber door -" + + "Some late visitor entreating entrance at my chamber door; -" + + "This it is, and nothing more,'" + + "Presently my soul grew stronger; hesitating then no longer," + + "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + + "But the fact is I was napping, and so gently you came rapping," + + "And so faintly you came tapping, tapping at my chamber door," + + "That I scarce was sure I heard you' - here I opened wide the door; -" + + "Darkness there, and nothing more." + + "\n" + + "Deep into that darkness peering, long I stood there wondering, fearing," + + "Doubting, dreaming dreams no mortal ever dared to dream before" + + "But the silence was unbroken, and the darkness gave no token," + + "And the only word there spoken was the whispered word, `Lenore!'" + + "This I whispered, and an echo murmured back the word, `Lenore!'" + + "Merely this and nothing more." + + "\n" + + "Back into the chamber turning, all my soul within me burning," + + "Soon again I heard a tapping somewhat louder than before." + + "`Surely,' said I, `surely that is something at my window lattice;" + + "Let me see then, what thereat is, and this mystery explore -" + + "Let my heart be still a moment and this mystery explore; -" + + "'Tis the wind and nothing more!'" + + "\n" + + "Open here I flung the shutter, when, with many a flirt and flutter," + + "In there stepped a stately raven of the saintly days of yore." + + "Not the least obeisance made he; not a minute stopped or stayed he;" + + "But, with mien of lord or lady, perched above my chamber door -" + + "Perched upon a bust of Pallas just above my chamber door -" + + "Perched, and sat, and nothing more." + + "\n" + + "Then this ebony bird beguiling my sad fancy into smiling," + + "By the grave and stern decorum of the countenance it wore," + + "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + + "Ghastly grim and ancient raven wandering from the nightly shore -" + + "Tell me what thy lordly name is on the Night's Plutonian shore!'" + + "Quoth the raven, `Nevermore.'" + + "-n" + + "Much I marvelled this ungainly fowl to hear discourse so plainly," + + "Though its answer little meaning - little relevancy bore;" + + "For we cannot help agreeing that no living human being" + + "Ever yet was blessed with seeing bird above his chamber door -" + + "Bird or beast above the sculptured bust above his chamber door," + + "With such name as `Nevermore.'" + + "\n" + + "But the raven, sitting lonely on the placid bust, spoke only," + + "That one word, as if his soul in that one word he did outpour." + + "Nothing further then he uttered - not a feather then he fluttered -" + + "Till I scarcely more than muttered `Other friends have flown before -" + + "On the morrow he will leave me, as my hopes have flown before.'" + + "Then the bird said, `Nevermore.'" + + "\n" + + "Startled at the stillness broken by reply so aptly spoken," + + "`Doubtless,' said I, `what it utters is its only stock and store," + + "Caught from some unhappy master whom unmerciful disaster" + + "Followed fast and followed faster till his songs one burden bore -" + + "Till the dirges of his hope that melancholy burden bore" + + "Of \"Never-nevermore.\"'" + + "\n" + + "But the raven still beguiling all my sad soul into smiling," + + "Straight I wheeled a cushioned seat in front of bird and bust and door;" + + "Then, upon the velvet sinking, I betook myself to linking" + + "Fancy unto fancy, thinking what this ominous bird of yore -" + + "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + + "Meant in croaking `Nevermore.'" + + "\n" + + "This I sat engaged in guessing, but no syllable expressing" + + "To the fowl whose fiery eyes now burned into my bosom's core;" + + "This and more I sat divining, with my head at ease reclining" + + "On the cushion's velvet lining that the lamp-light gloated o'er," + + "But whose velvet violet lining with the lamp-light gloating o'er," + + "She shall press, ah, nevermore!" + + "\n" + + "Then, methought, the air grew denser, perfumed from an unseen censer" + + "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + + "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + + "Respite - respite and nepenthe from thy memories of Lenore!" + + "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + + "Whether tempter sent, or whether tempest tossed thee here ashore," + + "Desolate yet all undaunted, on this desert land enchanted -" + + "On this home by horror haunted - tell me truly, I implore -" + + "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + + "By that Heaven that bends above us - by that God we both adore -" + + "Tell this soul with sorrow laden if, within the distant Aidenn," + + "It shall clasp a sainted maiden whom the angels named Lenore -" + + "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + + "`Get thee back into the tempest and the Night's Plutonian shore!" + + "Leave no black plume as a token of that lie thy soul hath spoken!" + + "Leave my loneliness unbroken! - quit the bust above my door!" + + "Take thy beak from out my heart, and take thy form from off my door!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "And the raven, never flitting, still is sitting, still is sitting" + + "On the pallid bust of Pallas just above my chamber door;" + + "And his eyes have all the seeming of a demon's that is dreaming," + + "And the lamp-light o'er him streaming throws his shadow on the floor;" + + "And my soul from out that shadow that lies floating on the floor" + + "Shall be lifted - nevermore!" + +var ALL_THE_HOPELESS_MORE = 18; -var ALL_THE_HOPELESS_MORE=18; - var __re = /([Nn]?ever|([Nn]othing\s{1,}))more/g; -var __matched=0; +var __matched = 0; -do{ - var __executed = __re.exec(__the__raven); - if (__executed !== null) { - __matched++; - } else { - break; - } -}while(1); +do { + var __executed = __re.exec(__the__raven); + if (__executed !== null) { + __matched++; + } else { + break; + } +} while (1); //CHECK#1 if (__matched !== ALL_THE_HOPELESS_MORE) { - $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)'+__matched); + $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)' + __matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js index bd8109d4ea1093f9efc0c2b87fe916149320415d..2ed60a6868c1b1836bf24a55c4d71a19e9ffeabd 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js @@ -14,16 +14,16 @@ var __re = /\d+/g; var __matched = []; -var __expected = ["123","456","789"]; +var __expected = ["123", "456", "789"]; -do{ - var __executed = __re.exec("123 456 789"); - if (__executed !== null) { - __matched.push(__executed[0]); - } else { - break; - } -}while(true); +do { + var __executed = __re.exec("123 456 789"); + if (__executed !== null) { + __matched.push(__executed[0]); + } else { + break; + } +} while (true); //CHECK#1 if (__expected.length !== __matched.length) { @@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) { } //CHECK#2 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__expected[index] !== __matched[index]) { $ERROR('#2: __executed = /\\d+/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js index 8bef077da6af23f9c0edda127155e19a085f0a88..fa53c3d24bbd176dbd489213df74c5af8aa47df4 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js @@ -14,16 +14,16 @@ var __re = /(\d+)/g; var __matched = []; -var __expected = ["123","456","789"]; +var __expected = ["123", "456", "789"]; -do{ - var __executed = __re.exec("123 456 789"); - if (__executed !== null) { - __matched.push(__executed[0]); - } else { - break; - } -}while(true); +do { + var __executed = __re.exec("123 456 789"); + if (__executed !== null) { + __matched.push(__executed[0]); + } else { + break; + } +} while (true); //CHECK#1 if (__expected.length !== __matched.length) { @@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) { } //CHECK#2 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__expected[index] !== __matched[index]) { $ERROR('#2: __executed = /(\\d+)/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js index 57d17d1f2bdb4aea2d9920b9f36f08a1c8b2bde0..822ba2de76abc3906702e7b06b4da840dc55ceaa 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js @@ -14,16 +14,16 @@ var __re = /\d+/; var __matched = []; -var __expected = ["123","123","123","123","123","123","123","123","123","123"]; +var __expected = ["123", "123", "123", "123", "123", "123", "123", "123", "123", "123"]; -do{ - var __executed = __re.exec("123 456 789"); - if (__executed !== null) { - __matched.push(__executed[0]); - } else { - break; - } -}while(__matched.length<10); +do { + var __executed = __re.exec("123 456 789"); + if (__executed !== null) { + __matched.push(__executed[0]); + } else { + break; + } +} while (__matched.length < 10); //CHECK#1 if (__expected.length !== __matched.length) { @@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) { } //CHECK#2 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__expected[index] !== __matched[index]) { $ERROR('#2: __executed = /\\d+/.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js index 2f080253f12030af085bef8bac4c455edc88d478..0e837302fe7599cfcfab543175e0d98c1a464401 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js @@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = 12; @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js index 404c48956a45150afb1ea2ec35a4f6141b0c9c54..48a01b27edae31d66c7409fff8d4f2409203b7a2 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js @@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } -var __obj = {valueOf:function(){return 12;}}; +var __obj = { + valueOf: function() { + return 12; + } +}; __re.lastIndex = __obj; @@ -53,22 +57,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js index b375c31d94a8fc6e74ebed4f4eb12d86812025ae..d9e466e2d68b1b57192131e34c9946fae92b463c 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js @@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } -var __obj = {valueOf:function(){throw "intoint";}}; +var __obj = { + valueOf: function() { + throw "intoint"; + } +}; __re.lastIndex = __obj; @@ -49,7 +53,7 @@ __re.lastIndex = __obj; try { $ERROR('#5.1: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (__re.exec("aacd2233ab12nm444ab42"))); } catch (e) { - if (e !== "intoint") { - $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e)); - } + if (e !== "intoint") { + $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js index 34693e33599a5099d2f5a5b3bc5077809e5ae72f..770b1cc409b88081bdd366a8f2d28cf055ebad56 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js @@ -22,27 +22,34 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } -var __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; +var __obj = { + toString: function() { + return 12; + }, + valueOf: function() { + return {}; + } +}; __re.lastIndex = __obj; @@ -54,22 +61,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js index ab07be7a45448a968de798cdfabf5740e17ee381..1947c862e32d8a571ebef86c96189243c6c965a3 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js @@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = undefined; @@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js index e770aec3ebf3d227292e38cf6e8a2ebbba958cc7..a664bf88ae7e15e5e0507b65317e336d2f4cdc3e 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js @@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = void 0; @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js index 249609f650c141bf9bdc2688f38ecfe533cae24d..f87975591812f06f5cfa2907f2de82191b31e249 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js @@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = null; @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js index 295aac5960a51a983b648c4a45ad6b5ea7e0e323..3043cb53d868d88c355a0164f589ede13e6b7b6c 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js @@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = x; @@ -51,24 +51,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } var x; diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js index 3c852b30855d1c00f18e309f80ce23026f51ad79..4a9f46912f8611ca60f99411327114b787f9422f 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js @@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = false; @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js index e3f478c525ebb1abf307c7f42b1a790de1ed7d29..5b555279a53b1f878bf2d3ae972a8d5ebd548d94 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js @@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = Math.NaN; @@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js index b82c014f4699da1e16ab70a9655f12d078438977..10315051d4bf0f5f6b94f53656080627d40ae9c3 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js @@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = "12"; @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js index 7dc9e0ffada4947bb1b94182159e9ba54f396f4c..5f710578e5fb8ed4918c4981f5a47ff0210238c6 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js @@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __re.lastIndex = "eleven"; @@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js index a7b9e0283ab16775319e1deb1c6692c702d6d46b..0ee3bf9c073d8dece3b3364e33a4dd6904c6d5dd 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js @@ -21,34 +21,34 @@ __expected.input = "aac1dz2233a1bz12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } __executed = __re.exec("aacd22"); //CHECK#5 if (__executed) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __executed === true'); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __executed === true'); } //CHECK#6 if (__re.lastIndex !== 0) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js index 9bd529e028b3b7fae02667e5cc82226d6a329afc..c2a6c7a47dfbc81df769e76cd4cbf9c44ecf5600 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js @@ -11,15 +11,15 @@ description: "Set lastIndex to 100 and call /(?:ab|cd)\\d?/g.exec(\"aacd22 \")" ---*/ var __re = /(?:ab|cd)\d?/g; -__re.lastIndex=100; +__re.lastIndex = 100; var __executed = __re.exec("aacd22 "); //CHECK#1 if (__executed) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __executed === true'); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __executed === true'); } //CHECK#2 if (__re.lastIndex !== 0) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js index f65ed49379eb90263dd89ea37a4c6303e368f4db..8458728a607f4ba267102aeb932339f066cae8f6 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js @@ -11,28 +11,28 @@ description: "Set lastIndex to -1 and call /(?:ab|cd)\\d?/g.exec(\"aacd22 \")" ---*/ var __re = /(?:ab|cd)\d?/g; -__re.lastIndex=-1; +__re.lastIndex = -1; var __executed = __re.exec("aacd22 "); //CHECK#1 if (__executed[0] !== "cd2") { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"'); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"'); } //CHECK#2 if (__re.lastIndex !== 5) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); } -__re.lastIndex=-100; +__re.lastIndex = -100; __executed = __re.exec("aacd22 "); //CHECK#3 if (__executed[0] !== "cd2") { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"'); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"'); } //CHECK#4 if (__re.lastIndex !== 5) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js index c891da096b50a2bfd1bca43cda7138f6f305d6dd..22b98fa19ae9e8b3b1cfc8d1807a29858d678ab1 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js @@ -14,16 +14,16 @@ if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { $ERROR('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); } - //CHECK#1 +//CHECK#1 if (RegExp.prototype.exec.propertyIsEnumerable('length') !== false) { $ERROR('#1: RegExp.prototype.exec.propertyIsEnumerable(\'length\') === true'); } - //CHECK#2 -var count=0; +//CHECK#2 +var count = 0; -for (var p in RegExp.prototype.exec){ - if (p==="length") count++; +for (var p in RegExp.prototype.exec) { + if (p === "length") count++; } if (count !== 0) { diff --git a/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js b/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js index a6c26e1e5c3d35afd61822e1e86fdf8bcd066db2..5ba6e38de52cfe132a48e63fc2ce6d1695bd6f1c 100644 --- a/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js +++ b/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js @@ -39,13 +39,13 @@ function reset(value) { lastIndexReads = 0; } -reset(42); // lastIndex beyond end of string. +reset(42); // lastIndex beyond end of string. result = r.exec('abc'); assert.sameValue(result, null); assert.sameValue(r.lastIndex, 0); assert.sameValue(lastIndexReads, 1); -reset(-1); // No match. +reset(-1); // No match. result = r.exec('nbc'); assert.sameValue(result, null); assert.sameValue(r.lastIndex, 0); diff --git a/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js b/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js index e1997fbbf217b69c64c42ea9a4feea72301012df..7a86bd1384a18cdf8c883f265dd8663d602d1df7 100644 --- a/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js +++ b/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js @@ -30,4 +30,3 @@ assert.sameValue(result.length, 1); assert.sameValue(result[0], 'a'); assert.sameValue(r.lastIndex, 1); assert.sameValue(lastIndexReads, 1); - diff --git a/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js b/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js index bc00e211fdce327380ffcd736ee34a0327cd46ae..a4f42010aa7074f90a45b6ecc4152535ac292273 100644 --- a/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js +++ b/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js @@ -8,8 +8,8 @@ description: > function is undefined ---*/ - var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global'); - +var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'global'); + assert.sameValue(typeof desc.get, 'function', 'typeof desc.get'); assert.sameValue(desc.set, undefined, 'desc.set'); diff --git a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js index 4826409699570f4817cd41081a4ace0c60d134ef..a03c1881c53149503edac6d50ee167becce3bb06 100644 --- a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js +++ b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js @@ -16,15 +16,15 @@ if (__re.hasOwnProperty('global') !== true) { $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'global\') === true'); } - //CHECK#1 +//CHECK#1 if (__re.propertyIsEnumerable('global') !== false) { $ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'global\') === false'); } - //CHECK#2 +//CHECK#2 var count = 0 -for (var p in __re){ - if (p==="global") count++ +for (var p in __re) { + if (p === "global") count++ } if (count !== 0) { diff --git a/test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js b/test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js index 60fecfef54d1445d2f5b0c5768f42c2af3f8e76b..8fbc655423aca518238b3cafb2fd51e3f440c5c7 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/15.10.7.3-2.js @@ -8,8 +8,8 @@ description: > accessor function is undefined ---*/ - var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase'); - +var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'ignoreCase'); + assert.sameValue(typeof d.get, 'function', 'typeof d.get'); assert.sameValue(d.set, undefined, 'd.set'); diff --git a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js index 7969581b14bae34bbebad4f25757de55de709afc..fdfe258b1752b743395f1fea91e2a3526402d79a 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js @@ -16,15 +16,15 @@ if (__re.hasOwnProperty('ignoreCase') !== true) { $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'ignoreCase\') === true'); } - //CHECK#1 +//CHECK#1 if (__re.propertyIsEnumerable('ignoreCase') !== false) { $ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'ignoreCase\') === false'); } - //CHECK#2 +//CHECK#2 var count = 0 -for (var p in __re){ - if (p==="ignoreCase") count++ +for (var p in __re) { + if (p === "ignoreCase") count++ } if (count !== 0) { diff --git a/test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js b/test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js index 3b0ca4ddeaf7c59107bd72b0344aeb754f0c57c8..62308d478e0f213fca2fd4640215396b8c954b37 100644 --- a/test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js +++ b/test/built-ins/RegExp/prototype/multiline/15.10.7.4-2.js @@ -8,8 +8,8 @@ description: > accessor function is undefined ---*/ - var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'multiline'); - +var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'multiline'); + assert.sameValue(typeof d.get, 'function', 'typeof d.get'); assert.sameValue(d.set, undefined, 'd.set'); diff --git a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js index 01344abce08c55050d5413e547eef5c53d14a2f3..d246cbf20df0f9b6ff987ddd9ab4298e7fabcf00 100644 --- a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js +++ b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js @@ -16,15 +16,15 @@ if (__re.hasOwnProperty('multiline') !== true) { $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'multiline\') === true'); } - //CHECK#1 +//CHECK#1 if (__re.propertyIsEnumerable('multiline') !== false) { $ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'multiline\') === false'); } - //CHECK#2 +//CHECK#2 var count = 0 -for (var p in __re){ - if (p==="multiline") count++ +for (var p in __re) { + if (p === "multiline") count++ } if (count !== 0) { diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js index 2cd4e78079042f4c2c0da9abf3aa2a3a3a298950..0cf733d86654b4c8dff7a47c3df94c638c7b72f1 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js @@ -15,7 +15,9 @@ if (RegExp.prototype.test.hasOwnProperty('length') !== true) { var __obj = RegExp.prototype.test.length; -verifyNotWritable(RegExp.prototype.test, "length", null, function(){return "shifted";}); +verifyNotWritable(RegExp.prototype.test, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (RegExp.prototype.test.length !== __obj) { diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js index 5fcda8dca54e60a1f656fd19d3288a27bfd65c9e..8bdaa0b16954490ab2f6d2abd5b9406de63f2465 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js @@ -12,5 +12,5 @@ var __re = /1|12/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = "123";__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = "123";__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js index de045b10f721a18de3da1e9f606963da70ec66e7..6257f4facaecbe358ba1cf7f3cdefa658a27f2fd 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js @@ -12,5 +12,5 @@ var __re = /1|12/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = 1.01;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = 1.01;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js index 0663d82c9103a12a5c3f5b36799a6804545553dd..2a31a44585f3a55e38c26472c2f6c525eac7f330 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js @@ -12,5 +12,5 @@ var __re = /2|12/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = new Number(1.012); __re = /2|12/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = new Number(1.012); __re = /2|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js index 40e81bc407a7bbb7300167ffaca431348794a821..bfe91eaeac910b46c70686899b0a21f02b95d188 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js @@ -9,10 +9,14 @@ description: > Math.PI;}} ---*/ -var __string = {toString:function(){return Math.PI;}}; +var __string = { + toString: function() { + return Math.PI; + } +}; var __re = /\.14/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js index bf1374b1ae1d06e6c569b7b0f9a84b2fe7f54936..35cc9c8b4dc5d4cf303083816b7786b606c3f861 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js @@ -12,5 +12,5 @@ var __re = /t[a-b|q-s]/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = true;__re = /t[a-b|q-s]/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = true;__re = /t[a-b|q-s]/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js index 813a98cdb73a7ae499f96be1b867eabcd6bd6dce..e81f967661b31ba1370ca21274512f1f6d6926a7 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js @@ -12,5 +12,5 @@ var __re = /AL|se/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = new Boolean;__re = /AL|se/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = new Boolean;__re = /AL|se/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js index ff62b3be73d8a8c43be75623bb1da5e48d08dee7..aa38d1a6541f673fb759c01f95cb64333ec380e8 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js @@ -9,10 +9,14 @@ description: > false;}} ---*/ -var __string = {toString:function(){return false;}}; +var __string = { + toString: function() { + return false; + } +}; var __re = /LS/i; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js index 7aa80a6cbc90706d2f2ab4b32ce327eb7b66ca60..730d5c0d69b9c3fe08b69c7df8f48480698caeea 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js @@ -11,5 +11,5 @@ var __re = /undefined/; //CHECK#0 if (__re.test() !== (__re.exec() !== null)) { - $ERROR('#0: __re = /undefined/; __re.test() === (__re.exec() !== null)'); + $ERROR('#0: __re = /undefined/; __re.test() === (__re.exec() !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js index 030933e7155b6e438770284d43916a9f23adacf1..829f24d8426ce53eb7698cacf34a528c5c3a8195 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js @@ -11,5 +11,5 @@ var __re = /ll|l/; //CHECK#0 if (__re.test(null) !== (__re.exec(null) !== null)) { - $ERROR('#0: __re = /ll|l/; __re.test(null) === (__re.exec(null) !== null)'); + $ERROR('#0: __re = /ll|l/; __re.test(null) === (__re.exec(null) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js index 7b05aba0601158f02053c74255e73b346a56b9d9..be53956ae50380e402fdd8435ca77d8cc2e30746 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js @@ -11,5 +11,5 @@ var __re = /nd|ne/; //CHECK#0 if (__re.test(undefined) !== (__re.exec(undefined) !== null)) { - $ERROR('#0: __re = /nd|ne/; __re.test(undefined) === (__re.exec(undefined) !== null)'); + $ERROR('#0: __re = /nd|ne/; __re.test(undefined) === (__re.exec(undefined) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js index 7ac446dbcd612db2d68a1ce8d7794442832fb552..c9fc6b7d629c2677ac3949062604f9c098233c25 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js @@ -11,5 +11,5 @@ var __re = /e{1}/; //CHECK#0 if (__re.test(void 0) !== (__re.exec(void 0) !== null)) { - $ERROR('#0: __re = /e{1}/; __re.test(void 0) === (__re.exec(void 0) !== null)'); + $ERROR('#0: __re = /e{1}/; __re.test(void 0) === (__re.exec(void 0) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js index 1450311d4a57b9601f1a01f71d9383fa9cc17828..ce4876517b8721fbf8b2cc39115d4cd9199239ba 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js @@ -14,5 +14,5 @@ var __re = /((1)|(12))((3)|(23))/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = new String("123"); __re = /((1)|(12))((3)|(23))/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = new String("123"); __re = /((1)|(12))((3)|(23))/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js index 15bf3b7bc351f7a7c53717c1334600e128b228ca..e739a9167c9fe6f17f5e1582f67bf09fb20fe11f 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js @@ -11,7 +11,7 @@ var __re = /[a-f]d/; //CHECK#0 if (__re.test(x) !== (__re.exec(x) !== null)) { - $ERROR('#0: __re = /[a-f]d/; __re.test(x) === (__re.exec(x) !== null); var x;'); + $ERROR('#0: __re = /[a-f]d/; __re.test(x) === (__re.exec(x) !== null); var x;'); } var x; diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js index aa7ca159579a14b0b2d79a4ed1ff299ab2d85770..880d6d231e76ee72ee0d18d83f2d6e02115d9c93 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js @@ -12,6 +12,6 @@ description: > var __re = /[a-z]n/; //CHECK#0 -if (__re.test(function(){}()) !== (__re.exec(function(){}()) !== null)) { - $ERROR('#0: __re = /[a-z]n/; __re.test(function(){}()) === (__re.exec(function(){}()) !== null)'); +if (__re.test(function() {}()) !== (__re.exec(function() {}()) !== null)) { + $ERROR('#0: __re = /[a-z]n/; __re.test(function(){}()) === (__re.exec(function(){}()) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js index 73af4f879b46d5195a611ef6657342a4014ca1c7..fc5f9d30b68d393d605d1122d1bee98d4ffc2cd7 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js @@ -11,28 +11,28 @@ description: "Set lastIndex to -1 and call /(?:ab|cd)\\d?/g.test(\"aacd22 \")" ---*/ var __re = /(?:ab|cd)\d?/g; -__re.lastIndex=-1; +__re.lastIndex = -1; var __executed = __re.test("aacd22 "); //CHECK#1 if (!__executed) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __executed === true'); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __executed === true'); } //CHECK#2 if (__re.lastIndex !== 5) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); } -__re.lastIndex=-100; +__re.lastIndex = -100; __executed = __re.test("aacd22 "); //CHECK#3 if (!__executed) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __executed === true'); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __executed === true'); } //CHECK#4 if (__re.lastIndex !== 5) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js index 6ce78d0653a747cd8885ae891cd3388a479940fd..8851e7cfe954bf15b64a8b2194d1352ae17ecd0f 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js @@ -14,5 +14,5 @@ var __re = /a[a-z]{2,4}/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = new Object("abcdefghi"); __re = /a[a-z]{2,4}/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = new Object("abcdefghi"); __re = /a[a-z]{2,4}/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js index 444fbebb3cfa995a0e43d915e72cf7adfc980957..953ec5b0a319128e015649185d5de45b05176f8c 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js @@ -9,10 +9,14 @@ description: > {toString:function(){return "abcdefghi";}} ---*/ -var __string = {toString:function(){return "abcdefghi";}}; +var __string = { + toString: function() { + return "abcdefghi"; + } +}; var __re = /a[a-z]{2,4}?/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js index fd79faab4842714e999575485a040ca74b827f81..c8fb25eb2ae78020608b7bb31c7c225b3c86ab11 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js @@ -10,10 +10,17 @@ description: > "aabaac";}} ---*/ -var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; +var __string = { + toString: function() { + return {}; + }, + valueOf: function() { + return "aabaac"; + } +}; var __re = /(aa|aabaac|ba|b|c)*/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js index 9391e3eca6c8d36267d2ef7bd38c565206954036..2dcb863c3bc856847c5435fd94edd4aef48f2796 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js @@ -12,6 +12,10 @@ description: > var __re = /(z)((a+)?(b+)?(c))*/; //CHECK#0 -if (__re.test((function(){return "zaacbbbcac"})()) !== (__re.exec((function(){return "zaacbbbcac"})()) !== null)) { - $ERROR('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)'); +if (__re.test((function() { + return "zaacbbbcac" + })()) !== (__re.exec((function() { + return "zaacbbbcac" + })()) !== null)) { + $ERROR('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js index b51f07c96d219369910e7a718f5df34fee5d0d6e..87b085bcda12c99f4e3d6a6784bc004664ef2bd0 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js @@ -11,9 +11,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (/[a-z]/.test({toString:function(){throw "intostr";}}))); + $ERROR('#1.1: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (/[a-z]/.test({ + toString: function() { + throw "intostr"; + } + }))); } catch (e) { - if (e !== "intostr") { - $ERROR('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js index 3380f6b60b3eaf34e3d3c997c39193bac07da436..7902bbd728cb90898ab81bc07298743e1abf10ee 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js @@ -11,7 +11,12 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (/[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}))); + $ERROR('#1.1: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (/[a-z]/.test({ + toString: void 0, + valueOf: function() { + throw "invalof"; + } + }))); } catch (e) { if (e !== "invalof") { $ERROR('#1.2: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js index 5ff8d3dec3fa8bd88c3bbed225f9397463d88b8f..45d0268d9c4e810163f809d5078c83112cf4bb12 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js @@ -12,7 +12,7 @@ var __re = /1|12/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null); function __string(){};'); + $ERROR('#0: var __string;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null); function __string(){};'); } -function __string(){}; +function __string() {}; diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js index e3f540e24038c5aee0db76ebad9490b53e7dd635..ab12ae41cb684f17b42fd0403edfa0cbff04f982 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js @@ -14,7 +14,7 @@ var __instance = Math; __instance.test = RegExp.prototype.test; //CHECK#1 -try { +try { __instance.test("message to investigate"); $ERROR('#1.1: __instance = Math; __instance.test = RegExp.prototype.test; __instance.test("message to investigate")'); } catch (e) { diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js index 85f5cd90cb4f6305e5fb911c057aa4c0fa988e42..19ed78f6459a05f37d7fb8d1ce4c3b639b2a7905 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js @@ -21,4 +21,4 @@ try { } } -function __instance(){}; +function __instance() {}; diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js index 5040c3dde6437f1dfabf552bf86edf5ad2512a86..dbf2ab6dce840e7c6b2ee00dc6ee05bd9e67f09a 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js @@ -14,10 +14,10 @@ var __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; //CHECK#1 - try { - $ERROR('#1.1: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); - } catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); - } - } +try { + $ERROR('#1.1: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); +} catch (e) { + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); + } +} diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js index f94a6fa0f9d47e7590f6b7bb87f88baeba60c169..646cc8020a21d907b92bbccd739245639502987d 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js @@ -14,10 +14,10 @@ var __instance = new Boolean(false); __instance.test = RegExp.prototype.test; //CHECK#1 - try { - $ERROR('#1.1: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); - } catch (e) { - if ((e instanceof TypeError !== true)) { - $ERROR('#1.2: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); - } +try { + $ERROR('#1.1: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); +} catch (e) { + if ((e instanceof TypeError !== true)) { + $ERROR('#1.2: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); } +} diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js index fdc0c6affd5ebf6e42b0e1c0f4c3f889e5b0066e..4a1709205edac5230e4fe8b9c787cf743d2fac97 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js @@ -14,16 +14,16 @@ if (RegExp.prototype.test.hasOwnProperty('length') !== true) { $ERROR('#0: RegExp.prototype.test.hasOwnProperty(\'length\') === true'); } - //CHECK#1 +//CHECK#1 if (RegExp.prototype.test.propertyIsEnumerable('length') !== false) { $ERROR('#1: RegExp.prototype.test.propertyIsEnumerable(\'length\') === true'); } - //CHECK#2 -var count=0; +//CHECK#2 +var count = 0; -for (var p in RegExp.prototype.test){ - if (p==="length") count++; +for (var p in RegExp.prototype.test) { + if (p === "length") count++; } if (count !== 0) { diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js index ce3af838448c55dc749c2c3de756ba7e00f7b0db..52de15e0c704d7fbc574929116f24f7514c6d5ba 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js @@ -12,14 +12,16 @@ includes: [propertyHelper.js] //CHECK#1 if (RegExp.prototype.toString.hasOwnProperty('length') !== true) { - $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } var __obj = RegExp.prototype.toString.length; -verifyNotWritable(RegExp.prototype.toString, "length", null, function(){return "shifted";}); +verifyNotWritable(RegExp.prototype.toString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (RegExp.prototype.toString.length !== __obj) { - $ERROR('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length)); + $ERROR('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js index a54502d5c341f1930b011fa244fee4d7e472e1fa..1d57d4f648b3cdb3242a7012d70e3f1450ea2c81 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js @@ -9,10 +9,10 @@ description: Checking RegExp.prototype.toString.length //CHECK#1 if (RegExp.prototype.toString.hasOwnProperty("length") !== true) { - $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } //CHECK#2 if (RegExp.prototype.toString.length !== 0) { - $ERROR('#2: RegExp.prototype.toString.length === 0. Actual: ' + (RegExp.prototype.toString.length)); + $ERROR('#2: RegExp.prototype.toString.length === 0. Actual: ' + (RegExp.prototype.toString.length)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js index 13cc68d8137036c014cd591cb14985d5f0c6788c..ad495948e84109c487375ef35a35fc7ade2c1b8b 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js @@ -9,5 +9,5 @@ description: Checking RegExp.prototype.toString.prototype //CHECK#1 if (RegExp.prototype.toString.prototype !== undefined) { - $ERROR('#1: RegExp.prototype.toString.prototype === undefined. Actual: ' + (RegExp.prototype.toString.prototype)); + $ERROR('#1: RegExp.prototype.toString.prototype === undefined. Actual: ' + (RegExp.prototype.toString.prototype)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js index ea4099dba2ebf90df327c3b9a73a010943a369c9..0f619e93d9c206415bfa8fb0e33dd530a99e0dd4 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js @@ -10,8 +10,8 @@ description: Checking if creating the RegExp.prototype.toString object fails var __FACTORY = RegExp.prototype.toString; try { - var __instance = new __FACTORY; - $ERROR('#1.1: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (__instance)); + var __instance = new __FACTORY; + $ERROR('#1.1: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (__instance)); } catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#1.2: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (e)); diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js index 8d8135160f2c3aac1b59b7029d3d19df332aed8e..8346de727dae05baf906adac07660bcd7085a312 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js @@ -11,21 +11,21 @@ description: > //CHECK#0 if (RegExp.prototype.toString.hasOwnProperty('length') !== true) { - $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } - //CHECK#1 +//CHECK#1 if (RegExp.prototype.toString.propertyIsEnumerable('length') !== false) { - $ERROR('#1: RegExp.prototype.toString.propertyIsEnumerable(\'length\') === true'); + $ERROR('#1: RegExp.prototype.toString.propertyIsEnumerable(\'length\') === true'); } - //CHECK#2 -var count=0; +//CHECK#2 +var count = 0; -for (var p in RegExp.prototype.toString){ - if (p==="length") count++; +for (var p in RegExp.prototype.toString) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count = 0; for (p in RegExp.prototype.toString){ if (p==="length") count++; } count === 0. Actual: ' + (count)); + $ERROR('#2: count = 0; for (p in RegExp.prototype.toString){ if (p==="length") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js index 5d8cf797a579860e2f24d114ef8a7292088d8c43..61f2b4233e2c68fed3ecc3e523dfe517d08828e4 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js @@ -13,15 +13,15 @@ description: > //CHECK#0 if ((RegExp.prototype.toString.hasOwnProperty('length') !== true)) { - $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } //CHECK#1 if (delete RegExp.prototype.toString.length !== true) { - $ERROR('#1: delete RegExp.prototype.toString.length === true'); + $ERROR('#1: delete RegExp.prototype.toString.length === true'); } //CHECK#2 if (RegExp.prototype.toString.hasOwnProperty('length') !== false) { - $ERROR('#2: delete RegExp.prototype.toString.length; RegExp.prototype.toString.hasOwnProperty(\'length\') === false'); + $ERROR('#2: delete RegExp.prototype.toString.length; RegExp.prototype.toString.hasOwnProperty(\'length\') === false'); } diff --git a/test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js b/test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js index a7e86715b395cfc050487a60135894be3c4d142a..b1c3907a45ce8a5e1a8abf88548cfab47f54a30b 100644 --- a/test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js +++ b/test/built-ins/RegExp/unicode_restricted_identity_escape_alpha.js @@ -18,15 +18,15 @@ function isValidAlphaEscapeInAtom(s) { switch (s) { // Assertion [U] :: \b case "b": - // Assertion [U] :: \B + // Assertion [U] :: \B case "B": - // ControlEscape :: one of f n r t v + // ControlEscape :: one of f n r t v case "f": case "n": case "r": case "t": case "v": - // CharacterClassEscape :: one of d D s S w W + // CharacterClassEscape :: one of d D s S w W case "d": case "D": case "s": @@ -43,13 +43,13 @@ function isValidAlphaEscapeInClass(s) { switch (s) { // ClassEscape[U] :: b case "b": - // ControlEscape :: one of f n r t v + // ControlEscape :: one of f n r t v case "f": case "n": case "r": case "t": case "v": - // CharacterClassEscape :: one of d D s S w W + // CharacterClassEscape :: one of d D s S w W case "d": case "D": case "s": @@ -63,7 +63,7 @@ function isValidAlphaEscapeInClass(s) { } // IdentityEscape in AtomEscape -for (var cu = 0x41 /* A */; cu <= 0x5a /* Z */; ++cu) { +for (var cu = 0x41 /* A */ ; cu <= 0x5a /* Z */ ; ++cu) { var s = String.fromCharCode(cu); if (!isValidAlphaEscapeInAtom(s)) { assert.throws(SyntaxError, function() { @@ -71,7 +71,7 @@ for (var cu = 0x41 /* A */; cu <= 0x5a /* Z */; ++cu) { }, "IdentityEscape in AtomEscape: '" + s + "'"); } } -for (var cu = 0x61 /* a */; cu <= 0x7a /* z */; ++cu) { +for (var cu = 0x61 /* a */ ; cu <= 0x7a /* z */ ; ++cu) { var s = String.fromCharCode(cu); if (!isValidAlphaEscapeInAtom(s)) { assert.throws(SyntaxError, function() { @@ -82,7 +82,7 @@ for (var cu = 0x61 /* a */; cu <= 0x7a /* z */; ++cu) { // IdentityEscape in ClassEscape -for (var cu = 0x41 /* A */; cu <= 0x5a /* Z */; ++cu) { +for (var cu = 0x41 /* A */ ; cu <= 0x5a /* Z */ ; ++cu) { var s = String.fromCharCode(cu); if (!isValidAlphaEscapeInClass(s)) { assert.throws(SyntaxError, function() { @@ -90,7 +90,7 @@ for (var cu = 0x41 /* A */; cu <= 0x5a /* Z */; ++cu) { }, "IdentityEscape in ClassEscape: '" + s + "'"); } } -for (var cu = 0x61 /* a */; cu <= 0x7a /* z */; ++cu) { +for (var cu = 0x61 /* a */ ; cu <= 0x7a /* z */ ; ++cu) { var s = String.fromCharCode(cu); if (!isValidAlphaEscapeInClass(s)) { assert.throws(SyntaxError, function() { diff --git a/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js b/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js index 336a36f086be77d124e5ef7ecd9b859597fb4ad3..b8a2669fbfe5bcc8a3a753e493e488f58771383d 100644 --- a/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js +++ b/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js @@ -19,7 +19,9 @@ function isAlpha(c) { // // AtomEscape[U] :: CharacterEscape[?U] // CharacterEscape[U] :: c ControlLetter -assert.throws(SyntaxError, function() { RegExp("\\c", "u"); }); +assert.throws(SyntaxError, function() { + RegExp("\\c", "u"); +}); for (var cu = 0x00; cu <= 0x7f; ++cu) { var s = String.fromCharCode(cu); if (!isAlpha(s)) { @@ -34,7 +36,9 @@ for (var cu = 0x00; cu <= 0x7f; ++cu) { // // ClassEscape[U] :: CharacterEscape[?U] // CharacterEscape[U] :: c ControlLetter -assert.throws(SyntaxError, function() { RegExp("[\\c]", "u"); }); +assert.throws(SyntaxError, function() { + RegExp("[\\c]", "u"); +}); for (var cu = 0x00; cu <= 0x7f; ++cu) { var s = String.fromCharCode(cu); if (!isAlpha(s)) { diff --git a/test/built-ins/Set/properties-of-the-set-prototype-object.js b/test/built-ins/Set/properties-of-the-set-prototype-object.js index ad46ab8167ccaf2d1a24f7b01aea319555335814..f32c8075881fd09852c8d44acca996344229cd62 100644 --- a/test/built-ins/Set/properties-of-the-set-prototype-object.js +++ b/test/built-ins/Set/properties-of-the-set-prototype-object.js @@ -11,7 +11,7 @@ description: > ---*/ assert.sameValue( - Object.getPrototypeOf(Set.prototype), - Object.prototype, - "`Object.getPrototypeOf(Set.prototype)` returns `Object.prototype`" + Object.getPrototypeOf(Set.prototype), + Object.prototype, + "`Object.getPrototypeOf(Set.prototype)` returns `Object.prototype`" ); diff --git a/test/built-ins/Set/prototype-of-set.js b/test/built-ins/Set/prototype-of-set.js index fe5f45fb1e57610b45d5ff9f8337b905e081712c..966ec80dfdc187d6cb9548741cfbcf0c10eb917c 100644 --- a/test/built-ins/Set/prototype-of-set.js +++ b/test/built-ins/Set/prototype-of-set.js @@ -8,7 +8,7 @@ description: > ---*/ assert.sameValue( - Object.getPrototypeOf(Set), - Function.prototype, - "`Object.getPrototypeOf(Set)` returns `Function.prototype`" + Object.getPrototypeOf(Set), + Function.prototype, + "`Object.getPrototypeOf(Set)` returns `Function.prototype`" ); diff --git a/test/built-ins/Set/prototype/add/add.js b/test/built-ins/Set/prototype/add/add.js index f902a2134efcc3350ec8451d72fb6fe4b3a79fd8..775cd37a8f0b354d6bdbf75baa7500206e36cf22 100644 --- a/test/built-ins/Set/prototype/add/add.js +++ b/test/built-ins/Set/prototype/add/add.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Set.prototype.add, - "function", - "`typeof Set.prototype.add` is `'function'`" + typeof Set.prototype.add, + "function", + "`typeof Set.prototype.add` is `'function'`" ); verifyNotEnumerable(Set.prototype, "add"); diff --git a/test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js b/test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js index ae21ec5e07841f2031b14b466abfdadf472b7a83..37519db7efb26f981e0a8c90550a4d311e052569 100644 --- a/test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js +++ b/test/built-ins/Set/prototype/add/returns-this-when-ignoring-duplicate.js @@ -14,6 +14,6 @@ description: > ---*/ -var s = new Set([ 1 ]); +var s = new Set([1]); assert.sameValue(s.add(1), s, "`s.add(1)` returns `s`"); diff --git a/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js b/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js index 0298ce80868a63dbf571fe5a901641dabf657fbc..6704819462c5b69ae646b6f4493f7c134aa7a463 100644 --- a/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js +++ b/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-initial-iterable.js @@ -16,7 +16,7 @@ description: > ---*/ -var s = new Set([ 1 ]); +var s = new Set([1]); assert.sameValue(s.size, 1, "The value of `s.size` is `1`"); diff --git a/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js b/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js index b7749a9dc6510ef52b88843072b08d02e49858eb..7ea0c2f466a38ae753927a0fce95071ef509363f 100644 --- a/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js +++ b/test/built-ins/Set/prototype/add/will-not-add-duplicate-entry-normalizes-zero.js @@ -16,7 +16,7 @@ description: > ---*/ -var s = new Set([ -0 ]); +var s = new Set([-0]); assert.sameValue(s.size, 1, "The value of `s.size` is `1`"); diff --git a/test/built-ins/Set/prototype/clear/clear.js b/test/built-ins/Set/prototype/clear/clear.js index 98a5dfd95294c1bfa88e65ad7b0e7840a058b368..3d770e4c96f1aa35c7c34cd25df24c475de64d20 100644 --- a/test/built-ins/Set/prototype/clear/clear.js +++ b/test/built-ins/Set/prototype/clear/clear.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Set.prototype.clear, - "function", - "`typeof Set.prototype.clear` is `'function'`" + typeof Set.prototype.clear, + "function", + "`typeof Set.prototype.clear` is `'function'`" ); verifyNotEnumerable(Set.prototype, "clear"); diff --git a/test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js b/test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js index 73930249cb9e4e2afcd44c4b115d82f309471f62..b60455a021bc3e37e875fb35e7bee0e23ddca978 100644 --- a/test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js +++ b/test/built-ins/Set/prototype/constructor/set-prototype-constructor-intrinsic.js @@ -10,7 +10,7 @@ description: > ---*/ assert.sameValue( - Set.prototype.constructor, - Set, - "The value of `Set.prototype.constructor` is `Set`" + Set.prototype.constructor, + Set, + "The value of `Set.prototype.constructor` is `Set`" ); diff --git a/test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js b/test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js index 6dbdb631ed7e1c0a14e5dbb8889a4f8a827cc7cc..eac255331f99b4fe05366ac6bf4c95e8c4bba759 100644 --- a/test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js +++ b/test/built-ins/Set/prototype/delete/delete-entry-initial-iterable.js @@ -16,7 +16,7 @@ description: > ---*/ -var s = new Set([ 1 ]); +var s = new Set([1]); assert.sameValue(s.size, 1, "The value of `s.size` is `1`"); diff --git a/test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js b/test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js index 15ed3a2e1ea8ef07b22ee31ead931cf4bce77b13..1726e96cd230d4dec490a54423c43711d3fb4db7 100644 --- a/test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js +++ b/test/built-ins/Set/prototype/delete/delete-entry-normalizes-zero.js @@ -15,7 +15,7 @@ description: > ---*/ -var s = new Set([ -0 ]); +var s = new Set([-0]); assert.sameValue(s.size, 1, "The value of `s.size` is `1`"); diff --git a/test/built-ins/Set/prototype/delete/delete.js b/test/built-ins/Set/prototype/delete/delete.js index f654ca200e72f37c2cb89a69952f559739916299..772a742d05523d1e48a8fe5c1d06eaf8c0d02f4e 100644 --- a/test/built-ins/Set/prototype/delete/delete.js +++ b/test/built-ins/Set/prototype/delete/delete.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Set.prototype.delete, - "function", - "`typeof Set.prototype.delete` is `'function'`" + typeof Set.prototype.delete, + "function", + "`typeof Set.prototype.delete` is `'function'`" ); verifyNotEnumerable(Set.prototype, "delete"); diff --git a/test/built-ins/Set/prototype/entries/entries.js b/test/built-ins/Set/prototype/entries/entries.js index 05bd329341b501b9fdd47cf26f75be837d53ca80..8bed7599a523173fe3c048a92a8e43f8749e6e6a 100644 --- a/test/built-ins/Set/prototype/entries/entries.js +++ b/test/built-ins/Set/prototype/entries/entries.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Set.prototype.entries, - "function", - "`typeof Set.prototype.entries` is `'function'`" + typeof Set.prototype.entries, + "function", + "`typeof Set.prototype.entries` is `'function'`" ); verifyNotEnumerable(Set.prototype, "entries"); diff --git a/test/built-ins/Set/prototype/forEach/forEach.js b/test/built-ins/Set/prototype/forEach/forEach.js index 92d63cfd396bccdd72fec8013f9376c346fb026b..49ba06e754f65ff8d5597efff1ec6a1006735e1a 100644 --- a/test/built-ins/Set/prototype/forEach/forEach.js +++ b/test/built-ins/Set/prototype/forEach/forEach.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Set.prototype.forEach, - "function", - "`typeof Set.prototype.forEach` is `'function'`" + typeof Set.prototype.forEach, + "function", + "`typeof Set.prototype.forEach` is `'function'`" ); verifyNotEnumerable(Set.prototype, "forEach"); diff --git a/test/built-ins/Set/prototype/forEach/returns-undefined.js b/test/built-ins/Set/prototype/forEach/returns-undefined.js index b3e1b02c3998dd2aadec0ec3d4bd9c40fdc97d50..7b04f8461081aee65096b18acbca235e554e4555 100644 --- a/test/built-ins/Set/prototype/forEach/returns-undefined.js +++ b/test/built-ins/Set/prototype/forEach/returns-undefined.js @@ -13,7 +13,7 @@ description: > var s = new Set([1]); assert.sameValue( - s.forEach(function() {}), - undefined, - "`s.forEach(function() {})` returns `undefined`" + s.forEach(function() {}), + undefined, + "`s.forEach(function() {})` returns `undefined`" ); diff --git a/test/built-ins/Set/prototype/has/has.js b/test/built-ins/Set/prototype/has/has.js index dae711e14b5241eea0b12bfa82ed1405da438900..7a2604657a28cf4c6e0ab21022a6e8b509e9b741 100644 --- a/test/built-ins/Set/prototype/has/has.js +++ b/test/built-ins/Set/prototype/has/has.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Set.prototype.has, - "function", - "`typeof Set.prototype.has` is `'function'`" + typeof Set.prototype.has, + "function", + "`typeof Set.prototype.has` is `'function'`" ); verifyNotEnumerable(Set.prototype, "has"); diff --git a/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js b/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js index 78e71e49940880ff3cfefe9508dd3e489b77ad25..b785272e12b9e42d48a2c67aa3b78ac798b1203f 100644 --- a/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js +++ b/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js @@ -19,4 +19,3 @@ var result = s.delete(undefined); assert.sameValue(s.has(undefined), false, "`s.has(undefined)` returns `false`"); assert.sameValue(result, true, "The result of `s.delete(undefined)` is `true`"); - diff --git a/test/built-ins/Set/prototype/keys/keys.js b/test/built-ins/Set/prototype/keys/keys.js index 7b3f8a0b8bbb07c8300f51e5933d08b2b60a77f9..f5065081a2c990bb157d2c7f1d0fdf64df692810 100644 --- a/test/built-ins/Set/prototype/keys/keys.js +++ b/test/built-ins/Set/prototype/keys/keys.js @@ -9,7 +9,7 @@ ---*/ assert.sameValue( - Set.prototype.keys, - Set.prototype.values, - "The value of `Set.prototype.keys` is `Set.prototype.values`" + Set.prototype.keys, + Set.prototype.values, + "The value of `Set.prototype.keys` is `Set.prototype.values`" ); diff --git a/test/built-ins/Set/prototype/size/size.js b/test/built-ins/Set/prototype/size/size.js index d3c6c401bf27228ca1a23a79de3dd6a0a400f899..db02a7bbbc363c1aa7486358abcdbc82c168827c 100644 --- a/test/built-ins/Set/prototype/size/size.js +++ b/test/built-ins/Set/prototype/size/size.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var descriptor = Object.getOwnPropertyDescriptor(Set.prototype, "size"); assert.sameValue( - typeof descriptor.get, - "function", - "`typeof descriptor.get` is `'function'`" + typeof descriptor.get, + "function", + "`typeof descriptor.get` is `'function'`" ); assert.sameValue( - typeof descriptor.set, - "undefined", - "`typeof descriptor.set` is `\"undefined\"`" + typeof descriptor.set, + "undefined", + "`typeof descriptor.set` is `\"undefined\"`" ); verifyNotEnumerable(Set.prototype, "size"); diff --git a/test/built-ins/Set/prototype/values/values.js b/test/built-ins/Set/prototype/values/values.js index e58e932636003b2b633aa22b6b66f06baab2a530..4f9121c9f2800141e0d7e33c9d75367fd48958da 100644 --- a/test/built-ins/Set/prototype/values/values.js +++ b/test/built-ins/Set/prototype/values/values.js @@ -11,9 +11,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - typeof Set.prototype.values, - "function", - "`typeof Set.prototype.values` is `'function'`" + typeof Set.prototype.values, + "function", + "`typeof Set.prototype.values` is `'function'`" ); verifyNotEnumerable(Set.prototype, "values"); diff --git a/test/built-ins/Set/set-iterator-close-after-add-failure.js b/test/built-ins/Set/set-iterator-close-after-add-failure.js index fa2c30b9dbe3d434c11fbb701d7ddd2eb3801f57..ad077f633040fdfea2613b9e51d02b6c34f31a41 100644 --- a/test/built-ins/Set/set-iterator-close-after-add-failure.js +++ b/test/built-ins/Set/set-iterator-close-after-add-failure.js @@ -25,14 +25,19 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: null, done: false }; + return { + value: null, + done: false + }; }, return: function() { count += 1; } }; }; -Set.prototype.add = function() { throw new Error(); } +Set.prototype.add = function() { + throw new Error(); +} assert.throws(Error, function() { new Set(iterable); diff --git a/test/built-ins/Set/set-iterator-next-failure.js b/test/built-ins/Set/set-iterator-next-failure.js index 9879baf9bfb157dd93b9734543ad1f4557fb1b7e..171abef9c54f27c5f7947f905ce7a28866c19a87 100644 --- a/test/built-ins/Set/set-iterator-next-failure.js +++ b/test/built-ins/Set/set-iterator-next-failure.js @@ -15,6 +15,7 @@ features: [Symbol.iterator] ---*/ var iterable = {}; + function MyError() {}; iterable[Symbol.iterator] = function() { return { diff --git a/test/built-ins/Set/set-iterator-value-failure.js b/test/built-ins/Set/set-iterator-value-failure.js index 04e943a41989bbf5a32c2ef53fe0912c92ded403..ac45b116fa9f5bb7046d7cc40721d9851b604c47 100644 --- a/test/built-ins/Set/set-iterator-value-failure.js +++ b/test/built-ins/Set/set-iterator-value-failure.js @@ -17,6 +17,7 @@ features: [Symbol.iterator] var count = 0; var iterable = {}; + function MyError() {} iterable[Symbol.iterator] = function() { return { diff --git a/test/built-ins/Set/set-newtarget.js b/test/built-ins/Set/set-newtarget.js index fb7cd1d67cd9f8ddf3097fe9519249bc66045eb7..d5d9613e0cafb25f74e665dddccb89efe1f338c0 100644 --- a/test/built-ins/Set/set-newtarget.js +++ b/test/built-ins/Set/set-newtarget.js @@ -16,15 +16,15 @@ description: > var s1 = new Set(); assert.sameValue( - Object.getPrototypeOf(s1), - Set.prototype, - "`Object.getPrototypeOf(s1)` returns `Set.prototype`" + Object.getPrototypeOf(s1), + Set.prototype, + "`Object.getPrototypeOf(s1)` returns `Set.prototype`" ); var s2 = new Set([1, 2]); assert.sameValue( - Object.getPrototypeOf(s2), - Set.prototype, - "`Object.getPrototypeOf(s2)` returns `Set.prototype`" + Object.getPrototypeOf(s2), + Set.prototype, + "`Object.getPrototypeOf(s2)` returns `Set.prototype`" ); diff --git a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js index 6f1269bdb3b1ddbf2eb26a036ebd670bd845339b..8f2562fe9eea4efa5fa823ad30dee67859360e4e 100644 --- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js +++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var set = new Set([[1, 11], [2, 22]]); +var set = new Set([ + [1, 11], + [2, 22] +]); var iterator = set.keys(); assert.throws(TypeError, function() { diff --git a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js index 1d589b0fe63aa213b801b0f9160d921cee063af3..1c622ba8dd925521b34447fb999c65cd64a22a28 100644 --- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js +++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var set = new Set([[1, 11], [2, 22]]); +var set = new Set([ + [1, 11], + [2, 22] +]); var iterator = set[Symbol.iterator](); assert.throws(TypeError, function() { diff --git a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js index 04e44f9856d1d3da373b8c97e06c7cba9bc47a63..a5f0c47cfcbcf72838efd90193609b3ac14d7452 100644 --- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js +++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var set = new Set([[1, 11], [2, 22]]); +var set = new Set([ + [1, 11], + [2, 22] +]); var iterator = set.values(); assert.throws(TypeError, function() { diff --git a/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js b/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js index 6e3055f6f0a3965e9f1ef9b5b2dcb1434dad3973..db067b0af3564e57b79e6721b639c28c3f93c1e9 100644 --- a/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js +++ b/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js @@ -21,9 +21,9 @@ info: | features: [Reflect.construct] ---*/ -function DummyError() { } +function DummyError() {} -var newTarget = function(){}.bind(null); +var newTarget = function() {}.bind(null); Object.defineProperty(newTarget, "prototype", { get: function() { throw new DummyError(); diff --git a/test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js b/test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js index 5fe7033353a7326c4b563a8ea42b40565174d5f8..9a744c30b5601c2df50b8cb6340cae24c7a567ec 100644 --- a/test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js +++ b/test/built-ins/SharedArrayBuffer/newtarget-prototype-is-not-object.js @@ -21,7 +21,7 @@ info: | features: [Symbol, Reflect.construct] ---*/ -function newTarget() { } +function newTarget() {} newTarget.prototype = undefined; var arrayBuffer = Reflect.construct(SharedArrayBuffer, [1], newTarget); diff --git a/test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js b/test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js index 3f0f40e494926bd3f3ba295e37d8308530352c10..57d025952e2c5ecadb2e5849726fafd790b3aa97 100644 --- a/test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js +++ b/test/built-ins/SharedArrayBuffer/prototype-from-newtarget.js @@ -24,7 +24,7 @@ features: [Reflect.construct] var arrayBuffer = Reflect.construct(SharedArrayBuffer, [8], Object); assert.sameValue(Object.getPrototypeOf(arrayBuffer), Object.prototype, "NewTarget is built-in Object constructor"); -var newTarget = function(){}.bind(null); +var newTarget = function() {}.bind(null); Object.defineProperty(newTarget, "prototype", { get: function() { return Array.prototype; diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js b/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js index f7ab35ebe2858ff92fe7bf75a4802f2e5c2210bf..e9957b4a645054130d09a200c2dabed6f23b1d64 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js @@ -12,6 +12,7 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = 6, end = undefined; +var start = 6, + end = undefined; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js b/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js index 6c5fcb58e6d19c77b27795536bd1b1abd2050846..65da03f2831b19fe8a6b9f2617daa00befc1780b 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js @@ -12,14 +12,17 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = 1, end = 12; +var start = 1, + end = 12; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 7, "slice(1, 12)"); -var start = 2, end = 0x100000000; +var start = 2, + end = 0x100000000; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(2, 0x100000000)"); -var start = 3, end = +Infinity; +var start = 3, + end = +Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 5, "slice(3, Infinity)"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js index efdcbeec1e420bcf2fca7a6f4361708c63af7254..cfb7288ad6095fed170034771566e6450b0a4dc1 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js @@ -12,14 +12,17 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = 2, end = -4; +var start = 2, + end = -4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2, "slice(2, -4)"); -var start = 2, end = -10; +var start = 2, + end = -10; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -10)"); -var start = 2, end = -Infinity; +var start = 2, + end = -Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -Infinity)"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js index 9312d273d8ed165fffe6cc687c22810ea4aa424e..19e276a653224682b46a4b37ee84738e0f79d37c 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js @@ -12,14 +12,17 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = -5, end = 6; +var start = -5, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 3, "slice(-5, 6)"); -var start = -12, end = 6; +var start = -12, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-12, 6)"); -var start = -Infinity, end = 6; +var start = -Infinity, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-Infinity, 6)"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js b/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js index 98770045bf2af2bf3db8e61320bc0271a4d4db4a..ca61abaa9b27c15e0471455d9b308f7dcdb65ab4 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js @@ -17,4 +17,6 @@ info: | assert.sameValue(Object.prototype.hasOwnProperty.call(SharedArrayBuffer.prototype.slice, "prototype"), false); var arrayBuffer = new SharedArrayBuffer(8); -assert.throws(TypeError, function() { new arrayBuffer.slice(); }); +assert.throws(TypeError, function() { + new arrayBuffer.slice(); +}); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js index b3f045652591906aaf21198ab758f30446386504..ea4595dc097081b9a7e34164fc6b71dfccb2cb49 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js @@ -13,7 +13,9 @@ features: [Symbol] var arrayBuffer = new SharedArrayBuffer(8); -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} arrayBuffer.constructor = null; assert.throws(TypeError, callSlice, "`constructor` value is null"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js index e403a69a0b2f8e6f47d519533207334bb50f2639..4e5e392fc7576c96a47f753b0b3765f71f3d120c 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js @@ -16,7 +16,9 @@ var speciesConstructor = {}; var arrayBuffer = new SharedArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = {}; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Object"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js index 350ba71c4df79a7dac1448631383f0fc5950793a..9e13981089500a4c2f8e7063c677aaddf32d1917 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js @@ -16,7 +16,9 @@ var speciesConstructor = {}; var arrayBuffer = new SharedArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = true; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Boolean"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js b/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js index 83ef93ec3803ca1376be3b451d9213c41fa34c45..6a4809c218336d6bb467ef36fdebde18ce045e44 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js @@ -11,6 +11,7 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = undefined, end = 6; +var start = undefined, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js b/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js index 2f2e3a47f9c6dd4d844e4f18ff0cc198a85e31e5..20b05d8171814a29f5e3510901d661e416b213f0 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js @@ -12,6 +12,7 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = 5, end = 4; +var start = 5, + end = 4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0); diff --git a/test/built-ins/String/15.5.5.5.2-1-1.js b/test/built-ins/String/15.5.5.5.2-1-1.js index acbb0c89796a24f6c8e8ab122688a477902a52c2..98c0f6eef103db41587992a4763e11fe511247cb 100644 --- a/test/built-ins/String/15.5.5.5.2-1-1.js +++ b/test/built-ins/String/15.5.5.5.2-1-1.js @@ -11,8 +11,8 @@ description: > properties ---*/ - var s = new String("hello world"); - s.foo = 1; - +var s = new String("hello world"); +s.foo = 1; + assert.sameValue(s["foo"], 1, 's["foo"]'); diff --git a/test/built-ins/String/15.5.5.5.2-1-2.js b/test/built-ins/String/15.5.5.5.2-1-2.js index 851636111f85ea823401aaffe701bd543b0341e8..9efad2dcdfb4a29ac40a05d05fc19a77b829060e 100644 --- a/test/built-ins/String/15.5.5.5.2-1-2.js +++ b/test/built-ins/String/15.5.5.5.2-1-2.js @@ -9,7 +9,7 @@ es5id: 15.5.5.5.2-1-2 description: String value supports bracket notation to lookup data properties ---*/ - var s = String("hello world"); - +var s = String("hello world"); + assert.sameValue(s["foo"], undefined, 's["foo"]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-1.js b/test/built-ins/String/15.5.5.5.2-3-1.js index 9b9f81b5178e47d4d5ebb0f1732ef5d5d0a74709..a493c5990b85ddc7dffc04b14dd8c3d02050dcff 100644 --- a/test/built-ins/String/15.5.5.5.2-3-1.js +++ b/test/built-ins/String/15.5.5.5.2-3-1.js @@ -11,7 +11,7 @@ description: > properties ---*/ - var s = new String("hello world"); - +var s = new String("hello world"); + assert.sameValue(s["foo"], undefined, 's["foo"]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-2.js b/test/built-ins/String/15.5.5.5.2-3-2.js index 5f67b04a2fb6d00d167717082184715ff9c3d88b..dc6f986798bdd2f651f6c235998b1480ee4d87c4 100644 --- a/test/built-ins/String/15.5.5.5.2-3-2.js +++ b/test/built-ins/String/15.5.5.5.2-3-2.js @@ -9,7 +9,7 @@ es5id: 15.5.5.5.2-3-2 description: String value indexing returns undefined for missing data properties ---*/ - var s = String("hello world"); - +var s = String("hello world"); + assert.sameValue(s["foo"], undefined, 's["foo"]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-3.js b/test/built-ins/String/15.5.5.5.2-3-3.js index 555772630330e14b16f8c88b08b362b461bc1110..25546a0c4ac7a6c0a6b6471cd5fe6183f10305ca 100644 --- a/test/built-ins/String/15.5.5.5.2-3-3.js +++ b/test/built-ins/String/15.5.5.5.2-3-3.js @@ -11,6 +11,6 @@ description: > (NaN) is not an array index ---*/ - var s = new String("hello world"); +var s = new String("hello world"); assert.sameValue(s[NaN], undefined, 's[NaN]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-4.js b/test/built-ins/String/15.5.5.5.2-3-4.js index e02a8931c11acc479243665f2fb367186a2b6dd8..8ffbdbb7bf3815253a7fa4a3c077f4e088950f50 100644 --- a/test/built-ins/String/15.5.5.5.2-3-4.js +++ b/test/built-ins/String/15.5.5.5.2-3-4.js @@ -11,6 +11,6 @@ description: > (Infinity) is not an array index ---*/ - var s = new String("hello world"); +var s = new String("hello world"); assert.sameValue(s[Infinity], undefined, 's[Infinity]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-5.js b/test/built-ins/String/15.5.5.5.2-3-5.js index 04818478c59ec6b6b28c946ab06b2fb7f9757687..fc2e535d78e95f5cdcd485f2c1b3e21ff20a1cda 100644 --- a/test/built-ins/String/15.5.5.5.2-3-5.js +++ b/test/built-ins/String/15.5.5.5.2-3-5.js @@ -11,6 +11,6 @@ description: > 2^32-1) is not an array index ---*/ - var s = new String("hello world"); +var s = new String("hello world"); -assert.sameValue(s[Math.pow(2, 32)-1], undefined, 's[Math.pow(2, 32)-1]'); +assert.sameValue(s[Math.pow(2, 32) - 1], undefined, 's[Math.pow(2, 32)-1]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-6.js b/test/built-ins/String/15.5.5.5.2-3-6.js index 7f07873910b07f4c8f244c18844b1ef890a058d2..3054072d8b612f2cb0dcd2036e97ba806bcd0c16 100644 --- a/test/built-ins/String/15.5.5.5.2-3-6.js +++ b/test/built-ins/String/15.5.5.5.2-3-6.js @@ -11,6 +11,6 @@ description: > is not an array index ---*/ - var s = String("hello world"); +var s = String("hello world"); assert.sameValue(s[NaN], undefined, 's[NaN]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-7.js b/test/built-ins/String/15.5.5.5.2-3-7.js index 6f974d61f99311236e06d1a0af5d61d63ddbb891..1b60af2057a8cde8e5ce5ce9cb662baf9bbfd49a 100644 --- a/test/built-ins/String/15.5.5.5.2-3-7.js +++ b/test/built-ins/String/15.5.5.5.2-3-7.js @@ -11,6 +11,6 @@ description: > (Infinity) is not an array index ---*/ - var s = String("hello world"); +var s = String("hello world"); assert.sameValue(s[Infinity], undefined, 's[Infinity]'); diff --git a/test/built-ins/String/15.5.5.5.2-3-8.js b/test/built-ins/String/15.5.5.5.2-3-8.js index 9243d404975c76d728f9d07f3f7d41fc6506d9b8..92d91bf239dca4b91cb1247be0a73513bed2c1de 100644 --- a/test/built-ins/String/15.5.5.5.2-3-8.js +++ b/test/built-ins/String/15.5.5.5.2-3-8.js @@ -11,6 +11,6 @@ description: > 2^32-1) is not an array index ---*/ - var s = String("hello world"); +var s = String("hello world"); -assert.sameValue(s[Math.pow(2, 32)-1], undefined, 's[Math.pow(2, 32)-1]'); +assert.sameValue(s[Math.pow(2, 32) - 1], undefined, 's[Math.pow(2, 32)-1]'); diff --git a/test/built-ins/String/15.5.5.5.2-7-1.js b/test/built-ins/String/15.5.5.5.2-7-1.js index 6c19ec9e6eec815bcd7a8dd92106beb065441433..d9ecc4a7d9ee516f299088316c7f333d67caad06 100644 --- a/test/built-ins/String/15.5.5.5.2-7-1.js +++ b/test/built-ins/String/15.5.5.5.2-7-1.js @@ -11,6 +11,6 @@ description: > less than 0 ---*/ - var s = new String("hello world"); +var s = new String("hello world"); assert.sameValue(s[-1], undefined, 's[-1]'); diff --git a/test/built-ins/String/15.5.5.5.2-7-2.js b/test/built-ins/String/15.5.5.5.2-7-2.js index c1f7e04c0b70d597ee633ca8370a5c79d8866e91..3bbe6005fbe23b920248a6ee788a5652ef1f874c 100644 --- a/test/built-ins/String/15.5.5.5.2-7-2.js +++ b/test/built-ins/String/15.5.5.5.2-7-2.js @@ -11,6 +11,6 @@ description: > less than 0 ---*/ - var s = String("hello world"); +var s = String("hello world"); assert.sameValue(s[-1], undefined, 's[-1]'); diff --git a/test/built-ins/String/15.5.5.5.2-7-3.js b/test/built-ins/String/15.5.5.5.2-7-3.js index 8d3cea0d62e69017675c2f7eaf501a7639a8162d..f23c8f9fee8f96c70f03ccd588c1bb4bb56764fa 100644 --- a/test/built-ins/String/15.5.5.5.2-7-3.js +++ b/test/built-ins/String/15.5.5.5.2-7-3.js @@ -11,6 +11,6 @@ description: > greater than the string length ---*/ - var s = new String("hello world"); +var s = new String("hello world"); assert.sameValue(s[11], undefined, 's[11]'); diff --git a/test/built-ins/String/15.5.5.5.2-7-4.js b/test/built-ins/String/15.5.5.5.2-7-4.js index be718e79ad1153991f242dc06d8622b85d805cd8..8cf1869b13da88e42479f7203e8de9c0350f16a0 100644 --- a/test/built-ins/String/15.5.5.5.2-7-4.js +++ b/test/built-ins/String/15.5.5.5.2-7-4.js @@ -11,6 +11,6 @@ description: > greater than the string length ---*/ - var s = String("hello world"); +var s = String("hello world"); assert.sameValue(s[11], undefined, 's[11]'); diff --git a/test/built-ins/String/S15.5.1.1_A1_T1.js b/test/built-ins/String/S15.5.1.1_A1_T1.js index 65ae34d4c6e7b5a2277916d5f60701857e3575e1..85c920644f13516d345d36a706dc29fc1192eaa3 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T1.js +++ b/test/built-ins/String/S15.5.1.1_A1_T1.js @@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T1 description: Call String(function(){}()) ---*/ -var __str = String(function(){}()); +var __str = String(function() {}()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(function(){}()); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(function(){}()); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: __str = String(function(){}()); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(function(){}()); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T10.js b/test/built-ins/String/S15.5.1.1_A1_T10.js index 794b4f033b9d51aa38b0af23b60bf9a1eb4328db..55598c4bcc9d69fb1da4fa2dd8faddbff72931d8 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T10.js +++ b/test/built-ins/String/S15.5.1.1_A1_T10.js @@ -14,7 +14,7 @@ var __str = String(1); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "1") { - $ERROR('#2: __str = String(1); __str === "1". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1); __str === "1". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(-1); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#3: __str = String(-1); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(-1); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "-1") { - $ERROR('#4: __str = String(-1); __str === "-1". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(-1); __str === "-1". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T11.js b/test/built-ins/String/S15.5.1.1_A1_T11.js index 9543e370efb991b27a8708a9b510c64203a4fa7f..6ce2f8542cd0ecee057b2a9e8f066745fa058243 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T11.js +++ b/test/built-ins/String/S15.5.1.1_A1_T11.js @@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T11 description: Call String(1/0) and String(-1/0), and call with +/-Infinity ---*/ -var __str = String(1/0); +var __str = String(1 / 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1/0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1/0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,17 +22,17 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "Infinity") { - $ERROR('#2: __str = String(1/0); __str === "Infinity". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1/0); __str === "Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str = String(-1/0); +__str = String(-1 / 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(-1/0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(-1/0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "-Infinity") { - $ERROR('#4: __str = String(-1/0); __str === "-Infinity". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(-1/0); __str === "-Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ __str = String(Infinity); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(Infinity); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(Infinity); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "Infinity") { - $ERROR('#6: __str = String(Infinity); __str === "Infinity". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(Infinity); __str === "Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -68,7 +68,7 @@ __str = String(-Infinity); ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (typeof __str !== "string") { - $ERROR('#7: __str = String(-Infinity); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#7: __str = String(-Infinity); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -76,7 +76,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#8 if (__str !== "-Infinity") { - $ERROR('#8: __str = String(-Infinity); __str === "-Infinity". Actual: __str ==='+__str ); + $ERROR('#8: __str = String(-Infinity); __str === "-Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -86,7 +86,7 @@ __str = String(Number.POSITIVE_INFINITY); ////////////////////////////////////////////////////////////////////////////// //CHECK#9 if (typeof __str !== "string") { - $ERROR('#9: __str = String(Number.POSITIVE_INFINITY); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#9: __str = String(Number.POSITIVE_INFINITY); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -94,7 +94,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#10 if (__str !== "Infinity") { - $ERROR('#10: __str = String(Number.POSITIVE_INFINITY); __str === "Infinity". Actual: __str ==='+__str ); + $ERROR('#10: __str = String(Number.POSITIVE_INFINITY); __str === "Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -104,7 +104,7 @@ __str = String(Number.NEGATIVE_INFINITY); ////////////////////////////////////////////////////////////////////////////// //CHECK#11 if (typeof __str !== "string") { - $ERROR('#11: __str = String(Number.NEGATIVE_INFINITY); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#11: __str = String(Number.NEGATIVE_INFINITY); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -112,7 +112,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#12 if (__str !== "-Infinity") { - $ERROR('#12: __str = String(Number.NEGATIVE_INFINITY); __str === "-Infinity". Actual: __str ==='+__str ); + $ERROR('#12: __str = String(Number.NEGATIVE_INFINITY); __str === "-Infinity". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T12.js b/test/built-ins/String/S15.5.1.1_A1_T12.js index 2a199ca72d205c01f7b1107b1e018cd0ee83a29c..dfb9def7132fc894205f50a02da5558fa09349a3 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T12.js +++ b/test/built-ins/String/S15.5.1.1_A1_T12.js @@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T12 description: Call String(1/"a"), String("b"* null) and String(Number.NaN) ---*/ -var __str = String(1/"a"); +var __str = String(1 / "a"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1/"a"); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1/"a"); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,17 +22,17 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "NaN") { - $ERROR('#2: __str = String(1/"a"); __str === "NaN". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1/"a"); __str === "NaN". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str = String("b"*null); +__str = String("b" * null); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String("b"*null); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String("b"*null); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "NaN") { - $ERROR('#4: __str = String("b"*null); __str === "NaN". Actual: __str ==='+__str ); + $ERROR('#4: __str = String("b"*null); __str === "NaN". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ __str = String(Number.NaN); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(Number.NaN); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(Number.NaN); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "NaN") { - $ERROR('#6: __str = String(Number.NaN); __str === "NaN". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(Number.NaN); __str === "NaN". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T13.js b/test/built-ins/String/S15.5.1.1_A1_T13.js index 02253bd81469d647699a539dd5fe06168b2aeafa..2d92a9509ca8b47467f861484cb9beeca0e94913 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T13.js +++ b/test/built-ins/String/S15.5.1.1_A1_T13.js @@ -14,7 +14,7 @@ var __str = String(true); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(true); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(true); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "true") { - $ERROR('#2: __str = String(true); __str === "true". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(true); __str === "true". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(false); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(false); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(false); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "false") { - $ERROR('#4: __str = String(false); __str === "false". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(false); __str === "false". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ __str = String(Boolean(true)); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(Boolean(true)); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(Boolean(true)); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "true") { - $ERROR('#6: __str = String(Boolean(true)); __str === "true". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(Boolean(true)); __str === "true". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -68,7 +68,7 @@ __str = String(Boolean(false)); ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (typeof __str !== "string") { - $ERROR('#7: __str = String(Boolean(false)); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#7: __str = String(Boolean(false)); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -76,7 +76,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#8 if (__str !== "false") { - $ERROR('#8: __str = String(Boolean(false)); __str === "false". Actual: __str ==='+__str ); + $ERROR('#8: __str = String(Boolean(false)); __str === "false". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T14.js b/test/built-ins/String/S15.5.1.1_A1_T14.js index 415e6990041031db9227396b5e684483829f2419..43d5585dfc9b0d933f3a0d8649720cff16625b80 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T14.js +++ b/test/built-ins/String/S15.5.1.1_A1_T14.js @@ -14,7 +14,7 @@ var __str = String(0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "0") { - $ERROR('#2: __str = String(0); __str === "0". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(0); __str === "0". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(-0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#3: __str = String(-0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(-0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "0") { - $ERROR('#4: __str = String(-0); __str === "0". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(-0); __str === "0". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T15.js b/test/built-ins/String/S15.5.1.1_A1_T15.js index 80e4b332f9e6a38c4d2c249f89f6072fee0d0f5b..dff5f4d4cada446777973b64de6f8a20f15583b1 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T15.js +++ b/test/built-ins/String/S15.5.1.1_A1_T15.js @@ -18,7 +18,7 @@ var __str = String(__obj__str); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__str !== __obj__str) { - $ERROR('#1: __obj__str = "caps"; __str = String(__obj__str); __str === __obj__str. Actual: __str ==='+__str ); + $ERROR('#1: __obj__str = "caps"; __str = String(__obj__str); __str === __obj__str. Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T16.js b/test/built-ins/String/S15.5.1.1_A1_T16.js index fa12b41b4d5979e2699246b92708da7d80d6e0b1..69947b9bcf132c3ff60e78278c953e7ef373a334 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T16.js +++ b/test/built-ins/String/S15.5.1.1_A1_T16.js @@ -14,7 +14,7 @@ var __str = String(.12345); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(.12345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(.12345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "0.12345") { - $ERROR('#2: __str = String(.12345); __str === "0.12345". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(.12345); __str === "0.12345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(.012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(.012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(.012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "0.012345") { - $ERROR('#4: __str = String(.012345); __str === "0.012345". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(.012345); __str === "0.012345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ __str = String(.0012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(.0012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(.0012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "0.0012345") { - $ERROR('#6: __str = String(.0012345); __str === "0.0012345". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(.0012345); __str === "0.0012345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -68,7 +68,7 @@ __str = String(.00000012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (typeof __str !== "string") { - $ERROR('#7: __str = String(.00000012345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#7: __str = String(.00000012345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -76,7 +76,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#8 if (__str !== "1.2345e-7") { - $ERROR('#8: __str = String(.00000012345); __str === "1.2345e-7". Actual: __str ==='+__str ); + $ERROR('#8: __str = String(.00000012345); __str === "1.2345e-7". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T17.js b/test/built-ins/String/S15.5.1.1_A1_T17.js index 408fb4bf68559e483740b6b25a8f35fdab16543c..85434eb860049a280dcb157bc781eafab774bd5c 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T17.js +++ b/test/built-ins/String/S15.5.1.1_A1_T17.js @@ -16,7 +16,7 @@ var __str = String(1.2345); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1.2345); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1.2345); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "1.2345") { - $ERROR('#2: __str = String(1.2345); __str === "1.2345". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1.2345); __str === "1.2345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ __str = String(1.234567890); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(1.234567890); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(1.234567890); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "1.23456789") { - $ERROR('#4: __str = String(1.234567890); __str === "1.23456789". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(1.234567890); __str === "1.23456789". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +52,7 @@ __str = String(1.234500000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "string") { - $ERROR('#5: __str = String(1.234500000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = String(1.234500000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -60,7 +60,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__str !== "1.2345") { - $ERROR('#6: __str = String(1.234500000000000000000000000); __str === "1.2345". Actual: __str ==='+__str ); + $ERROR('#6: __str = String(1.234500000000000000000000000); __str === "1.2345". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T18.js b/test/built-ins/String/S15.5.1.1_A1_T18.js index 0ef5d12d11e332a137954804e994cba35d2701a9..22a25a26a9db204a4cc8b91bfff58d4d321d1e87 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T18.js +++ b/test/built-ins/String/S15.5.1.1_A1_T18.js @@ -10,11 +10,11 @@ description: Call String() with numbers that have more than 1 significant digit ---*/ var __str = String(1000000000000000000000); - + ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(1000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(1000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "1e+21") { - $ERROR('#2: __str = String(1000000000000000000000); __str === "1e+21". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(1000000000000000000000); __str === "1e+21". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +32,7 @@ __str = String(10000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "string") { - $ERROR('#3: __str = String(10000000000000000000000); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = String(10000000000000000000000); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str !== "1e+22") { - $ERROR('#4: __str = String(10000000000000000000000); __str === "1e+22". Actual: __str ==='+__str ); + $ERROR('#4: __str = String(10000000000000000000000); __str === "1e+22". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T19.js b/test/built-ins/String/S15.5.1.1_A1_T19.js index 4fee548c62ad10c1fb970c860cb1a42691655a37..5e58d64fd4811ba478bb432eaed5b2df99c4e1bc 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T19.js +++ b/test/built-ins/String/S15.5.1.1_A1_T19.js @@ -9,12 +9,12 @@ es5id: 15.5.1.1_A1_T19 description: Call String() with Array of numbers ---*/ -var __str = String(new Array(1,2,3)); +var __str = String(new Array(1, 2, 3)); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(new Array(1,2,3)); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(new Array(1,2,3)); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "1,2,3") { - $ERROR('#2: __str = String(new Array(1,2,3)); __str === "1,2,3". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(new Array(1,2,3)); __str === "1,2,3". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T2.js b/test/built-ins/String/S15.5.1.1_A1_T2.js index 288a13b3cb08234d51b7c27052f176ca6235e352..6fd826c4c2092eedf4687e2820178d2ee83d9daa 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T2.js +++ b/test/built-ins/String/S15.5.1.1_A1_T2.js @@ -14,7 +14,7 @@ var __str = String(null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(null); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(null); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "null") { - $ERROR('#2: __str = String(null); __str === "null". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(null); __str === "null". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T3.js b/test/built-ins/String/S15.5.1.1_A1_T3.js index 204d8e37b1bb96314270404e161c9a9dd01a2764..b09319278bc18d3d3711e63a448ee8d2405f60aa 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T3.js +++ b/test/built-ins/String/S15.5.1.1_A1_T3.js @@ -14,7 +14,7 @@ var __str = String(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(void 0); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(void 0); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: __str = String(void 0); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(void 0); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T4.js b/test/built-ins/String/S15.5.1.1_A1_T4.js index 95d0ea131ce7c0509e8b03f9ce99c0a750b93615..b85534d51704c8e988228319bbc3b8333fbbbf21 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T4.js +++ b/test/built-ins/String/S15.5.1.1_A1_T4.js @@ -14,7 +14,7 @@ var __str = String(undefined); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(undefined); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(undefined); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: __str = String(undefined); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(undefined); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T5.js b/test/built-ins/String/S15.5.1.1_A1_T5.js index 19f7db0662e3ce5dc4ee83d152f30b3f507c4767..9ec1596f14f6e980dd4672d3b13eb3be9a18f019 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T5.js +++ b/test/built-ins/String/S15.5.1.1_A1_T5.js @@ -14,7 +14,7 @@ var __str = String(x); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: var x; __str = String(x); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: var x; __str = String(x); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: var x; __str = String(x); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: var x; __str = String(x); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T6.js b/test/built-ins/String/S15.5.1.1_A1_T6.js index 75f049b4e3440e0eb984f35e1891f9d210728de5..29d6ea6f439c118edd27be78ebe4e21f8814a5be 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T6.js +++ b/test/built-ins/String/S15.5.1.1_A1_T6.js @@ -14,7 +14,7 @@ var __str = String(eval()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(eval()); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(eval()); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "undefined") { - $ERROR('#2: __str = String(eval()); __str === "undefined". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(eval()); __str === "undefined". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T7.js b/test/built-ins/String/S15.5.1.1_A1_T7.js index a275bd9f6f8c5ddd71d74bd34b011b7132e90c23..6b0596e2b0f0fd1b0ce746dea078052b971d0020 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T7.js +++ b/test/built-ins/String/S15.5.1.1_A1_T7.js @@ -14,15 +14,15 @@ var __str = String({}); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String({}); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String({}); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !== "[object "+"Object"+"]") { - $ERROR('#2: __str = String({}); __str === "[object Object]". Actual: __str ==='+__str ); +if (__str !== "[object " + "Object" + "]") { + $ERROR('#2: __str = String({}); __str === "[object Object]". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T8.js b/test/built-ins/String/S15.5.1.1_A1_T8.js index f6c6e8a6075a32093c7e6a252f0210f9745ccbd7..3df6c62b5a30da7009fe9c18c727814903408a61 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T8.js +++ b/test/built-ins/String/S15.5.1.1_A1_T8.js @@ -11,17 +11,19 @@ description: Call String(new Array) var __old__Array__prototype__toString = Array.prototype.toString; -Array.prototype.toString=function(){return "__ARRAY__";}; +Array.prototype.toString = function() { + return "__ARRAY__"; +}; var __str = String(new Array); // restore old toString method just in case -Array.prototype.toString=__old__Array__prototype__toString; +Array.prototype.toString = __old__Array__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(new Array); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(new Array); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +31,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "__ARRAY__") { - $ERROR('#2: Array.prototype.toString=function(){return "__ARRAY__";}; __str = String(new Array); __str === "__ARRAY__". Actual: __str ==='+__str ); + $ERROR('#2: Array.prototype.toString=function(){return "__ARRAY__";}; __str = String(new Array); __str === "__ARRAY__". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T9.js b/test/built-ins/String/S15.5.1.1_A1_T9.js index c6b05e738d94d6e9ec6bb1f94e5071b45e13c991..5a8e58cc1d6938fea373d1fa5aad2c7b3f3feb51 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T9.js +++ b/test/built-ins/String/S15.5.1.1_A1_T9.js @@ -9,14 +9,16 @@ es5id: 15.5.1.1_A1_T9 description: Call String(this) ---*/ -var toString=function(){return "__THIS__";}; +var toString = function() { + return "__THIS__"; +}; var __str = String(this); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(this); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(this); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +26,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "__THIS__") { - $ERROR('#2: toString=function(){return "__THIS__";}; __str = String(this); __str === "__THIS__". Actual: __str ==='+__str ); + $ERROR('#2: toString=function(){return "__THIS__";}; __str = String(this); __str === "__THIS__". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A2_T1.js b/test/built-ins/String/S15.5.1.1_A2_T1.js index 2c395acf32ea440de671eb656f3e82f5435f3f64..2a89564337d71293938ae228ed64ae3da433ed79 100644 --- a/test/built-ins/String/S15.5.1.1_A2_T1.js +++ b/test/built-ins/String/S15.5.1.1_A2_T1.js @@ -12,7 +12,7 @@ var __str = String(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,7 +20,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "") { - $ERROR('#2: __str = String(); __str === "". Actual: __str ==='+__str ); + $ERROR('#2: __str = String(); __str === "". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T1.js b/test/built-ins/String/S15.5.2.1_A1_T1.js index cff64fd347e7760f9689370ad7e698b55ba64bae..2b7c835f7b219a40ec11f27cc7bd3b958547b0f2 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T1.js +++ b/test/built-ins/String/S15.5.2.1_A1_T1.js @@ -14,7 +14,7 @@ var __str = new String; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String; typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String; typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +22,7 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String; __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String; __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (__str.constructor !== String) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str != "") { - $ERROR('#2: __str = new String; __str == "". Actual: __str =='+__str); + $ERROR('#2: __str = new String; __str == "". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ( __str === "") { +if (__str === "") { $ERROR('#3: __str = new String; __str !== ""'); } // diff --git a/test/built-ins/String/S15.5.2.1_A1_T10.js b/test/built-ins/String/S15.5.2.1_A1_T10.js index 46c0474f108a6aaa78c9bdd360cfc93efa597413..1b7950e2fd9c871d73aa51adc8555cf27106858d 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T10.js +++ b/test/built-ins/String/S15.5.2.1_A1_T10.js @@ -11,9 +11,11 @@ description: > function object's prototype.toString property was changed ---*/ -function __FACTORY(){}; +function __FACTORY() {}; -__FACTORY.prototype.toString=function(){return "tostr"}; +__FACTORY.prototype.toString = function() { + return "tostr" +}; var __obj = new __FACTORY; @@ -22,7 +24,7 @@ var __str = new String(__obj); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(__obj); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(__obj); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +32,7 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +40,7 @@ if (__str.constructor !== String) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str != "tostr") { - $ERROR('#2: __str = new String(__obj); __str =="tostr". Actual: __str =='+__str ); + $ERROR('#2: __str = new String(__obj); __str =="tostr". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T11.js b/test/built-ins/String/S15.5.2.1_A1_T11.js index b3eaf733bff24e8f32b6c4c515962cccaf938974..f44791a9b73522b12f1876195ce2992d21ff322c 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T11.js +++ b/test/built-ins/String/S15.5.2.1_A1_T11.js @@ -11,11 +11,15 @@ description: > changing function object's valueOf and toString properties ---*/ -function __obj(){}; +function __obj() {}; -__obj.valueOf=function(){return true;}; +__obj.valueOf = function() { + return true; +}; -__obj.toString=function(){return {};}; +__obj.toString = function() { + return {}; +}; var __str = new String(__obj); @@ -24,7 +28,7 @@ var __str = new String(__obj); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: function __obj(){}; __str = new String(__obj); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: function __obj(){}; __str = new String(__obj); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +36,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="true") { - $ERROR('#2: function __obj(){}; __str = new String(__obj); __str =="true". Actual: __str =='+__str ); +if (__str != "true") { + $ERROR('#2: function __obj(){}; __str = new String(__obj); __str =="true". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T12.js b/test/built-ins/String/S15.5.2.1_A1_T12.js index 092aab2395a405b1957786cb69c471b20ccf06c8..76bb3c6eb92a9db6949cb4592ab27a869589171a 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T12.js +++ b/test/built-ins/String/S15.5.2.1_A1_T12.js @@ -12,9 +12,15 @@ description: > exception throw ---*/ -var __obj = {toString:function(){throw "intostr"}}; +var __obj = { + toString: function() { + throw "intostr" + } +}; -__obj.valueOf=function(){return true}; +__obj.valueOf = function() { + return true +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,8 +28,8 @@ try { var __str = new String(__obj); $ERROR('#1: var __obj = {toString:function(){throw "intostr"}}; __str = new String(__obj) lead throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: e==="intostr". Actual: e==='+e); + if (e !== "intostr") { + $ERROR('#1.1: e==="intostr". Actual: e===' + e); } } // diff --git a/test/built-ins/String/S15.5.2.1_A1_T13.js b/test/built-ins/String/S15.5.2.1_A1_T13.js index dbda18dcf36bb339320ed125ae84bfb9533e0588..45f064f13006d545c5ad8fa35a0f4664d6d1cc14 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T13.js +++ b/test/built-ins/String/S15.5.2.1_A1_T13.js @@ -12,9 +12,17 @@ description: > exception throw ---*/ -var __obj = {toString:function(){return f; function f(){}}}; +var __obj = { + toString: function() { + return f; -__obj.valueOf=function(){throw "invalueof"}; + function f() {} + } +}; + +__obj.valueOf = function() { + throw "invalueof" +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,8 +30,8 @@ try { var __str = new String(__obj); $ERROR('#1: __obj.valueOf=function(){throw "invalueof"}; __str = new String(__obj) lead throwing exception'); } catch (e) { - if (e!=="invalueof") { - $ERROR('#1.1: e==="invalueof". Actual: e==='+e); + if (e !== "invalueof") { + $ERROR('#1.1: e==="invalueof". Actual: e===' + e); } } // diff --git a/test/built-ins/String/S15.5.2.1_A1_T16.js b/test/built-ins/String/S15.5.2.1_A1_T16.js index 3327696250511f087df9df6cae2b61ffc1edd283..c5b6bc6d20359451fa722adc3b4aa05a2a74e748 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T16.js +++ b/test/built-ins/String/S15.5.2.1_A1_T16.js @@ -11,11 +11,11 @@ description: > and other numbers ---*/ -var __str =new String(.12345); +var __str = new String(.12345); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str =new String(.12345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str =new String(.12345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,24 +23,24 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str =new String(.12345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str =new String(.12345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="0.12345") { - $ERROR('#2: __str =new String(.12345); __str =="0.12345". Actual: __str =='+__str ); +if (__str != "0.12345") { + $ERROR('#2: __str =new String(.12345); __str =="0.12345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str =new String(.012345); +__str = new String(.012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "object") { - $ERROR('#3: __str =new String(.012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str =new String(.012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,24 +48,24 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2.5 if (__str.constructor !== String) { - $ERROR('#3.5: __str =new String(.012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#3.5: __str =new String(.012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__str !="0.012345") { - $ERROR('#4: __str =new String(.012345); __str =="0.012345". Actual: __str =='+__str ); +if (__str != "0.012345") { + $ERROR('#4: __str =new String(.012345); __str =="0.012345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str =new String(.0012345); +__str = new String(.0012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "object") { - $ERROR('#5: __str =new String(.0012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str =new String(.0012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -73,24 +73,24 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5.5 if (__str.constructor !== String) { - $ERROR('#5.5: __str =new String(.0012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#5.5: __str =new String(.0012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#6 -if (__str !="0.0012345") { - $ERROR('#6: __str =new String(.0012345); __str =="0.0012345". Actual: __str =='+__str ); +if (__str != "0.0012345") { + $ERROR('#6: __str =new String(.0012345); __str =="0.0012345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// -__str =new String(.00000012345); +__str = new String(.00000012345); ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (typeof __str !== "object") { - $ERROR('#7: __str =new String(.00000012345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#7: __str =new String(.00000012345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -98,15 +98,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#7.5 if (__str.constructor !== String) { - $ERROR('#7.5: __str =new String(.00000012345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#7.5: __str =new String(.00000012345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#8 -if (__str !="1.2345e-7") { - $ERROR('#8: __str =new String(.00000012345); __str =="1.2345e-7". Actual: __str =='+__str ); +if (__str != "1.2345e-7") { + $ERROR('#8: __str =new String(.00000012345); __str =="1.2345e-7". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T17.js b/test/built-ins/String/S15.5.2.1_A1_T17.js index 3e9248ebe85ef51ed01e0115cc29093ce33aac33..745ab818b4664b23313643dc0a4a0f700c9e664d 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T17.js +++ b/test/built-ins/String/S15.5.2.1_A1_T17.js @@ -15,7 +15,7 @@ var __str = new String(1.2345); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(1.2345); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(1.2345); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,15 +23,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(1.2345); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(1.2345); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1.2345") { - $ERROR('#2: __str = new String(1.2345); __str =="1.2345". Actual: __str =='+__str ); +if (__str != "1.2345") { + $ERROR('#2: __str = new String(1.2345); __str =="1.2345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ __str = new String(1.234567890); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "object") { - $ERROR('#3: __str = new String(1.234567890); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = new String(1.234567890); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,15 +48,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3.5 if (__str.constructor !== String) { - $ERROR('#3.5: __str = new String(1.234567890); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#3.5: __str = new String(1.234567890); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__str !="1.23456789") { - $ERROR('#4: __str = new String(1.234567890); __str =="1.23456789". Actual: __str =='+__str ); +if (__str != "1.23456789") { + $ERROR('#4: __str = new String(1.234567890); __str =="1.23456789". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -65,7 +65,7 @@ __str = new String(1.234500000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (typeof __str !== "object") { - $ERROR('#5: __str = new String(1.234500000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#5: __str = new String(1.234500000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -73,15 +73,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5.5 if (__str.constructor !== String) { - $ERROR('#5.5: __str = new String(1.234500000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#5.5: __str = new String(1.234500000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#6 -if (__str !="1.2345") { - $ERROR('#6: __str = new String(1.234500000000000000000000000); __str =="1.2345". Actual: __str =='+__str ); +if (__str != "1.2345") { + $ERROR('#6: __str = new String(1.234500000000000000000000000); __str =="1.2345". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T18.js b/test/built-ins/String/S15.5.2.1_A1_T18.js index 600c76266c121ecf21c18b4c3820c83c1acdc705..e6d950545494791b2f40db0fa10b99b37908b00a 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T18.js +++ b/test/built-ins/String/S15.5.2.1_A1_T18.js @@ -15,7 +15,7 @@ var __str = new String(1000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(1000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(1000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,15 +23,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(1000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(1000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1e+21") { - $ERROR('#2: __str = new String(1000000000000000000000); __str =="1e+21". Actual: __str =='+__str ); +if (__str != "1e+21") { + $ERROR('#2: __str = new String(1000000000000000000000); __str =="1e+21". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ __str = new String(10000000000000000000000); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (typeof __str !== "object") { - $ERROR('#3: __str = new String(10000000000000000000000); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#3: __str = new String(10000000000000000000000); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,15 +48,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3.5 if (__str.constructor !== String) { - $ERROR('#3.5: __str = new String(10000000000000000000000); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#3.5: __str = new String(10000000000000000000000); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__str !="1e+22") { - $ERROR('#4: __str = new String(10000000000000000000000); __str =="1e+22". Actual: __str =='+__str ); +if (__str != "1e+22") { + $ERROR('#4: __str = new String(10000000000000000000000); __str =="1e+22". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T19.js b/test/built-ins/String/S15.5.2.1_A1_T19.js index 8bef6916cb98d4e26e44483c686ba0c0a81f7bcc..223aa2abf20721306853c3566dba3de5d6af5c4a 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T19.js +++ b/test/built-ins/String/S15.5.2.1_A1_T19.js @@ -11,11 +11,11 @@ description: > of numbers ---*/ -var __str = new String(new Array(1,2,3)); +var __str = new String(new Array(1, 2, 3)); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(new Array(1,2,3)); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(new Array(1,2,3)); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,15 +23,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(new Array(1,2,3)); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(new Array(1,2,3)); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1,2,3") { - $ERROR('#2: __str = new String(new Array(1,2,3)); __str =="1,2,3". Actual: __str =='+__str ); +if (__str != "1,2,3") { + $ERROR('#2: __str = new String(new Array(1,2,3)); __str =="1,2,3". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T2.js b/test/built-ins/String/S15.5.2.1_A1_T2.js index e9e3cd3ef46c584457cd70f20dca6bcd7aa7d443..bb1bee3908f2d1bc41706d397eaa542681b84351 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T2.js +++ b/test/built-ins/String/S15.5.2.1_A1_T2.js @@ -14,7 +14,7 @@ var __str = new String(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,23 +22,23 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="") { - $ERROR('#2: __str = new String(); __str =="". Actual: __str =='+__str ); +if (__str != "") { + $ERROR('#2: __str = new String(); __str =="". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ( __str === "") { - $ERROR('#3: __str = new String(); __str !== ""'); +if (__str === "") { + $ERROR('#3: __str = new String(); __str !== ""'); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T3.js b/test/built-ins/String/S15.5.2.1_A1_T3.js index b46ea66cb74301bc634c73a417b226ec7f7c65b8..b9716333c10dd095c1e8fc6cd13a8bf9a93f49bf 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T3.js +++ b/test/built-ins/String/S15.5.2.1_A1_T3.js @@ -14,7 +14,7 @@ var __str = new String(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(""); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(""); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,23 +22,23 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(""); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(""); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="") { - $ERROR('#2: __str = new String(""); __str =="". Actual: __str =='+__str ); +if (__str != "") { + $ERROR('#2: __str = new String(""); __str =="". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ( __str === "") { - $ERROR('#3: __str = new String(""); __str !== ""'); +if (__str === "") { + $ERROR('#3: __str = new String(""); __str !== ""'); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T4.js b/test/built-ins/String/S15.5.2.1_A1_T4.js index cc4687d03ac23c9398085ea66d2661e42083fb0f..3d268119b66c687d7c46d743fc3fb2bfeb76ee01 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T4.js +++ b/test/built-ins/String/S15.5.2.1_A1_T4.js @@ -14,7 +14,7 @@ var __str = new String(1.0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(1.0); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(1.0); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,15 +22,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(1.0); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(1.0); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !=1.0+"") { - $ERROR('#2: __str = new String(1.0); __str ==1.0+"". Actual: __str =='+__str ); +if (__str != 1.0 + "") { + $ERROR('#2: __str = new String(1.0); __str ==1.0+"". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T5.js b/test/built-ins/String/S15.5.2.1_A1_T5.js index 786ecadf79cccf5ff944ffb51b1fef31790ba6b4..34b722abd18f160d81e416e78eb68c70bc260aa2 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T5.js +++ b/test/built-ins/String/S15.5.2.1_A1_T5.js @@ -14,7 +14,7 @@ var __str = new String(NaN); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(NaN); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(NaN); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,15 +22,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(NaN); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(NaN); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !=(1/"s")+"") { - $ERROR('#2: __str = new String(NaN); __str ==(1/"s")+"". Actual: __str =='+__str ); +if (__str != (1 / "s") + "") { + $ERROR('#2: __str = new String(NaN); __str ==(1/"s")+"". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T6.js b/test/built-ins/String/S15.5.2.1_A1_T6.js index 50db9d8514a35330767dcc38b7eb194411e3e126..c3b481fd6f8e84c38647148efd13be3979dc2047 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T6.js +++ b/test/built-ins/String/S15.5.2.1_A1_T6.js @@ -14,7 +14,7 @@ var __str = new String(false); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(false); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(false); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,15 +22,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(false); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(false); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !=false+"") { - $ERROR('#2: __str = new String(false); __str ==false+"". Actual: __str =='+__str ); +if (__str != false + "") { + $ERROR('#2: __str = new String(false); __str ==false+"". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T7.js b/test/built-ins/String/S15.5.2.1_A1_T7.js index 5ce2ae1ac0112f2b686854c0a3c42f65ad4dfeb2..9ff917a50649deb68d8a67bb34ceda46c65b003c 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T7.js +++ b/test/built-ins/String/S15.5.2.1_A1_T7.js @@ -11,7 +11,9 @@ description: Creating string object with "new String({})" var __stored__Object__prototype__toString = Object.prototype.toString; -Object.prototype.toString=function(){return "SHIFTED"}; +Object.prototype.toString = function() { + return "SHIFTED" +}; var __str = new String({}); @@ -20,7 +22,7 @@ Object.prototype.toString = __stored__Object__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,15 +30,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="SHIFTED") { - $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str =='+__str ); +if (__str != "SHIFTED") { + $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T8.js b/test/built-ins/String/S15.5.2.1_A1_T8.js index 35402bae115cfd6ba389c0c8ccf521732476550f..c01b4bb1e9cc0e7f847f90f55037ddc204088ce0 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T8.js +++ b/test/built-ins/String/S15.5.2.1_A1_T8.js @@ -11,16 +11,18 @@ description: Creating string object with "new String(function(){})" var __stored__Function__prototype__toString = Function.prototype.toString; -Function.prototype.toString=function(){return "SHIFTED"}; +Function.prototype.toString = function() { + return "SHIFTED" +}; -var __str = new String(function(){}); +var __str = new String(function() {}); Function.prototype.toString = __stored__Function__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(function(){}); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(function(){}); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,15 +30,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(function(){}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(function(){}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="SHIFTED") { - $ERROR('#2: Function.prototype.toString=function(){return "SHIFTED"}; __str = new String(function(){}); __str =="SHIFTED". Actual: __str =='+__str ); +if (__str != "SHIFTED") { + $ERROR('#2: Function.prototype.toString=function(){return "SHIFTED"}; __str = new String(function(){}); __str =="SHIFTED". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T9.js b/test/built-ins/String/S15.5.2.1_A1_T9.js index 4a23ee97cc69b0dd679c68f2055af166dbfba446..95b97e6b4c10b3fecef1584cc5a665ce8005bc08 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T9.js +++ b/test/built-ins/String/S15.5.2.1_A1_T9.js @@ -11,12 +11,14 @@ description: > [1,2,3]}())" ---*/ -var __str = new String(function(){return [1,2,3]}()); +var __str = new String(function() { + return [1, 2, 3] +}()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(function(){return [1,2,3]}()); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(function(){return [1,2,3]}()); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,15 +26,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(function(){return [1,2,3]}()); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(function(){return [1,2,3]}()); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1,2,3") { - $ERROR('#2: __str = new String(function(){return [1,2,3]}()); __str =="1,2,3". Actual: __str =='+__str ); +if (__str != "1,2,3") { + $ERROR('#2: __str = new String(function(){return [1,2,3]}()); __str =="1,2,3". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A2_T2.js b/test/built-ins/String/S15.5.2.1_A2_T2.js index 63374d22e24627e1b7240972e93613b9205646fe..35de60592753234748fb9eb721bfe57816aa4693 100644 --- a/test/built-ins/String/S15.5.2.1_A2_T2.js +++ b/test/built-ins/String/S15.5.2.1_A2_T2.js @@ -15,8 +15,8 @@ var __str__obj = new String("shocking blue"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str__obj["__custom__prop"]!==undefined) { - $ERROR('#1: var __str__obj = new String("shocking blue"); __str__obj["__custom__prop"]===undefined. Actual: __str__obj["__custom__prop"]==='+__str__obj["__custom__prop"]); +if (__str__obj["__custom__prop"] !== undefined) { + $ERROR('#1: var __str__obj = new String("shocking blue"); __str__obj["__custom__prop"]===undefined. Actual: __str__obj["__custom__prop"]===' + __str__obj["__custom__prop"]); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,8 +25,8 @@ String.prototype.__custom__prop = "bor"; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str__obj["__custom__prop"]!=="bor") { - $ERROR('#2: var __str__obj = new String("shocking blue"); String.prototype.__custom__prop = "bor"; __str__obj["__custom__prop"]==="bor". Actual: __str__obj["__custom__prop"]==='+__str__obj["__custom__prop"]); +if (__str__obj["__custom__prop"] !== "bor") { + $ERROR('#2: var __str__obj = new String("shocking blue"); String.prototype.__custom__prop = "bor"; __str__obj["__custom__prop"]==="bor". Actual: __str__obj["__custom__prop"]===' + __str__obj["__custom__prop"]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A3.js b/test/built-ins/String/S15.5.2.1_A3.js index fa3bdafb879b08009ad0dc0b5f5e48c97355736e..387bdf10ad7102384422c4a2a039cc70e2e800ab 100644 --- a/test/built-ins/String/S15.5.2.1_A3.js +++ b/test/built-ins/String/S15.5.2.1_A3.js @@ -15,8 +15,8 @@ __str__obj.toString = Object.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str__obj.toString() !== "[object "+"String"+"]") { - $ERROR('#1: var __str__obj = new String("seamaid"); __str__obj.toString = Object.prototype.toString; __str__obj.toString() === "[object String]". Actual: __str__obj.toString() ==='+__str__obj.toString() ); +if (__str__obj.toString() !== "[object " + "String" + "]") { + $ERROR('#1: var __str__obj = new String("seamaid"); __str__obj.toString = Object.prototype.toString; __str__obj.toString() === "[object String]". Actual: __str__obj.toString() ===' + __str__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.3_A1.js b/test/built-ins/String/S15.5.3_A1.js index 7360cf3f1842598292e710f7cfc329693b7ea4d5..de6499d46c4a6c4d4724a1f568bf35b0ce16b4c1 100644 --- a/test/built-ins/String/S15.5.3_A1.js +++ b/test/built-ins/String/S15.5.3_A1.js @@ -10,7 +10,7 @@ description: Checking String.length ////////////////////////////////////////////////////////////////////////////// // CHECK# if (String.length !== 1) { - $ERROR('String has length property whose value is 1. Actual: String.length==='+String.length); + $ERROR('String has length property whose value is 1. Actual: String.length===' + String.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.3_A2_T1.js b/test/built-ins/String/S15.5.3_A2_T1.js index 584b4e29fb660dbd8bea84262093114d5af3711f..eb019eaf63872d3c932cd10d5fe68b94c1f59e88 100644 --- a/test/built-ins/String/S15.5.3_A2_T1.js +++ b/test/built-ins/String/S15.5.3_A2_T1.js @@ -12,7 +12,7 @@ description: Checking Function.prototype.isPrototypeOf(String) ////////////////////////////////////////////////////////////////////////////// // CHECK# if (!(Function.prototype.isPrototypeOf(String))) { - $ERROR('#1: Function.prototype.isPrototypeOf(String) return true. Actual: '+Function.prototype.isPrototypeOf(String)); + $ERROR('#1: Function.prototype.isPrototypeOf(String) return true. Actual: ' + Function.prototype.isPrototypeOf(String)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.3_A2_T2.js b/test/built-ins/String/S15.5.3_A2_T2.js index 42c6ad1700a3b6395220e8f8151d3f48afe6409d..8fb4899cc9f494396cd8d46bb04b745a050f5638 100644 --- a/test/built-ins/String/S15.5.3_A2_T2.js +++ b/test/built-ins/String/S15.5.3_A2_T2.js @@ -14,7 +14,7 @@ Function.prototype.indicator = 1; ////////////////////////////////////////////////////////////////////////////// // CHECK# if (String.indicator !== 1) { - $ERROR('#1: Function.prototype.indicator = 1; String.indicator === 1. Actual: String.indicator ==='+String.indicator ); + $ERROR('#1: Function.prototype.indicator = 1; String.indicator === 1. Actual: String.indicator ===' + String.indicator); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A1.js b/test/built-ins/String/S15.5.5.1_A1.js index 6537b2dd9b62d259ab200405c301d2c117575b37..969b7c0998179e33d4e448e8f9bb4fdd3bc3ec48 100644 --- a/test/built-ins/String/S15.5.5.1_A1.js +++ b/test/built-ins/String/S15.5.5.1_A1.js @@ -14,7 +14,7 @@ var __str__instance = new String("ABC\u0041\u0042\u0043"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__str__instance.length !== 6) { - $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6, where __str__instance is new String("ABC\\u0041\\u0042\\u0043"). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6, where __str__instance is new String("ABC\\u0041\\u0042\\u0043"). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ __str__instance = new String; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str__instance.length !== 0) { - $ERROR('#2: __str__instance = new String; __str__instance.length === 0, where __str__instance is new String. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#2: __str__instance = new String; __str__instance.length === 0, where __str__instance is new String. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A2.js b/test/built-ins/String/S15.5.5.1_A2.js index 764e7bd01845c1b38e9fce96a13bdf42a65ce455..9d039cba047d6b253e64e973be29f7e4a9718f92 100644 --- a/test/built-ins/String/S15.5.5.1_A2.js +++ b/test/built-ins/String/S15.5.5.1_A2.js @@ -12,17 +12,17 @@ var __str__instance = new String("globglob"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -for(var prop in __str__instance){ - if (prop === "length") { - $ERROR('#2: length property has the attributes {DontEnum}'); - } +for (var prop in __str__instance) { + if (prop === "length") { + $ERROR('#2: length property has the attributes {DontEnum}'); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A3.js b/test/built-ins/String/S15.5.5.1_A3.js index 8cdd0622103c3f09da9722332492f6664911dc9e..8309818e35be02f17fe59e950481e8ff2e8a3885 100644 --- a/test/built-ins/String/S15.5.5.1_A3.js +++ b/test/built-ins/String/S15.5.5.1_A3.js @@ -13,7 +13,7 @@ var __str__instance = new String("globglob"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,7 +36,7 @@ try { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#3: var __str__instance = new String("globglob"); delete __str__instance.length; __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#3: var __str__instance = new String("globglob"); delete __str__instance.length; __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A4_T1.js b/test/built-ins/String/S15.5.5.1_A4_T1.js index 2df5f77c64a5ca3bfa17bb64687b8d65d32361a4..d41526fc8e0a0e8492f46e3c6c4eed8ddaf3fdd9 100644 --- a/test/built-ins/String/S15.5.5.1_A4_T1.js +++ b/test/built-ins/String/S15.5.5.1_A4_T1.js @@ -13,7 +13,7 @@ var __str__instance = new String("globglob"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,28 +21,28 @@ if (!(__str__instance.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str__instance.length !== 8) { - $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// -__str__instance.length=-1; +__str__instance.length = -1; ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__str__instance.length !== 8) { - $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// with(__str__instance) - length = 0; +length = 0; ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__str__instance.length !== 8) { - $ERROR('#4: var __str__instance = new String("globglob"); with(__str__instance) length = 0; __str__instance.length === 8(after redefine length property with using "with"). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#4: var __str__instance = new String("globglob"); with(__str__instance) length = 0; __str__instance.length === 8(after redefine length property with using "with"). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +52,7 @@ __str__instance.length++; ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__str__instance.length !== 8) { - $ERROR('#5: var __str__instance = new String("globglob"); __str__instance.length++; __str__instance.length === 8(after redefine length property with using "++"). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#5: var __str__instance = new String("globglob"); __str__instance.length++; __str__instance.length === 8(after redefine length property with using "++"). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A4_T2.js b/test/built-ins/String/S15.5.5.1_A4_T2.js index 08fb0724060b13cd71c0758ad947dd263726a0e1..67510ea00759b3d633658e7bb07e138a4353b79f 100644 --- a/test/built-ins/String/S15.5.5.1_A4_T2.js +++ b/test/built-ins/String/S15.5.5.1_A4_T2.js @@ -13,7 +13,7 @@ var __str__instance = new String("globglob"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(__str__instance.hasOwnProperty("length"))) { - $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: '+__str__instance.hasOwnProperty("length")); + $ERROR('#1: var __str__instance = new String("globglob"); __str__instance.hasOwnProperty("length") return true. Actual: ' + __str__instance.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,7 +21,7 @@ if (!(__str__instance.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str__instance.length !== 8) { - $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#2: var __str__instance = new String("globglob"); __str__instance.length === 8. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +31,7 @@ verifyNotWritable(__str__instance, "length", null, -1); ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__str__instance.length !== 8) { - $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#3: var __str__instance = new String("globglob"); __str__instance.length=-1; __str__instance.length === 8(after redefine length property). Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5.1_A5.js b/test/built-ins/String/S15.5.5.1_A5.js index e169e117065b7d8c97b933019b9b1490750b1c3c..7aa4181a36176352bb5a6e7d1821405299c858f4 100644 --- a/test/built-ins/String/S15.5.5.1_A5.js +++ b/test/built-ins/String/S15.5.5.1_A5.js @@ -14,18 +14,22 @@ var __str__instance = new String("ABC\u0041\u0042\u0043"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__str__instance.length !== 6) { - $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// -__str__instance.valueOf = function(){return "ed"}; -__str__instance.toString = function(){return "ed"}; +__str__instance.valueOf = function() { + return "ed" +}; +__str__instance.toString = function() { + return "ed" +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str__instance !="ed") { - $ERROR('#2: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance =="ed". Actual: __str__instance =='+__str__instance ); +if (__str__instance != "ed") { + $ERROR('#2: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance =="ed". Actual: __str__instance ==' + __str__instance); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +37,7 @@ if (__str__instance !="ed") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__str__instance.length !== 6) { - $ERROR('#3: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance.length === 6. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#3: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance.length === 6. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5_A1_T1.js b/test/built-ins/String/S15.5.5_A1_T1.js index b5d7bdde347e3a70b634f4c64ff75997671fa4da..883b4106b2258caa701f38ce0346e52089f6272c 100644 --- a/test/built-ins/String/S15.5.5_A1_T1.js +++ b/test/built-ins/String/S15.5.5_A1_T1.js @@ -16,7 +16,7 @@ try { $ERROR('#1: __str = new String; __str() lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/S15.5.5_A1_T2.js b/test/built-ins/String/S15.5.5_A1_T2.js index f7c992b5932f73d6079ceabaad36be8a7555ded4..68ff2408c8eec8aa56a4c399d2849beb27f8dcd0 100644 --- a/test/built-ins/String/S15.5.5_A1_T2.js +++ b/test/built-ins/String/S15.5.5_A1_T2.js @@ -14,7 +14,7 @@ try { $ERROR('#1: String("a|b")() lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/S15.5.5_A2_T1.js b/test/built-ins/String/S15.5.5_A2_T1.js index ed236183ab1f5ef85754af675f9dd2ae7484a291..3bc78fd2bac188ec3632c3f11465b9a77edbbc65 100644 --- a/test/built-ins/String/S15.5.5_A2_T1.js +++ b/test/built-ins/String/S15.5.5_A2_T1.js @@ -16,7 +16,7 @@ try { $ERROR('#1: __str = new Object(""); "new __str" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/S15.5.5_A2_T2.js b/test/built-ins/String/S15.5.5_A2_T2.js index 6281a6daff82ea60d596a716f476ef9f75b31caf..cc5df51590d8ec027f7da26c2fe8910630ad6f33 100644 --- a/test/built-ins/String/S15.5.5_A2_T2.js +++ b/test/built-ins/String/S15.5.5_A2_T2.js @@ -14,7 +14,7 @@ try { $ERROR('#1: "new new String" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/S8.12.8_A1.js b/test/built-ins/String/S8.12.8_A1.js index d4f2dd5c0bbe24242fce65421b161052c8eaac05..04250ab4719d565fd6eafa227899319675d9b9cd 100644 --- a/test/built-ins/String/S8.12.8_A1.js +++ b/test/built-ins/String/S8.12.8_A1.js @@ -12,13 +12,17 @@ description: Try to overload toString method try { - var __obj = {toString: function() {return new Object();}} - String(__obj); - $ERROR('#1.1: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (String(__obj))); + var __obj = { + toString: function() { + return new Object(); + } + } + String(__obj); + $ERROR('#1.1: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (String(__obj))); } -catch(e) +catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (e)); + } } diff --git a/test/built-ins/String/S8.12.8_A2.js b/test/built-ins/String/S8.12.8_A2.js index 4ffda0d941fcb36a3856a909151ab2bfb77a64c8..6618d2cdd4014fa61bd02718ad5b58b6445f6fa6 100644 --- a/test/built-ins/String/S8.12.8_A2.js +++ b/test/built-ins/String/S8.12.8_A2.js @@ -15,12 +15,19 @@ description: > try { - var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}} - if (String(__obj) !== "1") { - $ERROR('#1.1: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (String(__obj))); - } + var __obj = { + toString: function() { + return new Object(); + }, + valueOf: function() { + return 1; + } + } + if (String(__obj) !== "1") { + $ERROR('#1.1: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (String(__obj))); + } } -catch(e) +catch (e) { $ERROR('#1.2: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (e)); } diff --git a/test/built-ins/String/S9.1_A1_T2.js b/test/built-ins/String/S9.1_A1_T2.js index 7090e3234207a22a55db3ab55df57b2f91576232..4d92be3f0c48d3ec9b05a18fc96ae22e5232b2c5 100644 --- a/test/built-ins/String/S9.1_A1_T2.js +++ b/test/built-ins/String/S9.1_A1_T2.js @@ -12,13 +12,27 @@ description: > ---*/ // CHECK#1 -var object = {valueOf: function() {return 0}, toString: function() {return 1}}; +var object = { + valueOf: function() { + return 0 + }, + toString: function() { + return 1 + } +}; if (String(object) !== "1") { $ERROR('#1: var object = {valueOf: function() {return 0}, toString: function() {return 1}}; String(object) === "1". Actual: ' + (String(object))); } // CHECK#2 -var object = {valueOf: function() {return 0}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 0 + }, + toString: function() { + return {} + } +}; if (String(object) !== "0") { $ERROR('#2: var object = {valueOf: function() {return 0}, toString: function() {return {}}}; String(object) === "0". Actual: ' + (String(object))); } diff --git a/test/built-ins/String/S9.8.1_A3.js b/test/built-ins/String/S9.8.1_A3.js index f93fb59f107dacb46553014b74caa836cf420d8c..13f63f7cca6c74ee7f5d0411e1dd3f4f85dd144a 100644 --- a/test/built-ins/String/S9.8.1_A3.js +++ b/test/built-ins/String/S9.8.1_A3.js @@ -15,6 +15,6 @@ if (String(-1234567890) !== "-1234567890") { } // CHECK#2 -if ("-"+String(-(-1234567890)) !== "-1234567890") { - $ERROR('#2: "-"+String(-(-1234567890)) === "-1234567890". Actual: ' + ("-"+String(-(-1234567890)))); +if ("-" + String(-(-1234567890)) !== "-1234567890") { + $ERROR('#2: "-"+String(-(-1234567890)) === "-1234567890". Actual: ' + ("-" + String(-(-1234567890)))); } diff --git a/test/built-ins/String/S9.8_A2_T1.js b/test/built-ins/String/S9.8_A2_T1.js index 846d1ce46fc82f02e5e79c5c32e61741c53e6f58..147215751ae5cea0146b0f8ab9add27031edc6dd 100644 --- a/test/built-ins/String/S9.8_A2_T1.js +++ b/test/built-ins/String/S9.8_A2_T1.js @@ -9,5 +9,5 @@ description: null convert to String by explicit transformation // CHECK#1 if (String(null) !== "null") { - $ERROR('#1: String(null) === "null". Actual: ' + (String(null))); + $ERROR('#1: String(null) === "null". Actual: ' + (String(null))); } diff --git a/test/built-ins/String/S9.8_A3_T1.js b/test/built-ins/String/S9.8_A3_T1.js index a6b798a3d633b5244f69fc447cb876645dec4d04..e9df51408dfadd82e8982380243a5457ca38c637 100644 --- a/test/built-ins/String/S9.8_A3_T1.js +++ b/test/built-ins/String/S9.8_A3_T1.js @@ -16,5 +16,5 @@ if (String(false) !== "false") { // CHECK#2 if (String(true) !== "true") { - $ERROR('#2: String(true) === "true". Actual: ' + (String(true))); + $ERROR('#2: String(true) === "true". Actual: ' + (String(true))); } diff --git a/test/built-ins/String/S9.8_A4_T1.js b/test/built-ins/String/S9.8_A4_T1.js index 4f78283a64df5ae9e0d723518e0790ccf864cf7c..4959ead61125ffdfa49e821cfe9f3e3e2239daed 100644 --- a/test/built-ins/String/S9.8_A4_T1.js +++ b/test/built-ins/String/S9.8_A4_T1.js @@ -17,6 +17,6 @@ if (String(x1) !== x1) { // CHECK#2 var x2 = "abc"; -if (typeof String(x2) !== typeof x2) { +if (typeof String(x2) !== typeof x2) { $ERROR('#2: typeof String("abc") === "string". Actual: ' + (typeof String("abc"))); } diff --git a/test/built-ins/String/S9.8_A5_T1.js b/test/built-ins/String/S9.8_A5_T1.js index e6f9690540915bb91bd62ff57c539e8489ac3cfa..fbac3d86425f1d893fabf064da9010963e7e0c47 100644 --- a/test/built-ins/String/S9.8_A5_T1.js +++ b/test/built-ins/String/S9.8_A5_T1.js @@ -26,7 +26,7 @@ if (String(new Number(Number.NaN)) !== "NaN") { // CHECK#4 if (String(new Number(null)) !== "0") { - $ERROR('#4: String(new Number(null)) === "0". Actual: ' + (String(new Number(null)))); + $ERROR('#4: String(new Number(null)) === "0". Actual: ' + (String(new Number(null)))); } // CHECK#5 @@ -55,38 +55,54 @@ if (String(new Boolean(false)) !== "false") { } // CHECK#10 -if (String(new Array(2,4,8,16,32)) !== "2,4,8,16,32") { - $ERROR('#10: String(new Array(2,4,8,16,32)) === "2,4,8,16,32". Actual: ' + (String(new Array(2,4,8,16,32)))); +if (String(new Array(2, 4, 8, 16, 32)) !== "2,4,8,16,32") { + $ERROR('#10: String(new Array(2,4,8,16,32)) === "2,4,8,16,32". Actual: ' + (String(new Array(2, 4, 8, 16, 32)))); } // CHECK#11 var myobj1 = { - toNumber : function(){return 12345;}, - toString : function(){return 67890;}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj1) !== "67890"){ + toNumber: function() { + return 12345; + }, + toString: function() { + return 67890; + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj1) !== "67890") { $ERROR("#11: String(myobj) calls ToPrimitive with hint String"); } // CHECK#12 var myobj2 = { - toNumber : function(){return 12345;}, - toString : function(){return {}}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj2) !== "[object MyObj]"){ + toNumber: function() { + return 12345; + }, + toString: function() { + return {} + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj2) !== "[object MyObj]") { $ERROR("#12: String(myobj) calls ToPrimitive with hint String"); } // CHECK#13 var myobj3 = { - toNumber : function(){return 12345;}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj3) !== "[object Object]"){ + toNumber: function() { + return 12345; + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj3) !== "[object Object]") { $ERROR("#13: String(myobj) calls ToPrimitive with hint String"); } diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js index 0b9edd0cc7e19b74cbd1398b9629381e40bb159d..1a1050b81074c3241bd3ad13991d751bfa0c6db9 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js @@ -10,7 +10,7 @@ description: Checking String.fromCharCode.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof String.fromCharCode !== "function") { - $ERROR('#1: typeof String.fromCharCode === "function". Actual: typeof String.fromCharCode ==='+typeof String.fromCharCode ); + $ERROR('#1: typeof String.fromCharCode === "function". Actual: typeof String.fromCharCode ===' + typeof String.fromCharCode); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (typeof String.fromCharCode !== "function") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (!(String.hasOwnProperty("fromCharCode"))) { - $ERROR('#2: String.hasOwnProperty("fromCharCode") return true. Actual: '+String.hasOwnProperty("fromCharCode")); + $ERROR('#2: String.hasOwnProperty("fromCharCode") return true. Actual: ' + String.hasOwnProperty("fromCharCode")); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (!(String.hasOwnProperty("fromCharCode"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (String.fromCharCode.length !== 1) { - $ERROR('#3: String.fromCharCode.length === 1. Actual: String.fromCharCode.length ==='+String.fromCharCode.length ); + $ERROR('#3: String.fromCharCode.length === 1. Actual: String.fromCharCode.length ===' + String.fromCharCode.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js index 9fbae6ddcf94cabee06f8137a16e48fc8e98f0e9..30ac54bc72490336460b8267a64921096ef86f5d 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A2.js @@ -10,7 +10,7 @@ description: Call String.fromCharCode() ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.fromCharCode() !== "") { - $ERROR('#1: String.fromCharCode () returns empty string. Actual: '+String.fromCharCode()); + $ERROR('#1: String.fromCharCode () returns empty string. Actual: ' + String.fromCharCode()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js index 8c394c85153c5408675e428e2b4f62405ed810c6..57d7aaa1144509fc97afbdcb50123edb90ca38ca 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T1.js @@ -9,8 +9,8 @@ description: Call String.fromCharCode(65,66,66,65) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String.fromCharCode(65,66,66,65) !== "ABBA") { - $ERROR('#1: String.fromCharCode(65,66,66,65) === "ABBA". Actual: String.fromCharCode(65,66,66,65) ==='+String.fromCharCode(65,66,66,65) ); +if (String.fromCharCode(65, 66, 66, 65) !== "ABBA") { + $ERROR('#1: String.fromCharCode(65,66,66,65) === "ABBA". Actual: String.fromCharCode(65,66,66,65) ===' + String.fromCharCode(65, 66, 66, 65)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js index f13e04fe7fbd5e37c81c41faaf96f9eeacf6215b..1e7d423a5b52757fa6e066de65db5d48dfca853c 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A3_T2.js @@ -15,8 +15,8 @@ delete String.fromCharCode; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__fcc__func(65,66,66,65) !== "ABBA") { - $ERROR('#1: __fcc__func = String.fromCharCode; delete String.fromCharCode; __fcc__func(65,66,66,65) === "ABBA". Actual: __fcc__func(65,66,66,65) ==='+__fcc__func(65,66,66,65) ); +if (__fcc__func(65, 66, 66, 65) !== "ABBA") { + $ERROR('#1: __fcc__func = String.fromCharCode; delete String.fromCharCode; __fcc__func(65,66,66,65) === "ABBA". Actual: __fcc__func(65,66,66,65) ===' + __fcc__func(65, 66, 66, 65)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js index b29a550437159a910cf8a88070f6b1ebd6861cda..b3489a479748c2b468693b7763c93101636afd02 100644 --- a/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js +++ b/test/built-ins/String/fromCharCode/S15.5.3.2_A4.js @@ -14,10 +14,10 @@ delete String.fromCharCode; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var __obj = new __fcc__func(65,66,66,65); + var __obj = new __fcc__func(65, 66, 66, 65); $ERROR('#1: __fcc__func = String.fromCharCode; var __obj = new __fcc__func(65,66,66,65) 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/fromCharCode/S9.7_A1.js b/test/built-ins/String/fromCharCode/S9.7_A1.js index 513c563a5a8a7c10a00f8897751879bac9a5fdfc..935d50a57b20ff8f7e5796ef1eb169fbaf774d40 100644 --- a/test/built-ins/String/fromCharCode/S9.7_A1.js +++ b/test/built-ins/String/fromCharCode/S9.7_A1.js @@ -12,41 +12,41 @@ description: > // CHECK#1 if (String.fromCharCode(Number.NaN).charCodeAt(0) !== +0) { $ERROR('#1.1: String.fromCharCode(Number.NaN).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number.NaN).charCodeAt(0))); -} else if (1/String.fromCharCode(Number.NaN).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(Number.NaN).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR('#1.2: String.fromCharCode(Number.NaN).charCodeAt(0) === +0. Actual: -0'); } // CHECK#2 if (String.fromCharCode(Number("abc")).charCodeAt(0) !== +0) { $ERROR('#2.1: String.fromCharCode(Number("abc")).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number("abc")).charCodeAt(0))); -} else if (1/String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR('#2.2: String.fromCharCode(0).charCodeAt(0) === +0. Actual: -0'); } // CHECK#3 if (String.fromCharCode(0).charCodeAt(0) !== +0) { $ERROR('#3.1: String.fromCharCode(0).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(0).charCodeAt(0))); -} else if (1/String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR('#3.2: String.fromCharCode(0).charCodeAt(0) === +0. Actual: -0'); } // CHECK#4 if (String.fromCharCode(-0).charCodeAt(0) !== +0) { $ERROR("#4.1: String.fromCharCode(-0).charCodeAt(0) === +0"); -} else if (1/String.fromCharCode(-0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(-0).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR("#4.2: String.fromCharCode(-0).charCodeAt(0) === +0. Actual: -0"); } // CHECK#5 if (String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== +0) { $ERROR('#5.1: String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0))); -} else if (1/String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR('#5.2: String.fromCharCode(Number.POSITIVE_INFINITY).charCodeAt(0) === +0. Actual: -0'); } // CHECK#6 if (String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== +0) { $ERROR("#6.1: String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) === +0"); -} else if (1/String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) { +} else if (1 / String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) { $ERROR("#6.2: String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) === +0. Actual: -0"); } diff --git a/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js b/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js index fd601b40979ab34d0c64571cafeb3ae031394915..3af06a0599f2e8242b3a45d4b83a2a9f1f2fb80c 100644 --- a/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js +++ b/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js @@ -8,26 +8,51 @@ description: Type(x) is Object ---*/ //CHECK#1 -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#1: var object = {valueOf: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#2 -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); -} +} //CHECK#3 -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#4 try { - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#4.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } @@ -41,37 +66,62 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#5: var object = {toString: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#7 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; object >>> 0; $ERROR('#7.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; object throw "error". Actual: ' + (object >>> 0)); -} +} catch (e) { if (e !== "error") { $ERROR('#7.2: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; object throw "error". Actual: ' + (e)); - } + } } //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; object >>> 0; $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (object >>> 0)); -} +} catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (e)); - } + } } diff --git a/test/built-ins/String/fromCodePoint/to-number-conversions.js b/test/built-ins/String/fromCodePoint/to-number-conversions.js index da054bb2f21792fdcb21a30061bdb4727e5b1aef..84dac44c2a60726ce13a552f219e7d79087a7e1b 100644 --- a/test/built-ins/String/fromCodePoint/to-number-conversions.js +++ b/test/built-ins/String/fromCodePoint/to-number-conversions.js @@ -25,6 +25,10 @@ assert.sameValue(String.fromCodePoint(true), '\x01'); assert.sameValue(String.fromCodePoint('42'), '\x2A'); assert.sameValue(String.fromCodePoint('042'), '\x2A'); assert.sameValue( - String.fromCodePoint({ valueOf: function() { return 31; } }), + String.fromCodePoint({ + valueOf: function() { + return 31; + } + }), '\x1F' ); diff --git a/test/built-ins/String/length.js b/test/built-ins/String/length.js index 839a7cdf8eb9316dc1fc0ce992c3f740c343c6c9..7b19a381c3634a61be10e577941a45f55cdef948 100644 --- a/test/built-ins/String/length.js +++ b/test/built-ins/String/length.js @@ -26,4 +26,4 @@ str = new String(' \b '); assert.sameValue(str.length, 3, 'character escape (U+008, "backspace")'); str = new String('\ud834\udf06'); -assert.sameValue(str.length, 2, 'Unicode escape (surrogate pair)'); +assert.sameValue(str.length, 2, 'Unicode escape (surrogate pair)'); diff --git a/test/built-ins/String/prototype/S15.5.3.1_A1.js b/test/built-ins/String/prototype/S15.5.3.1_A1.js index 0c621f1e3743694f09d18c70e9123e653a75dac2..ae4163e2f2559450ac039098b15a4cffb341f459 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A1.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A1.js @@ -10,7 +10,7 @@ description: Checking String.hasOwnProperty('prototype') ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.3.1_A2.js b/test/built-ins/String/prototype/S15.5.3.1_A2.js index fac9d45a52829c75e0b2efcc87b6d20b9440116e..160a7d3e016fbe3c49e773a6636101798b0ffcd7 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A2.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A2.js @@ -10,7 +10,7 @@ description: Checking if enumerating the String.prototype property fails ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#0: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#0: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// @@ -19,7 +19,7 @@ if (!(String.hasOwnProperty('prototype'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.propertyIsEnumerable('prototype')) { - $ERROR('#1: String.propertyIsEnumerable(\'prototype\') return false. Actual: '+String.propertyIsEnumerable('prototype')); + $ERROR('#1: String.propertyIsEnumerable(\'prototype\') return false. Actual: ' + String.propertyIsEnumerable('prototype')); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,14 +27,14 @@ if (String.propertyIsEnumerable('prototype')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String){ - if (p==="prototype") count++; +for (var p in String) { + if (p === "prototype") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String){ if (p==="prototype") count++;}; count === 0. Actual: count ==='+count ); + $ERROR('#2: count=0; for (p in String){ if (p==="prototype") count++;}; count === 0. Actual: count ===' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.3.1_A3.js b/test/built-ins/String/prototype/S15.5.3.1_A3.js index ae47596579ad7d01b109c9a401af4ddc7b331690..5fecfb2c2d6407afd2ef48035c0ecc244ff28d61 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A3.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A3.js @@ -11,7 +11,7 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ try { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#3: delete String.prototype; String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#3: delete String.prototype; String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.3.1_A4.js b/test/built-ins/String/prototype/S15.5.3.1_A4.js index e94cfe27ed916108edd44c64a7d97b1feb131f41..6f7a145fb37571932358ad2ed184e1808f32b063 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A4.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A4.js @@ -11,19 +11,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype; -verifyNotWritable(String, "prototype", null, function(){return "shifted";}); +verifyNotWritable(String, "prototype", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype !== __obj) { - $ERROR('#2: __obj = String.prototype; String.prototype = function(){return "shifted";}; String.prototype === __obj. Actual: String.prototype ==='+String.prototype ); + $ERROR('#2: __obj = String.prototype; String.prototype = function(){return "shifted";}; String.prototype === __obj. Actual: String.prototype ===' + String.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A1.js b/test/built-ins/String/prototype/S15.5.4_A1.js index 1b12c336f23044ef7fa16c03616a34e8c56194c4..44c6864766b0fb5e40d5d412e587890b3d171b22 100644 --- a/test/built-ins/String/prototype/S15.5.4_A1.js +++ b/test/built-ins/String/prototype/S15.5.4_A1.js @@ -15,8 +15,8 @@ delete String.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String.prototype.toString() !== "[object "+"String"+"]") { - $ERROR('#1: delete String.prototype.toString; String.prototype.toString() === "[object "+"String"+"]". Actual: String.prototype.toString() ==='+String.prototype.toString() ); +if (String.prototype.toString() !== "[object " + "String" + "]") { + $ERROR('#1: delete String.prototype.toString; String.prototype.toString() === "[object "+"String"+"]". Actual: String.prototype.toString() ===' + String.prototype.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A2.js b/test/built-ins/String/prototype/S15.5.4_A2.js index 227ed079c3ffb3e3377eec581a04752ea6ff0d4b..b36246e30bd25415b5c9d8403b3a292427c472a1 100644 --- a/test/built-ins/String/prototype/S15.5.4_A2.js +++ b/test/built-ins/String/prototype/S15.5.4_A2.js @@ -9,8 +9,8 @@ description: Checking String.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String.prototype !="") { - $ERROR('#1: String.prototype =="". Actual: String.prototype =='+String.prototype ); +if (String.prototype != "") { + $ERROR('#1: String.prototype =="". Actual: String.prototype ==' + String.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A3.js b/test/built-ins/String/prototype/S15.5.4_A3.js index c63a61dcf1f58cd7627125516953b5fc6949b046..bc5edd1c3021fccd2f97fa7dc0fe8e77883a6246 100644 --- a/test/built-ins/String/prototype/S15.5.4_A3.js +++ b/test/built-ins/String/prototype/S15.5.4_A3.js @@ -12,7 +12,7 @@ description: Checking Object.prototype.isPrototypeOf(String.prototype) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(Object.prototype.isPrototypeOf(String.prototype))) { - $ERROR('#1: Object.prototype.isPrototypeOf(String.prototype) return true. Actual: '+Object.prototype.isPrototypeOf(String.prototype)); + $ERROR('#1: Object.prototype.isPrototypeOf(String.prototype) return true. Actual: ' + Object.prototype.isPrototypeOf(String.prototype)); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,8 +21,8 @@ delete String.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (String.prototype.toString() != "[object "+"String"+"]") { - $ERROR('#2: delete String.prototype.toString; String.prototype.toString() == "[object "+"String"+"]". Actual: String.prototype.toString() =='+String.prototype.toString() ); +if (String.prototype.toString() != "[object " + "String" + "]") { + $ERROR('#2: delete String.prototype.toString; String.prototype.toString() == "[object "+"String"+"]". Actual: String.prototype.toString() ==' + String.prototype.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js index a89daec9b72ffbcc5095dd3aaf5901040618e6c4..79c9d0ec594cee95f90d5fe0cc31a67fa5acfd95 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js @@ -7,7 +7,11 @@ es5id: 15.5.4.4_A1.1 description: Checking by using eval ---*/ -function __FACTORY(){this.toString = function(){ return "wizard";};}; +function __FACTORY() { + this.toString = function() { + return "wizard"; + }; +}; __FACTORY.prototype.charAt = String.prototype.charAt; @@ -15,8 +19,8 @@ var __instance = new __FACTORY; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__instance.charAt(eval("1"),true,null,{})!== "i") { - $ERROR('#1: __instance.charAt(eval("1"),true,null,{})=== "i". Actual: '+__instance.charAt(eval("1"),true,null,{})); - } +if (__instance.charAt(eval("1"), true, null, {}) !== "i") { + $ERROR('#1: __instance.charAt(eval("1"),true,null,{})=== "i". Actual: ' + __instance.charAt(eval("1"), true, null, {})); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js index ad3379461da3338f281444b5d0808a2849100b04..21de5fc4c0454bfb9b399f15ce502e09399c7711 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charAt.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#1: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.charAt.length; -verifyNotWritable(String.prototype.charAt, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.charAt, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charAt.length !== __obj) { - $ERROR('#2: __obj = String.prototype.charAt.length; String.prototype.charAt.length = function(){return "shifted";}; String.prototype.charAt.length === __obj. Actual: '+String.prototype.charAt.length ); + $ERROR('#2: __obj = String.prototype.charAt.length; String.prototype.charAt.length = function(){return "shifted";}; String.prototype.charAt.length === __obj. Actual: ' + String.prototype.charAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js index bb5b5cb34464a9719d9029fa816b29c453219545..2d376a2dca4bfe61788022dd1815462d7eaa6107 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.charAt.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charAt.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.charAt.hasOwnProperty("length") return true. Actual: '+String.prototype.charAt.hasOwnProperty("length")); + $ERROR('#1: String.prototype.charAt.hasOwnProperty("length") return true. Actual: ' + String.prototype.charAt.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.charAt.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charAt.length !== 1) { - $ERROR('#2: String.prototype.charAt.length === 1. Actual: '+String.prototype.charAt.length ); + $ERROR('#2: String.prototype.charAt.length === 1. Actual: ' + String.prototype.charAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js index d88cec69ac5fbbcae84415612d3c0359e4986d79..c47d9c5c531e779f9d84c876abd0ba63b80c2c27 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T1.js @@ -13,8 +13,8 @@ __instance.charAt = String.prototype.charAt; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.charAt(false)+__instance.charAt(true) !== "42") { - $ERROR('#1: __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true) === "42". Actual: '+__instance.charAt(false)+__instance.charAt(true) ); +if (__instance.charAt(false) + __instance.charAt(true) !== "42") { + $ERROR('#1: __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance = new Object(42); __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true) === "42". Actual: ' + __instance.charAt(false) + __instance.charAt(true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js index b92349adcdafd710d2b9b430c39c5162908ddd68..10c5d32b2f1737562235656b8ea5826a4bdf3a6d 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js @@ -7,13 +7,17 @@ es5id: 15.5.4.4_A1_T10 description: Call charAt() function with object argument ---*/ -var __obj = {toString:function(){return 1;}} +var __obj = { + toString: function() { + return 1; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.charAt(__obj) !== "e") { - $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charAt(__obj) === "e". Actual: '+__str.charAt(__obj) ); - } +if (__str.charAt(__obj) !== "e") { + $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charAt(__obj) === "e". Actual: ' + __str.charAt(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js index 42ad5f81b094d4601b85d5415082535051b0c20d..39930f22803440645e67efe2126b9d240158310b 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js @@ -13,8 +13,8 @@ __instance.charAt = String.prototype.charAt; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) !== "fal") { - $ERROR('#1: __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) === "fal". Actual: '+__instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) ); +if (__instance.charAt(false) + __instance.charAt(true) + __instance.charAt(true + 1) !== "fal") { + $ERROR('#1: __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance = new Boolean; __instance.charAt = String.prototype.charAt; __instance.charAt(false)+__instance.charAt(true)+__instance.charAt(true+1) === "fal". Actual: ' + __instance.charAt(false) + __instance.charAt(true) + __instance.charAt(true + 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js index 6296bb1639539dad9ff1482e8c825a0550a0cef1..c69163edf130fd7841265ab372fd6940dc1e5592 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T4.js @@ -11,7 +11,7 @@ description: Call charAt() function without argument of string object //CHECK#1 //since ToInteger() evaluates to 0 charAt() evaluates to charAt(0) if ("lego".charAt() !== "l") { - $ERROR('#1: "lego".charAt() === "l". Actual: "lego".charAt() ==='+("lego".charAt()) ); + $ERROR('#1: "lego".charAt() === "l". Actual: "lego".charAt() ===' + ("lego".charAt())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js index f3d40ae7a04e73e6fe2193a21aa8111f8d1f5d95..dcf127bde527aac90e55d1fbc0a98c3dcc5cb322 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js @@ -10,8 +10,12 @@ description: Call charAt() function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(null) evaluates to 0 charAt() evaluates to charAt(0) -if (function(){return "lego"}().charAt(null) !== "l") { - $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ==='+function(){return "lego"}().charAt(null) ); +if (function() { + return "lego" + }().charAt(null) !== "l") { + $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ===' + function() { + return "lego" + }().charAt(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js index 73d3ab39077e37d126426a129934523b51e1484f..e611efe884cc16847b4f970ffa2b6e88d9203f24 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0) if (new String("lego").charAt(x) !== "l") { - $ERROR('#1: var x; new String("lego").charAt(x) === "l". Actual: new String("lego").charAt(x) ==='+new String("lego").charAt(x) ); + $ERROR('#1: var x; new String("lego").charAt(x) === "l". Actual: new String("lego").charAt(x) ===' + new String("lego").charAt(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js index 0674182368b8aaa7cc86561e65a770f40c1c0975..ed0b9c4e51ffddf0d811d3f578cca825a598b361 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T7.js @@ -11,7 +11,7 @@ description: Call charAt() function with undefined argument of string object //CHECK#1 //since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0) if (String("lego").charAt(undefined) !== "l") { - $ERROR('#1: String("lego").charAt(undefined) === "l". Actual: String("lego").charAt(undefined) ==='+String("lego").charAt(undefined) ); + $ERROR('#1: String("lego").charAt(undefined) === "l". Actual: String("lego").charAt(undefined) ===' + String("lego").charAt(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js index ef0d838828d158373e4fe53330084f3b0a3ef21f..cb5f85ffc7156f04614e6c623b167f17df6d088e 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T8.js @@ -11,7 +11,7 @@ description: Call charAt() function with void 0 argument of string object //CHECK#1 //since ToInteger(void 0) evaluates to 0 charAt() evaluates to charAt(0) if (String(42).charAt(void 0) !== "4") { - $ERROR('#1: String(42).charAt(void 0) === "4". Actual: String(42).charAt(void 0) ==='+String(42).charAt(void 0) ); + $ERROR('#1: String(42).charAt(void 0) === "4". Actual: String(42).charAt(void 0) ===' + String(42).charAt(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js index 6137d3e04bd58a07fa06d6ca7e8de1658bd8de61..46f5c6d604f17e2a6e2d0b2e3585797383beb330 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T9.js @@ -12,8 +12,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(undefined) evaluates to 0 charAt() evaluates to charAt(0) -if (new String(42).charAt(function(){}()) !== "4") { - $ERROR('#1: new String(42).charAt(function(){}()) === "4". Actual: new String(42).charAt(function(){}()) ==='+new String(42).charAt(function(){}()) ); +if (new String(42).charAt(function() {}()) !== "4") { + $ERROR('#1: new String(42).charAt(function(){}()) === "4". Actual: new String(42).charAt(function(){}()) ===' + new String(42).charAt(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js index 9616be53165fdae7fb259bedf788284b47bb5217..b83c11f8d882cf13f7428db6e4641d065d3394d1 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A2.js @@ -9,7 +9,7 @@ es5id: 15.5.4.4_A2 description: Call charAt(pos) with negative pos ---*/ -function __FACTORY(){}; +function __FACTORY() {}; __FACTORY.prototype.charAt = String.prototype.charAt; @@ -18,7 +18,7 @@ var __instance = new __FACTORY; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.charAt(-1) !== "") { - $ERROR('#1: __instance.charAt(-1) === "". Actual: __instance.charAt(-1) ==='+__instance.charAt(-1) ); + $ERROR('#1: __instance.charAt(-1) === "". Actual: __instance.charAt(-1) ===' + __instance.charAt(-1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js index 185d7950da6ef46b461dd96d8f34163624147780..daf222d95e8b03b2792e46c4113c5c7a2e87372b 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A3.js @@ -14,7 +14,7 @@ var __instance = new String("ABC"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.charAt(3) !== "") { - $ERROR('#1: __instance = new String("ABC"); __instance.charAt(3) === "". Actual: __instance.charAt(3) ==='+__instance.charAt(3) ); + $ERROR('#1: __instance = new String("ABC"); __instance.charAt(3) === "". Actual: __instance.charAt(3) ===' + __instance.charAt(3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js index 5216b646e4d11132d370a9da23e95ea034771df9..bc71de8a58e548c11c28f15535befb12aaa6bccc 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T1.js @@ -11,11 +11,11 @@ description: Compare results of x.charAt(pos) and x.substring(pos, pos+1) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for(var i=0; i<6; i++) { - if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) { - $ERROR('#'+i+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i)) ); - } +for (var i = 0; i < 6; i++) { + if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) { + $ERROR('#' + i + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i))); + } } - + // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js index 0771bc7f521835aa831af35ef808db26b87af773..79556c5192eb68d809ce1d131f8331f445d56aed 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js @@ -13,11 +13,11 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for(var i=-2; i<0; i++) { - if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) { - $ERROR('#'+(i+2)+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i)) ); - } +for (var i = -2; i < 0; i++) { + if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) { + $ERROR('#' + (i + 2) + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i))); + } } - + // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js index ab0ddbffa64a80bedb7a8d1459f080f07389c84e..3f366523359916778ab90a7996e95e7a737d7028 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T3.js @@ -13,11 +13,11 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for(var i=6; i<8; i++) { - if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i+1)) { - $ERROR('#'+(i-5)+': "ABC\\u0041\\u0042\\u0043".charAt('+i+') === "\\u0041\\u0042\\u0043ABC".substring('+i+', '+(i+1)+'). Actual: "ABC\\u0041\\u0042\\u0043".charAt('+i+') ==='+("ABC\u0041\u0042\u0043".charAt(i))); - } +for (var i = 6; i < 8; i++) { + if ("ABC\u0041\u0042\u0043".charAt(i) !== "\u0041\u0042\u0043ABC".substring(i, i + 1)) { + $ERROR('#' + (i - 5) + ': "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') === "\\u0041\\u0042\\u0043ABC".substring(' + i + ', ' + (i + 1) + '). Actual: "ABC\\u0041\\u0042\\u0043".charAt(' + i + ') ===' + ("ABC\u0041\u0042\u0043".charAt(i))); + } } - + // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js index 266fc6ae124a75fe2769ebf089ad508f5eb5c88f..fadadc99684d1af7e32f72458b02b5c91d6a70bc 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js @@ -9,10 +9,12 @@ es5id: 15.5.4.4_A5 description: Change toString function, it trow exception, and call charAt() ---*/ -var __obj={ - valueOf:1, - toString:function(){throw 'intostring'}, - charAt:String.prototype.charAt +var __obj = { + valueOf: 1, + toString: function() { + throw 'intostring' + }, + charAt: String.prototype.charAt } ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +24,7 @@ try { $ERROR('#1: __obj={valueOf:1,toString:function(){throw \'intostring\'},charAt:String.prototype.charAt}; "var x = __obj.charAt()" 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/charAt/S15.5.4.4_A6.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js index 1e3114e6a783eb8d07716fdf1e0f99e9714818c0..a5a00a328bb84a001a3283036bd8a25b3828ad1d 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.charAt.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.charAt.prototype !== undefined) { - $ERROR('#1: String.prototype.charAt.prototype === undefined. Actual: '+String.prototype.charAt.prototype ); + $ERROR('#1: String.prototype.charAt.prototype === undefined. Actual: ' + String.prototype.charAt.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js index 5afab205b94e6c6e926c8416b99a041a453eb384..a43cc85f4ea98fbac0057216dfadc8aff61f9918 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: __FACTORY = String.prototype.charAt; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); + $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js index 51dc2ca1165f639f6dee1c311097f8bfc74a8d76..d18cf8044b0d3a7ec15b8f87fc1dd9d0fe16e551 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charAt.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,21 +21,21 @@ if (!(String.prototype.charAt.hasOwnProperty('length'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.charAt.propertyIsEnumerable('length')) { - $ERROR('#1: String.prototype.charAt.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.charAt.propertyIsEnumerable('length')); + $ERROR('#1: String.prototype.charAt.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.charAt.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.charAt){ - if (p==="length") count++; +for (var p in String.prototype.charAt) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.charAt){if (p==="length") count++;}; count === 0. Actual: count ==='+count ); + $ERROR('#2: count=0; for (p in String.prototype.charAt){if (p==="length") count++;}; count === 0. Actual: count ===' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js index 9e3d36beea9a20298d76f3e55893842707c9bf57..6414fbe44605dab64f9a2e38833bcd2889c87319 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.charAt.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#0: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.charAt.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charAt.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.charAt.length; String.prototype.charAt.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.charAt.length; String.prototype.charAt.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// 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 24ac132749e70ccc54d8895106c36ff1b9f61ae9..ea9c7dac959621a247e2c858e22545a3afb77607 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 a22bf9d0e950ea14d7f2b62516407e738cad4117..39c531e3808eb60d868fbf6feaa1acc2b3c3c283 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 1137dff6754ae916ac6456ebff1745f7b1dc63ab..f355381357c934236df82205e6d20498576c7d53 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 5cd5570ea050b3c43628bf4302c5d2274eec06d8..8c31caede2530f5dee29ce6ac9a36e9bd21bc540 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 74b3895c591d3c026620ba1c04b1e0871cc64537..c1391358e9afc7730c0851d9b5dfaa3249d849c2 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 547304029851a2c48bd0cdcaae40c8babff5b9e3..1013fba88194cef9f0cc71bcda8f9605c4cfb420 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 8b0b253dc717b69f0699c0a548555cb63a7254e5..05ee919d836356310e026381222035be87395fe9 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 a80b2b0ca2620712177945df0eaecb890c83cdf5..b3535ed20c41928b461a05b736b1d094eccc6fc7 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 3ddf8b0e7606daa74335330c646ce635ddbd15bb..d09356f16a930f21894c24f38c4f04f5974476a2 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 a59910356f922bc17d5d301bdd627f5134314772..e8f6d64105be157c8d26f436fefbd708d907e594 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 8a6b06344d57e25fd83870eae5170dc847f1e59a..860c1d4ecbb011779400da95ca1cecd4513b9b89 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 9a336549c2c12f78d639b0a51e11432529883310..e1f00f767e7952240ab7a99c53b22d199f1aae63 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 290fad88b33fe9b86a5b58b37af4f43dab69bc19..3c06c1b08c9fc49cd7903e2a91a88cd0abaa0cb7 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 29301ca72789bd69fffdb3002480aa27933171cc..c46f0f2b85afdb3040f79985f342f2bb23e9859a 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 4098f04d2dc396452a2e2d70f94ac66c4e4deab2..97e0f9b83858992daf0803a3c49d46bc7b5e78c8 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 23aa00ba8c5be6039ae7511ad1e686e10bcf5d71..d21d56d81bed822a225c87237f29161c0d9e2ae6 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 e70cadbd2224765d5a2d3e358ee0f188f8476ef6..6c3fe2a9022d921c43994097707a3ef21d503b03 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 6c39315e2b6664b89ecc85feb5acd3daf41bf276..b09375f23b1f499170ea61235b916b5295acf9a1 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')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js index 00258a5e572a896261da948fcd258e9eeb3f8b96..599b763ab4d7b4a601b746742d8e61c57132fd0a 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.concat.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.concat.length; -verifyNotWritable(String.prototype.concat, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.concat, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.concat.length !== __obj) { - $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: '+String.prototype.concat.length ); + $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: ' + String.prototype.concat.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js index 69016d99aed27ff7c52b80f9edc4cf3ed7fca2dc..1896234ed6d97d7769109e42a9990d91304558d8 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.concat.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.concat.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.concat.hasOwnProperty("length") return true. Actual: '+String.prototype.concat.hasOwnProperty("length")); + $ERROR('#1: String.prototype.concat.hasOwnProperty("length") return true. Actual: ' + String.prototype.concat.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.concat.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.concat.length !== 1) { - $ERROR('#2: String.prototype.concat.length === 1. Actual: '+String.prototype.concat.length ); + $ERROR('#2: String.prototype.concat.length === 1. Actual: ' + String.prototype.concat.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js index 647cb30b5352aea3d2d16507391f76d397a7270d..bec80ca92ea1052bf84f484bd7286fc694733f34 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T1.js @@ -13,8 +13,8 @@ __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.concat(false,true) !== "42falsetrue") { - $ERROR('#1: __instance = new Object(42); __instance.concat = String.prototype.concat; __instance.concat(false,true) === "42falsetrue". Actual: '+__instance.concat(false,true) ); +if (__instance.concat(false, true) !== "42falsetrue") { + $ERROR('#1: __instance = new Object(42); __instance.concat = String.prototype.concat; __instance.concat(false,true) === "42falsetrue". Actual: ' + __instance.concat(false, true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js index 006d0b65d04cdb29f68fac3b37e262ec5bb4b516..fa908ae169e313e69f8c6a30f30078f62cce88c2 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js @@ -7,19 +7,34 @@ es5id: 15.5.4.6_A1_T10 description: Call concat([,[...]]) function with object arguments ---*/ -var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}} -var __obj2 = {toString:function(){return true;}} -var __obj3 = {toString:function(){return 42;}} +var __obj = { + toString: function() { + return "\u0041"; + }, + valueOf: function() { + return "_\u0041_"; + } +} +var __obj2 = { + toString: function() { + return true; + } +} +var __obj3 = { + toString: function() { + return 42; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.concat(__obj) !== "legoA") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: '+__str.concat(__obj) ); - } - if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") { - $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: '+__str.concat(__obj, __obj2, __obj3, x) ); - } +if (__str.concat(__obj) !== "legoA") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: ' + __str.concat(__obj)); +} +if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") { + $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: ' + __str.concat(__obj, __obj2, __obj3, x)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js index 974b29823eda6f224058b26c28ea12b641b16fb1..1b2b1a799fc0a277ae441b397407c8aab51910e8 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js @@ -15,8 +15,8 @@ __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.concat("\u0041",true,true+1) !== "falseAtrue2") { - $ERROR('#1: __instance = new Boolean; __instance.concat = String.prototype.concat; __instance.concat("\\u0041",true,true+1) === "falseAtrue2". Actual: '+__instance.concat("\u0041",true,true+1) ); +if (__instance.concat("\u0041", true, true + 1) !== "falseAtrue2") { + $ERROR('#1: __instance = new Boolean; __instance.concat = String.prototype.concat; __instance.concat("\\u0041",true,true+1) === "falseAtrue2". Actual: ' + __instance.concat("\u0041", true, true + 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js index f243a077dc9dcbe329728536dcc2c59824750ee1..13b2e379390d47b7110e93059dffdb9656f5aa50 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T4.js @@ -11,7 +11,7 @@ description: Call concat([,[...]]) function without argument of string object //CHECK#1 //since ToString() evaluates to "" concat() evaluates to concat("") if ("lego".concat() !== "lego") { - $ERROR('#1: "lego".concat() === "lego". Actual: '+("lego".concat()) ); + $ERROR('#1: "lego".concat() === "lego". Actual: ' + ("lego".concat())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js index 7bad9d2e0db444a4815a9f1c831edf771737c5d4..a47b104361b871796332a4b1dba69089ea83efba 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" concat(null) evaluates to concat("null") -if (function(){return "lego"}().concat(null) !== "legonull") { - $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: '+function(){return "lego"}().concat(null) ); +if (function() { + return "lego" + }().concat(null) !== "legonull") { + $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: ' + function() { + return "lego" + }().concat(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js index e633a6afa22fa13b7d5d5d79e59468acbafb01af..5d7824d60e33663f9dfef3cb3a85d555ebe4ed08 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined") if (new String("lego").concat(x) !== "legoundefined") { - $ERROR('#1: var x; new String("lego").concat(x) === "legoundefined". Actual: '+new String("lego").concat(x) ); + $ERROR('#1: var x; new String("lego").concat(x) === "legoundefined". Actual: ' + new String("lego").concat(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js index 10e915663f0ed8edc35ba1b26873dfa7e5f5af74..09f68293362858f660ed9091d08599d42fb64552 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T7.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined") if (String("lego").concat(undefined) !== "legoundefined") { - $ERROR('#1: String("lego").concat(undefined) === "legoundefined". Actual: '+String("lego").concat(undefined) ); + $ERROR('#1: String("lego").concat(undefined) === "legoundefined". Actual: ' + String("lego").concat(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js index 4ededc05385bcd851f61494d99f72133a3e32ab5..297fe08ae30307a90ed7023de860bd756e15cd0f 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T8.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(void 0) evaluates to "undefined" concat(void 0) evaluates to concat("undefined") if (String(42).concat(void 0) !== "42undefined") { - $ERROR('#1: String(42).concat(void 0) === "42undefined". Actual: '+String(42).concat(void 0) ); + $ERROR('#1: String(42).concat(void 0) === "42undefined". Actual: ' + String(42).concat(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js index 08d70fd86b292cbf596562aab3712803fd97cf78..bfd2bac54e45fd7216ac75cd2e0e8ebf0abe1921 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T9.js @@ -12,8 +12,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" concat(undefined) evaluates to concat("undefined") -if (new String(42).concat(function(){}()) !== "42undefined") { - $ERROR('#1: new String(42).concat(function(){}()) === "42undefined". Actual: '+new String(42).concat(function(){}()) ); +if (new String(42).concat(function() {}()) !== "42undefined") { + $ERROR('#1: new String(42).concat(function(){}()) === "42undefined". Actual: ' + new String(42).concat(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js index b16030c88b0e85d10eb3e3f032a7393130d0530d..d9acfba8c7d8280d29f9b4e1102cf388f3b72528 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A2.js @@ -14,15 +14,15 @@ __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.concat( -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF, -0,1,2,3,4,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF -) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") { + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF + ) !== "001234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415012345678910111213141501234567891011121314150123456789101112131415") { $ERROR('#1: Call concat([,[...]]) function with 128 arguments does not lead to throwing any errors'); } // diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js index 3b2301578e56c3a8389d3603c5acc2fbc496759f..0c477fd9ef32e0659585211cc0e36a4b54312209 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A3.js @@ -14,7 +14,7 @@ __instance.concat("two"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance != "one") { - $ERROR('#1: __instance = new String("one"); __instance.concat("two"); __instance = new String("one"); __instance.concat("two"); __instance == "one". Actual: '+__instance); + $ERROR('#1: __instance = new String("one"); __instance.concat("two"); __instance = new String("one"); __instance.concat("two"); __instance == "one". Actual: ' + __instance); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js index 8d216792425308dcb9589475f58e8aff33159ef5..4fb246b17dd9ec0889591f6843ef51971ad26ecf 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js @@ -9,14 +9,18 @@ es5id: 15.5.4.6_A4_T1 description: Override toString function ---*/ -var __instance = {toString:function(){return "one"}}; +var __instance = { + toString: function() { + return "one" + } +}; __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.concat("two",x) !== "onetwoundefined") { - $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: '+__instance.concat("two",x) ); +if (__instance.concat("two", x) !== "onetwoundefined") { + $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: ' + __instance.concat("two", x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js index 1e326035f945d71a02dfa46481cda90c12998574..d743b9a4594964c9886dedf2d17e6f24ca074b7d 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js @@ -9,21 +9,29 @@ es5id: 15.5.4.6_A4_T2 description: Override toString function onto function, that throw exception ---*/ -var __instance = {toString:function(){throw "intostring";}}; -var __obj = {toString:function(){throw "infirstarg";}}; +var __instance = { + toString: function() { + throw "intostring"; + } +}; +var __obj = { + toString: function() { + throw "infirstarg"; + } +}; __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - String.prototype.concat.call(__instance,__obj, notexist); + String.prototype.concat.call(__instance, __obj, notexist); $ERROR('#1: "String.prototype.concat.call(__instance,__obj, notexist)" lead to throwing exception'); } catch (e) { if (e !== "intostring") { - $ERROR('#1: e === "intostring". Actual: '+e ); + $ERROR('#1: e === "intostring". Actual: ' + e); } -} +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js index 4da0d1454984255e13ab863f7cd3fac190494547..f52f1a31e05999e727e596955e251f6d36ea341a 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.concat.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.concat.prototype !== undefined) { - $ERROR('#1: String.prototype.concat.prototype === undefined. Actual: '+String.prototype.concat.prototype ); + $ERROR('#1: String.prototype.concat.prototype === undefined. Actual: ' + String.prototype.concat.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js index bfb422a43dcc35ad8208ee5fb9e53f400d0cdc40..9ff301ab0aafffa8f156ea39529b3ef54ef61f9e 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.concat; "__instance = new __FACTORY" lead throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js index 51e74575b7118f1fcdb498a5990d7da69090bc3d..c8613d934b0d3878f53a33737d2a3995e9bd7a3c 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.concat.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -21,7 +21,7 @@ if (!(String.prototype.concat.hasOwnProperty('length'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.concat.propertyIsEnumerable('length')) { - $ERROR('#1: String.prototype.concat.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.concat.propertyIsEnumerable('length')); + $ERROR('#1: String.prototype.concat.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.concat.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,12 +30,12 @@ if (String.prototype.concat.propertyIsEnumerable('length')) { // CHECK#2 var count = 0; -for (var p in String.prototype.concat){ - if (p==="length") count++; +for (var p in String.prototype.concat) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count = 0; for (p in String.prototype.concat){ if (p==="length") count++;}; count === 0. Actual: '+count); + $ERROR('#2: count = 0; for (p in String.prototype.concat){ if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js index dbb079290061281d8626ad728053b142c47f4ba7..6e92461a81afe0aba8f84ea985d3455271b2468b 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.concat.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#0: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.concat.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.concat.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.concat.length; String.prototype.concat.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.concat.length; String.prototype.concat.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js index 3650972edd59f1bb99408fdad585274db7527ca5..1081b4e596b489a05020c0850365fd441cead59a 100644 --- a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js +++ b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T1.js @@ -12,7 +12,7 @@ description: Checking String.prototype.constructor ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.constructor !== String) { - $ERROR('#1: String.prototype.constructor === String. Actual: String.prototype.constructor ==='+String.prototype.constructor ); + $ERROR('#1: String.prototype.constructor === String. Actual: String.prototype.constructor ===' + String.prototype.constructor); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js index e3bf5290acb94ff3e9d8eaa1a58bbb3a3e962fdf..fbceb8735318e037b6b7889dd73d3d43a652cc5f 100644 --- a/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js +++ b/test/built-ins/String/prototype/constructor/S15.5.4.1_A1_T2.js @@ -15,8 +15,8 @@ var __instance = new __constr("choosing one"); ////////////////////////////////////////////////////////////////////////////// // CHECK#0 -if (__instance !="choosing one") { - $ERROR('#0: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance =="choosing one". Actual: __instance =='+__instance ); +if (__instance != "choosing one") { + $ERROR('#0: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance =="choosing one". Actual: __instance ==' + __instance); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__instance !="choosing one") { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (__instance.constructor !== String) { - $ERROR('#1: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance.constructor === String. Actual: __instance.constructor ==='+__instance.constructor ); + $ERROR('#1: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); __instance.constructor === String. Actual: __instance.constructor ===' + __instance.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,19 +32,19 @@ if (__instance.constructor !== String) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 if (!(String.prototype.isPrototypeOf(__instance))) { - $ERROR('#2: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); String.prototype.isPrototypeOf(__instance) return true. Actual: '+String.prototype.isPrototypeOf(__instance)); + $ERROR('#2: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); String.prototype.isPrototypeOf(__instance) return true. Actual: ' + String.prototype.isPrototypeOf(__instance)); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#3 -var __to_string_result = '[object '+ 'String' +']'; +var __to_string_result = '[object ' + 'String' + ']'; delete String.prototype.toString; if (__instance.toString() !== __to_string_result) { - $ERROR('#3: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); delete String.prototype.toString; __instance.toString() === __to_string_result. Actual: __instance.toString() ==='+__instance.toString()+' __to_string_result ==='+__to_string_result ); + $ERROR('#3: __constr = String.prototype.constructor; __instance = new __constr("choosing one"); delete String.prototype.toString; __instance.toString() === __to_string_result. Actual: __instance.toString() ===' + __instance.toString() + ' __to_string_result ===' + __to_string_result); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js index a5725856e05a3cce53f615550f4c7d4b21dd6f86..7ce937b592f5f1cc6bfb63543d43953a27984a96 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.indexOf.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#1: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.indexOf.length; -verifyNotWritable(String.prototype.indexOf, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.indexOf, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.indexOf.length !== __obj) { - $ERROR('#2: __obj = String.prototype.indexOf.length; String.prototype.indexOf.length = function(){return "shifted";}; String.prototype.indexOf.length === __obj. Actual: '+String.prototype.indexOf.length ); + $ERROR('#2: __obj = String.prototype.indexOf.length; String.prototype.indexOf.length = function(){return "shifted";}; String.prototype.indexOf.length === __obj. Actual: ' + String.prototype.indexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js index db610fbe190ed272030a962b669f54d5bf82d222..173f1b556051294191cd1e7cfad7a12f8d17b191 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.indexOf.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.indexOf.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.indexOf.hasOwnProperty("length") return true. Actual: '+String.prototype.indexOf.hasOwnProperty("length")); + $ERROR('#1: String.prototype.indexOf.hasOwnProperty("length") return true. Actual: ' + String.prototype.indexOf.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.indexOf.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.indexOf.length !== 1) { - $ERROR('#2: String.prototype.indexOf.length === 1. Actual: '+String.prototype.indexOf.length ); + $ERROR('#2: String.prototype.indexOf.length === 1. Actual: ' + String.prototype.indexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js index f3bc0fb9b144b42469b26f7d6bcc51341ba5ca87..ef3079ba4bfdea77e3bd701dae3a427c977f0338 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T1.js @@ -14,7 +14,7 @@ __instance.indexOf = String.prototype.indexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.indexOf(true, false) !== 0) { - $ERROR('#1: __instance = new Object(true); __instance.indexOf = String.prototype.indexOf; __instance.indexOf(true, false) === 0. Actual: '+__instance.indexOf(true, false) ); + $ERROR('#1: __instance = new Object(true); __instance.indexOf = String.prototype.indexOf; __instance.indexOf(true, false) === 0. Actual: ' + __instance.indexOf(true, false)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js index 16c1d275b47d1413573b17487e16e1f26cde204c..52c00560539acb3395116f59c206870a99bf9356 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js @@ -7,15 +7,23 @@ es5id: 15.5.4.7_A1_T10 description: Call indexOf(searchString, position) function with object arguments ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return true;}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return true; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.indexOf(__obj, __obj2) !== 3) { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABB\u0041BABAB"; __str.indexOf(__obj, __obj2) === 3. Actual: '+__str.indexOf(__obj, __obj2) ); - } +if (__str.indexOf(__obj, __obj2) !== 3) { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABB\u0041BABAB"; __str.indexOf(__obj, __obj2) === 3. Actual: ' + __str.indexOf(__obj, __obj2)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js index b641ced381a9fea25ae83e2ccc559a95a6dff35a..145b6519c5997c7e468a6104d6c3cda812b1fda0 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js @@ -7,12 +7,12 @@ es5id: 15.5.4.7_A1_T12 description: Argument is string, and instance is array of strings ---*/ -var __instance = new Array('new','zoo','revue'); +var __instance = new Array('new', 'zoo', 'revue'); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.indexOf('new') !== 0) { - $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'new\') === 0. Actual: '+__instance.indexOf('new') ); + $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'new\') === 0. Actual: ' + __instance.indexOf('new')); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,7 +20,7 @@ if (__instance.indexOf('new') !== 0) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__instance.indexOf('zoo') !== 1) { - $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'zoo\') === 1. Actual: '+__instance.indexOf('zoo') ); + $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.indexOf(\'zoo\') === 1. Actual: ' + __instance.indexOf('zoo')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js index c20692bb278acb9c1a091c72382b61ef3ec23703..15645c34564f31e0f0414d4f8158f6db97a1a371 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js @@ -15,8 +15,12 @@ __instance.indexOf = String.prototype.indexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.indexOf = String.prototype.indexOf; __instance.indexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: '+__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) ); +if (__instance.indexOf("A" !== "\u0041", function() { + return 0; + }(), null) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.indexOf = String.prototype.indexOf; __instance.indexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: ' + __instance.indexOf("A" !== "\u0041", function() { + return 0; + }(), null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js index d9f26b932a5cae70ff942e7eb492d713f985dbc3..fc998a006f40faa93130c505f759fab8ef2d48cd 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString() evaluates to "" indexOf() evaluates to indexOf("",0) if ("".indexOf() !== -1) { - $ERROR('#1: "".indexOf() === -1. Actual: '+("".indexOf()) ); + $ERROR('#1: "".indexOf() === -1. Actual: ' + ("".indexOf())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js index 61d8e70371ed80dc96864aa46c5ae1e365dc9994..0a189320d085083db0924ad2f159b903ace5035b 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" indexOf(null) evaluates to indexOf("",0) -if (function(){return "gnulluna"}().indexOf(null) !== 1) { - $ERROR('#1: function(){return "gnulluna"}().indexOf(null) === 1. Actual: '+function(){return "gnulluna"}().indexOf(null) ); +if (function() { + return "gnulluna" + }().indexOf(null) !== 1) { + $ERROR('#1: function(){return "gnulluna"}().indexOf(null) === 1. Actual: ' + function() { + return "gnulluna" + }().indexOf(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js index 4279d8f7e9506c74189d8df6cd134c9e9c981d53..8e7b5e3e4c64bdc3cbd1fbd055c73f6061a039fa 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "" indexOf(undefined) evaluates to indexOf("",0) if (new String("undefined").indexOf(x) !== 0) { - $ERROR('#1: var x; new String("undefined").indexOf(x) === 0. Actual: '+new String("undefined").indexOf(x) ); + $ERROR('#1: var x; new String("undefined").indexOf(x) === 0. Actual: ' + new String("undefined").indexOf(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js index 485239896059e2f7b27f1f7f19203458817cf0f6..4eee2242f6b8df91f03f44d2dfe16903d62b4e9d 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T7.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined",0) if (String("undefined").indexOf(undefined) !== 0) { - $ERROR('#1: String("undefined").indexOf(undefined) === 0. Actual: '+String("undefined").indexOf(undefined) ); + $ERROR('#1: String("undefined").indexOf(undefined) === 0. Actual: ' + String("undefined").indexOf(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js index 1232528e7fa7f769724741cc27fda5637e30262b..eae58fcbbb859d00255408ae1b7bea5c2986f0a0 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js @@ -9,13 +9,15 @@ description: > of string object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" indexOf(void 0) evaluates to indexOf("undefined") if (String(__obj).indexOf(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).indexOf(void 0) === 0. Actual: '+String(__obj).indexOf(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).indexOf(void 0) === 0. Actual: ' + String(__obj).indexOf(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js index 69dd4c03926fee7be396c8ab48212e1680f1ffac..49f56f4d8e2f78dcdf1b448b942ce89f13953e92 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js @@ -10,15 +10,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined") -if (new String(__obj).indexOf(function(){}()) !== 0) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).indexOf(function(){}()) === 0. Actual: '+new String(__obj).indexOf(function(){}()) ); +if (new String(__obj).indexOf(function() {}()) !== 0) { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).indexOf(function(){}()) === 0. Actual: ' + new String(__obj).indexOf(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js index a2e046ce245d2a44a27923b2818a0aafb2735e09..62aecd0719cc02fce22ede61d9c679ef00fd4afb 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T1.js @@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab") and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("abcd".indexOf("abcdab")!==-1) { - $ERROR('#1: "abcd".indexOf("abcdab")===-1. Actual: '+("abcd".indexOf("abcdab"))); +if ("abcd".indexOf("abcdab") !== -1) { + $ERROR('#1: "abcd".indexOf("abcdab")===-1. Actual: ' + ("abcd".indexOf("abcdab"))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js index f342413d75f966b5af1d5d7bb5481684c9ab65c4..58362dbdd8f0e0b1f091790cf19d74f602a78265 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T2.js @@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",0) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("abcd".indexOf("abcdab",0)!==-1) { - $ERROR('#1: "abcd".indexOf("abcdab",0)===-1. Actual: '+("abcd".indexOf("abcdab",0))); +if ("abcd".indexOf("abcdab", 0) !== -1) { + $ERROR('#1: "abcd".indexOf("abcdab",0)===-1. Actual: ' + ("abcd".indexOf("abcdab", 0))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js index f7e1100b8c44829486a20e420e22c8e705716132..cff1c33cb5b616e7d06eddcd9f805ae68144c2b2 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T3.js @@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",99) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("abcd".indexOf("abcdab",99)!==-1) { - $ERROR('#1: "abcd".indexOf("abcdab",99)===-1. Actual: '+("abcd".indexOf("abcdab",99))); +if ("abcd".indexOf("abcdab", 99) !== -1) { + $ERROR('#1: "abcd".indexOf("abcdab",99)===-1. Actual: ' + ("abcd".indexOf("abcdab", 99))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js index bf82c55e64125ddf2ff3d817d6ac49ce8f5d01ca..f39afbeec05ac5f7bf5f4f957fad40df9663f041 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A2_T4.js @@ -9,8 +9,8 @@ description: Call "abcd".indexOf("abcdab",NaN) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("abcd".indexOf("abcdab",NaN)!==-1) { - $ERROR('#1: "abcd".indexOf("abcdab",NaN)===-1. Actual: '+("abcd".indexOf("abcdab",NaN))); +if ("abcd".indexOf("abcdab", NaN) !== -1) { + $ERROR('#1: "abcd".indexOf("abcdab",NaN)===-1. Actual: ' + ("abcd".indexOf("abcdab", NaN))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js index 3e59d66f642a31df62186475b7afa04e7a57ed54..133abbee31a601b3d369c482dc2ee3a0320ec471 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T1.js @@ -11,8 +11,8 @@ description: Call "$$abcdabcd".indexOf("ab",NaN) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("$$abcdabcd".indexOf("ab",NaN)!==2) { - $ERROR('#1: "$$abcdabcd".indexOf("ab",NaN)===2. Actual: '+("$$abcdabcd".indexOf("ab",NaN))); +if ("$$abcdabcd".indexOf("ab", NaN) !== 2) { + $ERROR('#1: "$$abcdabcd".indexOf("ab",NaN)===2. Actual: ' + ("$$abcdabcd".indexOf("ab", NaN))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js index 359661a10c5c8496bd71e6568aa93a39fe5d7d29..b5921b250aecd6c7cfabc14b97f29093b3010859 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T2.js @@ -11,8 +11,8 @@ description: Call "$$abcdabcd".indexOf("ab",eval("\"-99\"")) and check result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("$$abcdabcd".indexOf("ab",eval("\"-99\""))!==2) { - $ERROR('#1: "$$abcdabcd".indexOf("ab",eval("\\"-99\\""))===2. Actual: '+("$$abcdabcd".indexOf("ab",eval("\"-99\"")))); +if ("$$abcdabcd".indexOf("ab", eval("\"-99\"")) !== 2) { + $ERROR('#1: "$$abcdabcd".indexOf("ab",eval("\\"-99\\""))===2. Actual: ' + ("$$abcdabcd".indexOf("ab", eval("\"-99\"")))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js index 9a17c22def32d4f1bb5f39ce693ec229a57807ce..192b7edc91d85c48af7b912701c7c08148a917c5 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js @@ -13,8 +13,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("$$abcdabcd".indexOf("ab", function(){return -Infinity;}())!==2) { - $ERROR('#1: "$$abcdabcd".indexOf("ab", function(){return -Infinity;}())===2. Actual: '+("$$abcdabcd".indexOf("ab", function(){return -Infinity;}()))); +if ("$$abcdabcd".indexOf("ab", function() { + return -Infinity; + }()) !== 2) { + $ERROR('#1: "$$abcdabcd".indexOf("ab", function(){return -Infinity;}())===2. Actual: ' + ("$$abcdabcd".indexOf("ab", function() { + return -Infinity; + }()))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js index ae24f56f043e3b6bec2c6856f5094d3f4819a137..eca493a173aace57078c19bf2dcc45b3dfe1b209 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js @@ -9,19 +9,27 @@ es5id: 15.5.4.7_A4_T1 description: Override toString and valueOf functions, valueOf throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js index 85f5aa2988ac4ec053b93c58352ee576e530fd38..ee769a9ae6e7bc25211d3cab0e7c257d124bf175 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js @@ -11,19 +11,30 @@ description: > exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js index 2374c67929512e1ce2b9a1da86771e85bd022a08..6bf5f20465e786a13bf28ea2dc34e302eb960917 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js @@ -9,13 +9,24 @@ es5id: 15.5.4.7_A4_T3 description: Override toString and valueOf functions ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + return "1"; + } +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041BABAB".indexOf(__obj, __obj2)!==3) { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}; "ABB\\u0041BABAB".indexOf(__obj, __obj2)===3. Actual: '+("ABB\u0041BABAB".indexOf(__obj, __obj2))); +if ("ABB\u0041BABAB".indexOf(__obj, __obj2) !== 3) { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}; "ABB\\u0041BABAB".indexOf(__obj, __obj2)===3. Actual: ' + ("ABB\u0041BABAB".indexOf(__obj, __obj2))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js index 59a05c692bf94f0dbc6372f8c9d7a753ff4f5957..578eb5c0971c1bea402197e17f08e2052b05a44e 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js @@ -9,20 +9,28 @@ es5id: 15.5.4.7_A4_T4 description: Override toString and valueOf functions, and they throw exceptions ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.indexOf=String.prototype.indexOf; +Number.prototype.indexOf = String.prototype.indexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __instance.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js index 97ab2def6f79b01aec2244d99ce666da4f3e73ea..d40f319cec54e15dfa1456c112d6f9d133fb1787 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js @@ -11,9 +11,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.indexOf = String.prototype.indexOf; @@ -25,15 +36,19 @@ try { var x = __instance.indexOf(__obj, __obj2); $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js index eef162fed431e8ed60922755b5359f71c549d66d..4823a08d110ad2e6c66a0539eb127bede363b5e5 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T1 description: Search one symbol from begin of string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for (var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { - if (TEST_STRING.indexOf( String.fromCharCode(i), 0 )!==k) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), 0 )==='+k+'. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), 0 )); - } +for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) { + if (TEST_STRING.indexOf(String.fromCharCode(i), 0) !== k) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), 0 )===' + k + '. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), 0)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js index b6f09b64c68240adb5705292d72983e445ea5870..a66021f9ec030268a4a86e7238456e81710cd1ff 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T2.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T2 description: Search one symbol from it`s position in the string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for (var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { - if (TEST_STRING.indexOf( String.fromCharCode(i), k )!==k) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), '+k+' )==='+k+'. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), k )); - } +for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) { + if (TEST_STRING.indexOf(String.fromCharCode(i), k) !== k) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), ' + k + ' )===' + k + '. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), k)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js index f13ef484756f8fb2e1de1939c40982dd815d2321..f5075e15c8475529ab078c3d78036a532ce4a258 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T3.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T3 description: Search one symbol from it`s position+1 in the string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for ( var k = 0, i = 0x0020; i < 0x007e; i++, k++ ) { - if (TEST_STRING.indexOf( String.fromCharCode(i), k+1 ) !== -1) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( String.fromCharCode('+i+'), '+(k+1)+' )===-1. Actual: '+TEST_STRING.indexOf( String.fromCharCode(i), k+1 )); - } +for (var k = 0, i = 0x0020; i < 0x007e; i++, k++) { + if (TEST_STRING.indexOf(String.fromCharCode(i), k + 1) !== -1) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( String.fromCharCode(' + i + '), ' + (k + 1) + ' )===-1. Actual: ' + TEST_STRING.indexOf(String.fromCharCode(i), k + 1)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js index 1d89cb311e671809389ed3927507071e1d803594..a7f3ceb92d4833112964c11ecd8cda87f9d47411 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T4.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T4 description: Search substring from begin of string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for (var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { - if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), 0 )!==k) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), 0 )==='+k+'. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), 0 )); - } +for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) { + if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), 0) !== k) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), 0 )===' + k + '. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), 0)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js index 95262eb4e4c53e1b4d87ba9876a15a188c468968..8ea838dc43403766595666e8beadf22bf6565adb 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T5.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T5 description: Search substring from it`s position in the string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for ( var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { - if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1)+ String.fromCharCode(i+2)),k ) !==k) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), '+k+' )==='+k+'. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), k )); - } +for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) { + if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k) !== k) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), ' + k + ' )===' + k + '. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js index c8456ed37b8276a5a47f8c328871e1f59e601bfd..9e82edeab1dee3b47f297454f95d1bd541342ffc 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T6.js @@ -7,14 +7,14 @@ es5id: 15.5.4.7_A5_T6 description: Search substring from it`s position+1 in the string ---*/ -var TEST_STRING = new String( " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" ); +var TEST_STRING = new String(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -for (var k = 0, i = 0x0020; i < 0x007d; i++, k++ ) { - if (TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1)+ String.fromCharCode(i+2)), k+1 )!== -1) { - $ERROR('#'+(i-0x0020)+': TEST_STRING.indexOf( (String.fromCharCode('+i+')+ String.fromCharCode('+(i+1)+') + String.fromCharCode('+(i+2)+')), '+(k+1)+' )=== -1. Actual: '+TEST_STRING.indexOf( (String.fromCharCode(i)+ String.fromCharCode(i+1) + String.fromCharCode(i+2)), k+1 )); - } +for (var k = 0, i = 0x0020; i < 0x007d; i++, k++) { + if (TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k + 1) !== -1) { + $ERROR('#' + (i - 0x0020) + ': TEST_STRING.indexOf( (String.fromCharCode(' + i + ')+ String.fromCharCode(' + (i + 1) + ') + String.fromCharCode(' + (i + 2) + ')), ' + (k + 1) + ' )=== -1. Actual: ' + TEST_STRING.indexOf((String.fromCharCode(i) + String.fromCharCode(i + 1) + String.fromCharCode(i + 2)), k + 1)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js index 406153de78b3558c625217896d4f44cbcc75d7db..296e90732ee7617c2323e877e580ec46d1121ecc 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.indexOf.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.indexOf.prototype !== undefined) { - $ERROR('#1: String.prototype.indexOf.prototype === undefined. Actual: '+String.prototype.indexOf.prototype ); + $ERROR('#1: String.prototype.indexOf.prototype === undefined. Actual: ' + String.prototype.indexOf.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js index b1bdd51e0a5fb8a40feba06b3424990253c0bdd6..11b58ce8ee3afdc73d4ab316d99fb4fbc6545cd1 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); + $ERROR('#1.2: var __FACTORY = String.prototype.indexOf; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js index 4c5256a8166e95623d26e76a970a9537ec7993ae..41c2e2d8de3296bdaad8070a807f66daaceb6b2c 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.indexOf.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.indexOf.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.indexOf){ - if (p==="length") count++; +for (var p in String.prototype.indexOf) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.indexOf){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.indexOf){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js index 71a9ebd06ce7762d643d77dafd9549d5f0c16229..3ea088e2cf604a1d8592d2c3490a1d9c7a14f318 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.indexOf.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#0: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.indexOf.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.indexOf.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.indexOf.length; String.prototype.indexOf.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.indexOf.length; String.prototype.indexOf.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js b/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js index c4e98a007186f66ac4b214e2a6cdbe2ae23dbd92..9a0f3da50919d84edcc9b46ca3dab1e44e81f732 100644 --- a/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js +++ b/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js @@ -11,29 +11,29 @@ features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ assert.throws(TypeError, function() { - "".indexOf("", 0n); + "".indexOf("", 0 n); }, "ToInteger: BigInt => TypeError"); assert.throws(TypeError, function() { - "".indexOf("", Object(0n)); + "".indexOf("", Object(0 n)); }, "ToInteger: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { "".indexOf("", { [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } }); }, "ToInteger: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { "".indexOf("", { valueOf: function() { - return 0n; + return 0 n; } }); }, "ToInteger: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { "".indexOf("", { toString: function() { - return 0n; + return 0 n; } }); }, "ToInteger: toString => BigInt => TypeError"); diff --git a/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js b/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js index ea0b4e2a5c245fbd6fb3717a2cf3409a4fa76328..29cab5f269f2f266b6a05d882d8f18697995014d 100644 --- a/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js +++ b/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js @@ -10,22 +10,22 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue("__0__".indexOf(0n), 2, "ToString: BigInt to String"); -assert.sameValue("__0__".indexOf(Object(0n)), 2, +assert.sameValue("__0__".indexOf(0 n), 2, "ToString: BigInt to String"); +assert.sameValue("__0__".indexOf(Object(0 n)), 2, "ToString: unbox object with internal slot => BigInt to String"); assert.sameValue("__0__".indexOf({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } }), 2, "ToString: @@toPrimitive => BigInt to String"); assert.sameValue("__0__".indexOf({ valueOf: function() { - return 0n; + return 0 n; }, toString: null }), 2, "ToString: valueOf => BigInt to String"); assert.sameValue("__0__".indexOf({ toString: function() { - return 0n; + return 0 n; } }), 2, "ToString: toString => BigInt to String"); diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js index cf5a46c38025db9f49bcae5fed7a816a909bf1ee..ea24cf5f29e6342a4bee0b416775c3131290b7b6 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.lastIndexOf.length; -verifyNotWritable(String.prototype.lastIndexOf, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.lastIndexOf, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.lastIndexOf.length !== __obj) { - $ERROR('#2: __obj = String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.length = function(){return "shifted";}; String.prototype.lastIndexOf.length === __obj. Actual: '+String.prototype.lastIndexOf.length ); + $ERROR('#2: __obj = String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.length = function(){return "shifted";}; String.prototype.lastIndexOf.length === __obj. Actual: ' + String.prototype.lastIndexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js index 4ffaeb11f9a187fa8a7b0532cb3338648edba984..e3004289516a0b9bdbc2055e991bd58687c8f373 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.lastIndexOf.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.lastIndexOf.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty("length") return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty("length")); + $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty("length") return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.lastIndexOf.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.lastIndexOf.length !== 1) { - $ERROR('#2: String.prototype.lastIndexOf.length === 1. Actual: '+String.prototype.lastIndexOf.length ); + $ERROR('#2: String.prototype.lastIndexOf.length === 1. Actual: ' + String.prototype.lastIndexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js index 9c97a086ebc6c51d5cb1fc3a56eb938d1578798d..43ef356572adad76c5343df948d600c16d1d9be0 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T1.js @@ -14,7 +14,7 @@ __instance.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.lastIndexOf(true, false) !== 0) { - $ERROR('#1: __instance = new Object(true); __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf(true, false) === 0. Actual: '+__instance.lastIndexOf(true, false) ); + $ERROR('#1: __instance = new Object(true); __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf(true, false) === 0. Actual: ' + __instance.lastIndexOf(true, false)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js index afc3bc4b8e38436aaf4f6398024182c333c5631a..4ee4bf2d62eb8ec6d3ef8ee7c0aebd4389e51e0f 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js @@ -9,15 +9,23 @@ description: > arguments ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return NaN;}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return NaN; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.lastIndexOf(__obj, __obj2) !== 7) { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return NaN;}}; var __str = "ABB\u0041BABAB";lastIndexOf(__obj, __obj2) === 7. Actual: '+__str.lastIndexOf(__obj, __obj2) ); - } +if (__str.lastIndexOf(__obj, __obj2) !== 7) { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return NaN;}}; var __str = "ABB\u0041BABAB";lastIndexOf(__obj, __obj2) === 7. Actual: ' + __str.lastIndexOf(__obj, __obj2)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js index 293237feb92197b2add5c90fef557d48b513a051..ddb271087d3458cb78d313f92eb7cd73e31fe926 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js @@ -7,12 +7,12 @@ es5id: 15.5.4.8_A1_T12 description: Argument is string, and instance is array of strings ---*/ -var __instance = new Array('new','zoo','revue'); +var __instance = new Array('new', 'zoo', 'revue'); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.lastIndexOf('new') !== 0) { - $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'new\') === 0. Actual: '+__instance.lastIndexOf('new') ); + $ERROR('#1: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'new\') === 0. Actual: ' + __instance.lastIndexOf('new')); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,7 +20,7 @@ if (__instance.lastIndexOf('new') !== 0) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__instance.lastIndexOf('zoo') !== 1) { - $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'zoo\') === 1. Actual: '+__instance.lastIndexOf('zoo') ); + $ERROR('#2: __instance = new Array(\'new\',\'zoo\',\'revue\'); __instance.lastIndexOf(\'zoo\') === 1. Actual: ' + __instance.lastIndexOf('zoo')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js index 27072b7b7314bc3a7792fe1f1d4bd4564f06de95..41a74156b5c07421d9bdb7f7953836a654275632 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js @@ -15,8 +15,12 @@ __instance.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: '+__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) ); +if (__instance.lastIndexOf("A" !== "\u0041", function() { + return 0; + }(), null) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: ' + __instance.lastIndexOf("A" !== "\u0041", function() { + return 0; + }(), null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js index ebed93a09401367c34f22f368e667cc9c3d2b82f..0c91d1d2560999117090aaf8df0bcc7ad8d6a8bf 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString() evaluates to "" lastIndexOf() evaluates to lastIndexOf("",0) if ("".lastIndexOf() !== -1) { - $ERROR('#1: "".lastIndexOf() === -1. Actual: '+("".lastIndexOf()) ); + $ERROR('#1: "".lastIndexOf() === -1. Actual: ' + ("".lastIndexOf())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js index 69ab01061238032d7b817ca4fd096301c9e2be6f..42cd7e1b2bfc563a267c275b9ae8011ef870045f 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" lastIndexOf(null) evaluates to lastIndexOf("",0) -if (function(){return "gnullunazzgnull"}().lastIndexOf(null) !== 11) { - $ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: '+function(){return "gnullunazzgnull"}().lastIndexOf(null) ); +if (function() { + return "gnullunazzgnull" + }().lastIndexOf(null) !== 11) { + $ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: ' + function() { + return "gnullunazzgnull" + }().lastIndexOf(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js index 9517f5e65c670cbaa8f7a608eebebd560ddb7c4d..d151e20e3215b72461e526ff902d71a938a8f4ee 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "" lastIndexOf(undefined) evaluates to lastIndexOf("",0) if (new String("undefined").lastIndexOf(x) !== 0) { - $ERROR('#1: var x; new String("undefined").lastIndexOf(x) === 0. Actual: '+new String("undefined").lastIndexOf(x) ); + $ERROR('#1: var x; new String("undefined").lastIndexOf(x) === 0. Actual: ' + new String("undefined").lastIndexOf(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js index a68a8d5abcaed929833da1a651d6d01e26267932..b7c047e157f1ae0b13eb5d2e4d97cbfd0abfb400 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T7.js @@ -13,7 +13,7 @@ description: > //CHECK#1 //since ToString(undefined) evaluates to "undefined" lastIndexOf(undefined) evaluates to lastIndexOf("undefined",0) if (String("undefined").lastIndexOf(undefined) !== 0) { - $ERROR('#1: String("undefined").lastIndexOf(undefined) === 0. Actual: '+String("undefined").lastIndexOf(undefined) ); + $ERROR('#1: String("undefined").lastIndexOf(undefined) === 0. Actual: ' + String("undefined").lastIndexOf(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js index 29068e54e89f4b62ff0cfa5199d7b1014a624633..ffa75b06f24ddf94b95e04e3f7ba1c0a82defa29 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js @@ -9,13 +9,15 @@ description: > argument of string object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" lastIndexOf(void 0) evaluates to lastIndexOf("undefined",0) if (String(__obj).lastIndexOf(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).lastIndexOf(void 0) === 0. Actual: '+String(__obj).lastIndexOf(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).lastIndexOf(void 0) === 0. Actual: ' + String(__obj).lastIndexOf(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js index ff3b8527c7e1a8e5e1a8df7d01c746f80286dd09..0eec7b4ce7271d055b5064e458421ab1054f0d66 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js @@ -10,15 +10,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined") -if (new String(__obj).lastIndexOf(function(){}()) !== 0) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).lastIndexOf(function(){}()) === 0. Actual: '+new String(__obj).lastIndexOf(function(){}()) ); +if (new String(__obj).lastIndexOf(function() {}()) !== 0) { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).lastIndexOf(function(){}()) === 0. Actual: ' + new String(__obj).lastIndexOf(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js index 5f71a0eaf89fbcf5dba2f7dd49d46e2c22e47150..51e9c2a20957d3aa4d30e2f4d62e5fdb4e6ff5c3 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js @@ -9,19 +9,27 @@ es5id: 15.5.4.8_A4_T1 description: Override toString and valueOf functions, valueOf throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js index fec80696c1d85257270e475f541eba4873100ea1..6df1e98605c0a1abbeef09ba42ebdca0de2c0239 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js @@ -11,19 +11,30 @@ description: > exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js index 1d92ea6d1d9c6ae77f85220feeb73bbee5b30940..39beb28b8d147c0263901d68cfd43d9ddf1b8f28 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js @@ -9,13 +9,22 @@ es5id: 15.5.4.8_A4_T3 description: Override toString and valueOf functions ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() {} +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)!==7) { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){}}; "ABB\\u0041BABAB".lastIndexOf(__obj, __obj2)===7. Actual: '+("ABB\u0041BABAB".lastIndexOf(__obj, __obj2))); +if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2) !== 7) { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){}}; "ABB\\u0041BABAB".lastIndexOf(__obj, __obj2)===7. Actual: ' + ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js index bd1e7613f64b8c7832af3f1b0e1829b777c85077..232fc191ccda9279142f0835580baa3ecb1f9e0e 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js @@ -9,20 +9,28 @@ es5id: 15.5.4.8_A4_T4 description: Override toString and valueOf functions, and they throw exceptions ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.lastIndexOf=String.prototype.lastIndexOf; +Number.prototype.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __instance.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js index 08f5fed5b55b59419564894e9672911135f66b68..b1ea6070fd27133e5d5ac584ca6f3595f3fa5c0f 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js @@ -11,9 +11,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.lastIndexOf = String.prototype.lastIndexOf; @@ -25,15 +36,19 @@ try { var x = __instance.lastIndexOf(__obj, __obj2); $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js index 96170a0ca03bc88b645a95561e689a3a0392341c..49063652b44346a9adc9adddeda792dd896eb81c 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.lastIndexOf.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.lastIndexOf.prototype !== undefined) { - $ERROR('#1: String.prototype.lastIndexOf.prototype === undefined. Actual: '+String.prototype.lastIndexOf.prototype ); + $ERROR('#1: String.prototype.lastIndexOf.prototype === undefined. Actual: ' + String.prototype.lastIndexOf.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js index 31aa5fcd8e7fb6e83f735d09bd25339af56b2768..bbe092d514c93cc360476614d887109c9ad931a5 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,21 +23,21 @@ if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { ////////////////////////////////////////////////////////////////////////////// // CHECK#1 if (String.prototype.lastIndexOf.propertyIsEnumerable('length')) { - $ERROR('#1: String.prototype.lastIndexOf.propertyIsEnumerable(\'length\') return false. Actual: '+String.prototype.lastIndexOf.propertyIsEnumerable('length')); + $ERROR('#1: String.prototype.lastIndexOf.propertyIsEnumerable(\'length\') return false. Actual: ' + String.prototype.lastIndexOf.propertyIsEnumerable('length')); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.lastIndexOf){ - if (p==="length") count++; +for (var p in String.prototype.lastIndexOf) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.lastIndexOf){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.lastIndexOf){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js index 61be576d12d5bc205314665b7ba00fc932262573..44fb7852e7ed4f00d4df155bb7ed2c86d5ed2aea 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#0: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.lastIndexOf.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.lastIndexOf.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js b/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js index 06517ec3a50605e77dba089b348a2451fe64ddb2..e1e5cdd26236cdb57e1f1c00595231159e4a422b 100644 --- a/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js +++ b/test/built-ins/String/prototype/localeCompare/15.5.4.9_3.js @@ -13,11 +13,11 @@ var thisValues = ["a", "t", "u", "undefined", "UNDEFINED", "nicht definiert", "x var i; for (i = 0; i < thisValues.length; i++) { - var thisValue = thisValues[i]; - if (thisValue.localeCompare() !== thisValue.localeCompare(undefined)) { - $ERROR("String.prototype.localeCompare does not treat missing 'that' argument as undefined."); - } - if (thisValue.localeCompare(undefined) !== thisValue.localeCompare("undefined")) { - $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\"."); - } + var thisValue = thisValues[i]; + if (thisValue.localeCompare() !== thisValue.localeCompare(undefined)) { + $ERROR("String.prototype.localeCompare does not treat missing 'that' argument as undefined."); + } + if (thisValue.localeCompare(undefined) !== thisValue.localeCompare("undefined")) { + $ERROR("String.prototype.localeCompare does not treat undefined 'that' argument as \"undefined\"."); + } } diff --git a/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js b/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js index 365a805954942c9873a474a306774a8d32d7a7df..4123b624fa2b798afb9ebcf8d4d13ad5151e7455 100644 --- a/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js +++ b/test/built-ins/String/prototype/localeCompare/15.5.4.9_CE.js @@ -14,71 +14,71 @@ author: Norbert Lindenberg // pairs with characters not in Unicode 3.0 are commented out var pairs = [ - // example from Unicode 5.0, section 3.7, definition D70 - ["o\u0308", "ö"], - // examples from Unicode 5.0, chapter 3.11 - ["ä\u0323", "a\u0323\u0308"], - ["a\u0308\u0323", "a\u0323\u0308"], - ["ạ\u0308", "a\u0323\u0308"], - ["ä\u0306", "a\u0308\u0306"], - ["ă\u0308", "a\u0306\u0308"], - // example from Unicode 5.0, chapter 3.12 - ["\u1111\u1171\u11B6", "퓛"], - // examples from UTS 10, Unicode Collation Algorithm - ["Å", "Å"], - ["Å", "A\u030A"], - ["x\u031B\u0323", "x\u0323\u031B"], - ["ự", "ụ\u031B"], - ["ự", "u\u031B\u0323"], - ["ự", "ư\u0323"], - ["ự", "u\u0323\u031B"], - // examples from UAX 15, Unicode Normalization Forms - ["Ç", "C\u0327"], - ["q\u0307\u0323", "q\u0323\u0307"], - ["가", "\u1100\u1161"], - ["Å", "A\u030A"], - ["Ω", "Ω"], - ["Å", "A\u030A"], - ["ô", "o\u0302"], - ["ṩ", "s\u0323\u0307"], - ["ḋ\u0323", "d\u0323\u0307"], - ["ḋ\u0323", "ḍ\u0307"], - ["q\u0307\u0323", "q\u0323\u0307"], - // examples involving supplementary characters from UCD NormalizationTest.txt -// ["\uD834\uDD5E", "\uD834\uDD57\uD834\uDD65"], -// ["\uD87E\uDC2B", "北"] + // example from Unicode 5.0, section 3.7, definition D70 + ["o\u0308", "ö"], + // examples from Unicode 5.0, chapter 3.11 + ["ä\u0323", "a\u0323\u0308"], + ["a\u0308\u0323", "a\u0323\u0308"], + ["ạ\u0308", "a\u0323\u0308"], + ["ä\u0306", "a\u0308\u0306"], + ["ă\u0308", "a\u0306\u0308"], + // example from Unicode 5.0, chapter 3.12 + ["\u1111\u1171\u11B6", "퓛"], + // examples from UTS 10, Unicode Collation Algorithm + ["Å", "Å"], + ["Å", "A\u030A"], + ["x\u031B\u0323", "x\u0323\u031B"], + ["ự", "ụ\u031B"], + ["ự", "u\u031B\u0323"], + ["ự", "ư\u0323"], + ["ự", "u\u0323\u031B"], + // examples from UAX 15, Unicode Normalization Forms + ["Ç", "C\u0327"], + ["q\u0307\u0323", "q\u0323\u0307"], + ["가", "\u1100\u1161"], + ["Å", "A\u030A"], + ["Ω", "Ω"], + ["Å", "A\u030A"], + ["ô", "o\u0302"], + ["ṩ", "s\u0323\u0307"], + ["ḋ\u0323", "d\u0323\u0307"], + ["ḋ\u0323", "ḍ\u0307"], + ["q\u0307\u0323", "q\u0323\u0307"], + // examples involving supplementary characters from UCD NormalizationTest.txt + // ["\uD834\uDD5E", "\uD834\uDD57\uD834\uDD65"], + // ["\uD87E\uDC2B", "北"] ]; // Detect whether we are using locale-sensitive comparisons or a bitwise comparison -if("a".localeCompare("Z") < 0) { - // We are using locale-sensitive comparison, so all pairs should be canonically equivalent - var i; - for (i = 0; i < pairs.length; i++) { - var pair = pairs[i]; - if (pair[0].localeCompare(pair[1]) !== 0) { - $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) + - ") ≠ " + pair[1] + " (" + toU(pair[1]) + ")."); - } +if ("a".localeCompare("Z") < 0) { + // We are using locale-sensitive comparison, so all pairs should be canonically equivalent + var i; + for (i = 0; i < pairs.length; i++) { + var pair = pairs[i]; + if (pair[0].localeCompare(pair[1]) !== 0) { + $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) + + ") ≠ " + pair[1] + " (" + toU(pair[1]) + ")."); } + } } else { - // We are using bitwise comparison, so all pairs should not be equivalent - var i; - for (i = 0; i < pairs.length; i++) { - var pair = pairs[i]; - if (pair[0].localeCompare(pair[1]) === 0) { - $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) + - ") = " + pair[1] + " (" + toU(pair[1]) + ")."); - } + // We are using bitwise comparison, so all pairs should not be equivalent + var i; + for (i = 0; i < pairs.length; i++) { + var pair = pairs[i]; + if (pair[0].localeCompare(pair[1]) === 0) { + $ERROR("String.prototype.localeCompare considers " + pair[0] + " (" + toU(pair[0]) + + ") = " + pair[1] + " (" + toU(pair[1]) + ")."); } + } } function toU(s) { - var result = ""; - var escape = "\\u0000"; - var i; - for (i = 0; i < s.length; i++) { - var hex = s.charCodeAt(i).toString(16); - result += escape.substring(0, escape.length - hex.length) + hex; - } - return result; + var result = ""; + var escape = "\\u0000"; + var i; + for (i = 0; i < s.length; i++) { + var hex = s.charCodeAt(i).toString(16); + result += escape.substring(0, escape.length - hex.length) + hex; + } + return result; } diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js index 7af411b707cc1b70983fbf4aa289ea466322dd92..f50b0ff8dbe054b00f88a4c5183dd329728a9a2c 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.localeCompare.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#1: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.localeCompare.length; -verifyNotWritable(String.prototype.localeCompare, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.localeCompare, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.localeCompare.length !== __obj) { - $ERROR('#2: __obj = String.prototype.localeCompare.length; String.prototype.localeCompare.length = function(){return "shifted";}; String.prototype.localeCompare.length === __obj. Actual: '+String.prototype.localeCompare.length ); + $ERROR('#2: __obj = String.prototype.localeCompare.length; String.prototype.localeCompare.length = function(){return "shifted";}; String.prototype.localeCompare.length === __obj. Actual: ' + String.prototype.localeCompare.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js index 4cd0b2bce3b5edd6e041b2fd4a98cbd6ae01014d..d2b382111fdd811bebbb5dc796c9be292a6b746e 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.localeCompare.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.localeCompare.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.localeCompare.hasOwnProperty("length") return true. Actual: '+String.prototype.localeCompare.hasOwnProperty("length")); + $ERROR('#1: String.prototype.localeCompare.hasOwnProperty("length") return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.localeCompare.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.localeCompare.length !== 1) { - $ERROR('#2: String.prototype.localeCompare.length === 1. Actual: '+String.prototype.localeCompare.length ); + $ERROR('#2: String.prototype.localeCompare.length === 1. Actual: ' + String.prototype.localeCompare.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js index 36c1e70197d60ac2a1c2ece85c197319998eceb7..c1d2311589cea9795953d5f5bf3f950dd0e8fcf7 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T1.js @@ -7,21 +7,21 @@ es5id: 15.5.4.9_A1_T1 description: This string is symbol and arguments are symbols ---*/ -var str1 = new String("h"); +var str1 = new String("h"); //CHECK#1 -var str2 = new String ("\x68"); -if (str1.localeCompare(str2)!==0){ - $ERROR('#1: var str1 = new String("h"); var str2 = new String ("\\x68"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2)); +var str2 = new String("\x68"); +if (str1.localeCompare(str2) !== 0) { + $ERROR('#1: var str1 = new String("h"); var str2 = new String ("\\x68"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2)); } //CHECK#2 -var str2 = new String ("\u0068"); -if (str1.localeCompare(str2)!==0){ - $ERROR('#2: var str1 = new String("h"); var str2 = new String ("\\u0068"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2)); +var str2 = new String("\u0068"); +if (str1.localeCompare(str2) !== 0) { + $ERROR('#2: var str1 = new String("h"); var str2 = new String ("\\u0068"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2)); } //CHECK#3 -var str2 = new String ("h"); -if (str1.localeCompare(str2)!==0){ - $ERROR('#3: var str1 = new String("h"); var str2 = new String ("h"); str1.localeCompare(str2)===0. Actual: '+str1.localeCompare(str2)); +var str2 = new String("h"); +if (str1.localeCompare(str2) !== 0) { + $ERROR('#3: var str1 = new String("h"); var str2 = new String ("h"); str1.localeCompare(str2)===0. Actual: ' + str1.localeCompare(str2)); } diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js index be41eeb44c203bf92fcd889ebde5a3eb07e49203..65aa3fbf311ad31298d0dd977dcb1a1bfe595044 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A1_T2.js @@ -12,6 +12,6 @@ description: > //CHECK#1 var str1 = "h"; var str2 = "H"; -if (str1.localeCompare(str2)!==-str2.localeCompare(str1)){ - $ERROR('#1.1: var str1 = "h"; var str2 = "H"; str1.localeCompare(str2)===-str2.localeCompare(str1). Actual: '+str1.localeCompare(str2)); +if (str1.localeCompare(str2) !== -str2.localeCompare(str1)) { + $ERROR('#1.1: var str1 = "h"; var str2 = "H"; str1.localeCompare(str2)===-str2.localeCompare(str1). Actual: ' + str1.localeCompare(str2)); } diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js index 19001efc7e2d714b409ec584afa8f7dc61f52262..01b7a40060d2090dcaf07500c6a822ca80160de4 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.localeCompare.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.localeCompare.prototype !== undefined) { - $ERROR('#1: String.prototype.localeCompare.prototype === undefined. Actual: '+String.prototype.localeCompare.prototype ); + $ERROR('#1: String.prototype.localeCompare.prototype === undefined. Actual: ' + String.prototype.localeCompare.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js index b70beafa05cfafbe8d2ac43387dcbbac5fada3c7..b52cc3ba68b7ff293092e07b70b28e949dfe1765 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A7.js @@ -15,5 +15,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.localeCompare; __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/localeCompare/S15.5.4.9_A8.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js index 137c85bb374f03c30aafc6909a2e2413b230e2e1..928d8f70354c21efbaf162167aea7a98d27f5364 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.localeCompare.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.localeCompare.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.localeCompare){ - if (p==="length") count++; +for (var p in String.prototype.localeCompare) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.localeCompare){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.localeCompare){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js index af1145e5007328e162fdf4675b434e2a0bb2d7e5..544ffe9d955cedac94bb3dc1bd75e78c4aebf937 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.localeCompare.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#0: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.localeCompare.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.localeCompare.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.localeCompare.length; String.prototype.localeCompare.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.localeCompare.length; String.prototype.localeCompare.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// 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 009ca6ab17a2c0a2d7263fbe17aa7e0385529906..4b71f19007c6aa999a82a2627e089427fd9d1189 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 01c8767ebf7a903ec48072f4850de7bfc6eb613b..ea732163a8b92a4e9839acd91466604da35e83a7 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 9f6049a40ba2d5f8b32be1237393b33d4e1310aa..1acb9a21d703a1ae03e8d36fd8b824a97f404dfa 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 64e9be70b929efb7f1ca74851d75e6be88cc2098..8a9cb164fbd59a3c20843fc034f33ab32eaf6299 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 fb112c3fa6f82cc1dedf5963770c37d6fddf774b..5ef04584db6431ba0eeae46ec8a413799263ed2a 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 dd87135654fd441bf46e4614bb7c912d36d32b2f..e657e1bf3abac1a820e5db702ebf65a72d00aab6 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 d81fcf57f76f4ab1e2563c8e037bd4d5ecfb4d44..7d67a718b42a77c5f2ba8a8326907d2ab87616d3 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 f0a41f16fa6cb0a63d6374cbf72f9316fbefc2f8..a8ca7399d62ae4e4a40d8caad889d446db378fb6 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 9fd224f52b950a30d1c2289a6a9ae8db28faeb58..f889214612a04d2bc56e47d1826de1e0a29efe5a 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 b59c6917396a70e40ab6cab4f49624a6aa3eb69c..a07e6f7684d0bf75c3706c3d126bfaa87551e2cb 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 13aa23e5579f97b474c07eb4d0bbafe5c868c4af..36f3d080286539198bd3b82a4eb7e39f5cea82f4 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 a9ce29da4aa200f4571fa36b8246e7426f5b2a87..df8ab7b604c39e2f0cc2e8c91dff225f4a759926 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 4f74b0689541107c5da6df9c8a150bce291ea794..d45e716aa0b887bec8a5ea1a313fb2608b96b894 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 5a5c5f38250dd16f4dbbcc5463a616930feb26c5..6a23ef54e67180079d83e38d6ace8073cd06b004 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 8bf987ea9c05199ce49380f1bcc1d8d349f3c604..c34a0c874a8e0bc70d6958f56192c63f951f1dbe 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 c89079514ebafb53f9c4053bcc3c0d8be5960a8c..760e6a1074c8a6ecd53d5e14e3871e2a0f034a21 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 4a61755998b248a74038732839e49f7bbbabc6ef..3424023d22062ebda9dcead54802ca6072e10dca 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 92b5593881237fe5c6f4e78abb9a41ac61de5494..673f1fb0c323edb0f17a7f0ed040cba89b6c97b2 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 b2101492cd74ca1edf8c5380777bae93231783ff..1f222e684b8a218f1e635bddf3bd0c5a588962c4 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 ac72b075f798607c06227e81679b05c0d437d66d..6fb716b82bb46b76d0b663f97d458d8509f3b836 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 9cd4f784864ecee8509acd0d4c1ed723d51ef288..2721f7871aa4a9908d2534d07947eeb1201d8b0e 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 9f8c8b30e127db4e6aaee004b7ca00e47142e05b..00ac312bc1e170d87cf7e95ee41fabd24bd90f3c 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 27e46bbb2bdbea89b3ad0f178265ba8cda8024d7..4d156a3c71ac6cf76f378d7e0d991976af8a7645 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 26e6dd68ebeac0cd1355fdde69a7dbf5dc6eb3c7..3d42695ab4f164556d247ab84d1cb9f75f0cfcd2 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 37c6ec04e5d94d160818e88760a0a196115d1eab..bf143c5e34a9277538309727678d3ece5d5a5fef 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 22044d86b516b1e1020d0fb0d4adc930b8e7afae..f2fc03437e0ef48de9915bd9efa869cb7d37fcf8 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 1be783adf12665276f68ba0ea5c6e543b0d38036..7a1422d9164f76258bba3c53354b5e400d44306a 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 48a7ba461cab6656326c706edad4c893a5cdad39..18e1477be6fa2c1821b3f2d0af5e453708ab05bd 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 27cf7c407030e44e212a96c45f47d632a1d8c014..635952659d19373bca69bb95458144423999dcf8 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 b37f8ec737ca2b5b269b287925467f876d3c1c02..730494c45c4cccf56ddf32b5f5d5e1c9f6f8476a 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 e7b44f13fcea3c2cb7252cb8812b88a5abfe53e0..e2f257c4b6ca0da60b1b76030b5e2a74e4482870 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 f3ab3f402acfad9fc98af2174ac26375a9619b05..c1b66b3a638709eee6787ed4d77b0ac307d2855e 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 d07bced4db3cd19f7221822fbc88fa85e7e988b9..dedeedfd401625480e9570a5c5a39795021cce4d 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 e6c8b7d8a1fa713fe895b73dabca53413962dac7..71b5ba725a9d1f3d67f1304dc173ae46734acad0 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 674b25cad19c27b31d061afcb955a76f295d9a41..89688b5dac71b380b14867943f2ef6f349142e5b 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 65488e5266aa0494f23fa5001214e8b9ea1758b0..47765c59f2134700601ee9fbf92b7a0931a6346b 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 62c1781866f727dbd925ec81337108c536405c01..65b4773920228e9c68cf492be0c02ef4ec0baa54 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]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js b/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js index 81ca290362ccb6f71c261d162365456ddcd5e29a..1efb22b1298c697e862e9f5b97f0d5d5c6f7103f 100644 --- a/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js +++ b/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js @@ -23,14 +23,18 @@ var s = '\u00C5\u2ADC\u0958\u2126\u0344'; var nfc = '\xC5\u2ADD\u0338\u0915\u093C\u03A9\u0308\u0301'; var nfd = 'A\u030A\u2ADD\u0338\u0915\u093C\u03A9\u0308\u0301'; var o = { - toString: function() { return 'NFC'; } + toString: function() { + return 'NFC'; + } }; assert.sameValue(s.normalize(['NFC']), nfc, 'coerced array - NFC'); assert.sameValue(s.normalize(o), nfc, 'coerced object - NFC'); o = { - toString: function() { return 'NFD'; } + toString: function() { + return 'NFD'; + } }; assert.sameValue(s.normalize(['NFD']), nfd, 'coerced array - NFD'); diff --git a/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js b/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js index 1bd167844833d4e9631f51646d1fe158f5ade5be..96d9d2859595348f16af2d43fc83a400417c74fc 100644 --- a/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js +++ b/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js @@ -8,6 +8,6 @@ author: Jordan Harband features: [Symbol] ---*/ -assert.throws(TypeError, function () { - 'abc'.padEnd(10, Symbol()); +assert.throws(TypeError, function() { + 'abc'.padEnd(10, Symbol()); }); diff --git a/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js b/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js index ef89429a2daf601da7650268135fe9abcddb0eb1..7736d7ff06d65a487d44f53133f58ef16c76f507 100644 --- a/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js +++ b/test/built-ins/String/prototype/padEnd/exception-not-object-coercible.js @@ -9,20 +9,20 @@ description: > author: Jordan Harband ---*/ -assert.throws(TypeError, function () { - String.prototype.padEnd.call(null); +assert.throws(TypeError, function() { + String.prototype.padEnd.call(null); }); -assert.throws(TypeError, function () { - String.prototype.padEnd.call(undefined); +assert.throws(TypeError, function() { + String.prototype.padEnd.call(undefined); }); var notCoercible = { - toString: function () { - throw new Test262Error('attempted toString'); - } + toString: function() { + throw new Test262Error('attempted toString'); + } }; -assert.throws(Test262Error, function () { - String.prototype.padEnd.call(notCoercible); +assert.throws(Test262Error, function() { + String.prototype.padEnd.call(notCoercible); }); diff --git a/test/built-ins/String/prototype/padEnd/exception-symbol.js b/test/built-ins/String/prototype/padEnd/exception-symbol.js index 949d4d927b13778a815fc464d6c807924c288868..2c4b5ff0c583e6f872443d364b150a97bb23abae 100644 --- a/test/built-ins/String/prototype/padEnd/exception-symbol.js +++ b/test/built-ins/String/prototype/padEnd/exception-symbol.js @@ -8,6 +8,6 @@ author: Jordan Harband features: [Symbol] ---*/ -assert.throws(TypeError, function () { - String.prototype.padEnd.call(Symbol()); +assert.throws(TypeError, function() { + String.prototype.padEnd.call(Symbol()); }); diff --git a/test/built-ins/String/prototype/padEnd/function-name.js b/test/built-ins/String/prototype/padEnd/function-name.js index 0b6b7db74a700a291b79a5aaafe622d72e3e893d..d37b167d96c7f684b6fd238daadf15d27101c21c 100644 --- a/test/built-ins/String/prototype/padEnd/function-name.js +++ b/test/built-ins/String/prototype/padEnd/function-name.js @@ -9,9 +9,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - String.prototype.padEnd.name, - 'padEnd', - 'Expected String#padEnd.name to be "padEnd"' + String.prototype.padEnd.name, + 'padEnd', + 'Expected String#padEnd.name to be "padEnd"' ); verifyNotEnumerable(String.prototype.padEnd, 'name'); diff --git a/test/built-ins/String/prototype/padEnd/observable-operations.js b/test/built-ins/String/prototype/padEnd/observable-operations.js index 38315b3c444454bc3a2b32c626f17152cbf891a6..ebfe78c890b28ad1c231a8c99c695c9c637a2661 100644 --- a/test/built-ins/String/prototype/padEnd/observable-operations.js +++ b/test/built-ins/String/prototype/padEnd/observable-operations.js @@ -11,11 +11,11 @@ var log = ""; function createPrimitiveObserver(name, string, value) { return { - toString: function () { + toString: function() { log += '|toString:' + name; return string; }, - valueOf: function () { + valueOf: function() { log += '|valueOf:' + name; return value; } @@ -33,10 +33,10 @@ var result = String.prototype.padEnd.call(receiver, maxLength, fillString); assert.sameValue(result, 'abcdefdefde'); assert.sameValue(log, '|' + [ - 'toString:receiver', - 'valueOf:receiver', - 'valueOf:maxLength', - 'toString:maxLength', - 'toString:fillString', - 'valueOf:fillString' + 'toString:receiver', + 'valueOf:receiver', + 'valueOf:maxLength', + 'toString:maxLength', + 'toString:fillString', + 'valueOf:fillString' ].join('|'), log); diff --git a/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js b/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js index 73f5435445c1fc88c381075dccca363ab4409909..fbcb0545412cc0d1feb895dc40692fce26dbbec2 100644 --- a/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js +++ b/test/built-ins/String/prototype/padStart/exception-fill-string-symbol.js @@ -8,6 +8,6 @@ author: Jordan Harband features: [Symbol] ---*/ -assert.throws(TypeError, function () { - 'abc'.padStart(10, Symbol()); +assert.throws(TypeError, function() { + 'abc'.padStart(10, Symbol()); }); diff --git a/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js b/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js index 7d08deae0067c73add4c774045f96fbfefe7fc33..c6ea23939ac537792a1b5b2bfb5d2c0a59a2fe33 100644 --- a/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js +++ b/test/built-ins/String/prototype/padStart/exception-not-object-coercible.js @@ -9,20 +9,20 @@ description: > author: Jordan Harband ---*/ -assert.throws(TypeError, function () { - String.prototype.padStart.call(null); +assert.throws(TypeError, function() { + String.prototype.padStart.call(null); }); -assert.throws(TypeError, function () { - String.prototype.padStart.call(undefined); +assert.throws(TypeError, function() { + String.prototype.padStart.call(undefined); }); var notCoercible = { - toString: function () { - throw new Test262Error('attempted toString'); - } + toString: function() { + throw new Test262Error('attempted toString'); + } }; -assert.throws(Test262Error, function () { - String.prototype.padStart.call(notCoercible); +assert.throws(Test262Error, function() { + String.prototype.padStart.call(notCoercible); }); diff --git a/test/built-ins/String/prototype/padStart/exception-symbol.js b/test/built-ins/String/prototype/padStart/exception-symbol.js index 66521f28c3fd59b674cdede6701b8045f24a009f..9f85fe4f6dd39bc796353141b1746875b2ee7ae2 100644 --- a/test/built-ins/String/prototype/padStart/exception-symbol.js +++ b/test/built-ins/String/prototype/padStart/exception-symbol.js @@ -8,6 +8,6 @@ author: Jordan Harband features: [Symbol] ---*/ -assert.throws(TypeError, function () { - String.prototype.padStart.call(Symbol()); +assert.throws(TypeError, function() { + String.prototype.padStart.call(Symbol()); }); diff --git a/test/built-ins/String/prototype/padStart/function-name.js b/test/built-ins/String/prototype/padStart/function-name.js index 0b63be0e4ed017c218bddafbba45cda6325fc5a1..824978a8049d405c90730e959995311f17897305 100644 --- a/test/built-ins/String/prototype/padStart/function-name.js +++ b/test/built-ins/String/prototype/padStart/function-name.js @@ -9,9 +9,9 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - String.prototype.padStart.name, - 'padStart', - 'Expected String#padStart.name to be "padStart"' + String.prototype.padStart.name, + 'padStart', + 'Expected String#padStart.name to be "padStart"' ); verifyNotEnumerable(String.prototype.padStart, 'name'); diff --git a/test/built-ins/String/prototype/padStart/observable-operations.js b/test/built-ins/String/prototype/padStart/observable-operations.js index dfb9a0f2619ef53e39a2e1a0d4845740e6f37bda..260ecda04c926363f365e72c6ea4fd5595b826b2 100644 --- a/test/built-ins/String/prototype/padStart/observable-operations.js +++ b/test/built-ins/String/prototype/padStart/observable-operations.js @@ -11,11 +11,11 @@ var log = ""; function createPrimitiveObserver(name, string, value) { return { - toString: function () { + toString: function() { log += '|toString:' + name; return string; }, - valueOf: function () { + valueOf: function() { log += '|valueOf:' + name; return value; } @@ -33,10 +33,10 @@ var result = String.prototype.padStart.call(receiver, maxLength, fillString); assert.sameValue(result, 'defdefdeabc'); assert.sameValue(log, '|' + [ - 'toString:receiver', - 'valueOf:receiver', - 'valueOf:maxLength', - 'toString:maxLength', - 'toString:fillString', - 'valueOf:fillString' + 'toString:receiver', + 'valueOf:receiver', + 'valueOf:maxLength', + 'toString:maxLength', + 'toString:fillString', + 'valueOf:fillString' ].join('|'), log); diff --git a/test/built-ins/String/prototype/replace/15.5.4.11-1.js b/test/built-ins/String/prototype/replace/15.5.4.11-1.js index 5cc4a8ce9e76ebe35cfa499bafde1b06062644d7..c591250792086715fc18c78da246b187a1214522 100644 --- a/test/built-ins/String/prototype/replace/15.5.4.11-1.js +++ b/test/built-ins/String/prototype/replace/15.5.4.11-1.js @@ -10,13 +10,13 @@ flags: [noStrict] ---*/ var global = this; - var retVal = 'x'.replace(/x/, - function() { - if (this===global) { - return 'y'; - } else { - return 'z'; - } - }); +var retVal = 'x'.replace(/x/, + function() { + if (this === global) { + return 'y'; + } else { + return 'z'; + } + }); assert.sameValue(retVal, 'y', 'retVal'); diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js index 76846ee1f83d574ae3f0467f6f864113778399e4..a733aa05a91cb7e4b862c31427dc09a9ecb53f32 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.replace.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.replace.length; -verifyNotWritable(String.prototype.replace, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.replace, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.replace.length !== __obj) { - $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: '+String.prototype.replace.length ); + $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: ' + String.prototype.replace.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js index 5b9af5f11dd1eddbb9ce8ad682fa78401977f4b1..78b3472ae8584f1a02d3ab773ef0491caf20149d 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.replace.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.replace.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.replace.hasOwnProperty("length") return true. Actual: '+String.prototype.replace.hasOwnProperty("length")); + $ERROR('#1: String.prototype.replace.hasOwnProperty("length") return true. Actual: ' + String.prototype.replace.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.replace.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.replace.length !== 2) { - $ERROR('#2: String.prototype.replace.length === 2. Actual: '+String.prototype.replace.length ); + $ERROR('#2: String.prototype.replace.length === 2. Actual: ' + String.prototype.replace.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js index 66ba29f7f0d91f09591a38cba748a3298fe033dd..0dea5dd0f075c322af72e7097f8ae9baed4cc010 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A12.js @@ -17,7 +17,7 @@ var global = this; } if (this !== undefined) { $ERROR('#2: replaceValue should be called with this===undefined. ' + - 'Actual: ' + this); + 'Actual: ' + this); } return 'y'; }); diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js index 0ccd9a7817973a49ab2974fef0d52382b2ba4f43..1e8384155c8801509d1a034de77c9413050ba4d6 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T1.js @@ -14,7 +14,7 @@ __instance.replace = String.prototype.replace; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.replace(true, 1) !== "1") { - $ERROR('#1: __instance = new Object(true); __instance.replace = String.prototype.replace; __instance.replace(true, 1) === "1". Actual: '+__instance.replace(true, 1) ); + $ERROR('#1: __instance = new Object(true); __instance.replace = String.prototype.replace; __instance.replace(true, 1) === "1". Actual: ' + __instance.replace(true, 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js index 552c478fff98ded7403c61030e9cc87405909d94..c044c85153d61b64f8f7ed317fb379ef27e13b6a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js @@ -10,15 +10,23 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}}; +var __obj = { + toString: function() { + return "\u0041B"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.replace(__obj, function(){return x;}) !== "undefinedBABABAB") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: '+__str.replace(__obj, function(){return x;}) ); - } +if (__str.replace(__obj, function() { + return x; + }) !== "undefinedBABABAB") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: ' + __str.replace(__obj, function() { + return x; + })); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js index e6da57621ddb649321e124424d4161b72e2301d8..9957654db55f0d3ba8ecdbdc4ee2d90886c34c3c 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js @@ -10,19 +10,27 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){throw "insearchValue";}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + throw "insearchValue"; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.replace(__obj,__obj2); - $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="insearchValue") { - $ERROR('#1.1: Exception === "insearchValue". Actual: '+e); - } - } +try { + var x = __str.replace(__obj, __obj2); + $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "insearchValue") { + $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js index d56fe57fde84af6b8106437318ac308f2865a140..b7fb48f1ffd0c6c153a186cd928e7ca6136effdd 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js @@ -11,19 +11,30 @@ description: > have overrided toString function, that throw exception ---*/ -var __obj = {toString:function(){return {};}, valueOf:function(){throw "insearchValue";}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "insearchValue"; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.replace(__obj, __obj2); - $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="insearchValue") { - $ERROR('#1.1: Exception === "insearchValue". Actual: '+e); - } - } +try { + var x = __str.replace(__obj, __obj2); + $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "insearchValue") { + $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js index 0a3b6feff89c07438c48710ec3a56594fd5495be..47f4cd103a406de3b3345c62bd145f8fab522286 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js @@ -11,18 +11,29 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){return {};}, valueOf:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2); - $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception'); + var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2); + $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception'); } catch (e) { - if (e!=="inreplaceValue") { - $ERROR('#1.1: Exception === "inreplaceValue". Actual: '+e); - } + if (e !== "inreplaceValue") { + $ERROR('#1.1: Exception === "inreplaceValue". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js index e37a5abec3de27f53151931c538627c644d4a3c5..0068bb2ff6ed384a94e7f3af2060ae431423de2a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js @@ -12,7 +12,7 @@ var __reg = new RegExp("77"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1) !== "ABBABABAB\u0031BBAA") { - $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".replace(__reg, 1) === "ABBABABAB\\u0031BBAA". Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1)) ); + $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".replace(__reg, 1) === "ABBABABAB\\u0031BBAA". Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".replace(__reg, 1))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js index 6156897ad38934cef51536b20ef20d7c428a0b9e..f6a6011c9dd865a9dabc95183d061f0ef5134ad9 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js @@ -7,7 +7,11 @@ es5id: 15.5.4.11_A1_T15 description: Instance is Object, searchValue is regular expression ---*/ -var __obj = {toString:function(){return /77/}}; +var __obj = { + toString: function() { + return /77/ + } +}; var __instance = new Object(1100.00777001); @@ -17,10 +21,10 @@ Object.prototype.replace = String.prototype.replace; //CHECK#1 try { var x = __instance.replace(__obj, 1) === "1100.0017001"; - $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception'); + $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js index e29fe2002be164f90bd22f87f21c665b674dc5d3..7954b1f9a737a60b6fcee2c26d21215fc3625e10 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js @@ -13,7 +13,13 @@ var __instance = new Number(1100.00777001); Number.prototype.replace = String.prototype.replace; -var __obj = {toString:function(){return function(a1,a2,a3){return a2+"z"};}} +var __obj = { + toString: function() { + return function(a1, a2, a3) { + return a2 + "z" + }; + } +} //__obj = function(a1,a2,a3){return a2+"z"}; @@ -24,7 +30,7 @@ try { $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.007z7001" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js index 979101a3a90dcd21289b5ed94d6d7c1d8f760cc9..89a3a605e8a16d3c74c5c502bd0b0944a747baa5 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js @@ -7,7 +7,7 @@ es5id: 15.5.4.11_A1_T17 description: Instance is String object, searchValue is regular expression ---*/ -var __re = new RegExp(x,"g"); +var __re = new RegExp(x, "g"); var __instance = String("asdf"); @@ -15,7 +15,7 @@ var __str = "1"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.replace(__re, __str) !== "1a1s1d1f1") { - $ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: '+__instance.replace(__re, __str) ); + $ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: ' + __instance.replace(__re, __str)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js index b8c56f3158d04e85fc7d91d8b0465c1e4575be8b..3420074378631a21946000a76c16fe5378d12c88 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js @@ -15,8 +15,12 @@ __instance.replace = String.prototype.replace; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.replace(function(){return false;}(),x) !== "undefined") { - $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: '+__instance.replace(function(){return false;}(),x) ); +if (__instance.replace(function() { + return false; + }(), x) !== "undefined") { + $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: ' + __instance.replace(function() { + return false; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js index e38a394441a6e7263e6e6ddf35d65c78c58fc224..f647a286ef933e75811fca68b98b5fdc835b7abd 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js @@ -11,8 +11,16 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) !== "g1una") { - $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: '+function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) ); +if (function() { + return "gnulluna" + }().replace(null, function(a1, a2, a3) { + return a2 + ""; + }) !== "g1una") { + $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: ' + function() { + return "gnulluna" + }().replace(null, function(a1, a2, a3) { + return a2 + ""; + })); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js index cbd9c74fe603463e9328e2b1d53ef3b543d3e515..1b285d190f4b036b9d839af11fab3191879947b0 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js @@ -11,8 +11,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().replace(null, Function()) !== "gundefineduna") { - $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: '+function(){return "gnulluna"}().replace(null, Function()) ); +if (function() { + return "gnulluna" + }().replace(null, Function()) !== "gundefineduna") { + $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: ' + function() { + return "gnulluna" + }().replace(null, Function())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js index b593f4f9384503d4f51a5b1b1ec1acb78122cea4..4bb87896c422d295dfbb1ab95ee7975daaca54c8 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js @@ -12,8 +12,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String("undefined").replace(x,Function("return arguments[1]+42;")) !== "42") { - $ERROR('#1: var x; new String("undefined").replace(x,Function("return arguments[1]+42;")) === "42". Actual: '+new String("undefined").replace(x,Function("return arguments[1]+42;")) ); +if (new String("undefined").replace(x, Function("return arguments[1]+42;")) !== "42") { + $ERROR('#1: var x; new String("undefined").replace(x,Function("return arguments[1]+42;")) === "42". Actual: ' + new String("undefined").replace(x, Function("return arguments[1]+42;"))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js index 8c2ec1311358f4bf821c558be3357ac3710e2461..aebeaffc28cb2a38296f92f21111a892fc7263d3 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T7.js @@ -11,8 +11,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(void 0).replace("e",undefined) !== "undundefinedfined") { - $ERROR('#1: String(void 0).replace("e",undefined) === "undundefinedfined". Actual: '+String(void 0).replace("e",undefined) ); +if (String(void 0).replace("e", undefined) !== "undundefinedfined") { + $ERROR('#1: String(void 0).replace("e",undefined) === "undundefinedfined". Actual: ' + String(void 0).replace("e", undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js index 81c9a9c4ad287d3728840f0e75737c8a4cf0c451..24bfc5d140e8bc6053cead98e6b9c1afadce914e 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js @@ -9,12 +9,14 @@ description: > expression and void 0 arguments of String object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).replace(/e/g,void 0) !== "undundefinedfinundefinedd") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: '+String(__obj).replace(/e/g,void 0) ); +if (String(__obj).replace(/e/g, void 0) !== "undundefinedfinundefinedd") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: ' + String(__obj).replace(/e/g, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js index 9c4ebe9e26c324f2173eb0d387cbb001429a403d..950aa347a23e94a16135414ebd5c0c02fa281ac9 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js @@ -10,16 +10,18 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String(__obj).replace(function(){}(),__func) !== "undefined0undefined") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: '+new String(__obj).replace(function(){}(),__func) ); +if (new String(__obj).replace(function() {}(), __func) !== "undefined0undefined") { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: ' + new String(__obj).replace(function() {}(), __func)); } // ////////////////////////////////////////////////////////////////////////////// -function __func(a1,a2,a3){return a1+a2+a3;}; +function __func(a1, a2, a3) { + return a1 + a2 + a3; +}; diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js index faf12bdc5e35c36be08300af7dd6c074f7ae7981..14975453a2034e3620796e79d00c679e199c10e4 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js @@ -16,8 +16,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re,'sch')!=='She sells seaschells by the seaschore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,\'sch\')===\'She sells seaschells by the seaschore.\'. Actual: '+__str.replace(__re,'sch')); +if (__str.replace(__re, 'sch') !== 'She sells seaschells by the seaschore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,\'sch\')===\'She sells seaschells by the seaschore.\'. Actual: ' + __str.replace(__re, 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js index aabe0d9ae09b0847b5c71ab5e8a0a8ad434c31bd..0a8d22f4c2f16727a2a59d5eda29ce535e8a1d39 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T10.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seashore.\'. Actual: '+__str.replace(__re, "$'" + 'sch')); +if (__str.replace(__re, "$'" + 'sch') !== 'She sells seaells by the seashore.schells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seashore.\'. Actual: ' + __str.replace(__re, "$'" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js index b5290edf2f6fc04b7d2ac5daba72ec1a285ac657..3c40268897e7f4f9164772c2c732be0825869f15 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T2.js @@ -14,8 +14,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re,"$$" + 'sch')!=='She sells sea$schells by the sea$schore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$$" + \'sch\')===\'She sells sea$schells by the sea$schore.\'. Actual: '+__str.replace(__re,"$$" + 'sch')); +if (__str.replace(__re, "$$" + 'sch') !== 'She sells sea$schells by the sea$schore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$$" + \'sch\')===\'She sells sea$schells by the sea$schore.\'. Actual: ' + __str.replace(__re, "$$" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js index ca30baccbbadb033bf36a62d47ac8f4c2edcb926..231fe1bca83a422fcef3c154e92f199fff8ecaf5 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T3.js @@ -14,8 +14,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re,"$&" + 'sch')!=='She sells seashschells by the seashschore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$&" + \'sch\')===\'She sells seashschells by the seashschore.\'. Actual: '+__str.replace(__re,"$&" + 'sch')); +if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashschore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re,"$&" + \'sch\')===\'She sells seashschells by the seashschore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js index 3d6e58a3b7841398991091f6f546638845326583..53b4143d0cb561e69dfc2278e308928ef8dabd13 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T4.js @@ -14,8 +14,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.\'. Actual: '+__str.replace(__re, "$`" + 'sch')); +if (__str.replace(__re, "$`" + 'sch') !== 'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seaShe sells seashells by the seaschore.\'. Actual: ' + __str.replace(__re, "$`" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js index a3c907e2b283232130a1fa03f94238dcb9cd9b76..734dcb2472da43955df62ade9670e8d6c46d1f10 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T5.js @@ -14,8 +14,8 @@ var __re = /sh/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$'" + 'sch')!=='She sells seaells by the seashore.schells by the seaore.schore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seaore.schore.\'. Actual: '+__str.replace(__re, "$'" + 'sch')); +if (__str.replace(__re, "$'" + 'sch') !== 'She sells seaells by the seashore.schells by the seaore.schore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/g; __str.replace(__re, "$\'" + \'sch\')===\'She sells seaells by the seashore.schells by the seaore.schore.\'. Actual: ' + __str.replace(__re, "$'" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js index c0811cbeebd616e8c5b3842d36e56e4f1c5d42c2..3ba195faf4a55ec1cfe4c1a556cd1e3e9791ac70 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T6.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, 'sch')!=='She sells seaschells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, \'sch\')===\'She sells seaschells by the seashore.\'. Actual: '+__str.replace(__re, 'sch')); +if (__str.replace(__re, 'sch') !== 'She sells seaschells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, \'sch\')===\'She sells seaschells by the seashore.\'. Actual: ' + __str.replace(__re, 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js index 327071a449f360f354c0893a3f4b71219199eaa8..3c475e5f16eb45a74834712051547ffdb68f175b 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T7.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$$" + 'sch')!=='She sells sea$schells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$$" + \'sch\')===\'She sells sea$schells by the seashore.\'. Actual: '+__str.replace(__re, "$$" + 'sch')); +if (__str.replace(__re, "$$" + 'sch') !== 'She sells sea$schells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$$" + \'sch\')===\'She sells sea$schells by the seashore.\'. Actual: ' + __str.replace(__re, "$$" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js index 45c09ddfd5fd9e581abcd69272e7be2d1de99734..38accef878cce3d7d10ddee174ec735821d9d94d 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T8.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$&" + 'sch')!=='She sells seashschells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: '+__str.replace(__re, "$&" + 'sch')); +if (__str.replace(__re, "$&" + 'sch') !== 'She sells seashschells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$&" + \'sch\')===\'She sells seashschells by the seashore.\'. Actual: ' + __str.replace(__re, "$&" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js index 946f10372c8d4de2f49e79f45a46032c51f8473f..175a4df67eba197b45adc9c5ec02c9579d8fe1d9 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T9.js @@ -14,8 +14,8 @@ var __re = /sh/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$`" + 'sch')!=='She sells seaShe sells seaschells by the seashore.') { - $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seashore.\'. Actual: '+__str.replace(__re, "$`" + 'sch')); +if (__str.replace(__re, "$`" + 'sch') !== 'She sells seaShe sells seaschells by the seashore.') { + $ERROR('#1: var __str = \'She sells seashells by the seashore.\'; var __re = /sh/; __str.replace(__re, "$`" + \'sch\')===\'She sells seaShe sells seaschells by the seashore.\'. Actual: ' + __str.replace(__re, "$`" + 'sch')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js index 07cc9cc72277b02ceb4a85c7f044319e4ec68e5f..2bd1e5d2da0b601b8227a7f02bbb8b960e2a3e2a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js @@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$11" + 15)!=='uid=115') { - $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + 15)===\'uid=115\'. Actual: '+__str.replace(__re, "$11" + 15)); +if (__str.replace(__re, "$11" + 15) !== 'uid=115') { + $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + 15)===\'uid=115\'. Actual: ' + __str.replace(__re, "$11" + 15)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js index 103dc9ec377170d19a346abadc1ec4aff93b969f..10b7df2c58f4522d013d73c3de34dd4cf4076d35 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T2.js @@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$11" + '15')!=='uid=115') { - $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'15\')===\'uid=115\'. Actual: '+__str.replace(__re, "$11" + '15')); +if (__str.replace(__re, "$11" + '15') !== 'uid=115') { + $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'15\')===\'uid=115\'. Actual: ' + __str.replace(__re, "$11" + '15')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js index 3b1a30458b3d5a9b459ffa4d80204d5b62cf069b..83060fd58b9238f0d97a0a3b242e97824dda93f4 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T3.js @@ -12,8 +12,8 @@ var __re = /(uid=)(\d+)/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__re, "$11" + 'A15')!=='uid=1A15' ) { - $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'A15\')===\'uid=1A15\' . Actual: '+__str.replace(__re, "$11" + 'A15')); +if (__str.replace(__re, "$11" + 'A15') !== 'uid=1A15') { + $ERROR('#1: var __str = \'uid=31\'; var __re = /(uid=)(\d+)/; __str.replace(__re, "$11" + \'A15\')===\'uid=1A15\' . Actual: ' + __str.replace(__re, "$11" + 'A15')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js index e695fe5722ed6b5b6cc354aca0ab29729196ca08..99a1b6f3a85a320a4cf0b583f786da173559f3c5 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T1.js @@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __replFN)!=='12abc def34') { - $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc def34\'. Actual: '+__str.replace(__pattern, __replFN)); +if (__str.replace(__pattern, __replFN) !== '12abc def34') { + $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc def34\'. Actual: ' + __str.replace(__pattern, __replFN)); } // ////////////////////////////////////////////////////////////////////////////// - + function __replFN() { - return arguments[2] + arguments[1]; + return arguments[2] + arguments[1]; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js index 141966c06bfee61c06e2f91791164f534881de97..83489c51d3043a80c36e61ef4a270d885b9c6c54 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T2.js @@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/g; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __replFN)!=='12abc 34def') { - $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc 34def\'. Actual: '+__str.replace(__pattern, __replFN)); +if (__str.replace(__pattern, __replFN) !== '12abc 34def') { + $ERROR('#1: var __str = "abc12 def34"; var __pattern = /([a-z]+)([0-9]+)/g; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12abc 34def\'. Actual: ' + __str.replace(__pattern, __replFN)); } // ////////////////////////////////////////////////////////////////////////////// - + function __replFN() { - return arguments[2] + arguments[1]; + return arguments[2] + arguments[1]; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js index fcd736f8594bdfb53bc6b3a2b5e4d4be594162f9..e601212031a19990c9f482208262234ac174cebf 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T3.js @@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/i; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __replFN)!=='12aBc def34') { - $ERROR('#1: var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc def34\'. Actual: '+__str.replace(__pattern, __replFN)); +if (__str.replace(__pattern, __replFN) !== '12aBc def34') { + $ERROR('#1: var __str = "aBc12 def34"; var __pattern = /([a-z]+)([0-9]+)/i; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc def34\'. Actual: ' + __str.replace(__pattern, __replFN)); } // ////////////////////////////////////////////////////////////////////////////// - + function __replFN() { - return arguments[2] + arguments[1]; + return arguments[2] + arguments[1]; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js index b272fa8d7f9ba9696d3370b7417b2797e624b7e5..199688c6cf9db0712def418f451401e2e386b3c1 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A4_T4.js @@ -12,12 +12,12 @@ var __pattern = /([a-z]+)([0-9]+)/ig; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __replFN)!=='12aBc 34dEf') { - $ERROR('#1: var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc 34dEf\'. Actual: '+__str.replace(__pattern, __replFN)); +if (__str.replace(__pattern, __replFN) !== '12aBc 34dEf') { + $ERROR('#1: var __str = "aBc12 dEf34"; var __pattern = /([a-z]+)([0-9]+)/ig; function __replFN() {return arguments[2] + arguments[1];}; __str.replace(__pattern, __replFN)===\'12aBc 34dEf\'. Actual: ' + __str.replace(__pattern, __replFN)); } // ////////////////////////////////////////////////////////////////////////////// - + function __replFN() { - return arguments[2] + arguments[1]; + return arguments[2] + arguments[1]; } diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js index 22128bc6e026dfd958984721ce70f1ca1a199883..37a6bb1fb1d39ca43553ae42e34e6ef5e9e6bb0a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A5_T1.js @@ -13,8 +13,8 @@ var __repl = "$1"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__str.replace(__pattern, __repl)!=='aaaaa') { - $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: '+__str.replace(__pattern, __repl)); +if (__str.replace(__pattern, __repl) !== 'aaaaa') { + $ERROR('#1: var __str = "aaaaaaaaaa,aaaaaaaaaaaaaaa"; var __pattern = /^(a+)\\1*,\\1+$/; var __repl = "$1"; __str.replace(__pattern, __repl)===\'aaaaa\'. Actual: ' + __str.replace(__pattern, __repl)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js index 5ba2416aba39a470d554688c65ea87dfbb179d97..f71770ae62a86565799ba7f28091e98cb3dbb222 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.replace.prototype; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.replace.prototype !== undefined) { - $ERROR('#1: String.prototype.replace.prototype === undefined. Actual: '+String.prototype.replace.prototype ); + $ERROR('#1: String.prototype.replace.prototype === undefined. Actual: ' + String.prototype.replace.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js index 848f6bd1e7131cba361425e8c742467be3de3f08..e88a11ca1d1788bec9b1806fd472544169d9a677 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.replace; "__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/replace/S15.5.4.11_A8.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js index 3ad4ba9532784a9a476f0f618b3ab7c0cfdec6c1..536529b43055861df8bd0127a7ad7732a15323ff 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.replace.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.replace.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.replace){ - if (p==="length") count++; +for (var p in String.prototype.replace) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.replace){if (p==="length") count++;} count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.replace){if (p==="length") count++;} count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js index 55b188a5eabb86a74291b18998dd142bbc95aa09..0d198db9ed0f63e8c1524593ae9b0c798ffc5938 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.replace.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#0: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.replace.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.replace.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.replace.length; String.prototype.replace.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.replace.length; String.prototype.replace.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A10.js b/test/built-ins/String/prototype/search/S15.5.4.12_A10.js index 9b118613279293572bb08ee7a07e37f045139735..3a7a27f67c981c15d35016cb0b1a3c7cc1c79389 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A10.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.search.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#1: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.search.length; -verifyNotWritable(String.prototype.search, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.search, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.search.length !== __obj) { - $ERROR('#2: __obj = String.prototype.search.length; String.prototype.search.length = function(){return "shifted";}; String.prototype.search.length === __obj. Actual: '+String.prototype.search.length ); + $ERROR('#2: __obj = String.prototype.search.length; String.prototype.search.length = function(){return "shifted";}; String.prototype.search.length === __obj. Actual: ' + String.prototype.search.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A11.js index 3e71c196d9e1743bb9774f3efc29004ca476e9e8..13e25ac574aca3b351b78e9a34bedd20a26702d7 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A11.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.search.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.search.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.search.hasOwnProperty("length") return true. Actual: '+String.prototype.search.hasOwnProperty("length")); + $ERROR('#1: String.prototype.search.hasOwnProperty("length") return true. Actual: ' + String.prototype.search.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.search.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.search.length !== 1) { - $ERROR('#2: String.prototype.search.length === 1. Actual: '+String.prototype.search.length ); + $ERROR('#2: String.prototype.search.length === 1. Actual: ' + String.prototype.search.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js index 1813eaac26cf6b4d099ab83893171b7b6693bebb..2ef942e49ce8d888d7f69c41bc46fd12cfbb8559 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T1.js @@ -14,7 +14,7 @@ __instance.search = String.prototype.search; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.search(true) !== 0) { - $ERROR('#1: __instance = new Object(true); __instance.search = String.prototype.search; __instance.search(true) === 0. Actual: '+__instance.search(true) ); + $ERROR('#1: __instance = new Object(true); __instance.search = String.prototype.search; __instance.search(true) === 0. Actual: ' + __instance.search(true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js index 8e6a7efc5766f931721107457f6e8983dcdfac85..02515864efa61a3a756759ba25d5974332935945 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js @@ -9,14 +9,18 @@ description: > toString function ---*/ -var __obj = {toString:function(){return "\u0041B";}}; +var __obj = { + toString: function() { + return "\u0041B"; + } +}; var __str = "ssABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.search(__obj) !==2) { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; __str.search(__obj) ===2. Actual: '+__str.search(__obj) ); - } +if (__str.search(__obj) !== 2) { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; __str.search(__obj) ===2. Actual: ' + __str.search(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js index 8367e9ae3ffde0dd0942a6c1053f9c481cf2c6ca..dec9e127e01147616b1ab0acaf9949966a301837 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js @@ -9,18 +9,22 @@ description: > toString function, that throw exception ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.search(__obj); - $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.search(__obj); + $ERROR('#1: var x = __str.search(__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/search/S15.5.4.12_A1_T12.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js index b53f6445200f59423687dacc7ea0876b20ca312a..09d8fcee6cb8eb6cb2accc355d152a4d0fcd1e16 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js @@ -9,18 +9,25 @@ description: > toString and valueOf functions, valueOf throw exception ---*/ -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.search(__obj); - $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.search(__obj); + $ERROR('#1: var x = __str.search(__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/search/S15.5.4.12_A1_T13.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js index edec536de125f5032f8df391c9a5d32c511a2a99..92c121f58870bb61ddd3e3ca1bce529527850c6e 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js @@ -9,12 +9,19 @@ description: > toString and valueOf functions ---*/ -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".search(__obj) !==5) { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".search(__obj) ===5. Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj)) ); +if ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj) !== 5) { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".search(__obj) ===5. Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js index a8245be47620af62f49589914392bf7ee844cf62..8a12d8fa894b86bf81d06b7a9ed63405c1c046f7 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js @@ -12,7 +12,7 @@ var __reg = new RegExp("77"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg) !== 9) { - $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".search(__reg) === 9. Actual: '+("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg)) ); + $ERROR('#1: var __reg = new RegExp("77"); "ABB\\u0041BABAB\\u0037\\u0037BBAA".search(__reg) === 9. Actual: ' + ("ABB\u0041BABAB\u0037\u0037BBAA".search(__reg))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js index 61d0ec886a17b44441def02159a0d4e0a7933341..103332f718b5a32f7386b842bc9cc6795fdede4c 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js @@ -13,8 +13,12 @@ __instance.search = String.prototype.search; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.search(function(){return false;}()) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.search = String.prototype.search; __instance.search(function(){return false;}()) === 0. Actual: '+__instance.search(function(){return false;}()) ); +if (__instance.search(function() { + return false; + }()) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.search = String.prototype.search; __instance.search(function(){return false;}()) === 0. Actual: ' + __instance.search(function() { + return false; + }())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js index c3e0aa669686ff1e459b55d14a3121a55101d0ec..d7245d11e03bd0441976b02709bb690442d9c303 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js @@ -11,11 +11,11 @@ description: Call search (regexp) without arguments //CHECK#1 //since ToString() evaluates to "" search() evaluates to search("") if ("".search() !== 0) { - $ERROR('#1: "".search() === 0. Actual: '+("".search()) ); + $ERROR('#1: "".search() === 0. Actual: ' + ("".search())); } if ("--undefined--".search() != 0) { - $ERROR('#1: "--undefined--".search() === 0. Actual: '+("--undefined--".search()) ); + $ERROR('#1: "--undefined--".search() === 0. Actual: ' + ("--undefined--".search())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js index a1407792fa4ddd6db2badeb55acf6cdbeb74ffd8..297c1719d1fbd70b731f43992ed6e3ab545a5425 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js @@ -10,8 +10,12 @@ description: Argument is null, and instance is function call, that return string ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" search(null) evaluates to search("null") -if (function(){return "gnulluna"}().search(null) !== 1) { - $ERROR('#1: function(){return "gnulluna"}().search(null) === 1. Actual: '+function(){return "gnulluna"}().search(null) ); +if (function() { + return "gnulluna" + }().search(null) !== 1) { + $ERROR('#1: function(){return "gnulluna"}().search(null) === 1. Actual: ' + function() { + return "gnulluna" + }().search(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js index 074d2d68fc4aaeb4f6b14a151b91985a7bdb7356..f2b4f76545d7812902dc3eae5a90119788df526c 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js @@ -11,7 +11,7 @@ description: Argument is x, and instance is new String, x is undefined variable //CHECK#1 //since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined") if (new String("undefined").search(x) !== 0) { - $ERROR('#1: var x; new String("undefined").search(x) === 0. Actual: '+new String("undefined").search(x) ); + $ERROR('#1: var x; new String("undefined").search(x) === 0. Actual: ' + new String("undefined").search(x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js index dc79e77e24ef6e8971c9db1e20f9ed47bc5f9534..f4512a6919fe208530da66eeab00f8e7b0d48867 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T7.js @@ -11,7 +11,7 @@ description: Argument is undefined, and instance is new String //CHECK#1 //since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined") if (String("undefined").search(undefined) !== 0) { - $ERROR('#1: String("undefined").search(undefined) === 0. Actual: '+String("undefined").search(undefined) ); + $ERROR('#1: String("undefined").search(undefined) === 0. Actual: ' + String("undefined").search(undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js index 9686f918f5196045253c89a95c28cfac22b2090f..77a619c6a7e560f5d465734add6f85c1a27ec2fe 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js @@ -9,13 +9,15 @@ description: > toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" search(void 0) evaluates to search("undefined") if (String(__obj).search(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).search(void 0) === 0. Actual: '+String(__obj).search(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).search(void 0) === 0. Actual: ' + String(__obj).search(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js index d94e1307fa8235158e552eefd916e473d8130cb0..000e2f3d7ca0e25a334abe3e41b9531f577f264d 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js @@ -10,15 +10,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" search(undefined) evaluates to search("undefined") -if (new String(__obj).search(function(){}()) !== 0) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).search(function(){}()) === 0. Actual: '+new String(__obj).search(function(){}()) ); +if (new String(__obj).search(function() {}()) !== 0) { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).search(function(){}()) === 0. Actual: ' + new String(__obj).search(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js index 67cd389fcf73fdc124fdd4a5d95fc51da33f71b0..3e7755ee42f67c89d3e84f95b39b90608ab3beaf 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T1.js @@ -11,8 +11,8 @@ var aString = new String("test string"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search("string")!== 5) { - $ERROR('#1: var aString = new String("test string"); aString.search("string")=== 5. Actual: '+aString.search("string")); +if (aString.search("string") !== 5) { + $ERROR('#1: var aString = new String("test string"); aString.search("string")=== 5. Actual: ' + aString.search("string")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js index 31a6f4123ee5d091e19f3da1411d6e9c25208ee0..5e1946c291bc7e24f0a5923837f99446102f8447 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T2.js @@ -11,8 +11,8 @@ var aString = new String("test string"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search("String")!== -1) { - $ERROR('#1: var aString = new String("test string"); aString.search("String")=== -1. Actual: '+aString.search("String")); +if (aString.search("String") !== -1) { + $ERROR('#1: var aString = new String("test string"); aString.search("String")=== -1. Actual: ' + aString.search("String")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js index 221a60249019d171b5f43861a6ad5ba27949d440..6d9640d7bb9f306d802f9ebf98f25c592d773213 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T3.js @@ -11,8 +11,8 @@ var aString = new String("test string"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search(/String/i)!== 5) { - $ERROR('#1: var aString = new String("test string"); aString.search(/String/i)=== 5. Actual: '+aString.search(/String/i)); +if (aString.search(/String/i) !== 5) { + $ERROR('#1: var aString = new String("test string"); aString.search(/String/i)=== 5. Actual: ' + aString.search(/String/i)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js index 2edc13e4aa3888c2330e4f459cd1f0144b745754..98e9ccd3f13f2cbfb3b1168a0f545a13f0e05116 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T4.js @@ -14,8 +14,8 @@ var regExp = /Four/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (bString.search(regExp)!== -1) { - $ERROR('#1: var bString = new String("one two three four five"); var regExp = /Four/; bString.search(regExp)=== -1. Actual: '+bString.search(regExp)); +if (bString.search(regExp) !== -1) { + $ERROR('#1: var bString = new String("one two three four five"); var regExp = /Four/; bString.search(regExp)=== -1. Actual: ' + bString.search(regExp)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js index 40b750cc8b4457eadf7300bd6ab78b09adc1339d..a2c4d80fd2985e6fe2d2208881ce8231fd8ebff3 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T5.js @@ -14,8 +14,8 @@ var regExp = /four/; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (bString.search(regExp)!== 14) { - $ERROR('#1: var bString = new String("one two three four five"); var regExp = /four/; bString.search(regExp)=== 14. Actual: '+bString.search(regExp)); +if (bString.search(regExp) !== 14) { + $ERROR('#1: var bString = new String("one two three four five"); var regExp = /four/; bString.search(regExp)=== 14. Actual: ' + bString.search(regExp)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js index b6787c22c1d35bce49f945363de124fc1b71012e..3acba0c77f48d9f11c12d52f783c92f6c71281c6 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T6.js @@ -11,8 +11,8 @@ var aString = new String("test string"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search("notexist")!== -1) { - $ERROR('#1: var aString = new String("test string"); aString.search("notexist")=== -1. Actual: '+aString.search("notexist")); +if (aString.search("notexist") !== -1) { + $ERROR('#1: var aString = new String("test string"); aString.search("notexist")=== -1. Actual: ' + aString.search("notexist")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js index 4dad5ae95bff66b57a5addb4a99abccd5f0f0c91..7581a0a85f6d746bfa5aba82e786a2de0e5c9c86 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A2_T7.js @@ -11,8 +11,8 @@ var aString = new String("test string probe"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search("string pro")!== 5) { - $ERROR('#1: var aString = new String("test string probe"); aString.search("string pro")=== 5. Actual: '+aString.search("string pro")); +if (aString.search("string pro") !== 5) { + $ERROR('#1: var aString = new String("test string probe"); aString.search("string pro")=== 5. Actual: ' + aString.search("string pro")); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js index 1481639f7c68c9039d79807a676a1b45b609bc2e..bc46040ef94f0cc978857ca8d805145d1d0a273b 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T1.js @@ -13,8 +13,8 @@ var aString = new String("power of the power of the power of the power of the po ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search(/the/)!== aString.search(/the/g)) { - $ERROR('#1: var aString = new String("power of the power of the power of the power of the power of the power of the great sword"); aString.search(/the/)=== aString.search(/the/g). Actual: '+aString.search(/the/)); +if (aString.search(/the/) !== aString.search(/the/g)) { + $ERROR('#1: var aString = new String("power of the power of the power of the power of the power of the power of the great sword"); aString.search(/the/)=== aString.search(/the/g). Actual: ' + aString.search(/the/)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js index 099e69e6fbd810ec86a8f61720507619ae02bd06..af4e03407aa714e448a2ec41b0a03de6829283c5 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A3_T2.js @@ -13,8 +13,8 @@ var aString = new String("power \u006F\u0066 the power of the power \u006F\u0066 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (aString.search(/of/)!== aString.search(/of/g)) { - $ERROR('#1: var aString = new String("power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the great sword"); aString.search(/of/)=== aString.search(/of/g). Actual: '+aString.search(/of/)); +if (aString.search(/of/) !== aString.search(/of/g)) { + $ERROR('#1: var aString = new String("power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the power \\u006F\\u0066 the power of the great sword"); aString.search(/of/)=== aString.search(/of/g). Actual: ' + aString.search(/of/)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A6.js index 7b56f3270bbd55083e57db04e6de1af645844364..8e6d1e94ddde70c1b4b9fe50ed17b206ec18fda2 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A6.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.search.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.search.prototype !== undefined) { - $ERROR('#1: String.prototype.search.prototype === undefined. Actual: '+String.prototype.search.prototype ); + $ERROR('#1: String.prototype.search.prototype === undefined. Actual: ' + String.prototype.search.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A7.js b/test/built-ins/String/prototype/search/S15.5.4.12_A7.js index e34449aac3556412d03c153c951c17c1465ba4e3..d6e6f751c8a27b5d33c275a08a89fadb5e815986 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A7.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); + $ERROR('#1.1: __FACTORY = String.prototype.search; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A8.js b/test/built-ins/String/prototype/search/S15.5.4.12_A8.js index e51d88ad62cf3a6d27abce527c8e1ac5d2234659..300413c01d2964516d99c4720f7d2dea52ea8451 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A8.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.search.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.search.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.search){ - if (p==="length") count++; +for (var p in String.prototype.search) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.search){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.search){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A9.js b/test/built-ins/String/prototype/search/S15.5.4.12_A9.js index 544791040a74e131b29c2ca7b021a6c67f69df5c..1abba4346367314033e2b651debde12fdc0d8f13 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A9.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.search.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#0: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.search.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.search.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.search.length; String.prototype.search.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.search.length; String.prototype.search.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js index 1905752598ca449e07f286ce96119112af7a3775..b01969682ed579266dd0a2bded1d4b3ddc8adbbe 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.slice.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#1: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.slice.length; -verifyNotWritable(String.prototype.slice, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.slice, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.slice.length !== __obj) { - $ERROR('#2: __obj = String.prototype.slice.length; String.prototype.slice.length = function(){return "shifted";}; String.prototype.slice.length === __obj. Actual: '+String.prototype.slice.length ); + $ERROR('#2: __obj = String.prototype.slice.length; String.prototype.slice.length = function(){return "shifted";}; String.prototype.slice.length === __obj. Actual: ' + String.prototype.slice.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js index df758f408d435442d754a71c25299e8d3e4dddae..e5ea943ba5b46b2bb8d0bde0103c0779159f6e14 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.slice.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.slice.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.slice.hasOwnProperty("length") return true. Actual: '+String.prototype.slice.hasOwnProperty("length")); + $ERROR('#1: String.prototype.slice.hasOwnProperty("length") return true. Actual: ' + String.prototype.slice.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.slice.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.slice.length !== 2) { - $ERROR('#2: String.prototype.slice.length === 2. Actual: '+String.prototype.slice.length ); + $ERROR('#2: String.prototype.slice.length === 2. Actual: ' + String.prototype.slice.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js index 5158fdf5b910e29db4a8336c37c28f7ffe42a285..5ec85372c3229903fa36edc15a67434c3d3783d3 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T1.js @@ -14,7 +14,7 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.slice(false, true) !== "t") { - $ERROR('#1: __instance = new Object(true); __instance.slice = String.prototype.slice; __instance.slice(false, true) === "t". Actual: '+__instance.slice(false, true) ); + $ERROR('#1: __instance = new Object(true); __instance.slice = String.prototype.slice; __instance.slice(false, true) === "t". Actual: ' + __instance.slice(false, true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js index 6f6100e61164ed61c4a7882cb9822108dad0acff..14dd4a2c03aa14ff51872bcf9d2883526cc2d5f4 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js @@ -9,15 +9,23 @@ description: > object have overrided valueOf function ---*/ -var __obj = {valueOf:function(){return 2;}}; +var __obj = { + valueOf: function() { + return 2; + } +}; var __str = "\u0035ABBBABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.slice(__obj, function(){return __str.slice(0,1);}()) !== "BBB") { - $ERROR('#1: var x; var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.slice(__obj, function(){return __str.slice(0,1);}()) === "BBB". Actual: '+__str.slice(__obj, function(){return __str.slice(0,1);}()) ); - } +if (__str.slice(__obj, function() { + return __str.slice(0, 1); + }()) !== "BBB") { + $ERROR('#1: var x; var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.slice(__obj, function(){return __str.slice(0,1);}()) === "BBB". Actual: ' + __str.slice(__obj, function() { + return __str.slice(0, 1); + }())); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js index 1e5d7e9a7a313ece95b7b85f0f09f1797e78e1c4..5c45b1ceb21445dddd400ce766c8c1882b219506 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js @@ -9,19 +9,27 @@ description: > overrided valueOf function, that return exception ---*/ -var __obj = {valueOf:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.slice(__obj,__obj2); - $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.slice(__obj, __obj2); + $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js index 351daa7f7fba5d71771e71ea4960a68eb8c13b4d..b111b08e5470ad6e84b44b878ab77abb419e8e3c 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js @@ -11,19 +11,30 @@ description: > return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.slice(__obj, __obj2); - $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.slice(__obj, __obj2); + $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js index 82799f1ab84d89ea8f82441bdb45028191da9d9f..50e38d195b29585b9168d622b88e5eae1c4425d5 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js @@ -10,18 +10,29 @@ description: > overrided toString function, that return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inend"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".slice(__obj, __obj2); - $ERROR('#1: "var x = slice(__obj,__obj2)" lead to throwing exception'); + var x = "ABB\u0041BABAB\u0031BBAA".slice(__obj, __obj2); + $ERROR('#1: "var x = slice(__obj,__obj2)" lead to throwing exception'); } catch (e) { - if (e!=="inend") { - $ERROR('#1.1: Exception === "inend". Actual: '+e); - } + if (e !== "inend") { + $ERROR('#1.1: Exception === "inend". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js index d7b718ac8af74fe9742dc1f848ed7822eb0f0ff8..ab3b2dbbd6794dc8bebd43af2a42c9c33ce943cc 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js @@ -9,8 +9,8 @@ description: Used one argument, that is function(){}(). Instance is string ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("report".slice(function(){}()) !== "report") { - $ERROR('#1: "report".slice(function(){}()) === "report". Actual: '+"report".slice(function(){}()) ); +if ("report".slice(function() {}()) !== "report") { + $ERROR('#1: "report".slice(function(){}()) === "report". Actual: ' + "report".slice(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js index b7017e4db43f74e5ed493027f6329a69dc501cc9..747902faa9daa0da554a8fd4166b3d52f643f4b5 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T15.js @@ -16,8 +16,8 @@ Number.prototype.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__num.slice()!=="11.001002") { - $ERROR('#1: var __num = 11.001002; Number.prototype.slice = String.prototype.slice; __num.slice()==="11.001002". Actual: '+__num.slice()); +if (__num.slice() !== "11.001002") { + $ERROR('#1: var __num = 11.001002; Number.prototype.slice = String.prototype.slice; __num.slice()==="11.001002". Actual: ' + __num.slice()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js index dd945f58120b6f99c3b2f9d688122a45ebd53517..b2932ddb8ecad4a7e5578bea177fc3e6d1167c92 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js @@ -15,8 +15,12 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(function(){return true;}(),x) !== "alse") { - $ERROR('#1: var x; __instance = new Boolean; __instance.slice = String.prototype.slice; __instance.slice(function(){return true;}(),x) === "alse". Actual: '+__instance.slice(function(){return true;}(),x) ); +if (__instance.slice(function() { + return true; + }(), x) !== "alse") { + $ERROR('#1: var x; __instance = new Boolean; __instance.slice = String.prototype.slice; __instance.slice(function(){return true;}(),x) === "alse". Actual: ' + __instance.slice(function() { + return true; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js index 1fda0a1141f2d3796def1684dc4ad6932556a2cc..b3dd30a6da654d7a04b47c0b08bdd2fc3dfc89fb 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js @@ -12,8 +12,12 @@ description: > //since ToInteger(null) yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().slice(null, -3) !== "gnull") { - $ERROR('#1: function(){return "gnulluna"}().slice(null, -3) === "gnull". Actual: '+function(){return "gnulluna"}().slice(null, -3) ); +if (function() { + return "gnulluna" + }().slice(null, -3) !== "gnull") { + $ERROR('#1: function(){return "gnulluna"}().slice(null, -3) === "gnull". Actual: ' + function() { + return "gnulluna" + }().slice(null, -3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js index d75481ec232d3ae463e31b4a310318f0c4251680..516aefbc93c67b2a9e4ad3ad72a53fa1eab06af1 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js @@ -10,18 +10,22 @@ description: > functions ---*/ -__func.valueOf=function(){return "gnulluna"}; -__func.toString=function(){return __func;}; +__func.valueOf = function() { + return "gnulluna" +}; +__func.toString = function() { + return __func; +}; -Function.prototype.slice=String.prototype.slice; +Function.prototype.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__func.slice(null, Function().slice(__func,5).length) !== "gnull") { - $ERROR('#1: __func.slice(null, Function().slice(__func,5).length) === "gnull". Actual: '+__func.slice(null, Function().slice(__func,5).length) ); +if (__func.slice(null, Function().slice(__func, 5).length) !== "gnull") { + $ERROR('#1: __func.slice(null, Function().slice(__func,5).length) === "gnull". Actual: ' + __func.slice(null, Function().slice(__func, 5).length)); } // ////////////////////////////////////////////////////////////////////////////// -function __func(){}; +function __func() {}; diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js index 38aa85042ddcd4cd96cc4571104bcb6a86564b73..a0e18491b2924b2d276d56a31e38f2afba833828 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js @@ -12,8 +12,8 @@ description: > //since ToInteger(undefined yelds 0) ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String("undefined").slice(x,3) !== "und") { - $ERROR('#1: var x; new String("undefined").slice(x,3) === "und". Actual: '+new String("undefined").slice(x,3) ); +if (new String("undefined").slice(x, 3) !== "und") { + $ERROR('#1: var x; new String("undefined").slice(x,3) === "und". Actual: ' + new String("undefined").slice(x, 3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js index 3926ea9df30d11bce5b82ef066e85e10fe5ae4aa..1ac08f088fe336d6865f00da9ed035901aa2d0d9 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T7.js @@ -10,8 +10,8 @@ description: Arguments are symbol and undefined, and instance is String //since ToInteger("e") yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(void 0).slice("e",undefined) !== "undefined") { - $ERROR('#1: String(void 0).slice("e",undefined) === "undefined". Actual: '+String(void 0).slice("e",undefined) ); +if (String(void 0).slice("e", undefined) !== "undefined") { + $ERROR('#1: String(void 0).slice("e",undefined) === "undefined". Actual: ' + String(void 0).slice("e", undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js index 106fd8a1eca31a12e2b5acc0e8c65dcb0197a690..9eb7c5b31eba6f1e895165d260dd0ccbe6570aca 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js @@ -9,13 +9,15 @@ description: > String(object), object have overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; //since void 0 yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).slice(-4,void 0) !== "ined") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).slice(-4,void 0) === "ined". Actual: '+String(__obj).slice(-4,void 0) ); +if (String(__obj).slice(-4, void 0) !== "ined") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).slice(-4,void 0) === "ined". Actual: ' + String(__obj).slice(-4, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js index 9c927f1f24eaa3ef8b76912164b8d4022bc398d3..e26a1a66dd89ae0811628bcce26682ae3921ea2b 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js @@ -11,15 +11,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; //since ToInteger(undefined) yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String(__obj).slice(/*(function(){})()*/undefined,__obj) !== "") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).slice(//*(function(){})()*//undefined,__obj) === "". Actual: '+new String(__obj).slice(/*(function(){})()*/undefined,__obj) ); +if (new String(__obj).slice( /*(function(){})()*/ undefined, __obj) !== "") { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).slice(//*(function(){})()*//undefined,__obj) === "". Actual: ' + new String(__obj).slice( /*(function(){})()*/ undefined, __obj)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js index 88790f7e7278f9709fb89a77939505bbd2b5e7f2..d691c971087ec9e7dda122663e4f93b362681543 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T1.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __string.slice() !== "string") { - $ERROR('#1: __string = new String("this is a string object"); typeof __string.slice() === "string". Actual: '+typeof __string.slice() ); + $ERROR('#1: __string = new String("this is a string object"); typeof __string.slice() === "string". Actual: ' + typeof __string.slice()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js index cadc985329f3b371c693d86f77900cbd2bbb915b..1dda10c23e3c1814bcefa5468e6b5cd8fc990af2 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T2.js @@ -12,7 +12,7 @@ var __string = new String('this is a string object'); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(NaN, Infinity) !== "this is a string object") { - $ERROR('#1: __string = new String(\'this is a string object\'); __string.slice(NaN, Infinity) === "this is a string object". Actual: '+__string.slice(NaN, Infinity) ); + $ERROR('#1: __string = new String(\'this is a string object\'); __string.slice(NaN, Infinity) === "this is a string object". Actual: ' + __string.slice(NaN, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js index 2cd542d173f7db4904a1ec99197a0164c80940a2..3ca0043d5e0d5a79a204a9d114d81bafb6a946b5 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T3.js @@ -11,8 +11,8 @@ var __string = new String(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.slice(1,0) !== "") { - $ERROR('#1: __string = new String(""); __string.slice(1,0) === "". Actual: '+__string.slice(1,0) ); +if (__string.slice(1, 0) !== "") { + $ERROR('#1: __string = new String(""); __string.slice(1,0) === "". Actual: ' + __string.slice(1, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js index db80ad757e561cd94b9c4d1298b20f2c93c99e7b..6a31bfee9eee0430934ebb273e4debac9d964b6e 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T4.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(Infinity, NaN) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, NaN) === "". Actual: '+__string.slice(Infinity, NaN) ); + $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, NaN) === "". Actual: ' + __string.slice(Infinity, NaN)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js index e889dedce4602882c5ba5b3c23056554a0ded1ec..92ff1765a6bc03d9096cea704e61fe706b62653b 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T5.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(Infinity, Infinity) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, Infinity) === "". Actual: '+__string.slice(Infinity, Infinity) ); + $ERROR('#1: __string = new String("this is a string object"); __string.slice(Infinity, Infinity) === "". Actual: ' + __string.slice(Infinity, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js index 73383aaeb7498ceeab568de02f02eaaaee0e4398..905fea7917c1ac8868049e262e17fd9a70bd6774 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T6.js @@ -11,8 +11,8 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.slice(-0.01,0) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(-0.01,0) === "". Actual: '+__string.slice(-0.01,0) ); +if (__string.slice(-0.01, 0) !== "") { + $ERROR('#1: __string = new String("this is a string object"); __string.slice(-0.01,0) === "". Actual: ' + __string.slice(-0.01, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js index 5a6e272b37ce7d1bbc369d8a0571d1f0b575dc20..1badb971a518fbba0d9269ae6f6fead66435ff9a 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T7.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(__string.length, __string.length) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length, __string.length) === "". Actual: '+__string.slice(__string.length, __string.length) ); + $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length, __string.length) === "". Actual: ' + __string.slice(__string.length, __string.length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js index 9559e7b75d6d39b4fd6c963749bb928d5be7e889..ad8c991f2223b6ec0b5f9751bbf82ee30f95e4ef 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T8.js @@ -11,8 +11,8 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.slice(__string.length+1, 0) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length+1, 0) === "". Actual: '+__string.slice(__string.length+1, 0) ); +if (__string.slice(__string.length + 1, 0) !== "") { + $ERROR('#1: __string = new String("this is a string object"); __string.slice(__string.length+1, 0) === "". Actual: ' + __string.slice(__string.length + 1, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js index 9b13cb8dfd2d3235516f33599b01e8ea4a726f85..196575b08db4733e67bc68c64665557b042d0d92 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A2_T9.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.slice(-Infinity, -Infinity) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.slice(-Infinity, -Infinity) === "". Actual: '+__string.slice(-Infinity, -Infinity) ); + $ERROR('#1: __string = new String("this is a string object"); __string.slice(-Infinity, -Infinity) === "". Actual: ' + __string.slice(-Infinity, -Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js index b60a25f061d1404f23e9722a29d2fb4f1cf29315..1bfa9b1c03f2f79c89b2d5fc497eacdf03e4298b 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T1.js @@ -13,8 +13,8 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(0,8) !== "[object ") { - $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(0,8) === "[object ". Actual: '+__instance.slice(0,8) ); +if (__instance.slice(0, 8) !== "[object ") { + $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(0,8) === "[object ". Actual: ' + __instance.slice(0, 8)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js index 4335b1e822917c478d05f46b8eda66a466831c2f..5d1c65a58440a6d747a76c85144a8347896d129a 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T2.js @@ -15,8 +15,8 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(8,__instance.toString().length) !== "Object]") { - $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(8,__instance.toString().length) === "Object]". Actual: '+__instance.slice(8,__instance.toString().length) ); +if (__instance.slice(8, __instance.toString().length) !== "Object]") { + $ERROR('#1: __instance = new Object(); __instance.slice = String.prototype.slice; __instance.slice(8,__instance.toString().length) === "Object]". Actual: ' + __instance.slice(8, __instance.toString().length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js index 2ed9d7ff064a85bfa7d7fbf11f4df82aefd69897..8092dd58753fd9902a866589da66973605ff7ea3 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js @@ -9,14 +9,18 @@ description: > instance.slice(...).slice(...) ---*/ -var __instance = { toString: function() { return "function(){}";} }; +var __instance = { + toString: function() { + return "function(){}"; + } +}; __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(-Infinity,8).slice(1,Infinity) !== "unction") { - $ERROR('#1: __instance = function(){}; __instance.slice = String.prototype.slice; __instance.slice(-Infinity,8).slice(1,Infinity) === "unction". Actual: '+__instance.slice(-Infinity,8).slice(1,Infinity) ); +if (__instance.slice(-Infinity, 8).slice(1, Infinity) !== "unction") { + $ERROR('#1: __instance = function(){}; __instance.slice = String.prototype.slice; __instance.slice(-Infinity,8).slice(1,Infinity) === "unction". Actual: ' + __instance.slice(-Infinity, 8).slice(1, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js index e07c09aae46e556e6ef142b27ee67c82b84c0f89..889019cfd9bca4ebc34b13b9d3767339861c05a4 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js @@ -9,20 +9,22 @@ description: > instance passes ---*/ -__FACTORY.prototype.toString = function() { return this.value+''; }; +__FACTORY.prototype.toString = function() { + return this.value + ''; +}; var __instance = new __FACTORY(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(0,100) !== "undefined") { - $ERROR('#1: __instance.slice(0,100) === "undefined". Actual: '+__instance.slice(0,100) ); +if (__instance.slice(0, 100) !== "undefined") { + $ERROR('#1: __instance.slice(0,100) === "undefined". Actual: ' + __instance.slice(0, 100)); } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value, - this.slice= String.prototype.slice; - //this.substring = String.prototype.substring; +function __FACTORY(value) { + this.value = value, + this.slice = String.prototype.slice; + //this.substring = String.prototype.substring; } diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js index 0e9643aa62c277a00fbe8fa437c4f453d0b7df2e..5c97de6aacf50acd0919afa993b085bfb205333d 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.slice.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.slice.prototype !== undefined) { - $ERROR('#1: String.prototype.slice.prototype === undefined. Actual: '+String.prototype.slice.prototype ); + $ERROR('#1: String.prototype.slice.prototype === undefined. Actual: ' + String.prototype.slice.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js index 9e4042b08c3e0d9b038013efee2dff54050271c9..d4f6b3fc7c10cec0af7e9b7c56735c865239a359 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.slice.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.slice.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.slice){ - if (p==="length") count++; +for (var p in String.prototype.slice) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.slice){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.slice){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js index f45ea31809cb062bc810bc2ccc1d248a72e2e856..ce8ca68af9a0955c7633a54b0029bbbf8ff89408 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.slice.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#0: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.slice.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.slice.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.slice.length; String.prototype.slice.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.slice.length; String.prototype.slice.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js index f4f331cb6e19e6bb1f17f634f7c9488a5ce6336d..153a57b566bc25a64dd6fd28657e708e5c45e798 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.split.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.split.length; -verifyNotWritable(String.prototype.split, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.split, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.split.length !== __obj) { - $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: '+String.prototype.split.length ); + $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: ' + String.prototype.split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js index b3a94684f8e6c9ea28406833f665fcd9a24fec0a..e5ca3139e5ec42d80f194733f4adc8d9fed92727 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.split.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.split.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.split.hasOwnProperty("length") return true. Actual: '+String.prototype.split.hasOwnProperty("length")); + $ERROR('#1: String.prototype.split.hasOwnProperty("length") return true. Actual: ' + String.prototype.split.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.split.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.split.length !== 2) { - $ERROR('#2: String.prototype.split.length === 2. Actual: '+String.prototype.split.length ); + $ERROR('#2: String.prototype.split.length === 2. Actual: ' + String.prototype.split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js index 9acfda6b3ca97d74c088838b303fd2ed5c854d2c..69ca40343427886baaa3f234bde4404d85b86092 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T1.js @@ -21,7 +21,7 @@ var __split = __instance.split(true, false); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 0) { - $ERROR('#3: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.length === 0. Actual: '+__split.length ); + $ERROR('#3: __instance = new Object(true); __instance.split = String.prototype.split; __split = __instance.split(true, false); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js index bc79057f854099b161a7a5173ed37ef9978788dc..c56b54de718e63b3743a3edf426c16962778437e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js @@ -15,8 +15,16 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0042B";}} -var __obj2 = {valueOf:function(){return true;}} +var __obj = { + toString: function() { + return "\u0042B"; + } +} +var __obj2 = { + valueOf: function() { + return true; + } +} var __str = "ABB\u0041BABAB"; var __split = __str.split(__obj, __obj2); @@ -24,7 +32,7 @@ var __split = __str.split(__obj, __obj2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +40,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +48,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,7 +56,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "A") { - $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] ); + $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js index ddf8fe7609103b78ada8d610bd1620270493ff96..73d4917a71b06c423f910777d05127fa0502e48c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js @@ -15,19 +15,27 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.split(__obj, __obj2); - $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.split(__obj, __obj2); + $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js index ba6a0efed4bb0f5eb8906b347049a11fd6a41641..5fe3720499470fa8fd1527bcf45a97f58ba7cc30 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js @@ -15,19 +15,30 @@ description: > function and toString function, that throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.split(__obj, __obj2); - $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.split(__obj, __obj2); + $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js index d97ac63db0daff183b8a3b41b6c27e9c59a4b6b8..eded7e4c0f3b206e338cb80736c49d23c748fcdf 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js @@ -15,15 +15,26 @@ description: > and toString functions ---*/ -var __obj = {toString:function(){return "\u0042\u0042";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}} +var __obj = { + toString: function() { + return "\u0042\u0042"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + return "2"; + } +} var __split = "ABB\u0041BABAB\u0042cc^^\u0042Bvv%%B\u0042xxx".split(__obj, __obj2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +42,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -39,7 +50,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 2) { - $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: '+__split.length ); + $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -47,7 +58,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "A") { - $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] ); + $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -55,7 +66,7 @@ if (__split[0] !== "A") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[1] !== "ABABA") { - $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: '+__split[1] ); + $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js index 412513ed5df6c07e8b6a6c97be790845c7150143..df6ee1d693e77b2f256973e5c557d79b98008358 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js @@ -15,20 +15,28 @@ description: > have overrided valueOf function, that throw exception ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.split(__obj, __obj2); - $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intoint") { - $ERROR('#1.1: Exception === "intoint". Actual: '+e); - } - } +try { + var x = __instance.split(__obj, __obj2); + $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intoint") { + $ERROR('#1.1: Exception === "intoint". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js index 46cf1280942c56bebd1bec7d96f7a9da84de1fb4..52c2fc9ca7f02174351eb64e69b7d348f35ae368 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js @@ -16,9 +16,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.split = String.prototype.split; @@ -30,15 +41,19 @@ try { var x = __instance.split(__obj, __obj2); $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js index ff3d9ef001dcf89bdc5a36c63fb9c24dc843d83e..4fb875732e7da925aabe66ac152ec12d718456d8 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js @@ -14,15 +14,19 @@ description: > toString function, that return regexp ---*/ -var __obj = {toString:function(){return /\u0037\u0037/g;}}; +var __obj = { + toString: function() { + return /\u0037\u0037/g; + } +}; -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; try { var __split = 6776767677.006771122677555.split(__obj); $ERROR('#1: "__split = 6776767677.006771122677555.split(__obj)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js index 9d7b34da2f0bd094844d0c30e7f3fae0afaddfa1..95124d9cd9fd5ff9fb11df14dc1f9f3aa7719576 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js @@ -14,14 +14,14 @@ description: Argument is regexp, and instance is Number var __re = /\u0037\u0037/g; -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; var __split = 6776767677.006771122677555.split(__re); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 4) { - $ERROR('#3: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.length === 4. Actual: '+__split.length ); + $ERROR('#3: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split.length === 4. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ if (__split.length !== 4) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "6") { - $ERROR('#4: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[0] === "6". Actual: '+__split[0] ); + $ERROR('#4: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[0] === "6". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -53,7 +53,7 @@ if (__split[0] !== "6") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[1] !== "67676") { - $ERROR('#5: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[1] === "67676". Actual: '+__split[1] ); + $ERROR('#5: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[1] === "67676". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -61,7 +61,7 @@ if (__split[1] !== "67676") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__split[2] !== ".006") { - $ERROR('#6: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[2] === ".006". Actual: '+__split[2] ); + $ERROR('#6: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[2] === ".006". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// @@ -69,7 +69,7 @@ if (__split[2] !== ".006") { ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (__split[3] !== "1") { - $ERROR('#7: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[3] === "1". Actual: '+__split[3] ); + $ERROR('#7: var __re = /u0037u0037/g; Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re); __split[3] === "1". Actual: ' + __split[3]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js index 48bccb5126fe4e3273f887a9471a27b2daaa2be4..4c8fdbfb68f02da8685d6897d50d476196fda9df 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T18.js @@ -12,16 +12,16 @@ es5id: 15.5.4.14_A1_T18 description: Checking by using eval ---*/ -var __re = new RegExp("00"); +var __re = new RegExp("00"); -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; var __split = 6776767677.006771122677555.split(__re, eval("\"1\"")); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "6776767677.") { - $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split[0] === "6776767677.". Actual: '+__split[0] ); + $ERROR('#3: var __re = new RegExp("00"); Number.prototype.split=String.prototype.split; __split = 6776767677.006771122677555.split(__re, eval(""1"")); __split[0] === "6776767677.". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js index e099b49fa6f2db43dba0c9864d00a4f9b951813f..775ac3f566434082dc3096d0a24861a3018c241b 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js @@ -18,12 +18,14 @@ var __instance = new Boolean; __instance.split = String.prototype.split; -var __split = __instance.split("A"!=="\u0041", function(){return 0;}(),null); +var __split = __instance.split("A" !== "\u0041", function() { + return 0; +}(), null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +33,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -39,7 +41,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 0) { - $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: '+__split.length ); + $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js index a7725324fe34bc67050aa2cb41a483464c44a98f..cb21c14a123bb8d79c122fde1c8d1a168798ca65 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js @@ -14,48 +14,53 @@ description: Checking by using eval var split = String.prototype.split.bind(this); -var __obj__lim = {valueOf:function(){return 5;}}; +var __obj__lim = { + valueOf: function() { + return 5; + } +}; try { - toString = Object.prototype.toString; -} catch(e) { ; } + toString = Object.prototype.toString; +} catch (e) {; +} //Checks are only valid if we can overwrite the global object's toString method //(which ES5 doesn't even require to exist) -if (toString===Object.prototype.toString) { - var __class__ = toString(); - - var __split = split(eval("\"[\""),__obj__lim); - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#1 - if (typeof __split !== "object") { - $ERROR('#1: typeof __split === "object". Actual: '+typeof __split ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#2 - if (__split.constructor !== Array) { - $ERROR('#2: __split.constructor === Array. Actual: '+__split.constructor ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#3 - if (__split.length !== 2) { - $ERROR('#3: __split.length === 2. Actual: '+__split.length ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#3 - if (__split[1].substring(0,6) !== "object") { - $ERROR('#4: __split[1].substring(0,6) === "object". Actual: '+__split[1].substring(0,6) ); - } - // - ////////////////////////////////////////////////////////////////////////////// +if (toString === Object.prototype.toString) { + var __class__ = toString(); + + var __split = split(eval("\"[\""), __obj__lim); + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#1 + if (typeof __split !== "object") { + $ERROR('#1: typeof __split === "object". Actual: ' + typeof __split); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#2 + if (__split.constructor !== Array) { + $ERROR('#2: __split.constructor === Array. Actual: ' + __split.constructor); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#3 + if (__split.length !== 2) { + $ERROR('#3: __split.length === 2. Actual: ' + __split.length); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#3 + if (__split[1].substring(0, 6) !== "object") { + $ERROR('#4: __split[1].substring(0,6) === "object". Actual: ' + __split[1].substring(0, 6)); + } + // + ////////////////////////////////////////////////////////////////////////////// } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js index e0f5e32941d04d823ce43fdda45d9f940707afaf..f2931438d2ba9c0de0b2f9f994ee1346ac17e003 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js @@ -18,7 +18,7 @@ var __split = "".split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __split = "".split(); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __split = "".split(); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __split = "".split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __split = "".split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __split = "".split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __split = "".split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "") { - $ERROR('#4: __split = "".split(); __split[0] === "". Actual: '+__split[0] ); + $ERROR('#4: __split = "".split(); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js index 5515c76a90c1f023774951f7aacbb6cbbb3a4e7c..982309d1ace4df4d4a4c82d6c5e06b9d8e6916c3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js @@ -15,12 +15,14 @@ description: > ---*/ //since ToString(null) evaluates to "null" split(null) evaluates to split("null",0) -var __split = function(){return "gnulluna"}().split(null); +var __split = function() { + return "gnulluna" +}().split(null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +30,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,7 +38,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 2) { - $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: '+__split.length ); + $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -44,7 +46,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "g") { - $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: '+__split[0] ); + $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +54,7 @@ if (__split[0] !== "g") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[1] !== "una") { - $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: '+__split[1] ); + $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js index 74a9b6d7763b8172f0a880bced015a2617f670f3..815d13d19998ea97a897d06e97de4a4609b076d7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js @@ -18,7 +18,7 @@ var __split = new String("1undefined").split(x); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var x; __split = new String("1undefined").split(x); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var x; __split = new String("1undefined").split(x); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var x; __split = new String("1undefined").split(x); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var x; __split = new String("1undefined").split(x); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: var x; __split = new String("1undefined").split(x); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: var x; __split = new String("1undefined").split(x); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "1undefined") { - $ERROR('#4: var x; __split = new String("1undefined").split(x); __split[0] === "1undefined". Actual: '+__split[0] ); + $ERROR('#4: var x; __split = new String("1undefined").split(x); __split[0] === "1undefined". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js index bb030f4e27bb62a09c4155e3ef169d55394f8517..02cfc016517bd42be22a344b2a302b8283b0877b 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T7.js @@ -17,7 +17,7 @@ var __split = String("undefinedd").split(undefined); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __split = String("undefinedd").split(undefined); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __split = String("undefinedd").split(undefined); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __split = String("undefinedd").split(undefined); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __split = String("undefinedd").split(undefined); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __split = String("undefinedd").split(undefined); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __split = String("undefinedd").split(undefined); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -41,7 +41,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "undefinedd") { - $ERROR('#4: __split = String("undefinedd").split(undefined); __split[0] === "undefinedd". Actual: '+__split[0] ); + $ERROR('#4: __split = String("undefinedd").split(undefined); __split[0] === "undefinedd". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js index 3a7d671f373c6ab5780b799275232dbab927b971..05eb86148f18623f35f490b327deb10a33478305 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js @@ -14,14 +14,16 @@ description: > overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; var __split = String(__obj).split(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +31,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +39,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +47,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "undefined") { - $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: '+__split[0]); + $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js index e78ae20d077b30ed0d84f49bc153ffe199816d29..eb545020d0be55268c3e19384b57f90000e22f2c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js @@ -15,17 +15,17 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; //since ToString(undefined) evaluates to "undefined" -var __split = new String(__obj).split(function(){}()); +var __split = new String(__obj).split(function() {}()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -41,7 +41,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -49,7 +49,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "undefined") { - $ERROR('#4: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split[0] !== "undefined". Actual: '+__split[0]); + $ERROR('#4: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split[0] !== "undefined". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js index 0674e6091849eeb1b739607a6811a42954464853..fdf968d873c0be0a4533d15746b17adbbb4d57ac 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T1.js @@ -18,7 +18,7 @@ var __split = __string.split(","); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 5) { - $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.length === 5. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split.length === 5. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 5) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one") { - $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[0] === "one". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[0] === "one". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two") { - $ERROR('#4: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[1] === "two". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[1] === "two". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "two") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "three") { - $ERROR('#5: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[2] === "three". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[2] === "three". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (__split[2] !== "three") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__split[3] !== "four") { - $ERROR('#6: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[3] === "four". Actual: '+__split[3] ); + $ERROR('#6: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[3] === "four". Actual: ' + __split[3]); } // ////////////////////////////////////////////////////////////////////////////// @@ -66,7 +66,7 @@ if (__split[3] !== "four") { ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (__split[4] !== "five") { - $ERROR('#7: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[4] === "five". Actual: '+__split[4] ); + $ERROR('#7: var __string = new String("one,two,three,four,five"); __split = __string.split(","); __split[4] === "five". Actual: ' + __split[4]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js index 64ad57b263bedd8f72565b0a6042d034e092b82d..eff95ed197adc30b2de6ab9cf9c9c3e973b01300 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T10.js @@ -19,7 +19,7 @@ var __split = __string.split(123); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,17 +27,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __expected.length; i++ ) { - if (__expected[i]!==__split[i]) { - $ERROR('#3.'+i+': var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __expected['+i+']===__split['+i+']. Actual: '+__expected[i]); - } +for (var i = 0; i < __expected.length; i++) { + if (__expected[i] !== __split[i]) { + $ERROR('#3.' + i + ': var __string = "this123is123a123string123object"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(123); __expected[' + i + ']===__split[' + i + ']. Actual: ' + __expected[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js index 08951717aff27f78468996c64ff7509f45971ad2..b29dc9e0e06a801854d9d3fadb069e2924cf7dbd 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T11.js @@ -18,7 +18,7 @@ var __split = __string.split(":"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one-1,two-2,four-4") { - $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split[0] === "one-1,two-2,four-4". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(":"); __split[0] === "one-1,two-2,four-4". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js index e3cde172c002d3b2746403a111db0a2525780936..7696dfa9ed2566ea4b30b4495e831017dced638d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T12.js @@ -18,7 +18,7 @@ var __split = __string.split("r-42"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one-1 two-2 four-4") { - $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split[0] === "one-1 two-2 four-4". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("r-42"); __split[0] === "one-1 two-2 four-4". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js index 1dfd75e251dc109f00d9755a9f96e3a2b168971e..067bf5aebeea21b7c815c680dfedc32c49d1f035 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T13.js @@ -18,7 +18,7 @@ var __split = __string.split("-4"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one-1 two-2 four") { - $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[0] === "one-1 two-2 four". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[0] === "one-1 two-2 four". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one-1 two-2 four") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[1] === "". Actual: '+__split[1] ); + $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("-4"); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js index 0ee0bd42d6555a17b5be3971b2e7f2d1bb9ef3b2..ec0899acb89690058b53e3edca4bd5bbe4fbf71c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T14.js @@ -18,7 +18,7 @@ var __split = __string.split("on"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[0] === "". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "e-1 two-2 four-4") { - $ERROR('#4: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[1] === "e-1 two-2 four-4". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one-1 two-2 four-4"); __split = __string.split("on"); __split[1] === "e-1 two-2 four-4". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js index dea2269947cfffc466251d14ee67454be74c8433..2a580f29e07725f3cbc77004c5722da4e01c41fa 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T15.js @@ -18,7 +18,7 @@ var __split = __string.split(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 0) { - $ERROR('#2: var __string = new String(); __split = __string.split(""); __split.length === 0. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(); __split = __string.split(""); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 0) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== undefined) { - $ERROR('#3: var __string = new String(); __split = __string.split(""); __split[0] === undefined. Actual: '+__split[0] ); + $ERROR('#3: var __string = new String(); __split = __string.split(""); __split[0] === undefined. Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js index a7664c43b96d9674554353a69ce30e0eb0418bba..4a3bceb58bb0be615f33610ff0ec633b325305a9 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T16.js @@ -18,7 +18,7 @@ var __split = __string.split(" "); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String(); __split = __string.split(" "); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(); __split = __string.split(" "); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String(); __split = __string.split(" "); __split[0] === "". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String(); __split = __string.split(" "); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js index f216473073f3be3e5384a611554526556a6e30fc..e76f256882204de9705843a6e3ffe748dce96f3d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T17.js @@ -18,7 +18,7 @@ var __split = __string.split(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(" "); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(" "); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String(" "); __split = __string.split(""); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(" "); __split = __string.split(""); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== " ") { - $ERROR('#3: var __string = new String(" "); __split = __string.split(""); __split[0] === " ". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String(" "); __split = __string.split(""); __split[0] === " ". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js index 8e8f760731d121f6f08a4864d5a1a09695fd975a..65971fdd32cbfccbb0ec86595d33ab374afc4acb 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T18.js @@ -18,7 +18,7 @@ var __split = __string.split(" "); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(" "); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(" "); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String(" "); __split = __string.split(" "); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(" "); __split = __string.split(" "); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String(" "); __split = __string.split(" "); __split[0] === "". Actual: '+__split[0]); + $ERROR('#3: var __string = new String(" "); __split = __string.split(" "); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String(" "); __split = __string.split(" "); __split[1] === "". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String(" "); __split = __string.split(" "); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js index bfd2b88a64536d3ccb8471fcbf50ff513633687b..b9a9b2a740ff22b022afef1c952fa2f78240e8f3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T19.js @@ -18,7 +18,7 @@ var __split = __string.split("x"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = ""; __split = __string.split("x"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = ""; __split = __string.split("x"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = ""; __split = __string.split("x"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = ""; __split = __string.split("x"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = ""; __split = __string.split("x"); __split[0] === "". Actual: '+__split[0] ); + $ERROR('#3: var __string = ""; __split = __string.split("x"); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js index ccf7ca484f9551b1ef7bc6f5a6a32a17d5c85e1f..bedfcf81b5b7c913b303f6eca2868afbb6217924 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T2.js @@ -18,7 +18,7 @@ var __split = __string.split(" "); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(" "); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(" "); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 5) { - $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(" "); __split.length === 5. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(" "); __split.length === 5. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 5) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one") { - $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(" "); __split[0] === "one". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(" "); __split[0] === "one". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two") { - $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(" "); __split[1] === "two". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(" "); __split[1] === "two". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "two") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "three") { - $ERROR('#5: var __string = new String("one two three four five"); __split = __string.split(" "); __split[2] === "three". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("one two three four five"); __split = __string.split(" "); __split[2] === "three". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (__split[2] !== "three") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__split[3] !== "four") { - $ERROR('#6: var __string = new String("one two three four five"); __split = __string.split(" "); __split[3] === "four". Actual: '+__split[3] ); + $ERROR('#6: var __string = new String("one two three four five"); __split = __string.split(" "); __split[3] === "four". Actual: ' + __split[3]); } // ////////////////////////////////////////////////////////////////////////////// @@ -66,7 +66,7 @@ if (__split[3] !== "four") { ////////////////////////////////////////////////////////////////////////////// //CHECK#7 if (__split[4] !== "five") { - $ERROR('#7: var __string = new String("one two three four five"); __split = __string.split(" "); __split[4] === "five". Actual: '+__split[4] ); + $ERROR('#7: var __string = new String("one two three four five"); __split = __string.split(" "); __split[4] === "five". Actual: ' + __split[4]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js index dc5250fa846baeb39fe3d5abbde7a3b159998eca..b927eeb09b28985381603c992e1ce7a8dff173ba 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T20.js @@ -18,7 +18,7 @@ var __split = __string.split(new RegExp); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,17 +26,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __string.length) { - $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.length === __string.length. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __split.length === __string.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __string.length; i++ ) { - if (__string.charAt(i)!==__split[i]) { - $ERROR('#3.'+i+': var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __string.charAt('+i+')===__split['+i+']. Actual: '+__string.charAt(i)); - } +for (var i = 0; i < __string.length; i++) { + if (__string.charAt(i) !== __split[i]) { + $ERROR('#3.' + i + ': var __string = new String("one-1 two-2 three-3"); __split = __string.split(new RegExp); __string.charAt(' + i + ')===__split[' + i + ']. Actual: ' + __string.charAt(i)); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js index ea7759b726f9ed5e3977278f2f3b4b29a023bbd7..dfe48ffd39517ed71dfb4da7bc92deba762bafe4 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T21.js @@ -18,7 +18,7 @@ var __split = __string.split("ll"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("ll"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("ll"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("ll"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("ll"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("ll"); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("ll"); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "o") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("ll"); __split[1] === "o". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("ll"); __split[1] === "o". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js index f57cd2035646e419fc513eb0c91f1e33910009d9..2000c8067c7ee418f9979b0b4ff283722104a5e9 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T22.js @@ -18,7 +18,7 @@ var __split = __string.split("l"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("l"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("l"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("l"); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("l"); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("l"); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("l"); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("l"); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("l"); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); __split = __string.split("l"); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); __split = __string.split("l"); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js index e50b1d847cb5afd12ba6914e869a7eea7a4f3e86..495b83a60a379450bb43b82e63a37d5c991ce728 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T23.js @@ -18,7 +18,7 @@ var __split = __string.split("x"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("x"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("x"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("x"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("x"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "hello") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("x"); __split[0] === "hello". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("x"); __split[0] === "hello". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js index 7efcab337455a85eabf5e3ae72d08588ba19d2c4..49c6a0f1cdefae539e4b4bf6aac2f2eda10044bf 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T24.js @@ -18,7 +18,7 @@ var __split = __string.split("h"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("h"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("h"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("h"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("h"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("h"); __split[0] === "". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("h"); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "ello") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("h"); __split[1] === "ello". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("h"); __split[1] === "ello". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js index e8f450156add402361f6521cde9e5266d7eaadc6..ae70cca74a3e6446dec4df8c2f58908cd44c72e1 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T25.js @@ -18,7 +18,7 @@ var __split = __string.split("o"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("o"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("o"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("o"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("o"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "hell") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("o"); __split[0] === "hell". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("o"); __split[0] === "hell". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "hell") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("o"); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("o"); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js index 27f6d41d605bee4b2b19ec27649ad8f73223588e..3646139de6a2b25b21eb636f2107ee2ac919a7d7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T26.js @@ -18,7 +18,7 @@ var __split = __string.split("hello"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("hello"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("hello"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("hello"); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("hello"); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("hello"); __split[0] === "". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("hello"); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); __split = __string.split("hello"); __split[1] === "". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("hello"); __split = __string.split("hello"); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js index 865c38c87608ba848b3d18426918744943ca1f26..c7fd8c5460b8ca519b4b5b270e32fa0fec771c4a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T27.js @@ -18,7 +18,7 @@ var __split = __string.split(undefined); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split(undefined); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split(undefined); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split(undefined); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split(undefined); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "hello") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split(undefined); __split[0] === "hello". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("hello"); __split = __string.split(undefined); __split[0] === "hello". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js index 634a2b4cb6ca4e71af2bb642c61d4e6e3af61091..6ef0a4657072158cf53e2cd1df398ab75bb5cf67 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T28.js @@ -18,7 +18,7 @@ var __split = __string.split("hellothere"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); __split = __string.split("hellothere"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); __split = __string.split("hellothere"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("hello"); __split = __string.split("hellothere"); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); __split = __string.split("hellothere"); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "hello") { - $ERROR('#3: var __string = new String("hello"); __split = __string.split("hellothere"); __split[0] === "hello". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("hello"); __split = __string.split("hellothere"); __split[0] === "hello". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js index b93e141028fe430f5eb4fce888a42453b469dbfc..fa342d6324e1adbd15957713bc98efdd674eafa3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T29.js @@ -17,12 +17,12 @@ Number.prototype.split = String.prototype.split; var __split = __instance.split(1); -var __expected = ["","00","","","","22","33","44","60"]; +var __expected = ["", "00", "", "", "", "22", "33", "44", "60"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js index 0b16fee4dfa24b2fa14027cad7f6c9080d0f4667..6dd024d4ab9f3e3115a5669a0b8b518a7d051dc1 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T3.js @@ -13,12 +13,12 @@ description: Call split(/ /,2), instance is String("one two three four five") var __string = new String("one two three four five"); -var __split = __string.split(/ /,2); +var __split = __string.split(/ /, 2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one") { - $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[0] === "one". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two") { - $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one two three four five"); __split = __string.split(/ /,2); __split[1] === "two". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js index 7f17c7f3d68df3d36af2a18ce06038de59a14b94..5323ad07219663d1e95610f23341de401d37d061 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T30.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,1); +var __split = __instance.split(1, 1); var __expected = [""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js index 45fb07dc2fb77eb2a27f05dee59a3a3dc2982694..15adead0fad863b4e08068ac83d33093819d5305 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T31.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,2); +var __split = __instance.split(1, 2); -var __expected = ["","00"]; +var __expected = ["", "00"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js index 926a61515c3863654455dd5f23ef60d329d98a75..208852941e560827657692be5216bf64013485a7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T32.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,0); +var __split = __instance.split(1, 0); var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js index 3f6695e9b5298f84dd0dbee823ac9f779aecaa57..3d1269637907b745c3b71eec7f50c78de55e8e83 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T33.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,100); +var __split = __instance.split(1, 100); -var __expected = ["","00","","","","22","33","44","60"]; +var __expected = ["", "00", "", "", "", "22", "33", "44", "60"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js index 4132da25ac318de4efbe20cb02c6a3ca97dffb1f..c40f3993a69dd252256986fddb62eea20d63ebda 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T34.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1,void 0); +var __split = __instance.split(1, void 0); -var __expected = ["","00","","","","22","33","44","60"]; +var __expected = ["", "00", "", "", "", "22", "33", "44", "60"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3: __split[index] === __expected[index]. Actual: '+__split[index] ); - } + $ERROR('#3: __split[index] === __expected[index]. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js index 22a23453c43cd10e8227f58e93d88aaacb89abea..c82748bf232af2b71dc116bd82ce051947bea37b 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T35.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1, Math.pow(2,32)-1); +var __split = __instance.split(1, Math.pow(2, 32) - 1); -var __expected = ["","00","","","","22","33","44","60"]; +var __expected = ["", "00", "", "", "", "22", "33", "44", "60"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,17 +30,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js index d79d2d72df0a60e88697f9bf5cdd431d5ae83ccb..20e3e84f2d9d8a36d9f780333520b7ffd2897780 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T36.js @@ -22,7 +22,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js index 05850c859fb83e717b9c1a6b6d4caa8657611f3e..1fa443388cd09beaf399b66e3a849384b1beb8b0 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T37.js @@ -15,14 +15,14 @@ var __instance = new Number(100111122133144155); Number.prototype.split = String.prototype.split; -var __split = __instance.split(1, -Math.pow(2,32)+1); +var __split = __instance.split(1, -Math.pow(2, 32) + 1); var __expected = [""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js index 1ca64e502c4fd2f01ff8e1b0f1451e7a426e641d..fd0b4b97a76665f03a21d37ff20c75066864c0a5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T38.js @@ -20,7 +20,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +28,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,6 +36,6 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", NaN); __expected = []; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js index c9e9569ca6860366ce22bf88b9b7085693f27bdb..ee012e98d592e073ef47cfa931e2a92bb6712350 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T39.js @@ -20,7 +20,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +28,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,6 +36,6 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 0); __expected = []; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js index 95f73fc13fc952b259d61a79e7a6937519fb5c14..69bed20441dde09fcc9ae95672cd239f00c873e9 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T4.js @@ -18,7 +18,7 @@ var __split = __string.split(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one two three"); __split = __string.split(""); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one two three"); __split = __string.split(""); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __string.length) { - $ERROR('#2: var __string = new String("one two three"); __split = __string.split(""); __split.length === __string.length. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one two three"); __split = __string.split(""); __split.length === __string.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== __string.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "o") { - $ERROR('#3: var __string = new String("one two three"); __split = __string.split(""); __split[0] === "o". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one two three"); __split = __string.split(""); __split[0] === "o". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "o") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "n") { - $ERROR('#4: var __string = new String("one two three"); __split = __string.split(""); __split[1] === "n". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one two three"); __split = __string.split(""); __split[1] === "n". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "n") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[11] !== "e") { - $ERROR('#5: var __string = new String("one two three"); __split = __string.split(""); __split[11] === "e". Actual: '+__split[11] ); + $ERROR('#5: var __string = new String("one two three"); __split = __string.split(""); __split[11] === "e". Actual: ' + __split[11]); } // ////////////////////////////////////////////////////////////////////////////// @@ -58,7 +58,7 @@ if (__split[11] !== "e") { ////////////////////////////////////////////////////////////////////////////// //CHECK#6 if (__split[12] !== "e") { - $ERROR('#6: var __string = new String("one two three"); __split = __string.split(""); __split[12] === "e". Actual: '+__split[12] ); + $ERROR('#6: var __string = new String("one two three"); __split = __string.split(""); __split[12] === "e". Actual: ' + __split[12]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js index 8ae1dcfc990a11e2255a31ea107b91fc35e494a1..2f11e0f0f85f22f20072ba3488af8e594e04a5f9 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T40.js @@ -20,7 +20,7 @@ var __expected = ["he"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +28,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,6 +36,6 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: var __instance = new String("hello"); __split = __instance.split("l", 1); __expected = ["he"]; __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js index 76940f644dec35c6a34e64e7420e34b6d2ace8bd..d8e21db1e73ebc0f7c726ac3abde460e47a6fee0 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T41.js @@ -15,12 +15,12 @@ var __instance = new String("hello"); var __split = __instance.split("l", 2); -var __expected = ["he",""]; +var __expected = ["he", ""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,17 +28,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 2); __expected = ["he",""]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js index 3998246a36115abaa4a62c389cc44d9623f45715..5b9b69fc83bef1fede79239c69aafc4d1492bd5e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T42.js @@ -15,12 +15,12 @@ var __instance = new String("hello"); var __split = __instance.split("l", 3); -var __expected = ["he","","o"]; +var __expected = ["he", "", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,17 +28,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 3); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js index 13a5d18ec667778111d4474ae8c5892fa5c8eadb..1ec04cfc409d4ecb1103c2ab0b702b41099b748c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T43.js @@ -15,12 +15,12 @@ var __instance = new String("hello"); var __split = __instance.split("l", 4); -var __expected = ["he","","o"]; +var __expected = ["he", "", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,17 +28,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split[index] === '+__expected[index]+'. Actual: '+__split[index] ); - } + $ERROR('#3.' + index + ': var __instance = new String("hello"); __split = __instance.split("l", 4); __expected = ["he","","o"]; __split[index] === ' + __expected[index] + '. Actual: ' + __split[index]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js index bced5a65cce11a53c52437d53a7af2beea084ee9..1c8618b6d176f0b943ae760a91e13c64ccc52cb2 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T5.js @@ -18,7 +18,7 @@ var __split = __string.split(/,/); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,7 +26,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -34,7 +34,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one-1") { - $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[0] === "one-1". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[0] === "one-1". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -42,7 +42,7 @@ if (__split[0] !== "one-1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "two-2") { - $ERROR('#4: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[1] === "two-2". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[1] === "two-2". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -50,7 +50,7 @@ if (__split[1] !== "two-2") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "four-4") { - $ERROR('#5: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[2] === "four-4". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("one-1,two-2,four-4"); __split = __string.split(/,/); __split[2] === "four-4". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js index b7c5dc2ad652d0859738cc0ca294a5061ffabfd1..e9d469d4ab679e72b4360c60d5bb89f2aae65456 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T6.js @@ -18,7 +18,7 @@ var __split = __string.split(''); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -26,17 +26,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __string.length) { - $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.length === __string.length. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split.length === __string.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __string.length; i++ ) { - if (__split[i]!==__string.charAt(i)) { - $ERROR('#3.'+i+': var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split['+i+']===__string.charAt('+i+'). Actual: '+__split[i]); - } +for (var i = 0; i < __string.length; i++) { + if (__split[i] !== __string.charAt(i)) { + $ERROR('#3.' + i + ': var __string = new String("one-1 two-2 three-3"); __split = __string.split(\'\'); __split[' + i + ']===__string.charAt(' + i + '). Actual: ' + __split[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js index 31a269a9c01761d12e94fcfa4021e3fea0580f01..e0e5f0ca32016c6aee673f8b2bcaa6aed36f9fd5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T7.js @@ -21,7 +21,7 @@ var __split = __string.split(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,17 +29,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __expected.length; i++ ) { - if (__expected[i]!==__split[i]) { - $ERROR('#3.'+i+': var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]); - } +for (var i = 0; i < __expected.length; i++) { + if (__expected[i] !== __split[i]) { + $ERROR('#3.' + i + ': var __string = "thisundefinedisundefinedaundefinedstringundefinedobject"; var __expected = ["thisundefinedisundefinedaundefinedstringundefinedobject"]; __split = __string.split(void 0); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js index 6f571dd08ef62f7bd001707c27545eb91299578f..ec0170f44a0000d7a0a4eaeecc6a52bb47f5068b 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T8.js @@ -19,7 +19,7 @@ var __split = __string.split(null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,17 +27,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __expected.length; i++ ) { - if (__expected[i]!==__split[i]) { - $ERROR('#3.'+i+': var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]); - } +for (var i = 0; i < __expected.length; i++) { + if (__expected[i] !== __split[i]) { + $ERROR('#3.' + i + ': var __string = "thisnullisnullanullstringnullobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(null); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js index 47aed96ec6a569837dca72a8edfc1309d54c0125..8d7da32def5ea905c6eabec299b79484c4b29498 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A2_T9.js @@ -19,7 +19,7 @@ var __split = __string.split(true); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,17 +27,17 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for ( var i = 0; i < __expected.length; i++ ) { - if (__expected[i]!==__split[i]) { - $ERROR('#3.'+i+': var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __expected['+i+']==='+__split[i]+'. Actual: '+__expected[i]); - } +for (var i = 0; i < __expected.length; i++) { + if (__expected[i] !== __split[i]) { + $ERROR('#3.' + i + ': var __string = "thistrueistrueatruestringtrueobject"; var __expected = ["this", "is", "a", "string", "object"]; __split = __string.split(true); __expected[' + i + ']===' + __split[i] + '. Actual: ' + __expected[i]); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js index 0b1cc3a245e3775b2b4cdc8ff7abd6f73075c101..f9494680cbaa7048e7d5affa80e0f6ed662f5e74 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T1.js @@ -17,7 +17,7 @@ var __split = __string.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "one,two,three,four,five") { - $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split[0] === "one,two,three,four,five". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("one,two,three,four,five"); __split = __string.split(); __split[0] === "one,two,three,four,five". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js index 4193458cb1bef43ae05ed1dc7fd502250a8345bf..0958d37c5089773ce0593e89f8b203c8deaed314 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T10.js @@ -17,7 +17,7 @@ var __split = __string.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String; __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String; __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String; __split = __string.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String; __split = __string.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "") { - $ERROR('#3: var __string = new String; __split = __string.split(); __split[0] === "". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String; __split = __string.split(); __split[0] === "". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js index 57b559c75400aea5da80de0bd96270f6c59060c5..07f2d68c3eb463e2e1b9aa88b412100938c12dc7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T11.js @@ -17,7 +17,7 @@ var __split = __string.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String(" "); __split = __string.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String(" "); __split = __string.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -25,7 +25,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String(" "); __split = __string.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String(" "); __split = __string.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +33,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== " ") { - $ERROR('#3: var __string = new String(" "); __split = __string.split(); __split[0] === " ". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String(" "); __split = __string.split(); __split[0] === " ". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js index ae6a6f5252f3a595a7789049db2bc50296194421..58670f6d03b1a69020e82c037d7b317ef1d89297 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T2.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "[object Object]") { - $ERROR('#3: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Object]". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Object(); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Object]". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js index 4e4190bf0204c4dcaa2eef30f714a293ca323791..137d8465a7948230cebf002717726297ba9914f0 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js @@ -10,7 +10,11 @@ es5id: 15.5.4.14_A3_T3 description: Instance is function(){} ---*/ -var __instance = { toString: function() { return "function(){}";} }; +var __instance = { + toString: function() { + return "function(){}"; + } +}; __instance.split = String.prototype.split; @@ -19,7 +23,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,15 +31,15 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__split[0].substring(0,8) !== "function") { - $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: '+__split[0].substring(0,8) ); +if (__split[0].substring(0, 8) !== "function") { + $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: ' + __split[0].substring(0, 8)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js index 4fdbc54d4c2718a35b39bd0ad8c32be692388fe1..36f0fb2b2b2391a334883a7b6323e66c1a5ce084 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "NaN") { - $ERROR('#3: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "NaN". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Number(NaN); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "NaN". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js index 5d59496dc88b4ef0438e9f5904fb2c935844638c..ad0cdda56898f346038f728c14113cf5b2f73824 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T5.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "-1234567890") { - $ERROR('#3: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "-1234567890". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Number(-1234567890); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "-1234567890". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js index 5e8882c5ddd5a10bbc08984765f819884d6605b2..c68a29ee1816668f3c58cc50635af97f101ace60 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T6.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __instance.toString()) { - $ERROR('#3: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === __instance.toString(). Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Number(-1e21); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === __instance.toString(). Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js index da708173fb5ec3c8fcebf720000f876ad6809dff..661bf4e36dc1594826e1940518ffb289f6894be9 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T7.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "[object Math]") { - $ERROR('#3: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Math]". Actual: '+__split[0] ); + $ERROR('#3: var __instance = Math; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "[object Math]". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js index 197e89afd19921ac53125701317f1d6f5ae68a17..e1a309ef250e370e263b393c76626fee743cbbba 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T8.js @@ -10,7 +10,7 @@ es5id: 15.5.4.14_A3_T8 description: Instance is Array(1,2,3,4,5) ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.split = String.prototype.split; @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "1,2,3,4,5") { - $ERROR('#3: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "1,2,3,4,5". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Array(1,2,3,4,5); __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "1,2,3,4,5". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js index 4694e6d8f4a2aa829063d3d4fa44916c4c827deb..b3bf706cf38e4c88a81878610f410d10d01d7206 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T9.js @@ -19,7 +19,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "false") { - $ERROR('#3: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "false". Actual: '+__split[0] ); + $ERROR('#3: var __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split(); __split[0] === "false". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js index 3086e76b738756ccc081130e70bf3c9ebfc217ae..8306e88d7f802e84ffb4ef7c7f846ba4a495a12c 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T1.js @@ -19,7 +19,7 @@ var __split = __string.split(__re); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -43,7 +43,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -51,7 +51,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js index 26a49a0aa742a41d5407a33b59a30a485315f848..296ac5ee5e82b1042ccd17b937a0b71d3289f2fe 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T10.js @@ -16,12 +16,12 @@ var __re = new RegExp; var __split = __string.split(__re); -var __expected = ["h","e","l","l","o"]; +var __expected = ["h", "e", "l", "l", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js index a23f5e726dc8ada1d8942723fb8683276b895337..32503116d52c82d559290ef78f8bdd058d0dbb43 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T11.js @@ -21,7 +21,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js index 820d433fe07c0a8d3bb0a684db1ca2f6d73e9752..05cc593e54a66fb25b816bf21925e7640dd3b8b8 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T12.js @@ -21,7 +21,7 @@ var __expected = ["h"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[0] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js index e9d93c574ef8e3548e5f357a3116eff7fca1bb15..72683da883d9ab2503392cdfc632c2dfd789cf46 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T13.js @@ -21,7 +21,7 @@ var __expected = ["h", "e"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js index 52ebdc475262e03bac3324a43d0cf6c146008f30..a3e264a31b21c2ceb62c95ff126ab05517a28be1 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T14.js @@ -21,7 +21,7 @@ var __expected = ["h", "e", "l"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js index ecfd109af41e529d5c83becc286bd834bb917828..88d744ae39ec74fec9b450a34c659980027189ad 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T15.js @@ -16,12 +16,12 @@ var __re = new RegExp; var __split = __string.split(__re, 4); -var __expected = ["h", "e", "l" ,"l"]; +var __expected = ["h", "e", "l", "l"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js index 5b669ab81c32e5bd407995c0b97cc71604c29205..b97b9aa5ddae380be34bc296260acae85f7fee48 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T16.js @@ -23,7 +23,7 @@ var __expected = ["h", "e", "l", "l", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js index fcea734ecee6b27cf085aac364dac6f2a508d9f3..5fecb0dcad96bcd2e8ba2f16f2fd45a079cb46cd 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T17.js @@ -23,7 +23,7 @@ var __expected = ["h", "e", "l", "l", "o"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js index 8121de01b1039d1c5f467b480965c176292bf274..68a70929ced377033e710435cc2ad04cc181bff8 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T18.js @@ -21,7 +21,7 @@ var __expected = []; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js index f9de8ea34752b259ff302598700c7a7566b60eab..3df56dacfba276e9ce8a8373966b1325fa8a785e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T19.js @@ -16,12 +16,12 @@ var __re = /\s/; var __split = __string.split(__re); -var __expected = ["a","b","c","de","f"]; +var __expected = ["a", "b", "c", "de", "f"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js index 5454f5281e8a141b2edbcd6c5b59189246a0763e..b6d9396e8160ffec45ee0ddcb327432c733cf860 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T2.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,0); +var __split = __string.split(__re, 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 0) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.length === 0. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,0); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js index 5825800d08c07b97fdd6579d380c237b8fdd14ae..cddd4f260dda649f4827a64afee589938d5482a5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T20.js @@ -16,14 +16,14 @@ var __string = new String("a b c de f"); var __re = /\s/; -var __split = __string.split(__re,3); +var __split = __string.split(__re, 3); -var __expected = ["a","b","c"]; +var __expected = ["a", "b", "c"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js index 8dbfb55ad31625ba12ab008d63c43ca5a7ce8938..16485eb04ca41cc956ea8d1fbc81fd5b91724e9a 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T21.js @@ -21,7 +21,7 @@ var __expected = ["a b c de f"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== __expected[0]) { - $ERROR('#3: __split[0] === '+__expected[0]+'. Actual: '+__split[index] ); + $ERROR('#3: __split[0] === ' + __expected[0] + '. Actual: ' + __split[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js index 1aed36c4ad4c6704bcb2c434efa54ec5eaf58952..8ab1e54bf13bb673af10f85bb6cc73fb4f40ee1e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T22.js @@ -18,12 +18,12 @@ var __re = /\d+/; var __split = __string.split(__re); -var __expected = ["dfe","iu "," =+","--"]; +var __expected = ["dfe", "iu ", " =+", "--"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js index 6cfc3d655e8217191ecfca2788f685472a3c2684..2118c1e0eb069ea7357611c1396f3e77f62ebfd3 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T23.js @@ -18,12 +18,12 @@ var __re = new RegExp('\\d+'); var __split = __string.split(__re); -var __expected = ["dfe","iu "," =+","--"]; +var __expected = ["dfe", "iu ", " =+", "--"]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,16 +31,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js index 5ea67cedc35a86f8118557b9b2182aac29112815..e946d99b5eceb4fa5374d4d6545b6ba0430a8eee 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T24.js @@ -16,12 +16,12 @@ var __re = /[a-z]/; var __split = __string.split(__re); -var __expected = ["","","",""]; +var __expected = ["", "", "", ""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js index 16f05e87a86fe18cf185ee01c41027a1e4868896..59cc456a5ec0271569c5498d9f420e44842c2e30 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T25.js @@ -16,12 +16,12 @@ var __re = new RegExp('[a-z]'); var __split = __string.split(__re); -var __expected = ["","","",""]; +var __expected = ["", "", "", ""]; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,16 +29,16 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== __expected.length) { - $ERROR('#2: __split.length === __expected.length. Actual: '+__split.length ); + $ERROR('#2: __split.length === __expected.length. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__split[index] !== __expected[index]) { - $ERROR('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] ); + $ERROR('#3.' + index + ': __split[' + index + '] === ' + __expected[index] + '. Actual: ' + __split[index]); } } // diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js index 791426679fdcbe3d21c4b585fb2f9fb160773a34..047e8d44e8f06ee8ae5a45ebda9ad190d56ee09d 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T3.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,1); +var __split = __string.split(__re, 1); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split[0] === "he". Actual: '+__split[0] ); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,1); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js index b57bc9bdb1f4c121b9a72ee38c0db777b8a85eb7..4c713ecb85c8742cd69dc481b4aceac3e07d3083 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T4.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,2); +var __split = __string.split(__re, 2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 2) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.length === 2. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -43,7 +43,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[1] === "". Actual: '+__split[1] ); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,2); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js index 0f1354a7644ed527da6231fcc89fa7173b9789de..ed786986571cd17f2321f0d24d3f718fa13660de 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T5.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,3); +var __split = __string.split(__re, 3); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -43,7 +43,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -51,7 +51,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,3); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js index cb69ee51e988691c2af1a70c4f8869161cde9c8a..0a8a68942fdf2fa51676eae3cbc2d69d19316ef4 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T6.js @@ -14,12 +14,12 @@ var __string = new String("hello"); var __re = /l/; -var __split = __string.split(__re,4); +var __split = __string.split(__re, 4); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,7 +35,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -43,7 +43,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -51,7 +51,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re,4); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js index dc4d0275e0bcc060defdc5852e9dedfb9268293c..85a4f3b34aaf2cdaac5f8d622ccd93c39e1aa75f 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T7.js @@ -21,7 +21,7 @@ var __split = __string.split(__re, void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -53,7 +53,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, void 0); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js index 2f4d49ed8bc8435cdca0f342b9d57d5cfff5ab96..4ecc5fac7de1e4d5bc68fd69c3f1372c1a1a2bd5 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T8.js @@ -19,7 +19,7 @@ var __split = __string.split(__re, "hi"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 0) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.length === 0. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, "hi"); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js index 2d4ac920a5511a0262b43c3111c8eb08066f5018..bea17ccf4e1977e4bc4818a8dfffce919243fe22 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A4_T9.js @@ -21,7 +21,7 @@ var __split = __string.split(__re, undefined); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +29,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 3) { - $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.length === 3. Actual: '+__split.length ); + $ERROR('#2: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split.length === 3. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +37,7 @@ if (__split.length !== 3) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split[0] !== "he") { - $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[0] === "he". Actual: '+__split[0]); + $ERROR('#3: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[0] === "he". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +45,7 @@ if (__split[0] !== "he") { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[1] !== "") { - $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[1] === "". Actual: '+__split[1]); + $ERROR('#4: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[1] === "". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// @@ -53,7 +53,7 @@ if (__split[1] !== "") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[2] !== "o") { - $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[2] === "o". Actual: '+__split[2] ); + $ERROR('#5: var __string = new String("hello"); var __re = /l/; __split = __string.split(__re, undefined); __split[2] === "o". Actual: ' + __split[2]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A6.js index 8d714bf6dd5a869f396964f8ab3ce20e13f0c061..85d6a2e7c86a3bfdfb0a89a9c9bb17e1002ad159 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A6.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.split.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.split.prototype !== undefined) { - $ERROR('#1: String.prototype.split.prototype === undefined. Actual: '+String.prototype.split.prototype ); + $ERROR('#1: String.prototype.split.prototype === undefined. Actual: ' + String.prototype.split.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A7.js b/test/built-ins/String/prototype/split/S15.5.4.14_A7.js index 7aeac132301b90ed9f47948fe835d1d75bd31c3c..13b7b1d0c33e0665722e7b34e87d493aa1806f42 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A7.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A7.js @@ -13,5 +13,5 @@ try { var __instance = new __FACTORY; $ERROR('#1: __FACTORY = String.prototype.split; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { - if (e instanceof Test262Error) throw e; + if (e instanceof Test262Error) throw e; } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A8.js b/test/built-ins/String/prototype/split/S15.5.4.14_A8.js index 640f04120e2be9bf180609d64c9791ddc42866a6..4f0cd21841e85f37f7c9e6e40f354b94746932e4 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.split.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.split.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.split){ - if (p==="length") count++; +for (var p in String.prototype.split) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.split){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.split){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A9.js index c63153264612587bf72b672b589fa58836022c01..131d8017ee30c1f824d5d93b9c0920550f2560d9 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A9.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.split.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#0: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.split.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.split.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.split.length; String.prototype.split.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.split.length; String.prototype.split.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js b/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js index 295687133c5806b034373d5dc544c38682cdd2da..d588fd061f09fe7e4ec06b21785d4f1a4fa37dfd 100644 --- a/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js +++ b/test/built-ins/String/prototype/startsWith/return-true-if-searchstring-is-empty.js @@ -37,4 +37,4 @@ assert( assert( str.startsWith('', Infinity), 'str.startsWith("", Infinity) returns true' -); \ No newline at end of file +); diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js index 792a205e7f55765399fb35cf3c7fc4fed569f73a..c59e390c1141703f342de5447cd3d46f7198abfd 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.substring.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#1: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.substring.length; -verifyNotWritable(String.prototype.substring, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.substring, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.substring.length !== __obj) { - $ERROR('#2: __obj = String.prototype.substring.length; String.prototype.substring.length = function(){return "shifted";}; String.prototype.substring.length === __obj. Actual: '+String.prototype.substring.length ); + $ERROR('#2: __obj = String.prototype.substring.length; String.prototype.substring.length = function(){return "shifted";}; String.prototype.substring.length === __obj. Actual: ' + String.prototype.substring.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js index 020b8a0c503661fb930b47fab4803709f0ed7e78..b09a01d2d39b28eb68b81a01209b170a4bceb90f 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.substring.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.substring.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.substring.hasOwnProperty("length") return true. Actual: '+String.prototype.substring.hasOwnProperty("length")); + $ERROR('#1: String.prototype.substring.hasOwnProperty("length") return true. Actual: ' + String.prototype.substring.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.substring.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.substring.length !== 2) { - $ERROR('#2: String.prototype.substring.length === 2. Actual: '+String.prototype.substring.length ); + $ERROR('#2: String.prototype.substring.length === 2. Actual: ' + String.prototype.substring.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js index c737a2f3014f460568c4bdf2076e623dbaa7a167..a653a6ee560038c714011510167194d6f91ad27b 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T1.js @@ -14,7 +14,7 @@ __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(false, true) !== "t") { - $ERROR('#1: __instance = new Object(true); __instance.substring = String.prototype.substring; __instance.substring(false, true) === "t". Actual: '+__instance.substring(false, true) ); + $ERROR('#1: __instance = new Object(true); __instance.substring = String.prototype.substring; __instance.substring(false, true) === "t". Actual: ' + __instance.substring(false, true)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js index 2770321ed8542c8902143e7fe48a0f32c2cd3e9e..35547688014653b35ae9b833d27c4b96789108f8 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js @@ -9,15 +9,23 @@ description: > object have overrided valueOf function ---*/ -var __obj = {valueOf:function(){return 2;}}; +var __obj = { + valueOf: function() { + return 2; + } +}; var __str = "\u0035ABBBABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.substring(__obj, function(){return __str.substring(0,1);}()) !== "BBB") { - $ERROR('#1: var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.substring(__obj, function(){return __str.substring(0,1);}()) === "BBB". Actual: '+__str.substring(__obj, function(){return __str.substring(0,1);}()) ); - } +if (__str.substring(__obj, function() { + return __str.substring(0, 1); + }()) !== "BBB") { + $ERROR('#1: var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.substring(__obj, function(){return __str.substring(0,1);}()) === "BBB". Actual: ' + __str.substring(__obj, function() { + return __str.substring(0, 1); + }())); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js index f17b396d99ab5d1ea5fcd612034b8bb43972dd4c..e3b97ed32c18c21740ff748e88335b66a937137c 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js @@ -9,19 +9,27 @@ description: > overrided valueOf function, that return exception ---*/ -var __obj = {valueOf:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.substring(__obj,__obj2); - $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.substring(__obj, __obj2); + $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js index b8f9af963da7f35b49043f7ec2fb973a0cd1643f..43ae7ac78795b1889ed795f1cd8c19382ea3ac00 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js @@ -11,19 +11,30 @@ description: > return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.substring(__obj, __obj2); - $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception ==="instart". Actual: '+e); - } - } +try { + var x = __str.substring(__obj, __obj2); + $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception ==="instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js index f749700946a3b9cfa1d361ae90533a429c4824a8..8efdfb328b9054c011f6d807aff8a50e4903e121 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js @@ -10,18 +10,29 @@ description: > overrided toString function, that return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inend"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".substring(__obj, __obj2); - $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".substring(__obj,__obj2) lead to throw exception'); + var x = "ABB\u0041BABAB\u0031BBAA".substring(__obj, __obj2); + $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".substring(__obj,__obj2) lead to throw exception'); } catch (e) { - if (e!=="inend") { - $ERROR('#1.1: Exception === "inend". Actual: '+e); - } + if (e !== "inend") { + $ERROR('#1.1: Exception === "inend". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js index e9e4d075051b58ea593c4c4e54626edebf907d09..4f85a9e0934978e4318d310a7b29a9a12ab672df 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js @@ -9,8 +9,8 @@ description: Used one argument, that is function(){}(). Instance is string ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("report".substring(function(){}()) !== "report") { - $ERROR('#1: "report".substring(function(){}()) === "report". Actual: '+"report".substring(function(){}()) ); +if ("report".substring(function() {}()) !== "report") { + $ERROR('#1: "report".substring(function(){}()) === "report". Actual: ' + "report".substring(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js index 50af2e9d82e1b778733abdf3bf0d56d5a333dfab..37c4bc7047d5ee84f1026eae03246787ae4b01ec 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T15.js @@ -16,8 +16,8 @@ Number.prototype.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__num.substring()!=="11.001002") { - $ERROR('#1: var __num = 11.001002; Number.prototype.substring = String.prototype.substring; __num.substring()==="11.001002". Actual: '+__num.substring()); +if (__num.substring() !== "11.001002") { + $ERROR('#1: var __num = 11.001002; Number.prototype.substring = String.prototype.substring; __num.substring()==="11.001002". Actual: ' + __num.substring()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js index 21abf6d49f41603ab162b7971e9983149d3a09e4..658ce9d2bcf9ffa5f78f668a62df1e9313867054 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js @@ -15,8 +15,12 @@ __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(function(){return true;}(),x) !== "alse") { - $ERROR('#1: var x; __instance = new Boolean; __instance.substring = String.prototype.substring; __instance.substring(function(){return true;}(),x) === "alse". Actual: '+__instance.substring(function(){return true;}(),x) ); +if (__instance.substring(function() { + return true; + }(), x) !== "alse") { + $ERROR('#1: var x; __instance = new Boolean; __instance.substring = String.prototype.substring; __instance.substring(function(){return true;}(),x) === "alse". Actual: ' + __instance.substring(function() { + return true; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js index 8e5be04b60782943a8a5c3861ecf3d5f350f37d1..aaf8f7e247a4f5bb949ba9fb32edd01f75f4f901 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js @@ -11,8 +11,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().substring(null, -3) !== "") { - $ERROR('#1: function(){return "gnulluna"}().substring(null, -3) === "". Actual: '+function(){return "gnulluna"}().substring(null, -3) ); +if (function() { + return "gnulluna" + }().substring(null, -3) !== "") { + $ERROR('#1: function(){return "gnulluna"}().substring(null, -3) === "". Actual: ' + function() { + return "gnulluna" + }().substring(null, -3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js index 2f716f58aa4b9949d55b4af74b4b63d832e12a84..9efb6cc77a369bb9ce3e80259590ec8847fdf025 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js @@ -9,17 +9,19 @@ description: > object, that have overrided valueOf function ---*/ -__func.valueOf=function(){return "gnulluna"}; +__func.valueOf = function() { + return "gnulluna" +}; -Function.prototype.substring=String.prototype.substring; +Function.prototype.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__func.substring(null, Function()) !== "") { - $ERROR('#1: __func.valueOf=function(){return "gnulluna"}; Function.prototype.substring=String.prototype.substring; function __func(){}; __func.substring(null, Function()) === "". Actual: '+__func.substring(null, Function()) ); + $ERROR('#1: __func.valueOf=function(){return "gnulluna"}; Function.prototype.substring=String.prototype.substring; function __func(){}; __func.substring(null, Function()) === "". Actual: ' + __func.substring(null, Function())); } // ////////////////////////////////////////////////////////////////////////////// -function __func(){}; +function __func() {}; diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js index d41f4b1c2c9a3b95b2c6fc2bca4baa1eaa88d99a..d9538d5f698f308c81765429b45356fc50da2d45 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js @@ -11,8 +11,8 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String("undefined").substring(x,3) !== "und") { - $ERROR('#1: var x; new String("undefined").substring(x,3) === "und". Actual: '+new String("undefined").substring(x,3) ); +if (new String("undefined").substring(x, 3) !== "und") { + $ERROR('#1: var x; new String("undefined").substring(x,3) === "und". Actual: ' + new String("undefined").substring(x, 3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js index eecbb5da73e92e72d447db877b55141f2e003316..fa599a5469a53bb62dadc5a634577a62779b828f 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T7.js @@ -9,8 +9,8 @@ description: Arguments are symbol and undefined, and instance is String ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(void 0).substring("e",undefined) !== "undefined") { - $ERROR('#1: String(void 0).substring("e",undefined) === "undefined". Actual: '+String(void 0).substring("e",undefined) ); +if (String(void 0).substring("e", undefined) !== "undefined") { + $ERROR('#1: String(void 0).substring("e",undefined) === "undefined". Actual: ' + String(void 0).substring("e", undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js index c7e0a5953eb2dc4ef990d532aedc23b70deb6ae6..1279d0ebe12fd93567002c90e5912146e0e95986 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js @@ -9,12 +9,14 @@ description: > String(object), object have overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).substring(-4,void 0) !== "undefined") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).substring(-4,void 0) === "undefined". Actual: '+String(__obj).substring(-4,void 0) ); +if (String(__obj).substring(-4, void 0) !== "undefined") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).substring(-4,void 0) === "undefined". Actual: ' + String(__obj).substring(-4, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js index b4b0053b93cc5d9a0e028178d1e4a53a1d6e2446..1720c35f456ea5386ddbc0ae1aa59671eed4e4e6 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js @@ -11,14 +11,14 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String(__obj).substring(/*(function(){})()*/undefined,undefined) !== "undefined") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).substring(/*(function(){})()*/undefined,undefined) === "undefined". Actual: '+new String(__obj).substring(/*(function(){})()*/undefined,undefined) ); +if (new String(__obj).substring( /*(function(){})()*/ undefined, undefined) !== "undefined") { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).substring(/*(function(){})()*/undefined,undefined) === "undefined". Actual: ' + new String(__obj).substring( /*(function(){})()*/ undefined, undefined)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js index a87e1b4e570fcdbae6768018fba5b53d85cf34bf..499a890e7c33e03a17ee6168e2f0dad08116a4bf 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T1.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __string.substring() !== "string") { - $ERROR('#1: __string = new String("this is a string object"); typeof __string.substring() === "string". Actual: '+typeof __string.substring() ); + $ERROR('#1: __string = new String("this is a string object"); typeof __string.substring() === "string". Actual: ' + typeof __string.substring()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js index 44c719d2ec0c60947fb1895737ccf70d4c840d59..c98235acd0b5fa1f6bdd2871792a9469a0706267 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T10.js @@ -11,8 +11,8 @@ var __string = new String("this_is_a_string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.substring(0,8) !== "this_is_") { - $ERROR('#1: __string = new String("this_is_a_string object"); __string.substring(0,8) === "this_is_". Actual: '+__string.substring(0,8) ); +if (__string.substring(0, 8) !== "this_is_") { + $ERROR('#1: __string = new String("this_is_a_string object"); __string.substring(0,8) === "this_is_". Actual: ' + __string.substring(0, 8)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js index 179af831eaa011aa6e902919c58881f7a95269c0..3fec5dfee1cab3ba85fc44f0d29d6eef482cd879 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T2.js @@ -12,7 +12,7 @@ var __string = new String('this is a string object'); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(NaN, Infinity) !== "this is a string object") { - $ERROR('#1: __string = new String(\'this is a string object\'); __string.substring(NaN, Infinity) === "this is a string object". Actual: '+__string.substring(NaN, Infinity) ); + $ERROR('#1: __string = new String(\'this is a string object\'); __string.substring(NaN, Infinity) === "this is a string object". Actual: ' + __string.substring(NaN, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js index 18201d07099598c85c604477752b76917e7bd62f..3fab39c9b5808a5fb4562662ca58c7288af4bb56 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T3.js @@ -11,8 +11,8 @@ var __string = new String(""); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.substring(1,0) !== "") { - $ERROR('#1: __string = new String(""); __string.substring(1,0) === "". Actual: '+__string.substring(1,0) ); +if (__string.substring(1, 0) !== "") { + $ERROR('#1: __string = new String(""); __string.substring(1,0) === "". Actual: ' + __string.substring(1, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js index d10dc05a3b9ea79dea8db43887ddb04b1bd73ba8..95095d5e15a3c2af2cea17dfccf77897889ec3b2 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T4.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(Infinity, NaN) !== "this is a string object") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, NaN) === "this is a string object". Actual: '+__string.substring(Infinity, NaN) ); + $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, NaN) === "this is a string object". Actual: ' + __string.substring(Infinity, NaN)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js index 6d5d0a8491009e534623f467402e9cc06eff498d..15c49967a1eb9fddc03f4c123683fc9c259b7862 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T5.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(Infinity, Infinity) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, Infinity) === "". Actual: '+__string.substring(Infinity, Infinity) ); + $ERROR('#1: __string = new String("this is a string object"); __string.substring(Infinity, Infinity) === "". Actual: ' + __string.substring(Infinity, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js index aec40ce401e45aa3151b362e3621ae6a5e3afcb3..9e78388c94b31c857c67aa5560f4fdfba88bb2af 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T6.js @@ -11,8 +11,8 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.substring(-0.01,0) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(-0.01,0) === "". Actual: '+__string.substring(-0.01,0) ); +if (__string.substring(-0.01, 0) !== "") { + $ERROR('#1: __string = new String("this is a string object"); __string.substring(-0.01,0) === "". Actual: ' + __string.substring(-0.01, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js index 4ce872828fd82f2701bdfdacf63e99e978ee3766..d510a64817ba4f16f76cd0e555650797a3ca73ef 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T7.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(__string.length, __string.length) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length, __string.length) === "". Actual: '+__string.substring(__string.length, __string.length) ); + $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length, __string.length) === "". Actual: ' + __string.substring(__string.length, __string.length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js index e73ef3e647d237d719f7a94b193dfd772e223b37..41618595e2eec08e64b3dae3e3a5fd9c6094ac37 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T8.js @@ -11,8 +11,8 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__string.substring(__string.length+1, 0) !== "this is a string object") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length+1, 0) === "this is a string object". Actual: '+__string.substring(__string.length+1, 0) ); +if (__string.substring(__string.length + 1, 0) !== "this is a string object") { + $ERROR('#1: __string = new String("this is a string object"); __string.substring(__string.length+1, 0) === "this is a string object". Actual: ' + __string.substring(__string.length + 1, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js index 4ba78e6d75822a81b78e868726d038b0b9e86e52..3f5dbcad5161fe40bfe2c7754d22354d2913ecc8 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A2_T9.js @@ -12,7 +12,7 @@ var __string = new String("this is a string object"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__string.substring(-Infinity, -Infinity) !== "") { - $ERROR('#1: __string = new String("this is a string object"); __string.substring(-Infinity, -Infinity) === "". Actual: '+__string.substring(-Infinity, -Infinity) ); + $ERROR('#1: __string = new String("this is a string object"); __string.substring(-Infinity, -Infinity) === "". Actual: ' + __string.substring(-Infinity, -Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js index feff7d77e8fe0f25902287ec6ee555adde6faa20..2a26bc88d8bd9701537369c1c4289e857456081c 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T1.js @@ -11,13 +11,13 @@ description: > Infinity, end is -Infinity ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(Infinity,-Infinity) !== "1,2,3,4,5") { - $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(Infinity,-Infinity) === "1,2,3,4,5". Actual: '+__instance.substring(Infinity,-Infinity) ); +if (__instance.substring(Infinity, -Infinity) !== "1,2,3,4,5") { + $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(Infinity,-Infinity) === "1,2,3,4,5". Actual: ' + __instance.substring(Infinity, -Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js index e2920aafbe4b32ee725bcfba09453b1f5aa94ea3..4a7fd0ac39aab41ceb789d13031628531c98c0bd 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js @@ -14,16 +14,18 @@ description: > __FACTORY.prototype.substring = String.prototype.substring; var __instance = new __FACTORY(void 0); - + ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(0, 100) !== "undefined") { - $ERROR('#1: __instance.substring(0, 100) === "undefined". Actual: '+__instance.substring(0, 100) ); + $ERROR('#1: __instance.substring(0, 100) === "undefined". Actual: ' + __instance.substring(0, 100)); } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return this.value+''; } +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return this.value + ''; + } } diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js index a55770141d9ee50cf0b6e24a84b7784a8833ac95..e4238cc57e6bc6b779ddceea888753420a2cc48e 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js @@ -12,13 +12,13 @@ description: > ---*/ var __instance = new Boolean(); - + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(new Array(), new Boolean(1)) !== "f") { - $ERROR('#1: __instance = new Boolean(); __instance.substring = String.prototype.substring; __instance.substring(new Array(), new Boolean(1)) === "f". Actual: '+__instance.substring(new Array(), new Boolean(1)) ); + $ERROR('#1: __instance = new Boolean(); __instance.substring = String.prototype.substring; __instance.substring(new Array(), new Boolean(1)) === "f". Actual: ' + __instance.substring(new Array(), new Boolean(1))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js index dd187638f296129ad241bf10ca9591f8252366ec..e036947678f3721a059b408326b8f422253917e9 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T2.js @@ -11,13 +11,13 @@ description: > end is -Infinity ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(9,-Infinity) !== "1,2,3,4,5") { - $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(9,-Infinity) === "1,2,3,4,5". Actual: '+__instance.substring(9,-Infinity) ); +if (__instance.substring(9, -Infinity) !== "1,2,3,4,5") { + $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(9,-Infinity) === "1,2,3,4,5". Actual: ' + __instance.substring(9, -Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js index 4d93dfb75aa7a0d5358fa4dd72ba66e0de82c094..6cfa98872ebfce5112dd6e1bf18eac8962c76f13 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T3.js @@ -11,13 +11,13 @@ description: > end is false ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(true, false) !== "1") { - $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(true, false) === "1". Actual: '+__instance.substring(true, false) ); + $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(true, false) === "1". Actual: ' + __instance.substring(true, false)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js index 064d643fcd31752d2f5919996d56350fca92b549..12b14f241a6d9e0847e5e2a0abb1355ea9b06743 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T4.js @@ -11,13 +11,13 @@ description: > end is '5' ---*/ -var __instance = new Array(1,2,3,4,5); +var __instance = new Array(1, 2, 3, 4, 5); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring('4', '5') !== "3") { - $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(\'4\', \'5\') === "3". Actual: '+__instance.substring('4', '5') ); + $ERROR('#1: __instance = new Array(1,2,3,4,5); __instance.substring = String.prototype.substring; __instance.substring(\'4\', \'5\') === "3". Actual: ' + __instance.substring('4', '5')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js index 95eb172cc7a15b365b42dee74bc81b6ad9f9f1e0..1405841b40448dd986e6723949095e2e60d01a73 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T5.js @@ -11,13 +11,13 @@ description: > end is 0 ---*/ -var __instance = new Object(); +var __instance = new Object(); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(8,0) !== "[object ") { - $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8,0) === "[object ". Actual: '+__instance.substring(8,0) ); +if (__instance.substring(8, 0) !== "[object ") { + $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8,0) === "[object ". Actual: ' + __instance.substring(8, 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js index 0ee3e9695200828c79bd767c2ee19e72f2c5103f..29bba159431196ecfadecef5b7bf93cec4f58cb9 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T6.js @@ -11,13 +11,13 @@ description: > end is length of object.toString ---*/ -var __instance = new Object(); +var __instance = new Object(); __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(8, __instance.toString().length) !== "Object]") { - $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8, __instance.toString().length) === "Object]". Actual: '+__instance.substring(8, __instance.toString().length) ); + $ERROR('#1: __instance = new Object(); __instance.substring = String.prototype.substring; __instance.substring(8, __instance.toString().length) === "Object]". Actual: ' + __instance.substring(8, __instance.toString().length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js index 8305324ecbec03eeb78f521a03d58a3207bb2431..d8d84a1229e1786a096773be66bc2faa7dd1751e 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js @@ -11,14 +11,18 @@ description: > instance.substring(...).substring(...) ---*/ -var __instance = { toString: function() { return "function(){}";} }; - +var __instance = { + toString: function() { + return "function(){}"; + } +}; + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(-Infinity,8) !== "function") { - $ERROR('#1: __instance = function(){}; __instance.substring = String.prototype.substring; __instance.substring(-Infinity,8) === "function". Actual: '+__instance.substring(8,Infinity).substring(-Infinity,1) ); +if (__instance.substring(-Infinity, 8) !== "function") { + $ERROR('#1: __instance = function(){}; __instance.substring = String.prototype.substring; __instance.substring(-Infinity,8) === "function". Actual: ' + __instance.substring(8, Infinity).substring(-Infinity, 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js index ca339a84629aa14b916ade7e0b631bfc190a0903..60729b82796dfc12797d1854c2d784e55a78eeaa 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js @@ -12,13 +12,13 @@ description: > ---*/ var __instance = new Number(NaN); - + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(Infinity, NaN) !== "NaN") { - $ERROR('#1: __instance = new Number(NaN); __instance.substring = String.prototype.substring; __instance.substring(Infinity, NaN) === "NaN". Actual: '+__instance.substring(Infinity, NaN) ); + $ERROR('#1: __instance = new Number(NaN); __instance.substring = String.prototype.substring; __instance.substring(Infinity, NaN) === "NaN". Actual: ' + __instance.substring(Infinity, NaN)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js index 75623a9ee53972b1802b69863a5769aac986647f..1fc65965cc722b9952263ca46238242b32f6bc84 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T9.js @@ -12,13 +12,13 @@ description: > ---*/ var __instance = Math; - + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(Math.PI, -10) !== "[ob") { - $ERROR('#1: __instance = Math; __instance.substring = String.prototype.substring; __instance.substring(Math.PI, -10) === "[ob". Actual: '+__instance.substring(Math.PI, -10) ); + $ERROR('#1: __instance = Math; __instance.substring = String.prototype.substring; __instance.substring(Math.PI, -10) === "[ob". Actual: ' + __instance.substring(Math.PI, -10)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js index bc4cccb709a0b064a0c88a864c7de704bb0fc1be..f1615644595672c1cef47660e26a04301cb985dd 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.substring.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.substring.prototype !== undefined) { - $ERROR('#1: String.prototype.substring.prototype === undefined. Actual: '+String.prototype.substring.prototype ); + $ERROR('#1: String.prototype.substring.prototype === undefined. Actual: ' + String.prototype.substring.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js index 14440737f971d97819e2b7ed7beac408b9184c37..9cf25cfb1444a775d378449c49ab7b4451e9783a 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: __FACTORY = String.prototype.substring; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); + $ERROR('#1.2: undefined = 1 throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js index b48d4db02f47a7ccf9afe2fb90cc0e54b8bcf617..36af36356d0900e0d522c1dc8bbfb38811057e88 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A8.js @@ -12,7 +12,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.substring.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,14 +28,14 @@ if (String.prototype.substring.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.substring){ - if (p==="length") count++; +for (var p in String.prototype.substring) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.substring){if (p==="length") count++;} count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.substring){if (p==="length") count++;} count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js index 26e1c976a3424b8c7b0f41522ef41f3c398cf6c8..803b98b5e6f0779c7701e4e10af1fc0f235b7fd6 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.substring.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#0: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.substring.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.substring.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.substring.length; String.prototype.substring.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.substring.length; String.prototype.substring.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js index 3996518377ecd4c5ffba5f8c90047e7666a90023..3168e925a17db1a13da888f73d54b54578944fe0 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLocaleLowerCase.length; -verifyNotWritable(String.prototype.toLocaleLowerCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLocaleLowerCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleLowerCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.length = function(){return "shifted";}; String.prototype.toLocaleLowerCase.length === __obj. Actual: '+String.prototype.toLocaleLowerCase.length ); + $ERROR('#2: __obj = String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.length = function(){return "shifted";}; String.prototype.toLocaleLowerCase.length === __obj. Actual: ' + String.prototype.toLocaleLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js index c6ca64f03c5c673cc3f3b78423fef9af553dc3c9..28a5f7aabc51cffd611074152fc636b962417f54 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleLowerCase.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty("length")); + $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.toLocaleLowerCase.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleLowerCase.length !== 0) { - $ERROR('#2: String.prototype.toLocaleLowerCase.length === 0. Actual: '+String.prototype.toLocaleLowerCase.length ); + $ERROR('#2: String.prototype.toLocaleLowerCase.length === 0. Actual: ' + String.prototype.toLocaleLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js index b929ade1d6c92aa818db434b04f2ced5db03acfb..181691a71da664293dbc9cdb70bf141707ac1fa6 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T1.js @@ -14,7 +14,7 @@ __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLocaleLowerCase() !== "true") { - $ERROR('#1: __instance = new Object(true); __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "true". Actual: '+__instance.toLocaleLowerCase() ); + $ERROR('#1: __instance = new Object(true); __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "true". Actual: ' + __instance.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js index cfdc535d8287e71a66035b9b49b64fbe5eccab67..afc5510af6665dfa386e485211d872bc84a4406e 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleLowerCase() !=="ab") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="ab". Actual: '+__obj.toLocaleLowerCase() ); +if (__obj.toLocaleLowerCase() !== "ab") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="ab". Actual: ' + __obj.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js index 10c4df6a281d50bdfc83d19a3a7d2dc1ed7779f2..802f832eec99eb4c86d6101d8f3597ede409a72a 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js @@ -9,17 +9,21 @@ description: > toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleLowerCase(); - $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js index 716a6d917832e77595a9205662cfb9628a0aab71..6754da40cdb7a9946c184eca8d982469dc00e47d 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js @@ -9,17 +9,24 @@ description: > then call toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleLowerCase(); - $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js index eb19ac07cf7f3e647a3f3deb4febd48393fbfb54..11d49736bc39c810ad9b22647a8e9ba7ed8fe035 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js @@ -9,13 +9,20 @@ description: > toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleLowerCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="1". Actual: '+__obj.toLocaleLowerCase() ); +if (__obj.toLocaleLowerCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="1". Actual: ' + __obj.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toLocaleLowerCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLocaleLowerCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase().length === 1. Actual: '+__obj.toLocaleLowerCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase().length === 1. Actual: ' + __obj.toLocaleLowerCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js index 95da90ec3b1acd388b7c18013aebe4aa4ca1ea3b..978a4932b25877baed02e424b32f5e32df21ce3f 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js @@ -13,7 +13,7 @@ __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__reg.toLocaleLowerCase() !== "/abc/") { - $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __reg.toLocaleLowerCase() === "/abc/". Actual: '+__reg.toLocaleLowerCase() ); + $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __reg.toLocaleLowerCase() === "/abc/". Actual: ' + __reg.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js index d20cef4b272235ed3c1325a88adc3fd3fb88f7b3..fe95c5cd6f1bf546ec15a730050f16dd914fac94 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T2.js @@ -14,7 +14,7 @@ __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLocaleLowerCase() !== "false") { - $ERROR('#1: __instance = new Boolean; __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "false". Actual: '+__instance.toLocaleLowerCase() ); + $ERROR('#1: __instance = new Boolean; __instance.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __instance.toLocaleLowerCase() === "false". Actual: ' + __instance.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js index 00eca997aa3e675f5ea8a1c1f7bf3fea5ea4587c..a4aee2c5ee0458fe547dc0385114b6421e034638 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T3.js @@ -10,7 +10,7 @@ description: Checking by using eval ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (eval("\"BJ\"").toLocaleLowerCase() !== "bj") { - $ERROR('#1: eval("\\"BJ\\"").toLocaleLowerCase() === "bj". Actual: '+eval("\"BJ\"").toLocaleLowerCase() ); + $ERROR('#1: eval("\\"BJ\\"").toLocaleLowerCase() === "bj". Actual: ' + eval("\"BJ\"").toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js index 04b36119a06b8584b7e17ae42571f0f55491ace6..7336d0cd3ccdbf4db5c09e670844e1aca4148faf 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T4.js @@ -11,12 +11,12 @@ description: > var __lowerCase = "".toLocaleLowerCase(); -var __expected = ""; +var __expected = ""; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__lowerCase[0]!==__expected[0]) { - $ERROR('#4: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase[0]===__expected[0]. Actual: '+__lowerCase[0]); +if (__lowerCase[0] !== __expected[0]) { + $ERROR('#4: __lowerCase = "".toLocaleLowerCase(); __expected = ""; __lowerCase[0]===__expected[0]. Actual: ' + __lowerCase[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js index fb3d2514307f341eee32c5a7a536c94b58fd3121..d97884e8265e6d9ba2fecc37b4f2b655d9a34d67 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLocaleLowerCase() function for function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLocaleLowerCase() !== "gnulluna") { - $ERROR('#1: function(){return "GnulLuNa"}().toLocaleLowerCase() === "gnulluna". Actual: '+function(){return "GnulLuNa"}().toLocaleLowerCase() ); +if (function() { + return "GnulLuNa" + }().toLocaleLowerCase() !== "gnulluna") { + $ERROR('#1: function(){return "GnulLuNa"}().toLocaleLowerCase() === "gnulluna". Actual: ' + function() { + return "GnulLuNa" + }().toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js index 6339d001168ca311292f1abed2b1cd44ad417e66..93cfe7ed4fa4f51f64d3f5463141d9f2bd42511c 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js @@ -12,7 +12,7 @@ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ((Number.NEGATIVE_INFINITY).toLocaleLowerCase() !== "-infinity") { - $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; (Number.NEGATIVE_INFINITY).toLocaleLowerCase() === "-infinity". Actual: '+(Number.NEGATIVE_INFINITY).toLocaleLowerCase() ); + $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; (Number.NEGATIVE_INFINITY).toLocaleLowerCase() === "-infinity". Actual: ' + (Number.NEGATIVE_INFINITY).toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js index fcd3a61e2013377e074ad5bb63f82365b088ca27..01751fa428329cf7b7708af44a69e4aa673cfb5b 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T7.js @@ -11,8 +11,8 @@ Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (NaN.toLocaleLowerCase()!== "nan") { - $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; NaN.toLocaleLowerCase()=== "nan". Actual: '+NaN.toLocaleLowerCase()); +if (NaN.toLocaleLowerCase() !== "nan") { + $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; NaN.toLocaleLowerCase()=== "nan". Actual: ' + NaN.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js index 17ccebbee1b7eee4d43608b1a744cf82378cbed3..b9219740a3cd34361950d1d1ff92ce614ba1c141 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T8.js @@ -9,6 +9,6 @@ description: Call toLocaleLowerCase() function of Infinity Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; -if (Infinity.toLocaleLowerCase()!== "infinity") { - $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; Infinity.toLocaleLowerCase()=== "infinity". Actual: '+Infinity.toLocaleLowerCase()); +if (Infinity.toLocaleLowerCase() !== "infinity") { + $ERROR('#1: Number.prototype.toLocaleLowerCase = String.prototype.toLocaleLowerCase; Infinity.toLocaleLowerCase()=== "infinity". Actual: ' + Infinity.toLocaleLowerCase()); } diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js index 94129acfc1993c7a84d08354220b443378a78172..3c122f6d65427a2090c0bea85038ef2c008f0aca 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T9.js @@ -8,19 +8,19 @@ description: Call toLocaleLowerCase() function of string object ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; var __lowerCase = new String(__obj).toLocaleLowerCase(); -var __expected ="undefined"; +var __expected = "undefined"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +28,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,16 +36,16 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__lowerCase[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase['+index+']=== '+__expected[index]+'. Actual: '+__lowerCase[index]); +for (var index = 0; index < __expected.length; index++) { + if (__lowerCase[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleLowerCase(); __expected ="undefined"; __lowerCase[' + index + ']=== ' + __expected[index] + '. Actual: ' + __lowerCase[index]); } } // diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js index 715dee843b60f1d0e89f9918ccc3fc1e173492f2..0fa680559b765611898ae4fb174d13d837039cb1 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A2_T1.js @@ -12,7 +12,7 @@ description: Checking returned result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("Hello, WoRlD!".toLocaleLowerCase() !== "hello, world!") { - $ERROR('#1: "Hello, WoRlD!".toLocaleLowerCase() === "hello, world!". Actual: '+("Hello, WoRlD!".toLocaleLowerCase()) ); + $ERROR('#1: "Hello, WoRlD!".toLocaleLowerCase() === "hello, world!". Actual: ' + ("Hello, WoRlD!".toLocaleLowerCase())); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,7 +20,7 @@ if ("Hello, WoRlD!".toLocaleLowerCase() !== "hello, world!") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if ("Hello, WoRlD!".toLocaleLowerCase() !== String("hello, world!")) { - $ERROR('#2: "Hello, WoRlD!".toLocaleLowerCase() === String("hello, world!"). Actual: '+("Hello, WoRlD!".toLocaleLowerCase()) ); + $ERROR('#2: "Hello, WoRlD!".toLocaleLowerCase() === String("hello, world!"). Actual: ' + ("Hello, WoRlD!".toLocaleLowerCase())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js index de23fd2e548127b21fce6c6e342535d3af3127e0..7ee83f78f8cb3d5b57aed5c743ba2d8a9bf90cdb 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleLowerCase.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.toLocaleLowerCase.prototype !== undefined) { - $ERROR('#1: String.prototype.toLocaleLowerCase.prototype === undefined. Actual: '+String.prototype.toLocaleLowerCase.prototype ); + $ERROR('#1: String.prototype.toLocaleLowerCase.prototype === undefined. Actual: ' + String.prototype.toLocaleLowerCase.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js index 03faefe863f4acf574c071b33f99df35cbbeeaeb..408d0e59ec54dd8fe7064d609851b8b106f4b8da 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A7.js @@ -16,6 +16,6 @@ try { $ERROR('#1: var __FACTORY = String.prototype.toLocaleLowerCase; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: var __FACTORY = String.prototype.toLocaleLowerCase; "var __instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); + $ERROR('#1.1: var __FACTORY = String.prototype.toLocaleLowerCase; "var __instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js index 8699a76579eec86c170c07d457e8a5c6db4e4276..e421581f63611000fff7c1e8cf04ada9a9cbf8d8 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.toLocaleLowerCase.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.toLocaleLowerCase){ - if (p==="length") count++; +for (var p in String.prototype.toLocaleLowerCase) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.toLocaleLowerCase){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.toLocaleLowerCase){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js index a4c0873dc323d8b237d0390a8169659b8f285a02..42dbf02a79fa23797b86e36a11283caf45e99f2b 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.toLocaleLowerCase.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleLowerCase.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js index 34289893b738acf27e6616d5fb54d6d07f840edb..9ee03545e167be548e6f910578ec86c057980acb 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLocaleUpperCase.length; -verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleUpperCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: '+String.prototype.toLocaleUpperCase.length ); + $ERROR('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: ' + String.prototype.toLocaleUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js index da53d2892c1fb85bb93704f9a2f1dd6c5ed135b1..c55ed8da096ed6d924f198dab9c6febffd8d08a5 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleUpperCase.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty("length")); + $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.toLocaleUpperCase.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleUpperCase.length !== 0) { - $ERROR('#2: String.prototype.toLocaleUpperCase.length === 0. Actual: '+String.prototype.toLocaleUpperCase.length ); + $ERROR('#2: String.prototype.toLocaleUpperCase.length === 0. Actual: ' + String.prototype.toLocaleUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js index e58f9b38a01c9feec74cb4dee3e4a72db89d33e8..12848171238dfb7d2a31eafeee319a8997073e52 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T1.js @@ -14,7 +14,7 @@ __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLocaleUpperCase() !== "TRUE") { - $ERROR('#1: __instance = new Object(true); __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "TRUE". Actual: '+__instance.toLocaleUpperCase() ); + $ERROR('#1: __instance = new Object(true); __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "TRUE". Actual: ' + __instance.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js index 6bcc86f5890d92b9d06f34a03c70fccbf374c4ab..0e0bd3fbe7b52d46f04b8d0bcd123007b61c6dfe 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041b";}} +var __obj = { + toString: function() { + return "\u0041b"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleUpperCase() !=="AB") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="AB". Actual: '+__obj.toLocaleUpperCase() ); +if (__obj.toLocaleUpperCase() !== "AB") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="AB". Actual: ' + __obj.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js index 45a9a2087704f40caf9300fcfa6b5499c24cd6ad..ba8ef49002526173af345c8e88dd287f8a20ea86 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js @@ -9,7 +9,11 @@ description: > toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -17,8 +21,8 @@ try { var x = __obj.toLocaleUpperCase(); $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js index 185ea8fcb687b5ac13d67aa469aac7629d040886..a473a9bb4bcffae48dcb69d141fefc29a262b649 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js @@ -9,16 +9,23 @@ description: > then call toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleUpperCase(); - $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js index 3b1b61817a226c575a68dbe5327d776a82a63d38..a73b5c9d5722740c4f391c0540a3d0218a8566a8 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js @@ -9,12 +9,19 @@ description: > toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleUpperCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="1". Actual: '+__obj.toLocaleUpperCase() ); +if (__obj.toLocaleUpperCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="1". Actual: ' + __obj.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +29,7 @@ if (__obj.toLocaleUpperCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLocaleUpperCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase().length === 1. Actual: '+__obj.toLocaleUpperCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase().length === 1. Actual: ' + __obj.toLocaleUpperCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js index 8c2104cc7fb45a7f7ba0a2faa2affb209b699157..71d330aaa1d7b3093bd33cd8149a6724f428200f 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js @@ -12,7 +12,7 @@ __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__reg.toLocaleUpperCase() !== "/ABC/") { - $ERROR('#1: var __reg = new RegExp("abc"); __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __reg.toLocaleUpperCase() === "/ABC/". Actual: '+__reg.toLocaleUpperCase() ); + $ERROR('#1: var __reg = new RegExp("abc"); __reg.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __reg.toLocaleUpperCase() === "/ABC/". Actual: ' + __reg.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js index 425c58fc1de2e41412e8eb6f0bfb8126a263feb4..533a4294d12ba7eece46a4b457af3b4f61e1aff3 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T2.js @@ -14,7 +14,7 @@ __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLocaleUpperCase() !== "FALSE") { - $ERROR('#1: __instance = new Boolean; __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "FALSE". Actual: '+__instance.toLocaleUpperCase() ); + $ERROR('#1: __instance = new Boolean; __instance.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __instance.toLocaleUpperCase() === "FALSE". Actual: ' + __instance.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js index 1de801a89da1e58078cdcf5ea0c8d4f3ed6f4ae0..04432731a3a70ee5532ebb8a43d130d4bac4c831 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T3.js @@ -10,7 +10,7 @@ description: Checking by using eval ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (eval("\"bj\"").toLocaleUpperCase() !== "BJ") { - $ERROR('#1: eval("\\"bj\\"").toLocaleUpperCase() === "BJ". Actual: '+eval("\"bj\"").toLocaleUpperCase() ); + $ERROR('#1: eval("\\"bj\\"").toLocaleUpperCase() === "BJ". Actual: ' + eval("\"bj\"").toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js index 3cea1ebf095d29f6e84579112c5fc1bcec47d505..1b144d679682fbc409349d29b3b052c0ed82be00 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T4.js @@ -10,12 +10,12 @@ description: > ---*/ var __lowerCase = "".toLocaleUpperCase(); -var __expected = ""; +var __expected = ""; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +23,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,15 +31,15 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __lowerCase = "".toLocaleUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__lowerCase[0]!==__expected[0]) { - $ERROR('#4: __lowerCase = "".toLocaleUpperCase(); __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]); +if (__lowerCase[0] !== __expected[0]) { + $ERROR('#4: __lowerCase = "".toLocaleUpperCase(); __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js index f1da2012034b0628246e2cf615ba0c0dbfb020f6..d28e778880862041a907cfcd4e98a64dacf62d9b 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLocaleUpperCase() function of function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLocaleUpperCase() !== "GNULLUNA") { - $ERROR('#1: function(){return "GnulLuNa"}().toLocaleUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toLocaleUpperCase() ); +if (function() { + return "GnulLuNa" + }().toLocaleUpperCase() !== "GNULLUNA") { + $ERROR('#1: function(){return "GnulLuNa"}().toLocaleUpperCase() === "GNULLUNA". Actual: ' + function() { + return "GnulLuNa" + }().toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js index 5088fcb8d95a623161b5fa92b69a823962572292..6d69d494d3c7cacb74a4052459d33f81e0beef61 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js @@ -12,7 +12,7 @@ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ((Number.NEGATIVE_INFINITY).toLocaleUpperCase() !== "-INFINITY") { - $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; (Number.NEGATIVE_INFINITY).toLocaleUpperCase() === "-INFINITY". Actual: '+(Number.NEGATIVE_INFINITY).toLocaleUpperCase() ); + $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; (Number.NEGATIVE_INFINITY).toLocaleUpperCase() === "-INFINITY". Actual: ' + (Number.NEGATIVE_INFINITY).toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js index 0c710d629ed427f2f240ea59783bc86b625cf684..1a24a8824ceaf0087e5261c5816423baac41e36c 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T7.js @@ -11,8 +11,8 @@ Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (NaN.toLocaleUpperCase()!== "NAN") { - $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; NaN.toLocaleUpperCase()=== "NAN". Actual: '+NaN.toLocaleUpperCase()); +if (NaN.toLocaleUpperCase() !== "NAN") { + $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; NaN.toLocaleUpperCase()=== "NAN". Actual: ' + NaN.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js index 968e66738f07aaa358e1eb1d91433d42ca8fe5a2..ef2c7b26ca9c55b58d32f3ed3e76d2bd833a653e 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T8.js @@ -9,6 +9,6 @@ description: Call toLocaleUpperCase() function of Infinity Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; -if (Infinity.toLocaleUpperCase()!== "INFINITY") { - $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; Infinity.toLocaleUpperCase()=== "INFINITY". Actual: '+Infinity.toLocaleUpperCase()); +if (Infinity.toLocaleUpperCase() !== "INFINITY") { + $ERROR('#1: Number.prototype.toLocaleUpperCase = String.prototype.toLocaleUpperCase; Infinity.toLocaleUpperCase()=== "INFINITY". Actual: ' + Infinity.toLocaleUpperCase()); } diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js index debdee1ddc3b9acd0f2c66a1eef2d57526921f82..ff1ea593349028fd57a7d56f36fe335378f8c8a3 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T9.js @@ -8,18 +8,18 @@ description: Call toLocaleUpperCase() function of string object ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; var __lowerCase = new String(__obj).toLocaleUpperCase(); -var __expected ="UNDEFINED"; +var __expected = "UNDEFINED"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,16 +35,16 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__lowerCase[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase['+index+']==='+__expected[index]+'. Actual: '+__lowerCase[index]); +for (var index = 0; index < __expected.length; index++) { + if (__lowerCase[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLocaleUpperCase(); __expected ="UNDEFINED"; __lowerCase[' + index + ']===' + __expected[index] + '. Actual: ' + __lowerCase[index]); } } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js index 39cf66d2c73b139dd36c49ff778cc5c9b3141910..32986be8bb63009162e0c91313bf5b5ca9b883c8 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A2_T1.js @@ -12,7 +12,7 @@ description: Checking returned result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("Hello, WoRlD!".toLocaleUpperCase() !== "HELLO, WORLD!") { - $ERROR('#1: "Hello, WoRlD!".toLocaleUpperCase() === "HELLO, WORLD!". Actual: '+("Hello, WoRlD!".toLocaleUpperCase()) ); + $ERROR('#1: "Hello, WoRlD!".toLocaleUpperCase() === "HELLO, WORLD!". Actual: ' + ("Hello, WoRlD!".toLocaleUpperCase())); } // ////////////////////////////////////////////////////////////////////////////// @@ -20,14 +20,14 @@ if ("Hello, WoRlD!".toLocaleUpperCase() !== "HELLO, WORLD!") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if ("Hello, WoRlD!".toLocaleUpperCase() !== String("HELLO, WORLD!")) { - $ERROR('#2: "Hello, WoRlD!".toLocaleUpperCase() === String("HELLO, WORLD!"). Actual: '+("Hello, WoRlD!".toLocaleUpperCase()) ); + $ERROR('#2: "Hello, WoRlD!".toLocaleUpperCase() === String("HELLO, WORLD!"). Actual: ' + ("Hello, WoRlD!".toLocaleUpperCase())); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ("Hello, WoRlD!".toLocaleUpperCase() ===new String("HELLO, WORLD!")) { +if ("Hello, WoRlD!".toLocaleUpperCase() === new String("HELLO, WORLD!")) { $ERROR('#3: "Hello, WoRlD!".toLocaleUpperCase() !== new String("HELLO, WORLD!"'); } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js index 498dbfaa590ae05c6ab330cc3ba11d1421344393..ba3d6e8f25c0c4af18d23784bc1568fa26e2019f 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLocaleUpperCase.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.toLocaleUpperCase.prototype !== undefined) { - $ERROR('#1: String.prototype.toLocaleUpperCase.prototype === undefined. Actual: '+String.prototype.toLocaleUpperCase.prototype ); + $ERROR('#1: String.prototype.toLocaleUpperCase.prototype === undefined. Actual: ' + String.prototype.toLocaleUpperCase.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js index 3f57102eefed31e8240d1bf421f1de758b43d5e4..75f8ac0136e50bf083adcb4d8904c9e6480623c5 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A7.js @@ -16,6 +16,6 @@ try { $ERROR('#1: __FACTORY = String.prototype.toLocaleUpperCase; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: var __instance = new __FACTORY; Object has no construct lead a TypeError. Actual: ' + (e)); + $ERROR('#1.1: var __instance = new __FACTORY; Object has no construct lead a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js index c1f69036c4bac39acc0daf4e4a06b94c7ec721f0..0043fa412d86ef1a4b59eacad4fae86f10b54afc 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.toLocaleUpperCase.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.toLocaleUpperCase){ - if (p==="length") count++; +for (var p in String.prototype.toLocaleUpperCase) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.toLocaleUpperCase){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.toLocaleUpperCase){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js index 36c4c6c820ef1957db6bb9b48bf98a9d7332a1bc..ec9102e6de3a9df1650e1b0bdfc68c4d28ad2a70 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.toLocaleUpperCase.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleUpperCase.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js index 37b044c1e78666851f8197acceebbc542e44bead..6cc53960bb0ab71769b4c6deb4c5d1777650c8da 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLowerCase.length; -verifyNotWritable(String.prototype.toLowerCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLowerCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLowerCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLowerCase.length; String.prototype.toLowerCase.length = function(){return "shifted";}; String.prototype.toLowerCase.length === __obj. Actual: '+String.prototype.toLowerCase.length ); + $ERROR('#2: __obj = String.prototype.toLowerCase.length; String.prototype.toLowerCase.length = function(){return "shifted";}; String.prototype.toLowerCase.length === __obj. Actual: ' + String.prototype.toLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js index f05e554ca4d86101d8fb1496bfb6d1ad6d3dcc64..6f4f7e826b410dd0cd2fc0d941c0a9fa5f38f636 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLowerCase.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLowerCase.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty("length")); + $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.toLowerCase.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLowerCase.length !== 0) { - $ERROR('#2: String.prototype.toLowerCase.length === 0. Actual: '+String.prototype.toLowerCase.length ); + $ERROR('#2: String.prototype.toLowerCase.length === 0. Actual: ' + String.prototype.toLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js index 62a744bc9c1da5645e4e529d245a50eec266100a..46714103423550c13e6f1b9c5a60cec0f9948acb 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T1.js @@ -14,7 +14,7 @@ __instance.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLowerCase() !== "true") { - $ERROR('#1: __instance = new Object(true); __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "true". Actual: '+__instance.toLowerCase() ); + $ERROR('#1: __instance = new Object(true); __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "true". Actual: ' + __instance.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js index 8e5b25c867d82c8815508588dbafa9615b983fb2..6c36aa0eaa2cc738265ccb41bcc36be7c419934c 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js @@ -9,14 +9,18 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLowerCase() !=="ab") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="ab". Actual: '+__obj.toLowerCase() ); +if (__obj.toLowerCase() !== "ab") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="ab". Actual: ' + __obj.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js index 1e47da8621299fa37a0fc3c3812fbc14031a5b14..922da69013216e6601f2817e0a9bcc591c3105ed 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js @@ -9,17 +9,21 @@ description: > toLowerCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLowerCase(); - $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js index df60a250295ec3313d7ad6b760454590f576c1db..38427815e77ff18aea83da486471dbc556ab372a 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js @@ -9,17 +9,24 @@ description: > then call toLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLowerCase(); - $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js index 2b3e12789d1f12599d96083f11cf6747acaf99cd..f3d3b396bee101f6461ad70c77a22b83f76ce2c8 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js @@ -9,13 +9,20 @@ description: > function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLowerCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="1". Actual: '+__obj.toLowerCase() ); +if (__obj.toLowerCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="1". Actual: ' + __obj.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toLowerCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLowerCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase().length === 1. Actual: '+__obj.toLowerCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase().length === 1. Actual: ' + __obj.toLowerCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js index 5693649fa75e15949fe880678aa1f72d06a90d7f..0c3e210586337816c8934100932630abc320b538 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js @@ -13,7 +13,7 @@ __reg.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__reg.toLowerCase() !== "/abc/") { - $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLowerCase = String.prototype.toLowerCase; __reg.toLowerCase() === "/abc/". Actual: '+__reg.toLowerCase() ); + $ERROR('#1: var __reg = new RegExp("ABC"); __reg.toLowerCase = String.prototype.toLowerCase; __reg.toLowerCase() === "/abc/". Actual: ' + __reg.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js index d5ed914c9360cde83d871c725150c5f6afbee725..b54c9754cb2a5342e85b3349622f44048def6318 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T2.js @@ -14,7 +14,7 @@ __instance.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toLowerCase() !== "false") { - $ERROR('#1: __instance = new Boolean; __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "false". Actual: '+__instance.toLowerCase() ); + $ERROR('#1: __instance = new Boolean; __instance.toLowerCase = String.prototype.toLowerCase; __instance.toLowerCase() === "false". Actual: ' + __instance.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js index 35a215e6f319274bf0d1f44132762714b78f86ae..39b4a54ec5b893641f75d03c111110b389206585 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T3.js @@ -10,7 +10,7 @@ description: Checking by using eval ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (eval("\"BJ\"").toLowerCase() !== "bj") { - $ERROR('#1: eval("\\"BJ\\"").toLowerCase() === "bj". Actual: '+eval("\"BJ\"").toLowerCase() ); + $ERROR('#1: eval("\\"BJ\\"").toLowerCase() === "bj". Actual: ' + eval("\"BJ\"").toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js index 145ad95bdbe395c9534fee38b70866ba829ed7c6..7a9da216230f814a5f357f0bcf8e63049bba7fb9 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T4.js @@ -11,12 +11,12 @@ description: > var __lowerCase = "".toLowerCase(); -var __expected = ""; +var __expected = ""; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__lowerCase[0]!==__expected[0]) { - $ERROR('#4: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]); +if (__lowerCase[0] !== __expected[0]) { + $ERROR('#4: __lowerCase = "".toLowerCase(); __expected = ""; __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js index 0082c8caf4fda2a3e9f6c3815070aaf7bc306ef4..7b1e62c44fcf2d02473d91e6984caba7f0e6b9f5 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLowerCase() function for function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLowerCase() !== "gnulluna") { - $ERROR('#1: function(){return "GnulLuNa"}().toLowerCase() === "gnulluna". Actual: '+function(){return "GnulLuNa"}().toLowerCase() ); +if (function() { + return "GnulLuNa" + }().toLowerCase() !== "gnulluna") { + $ERROR('#1: function(){return "GnulLuNa"}().toLowerCase() === "gnulluna". Actual: ' + function() { + return "GnulLuNa" + }().toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js index 915b9bc6a27ea63986923e82e21225b19dc4dd44..961534476040979ad03439eef2b05db2ca887286 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js @@ -12,7 +12,7 @@ Number.prototype.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ((Number.NEGATIVE_INFINITY).toLowerCase() !== "-infinity") { - $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; (Number.NEGATIVE_INFINITY).toLowerCase() === "-infinity". Actual: '+(Number.NEGATIVE_INFINITY).toLowerCase() ); + $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; (Number.NEGATIVE_INFINITY).toLowerCase() === "-infinity". Actual: ' + (Number.NEGATIVE_INFINITY).toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js index efb0be3d411703c0e54ea90756243fcdb19985df..ac4ac806ad33351e2307b00e73e7befce3fc6890 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T7.js @@ -11,8 +11,8 @@ Number.prototype.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (NaN.toLowerCase()!== "nan") { - $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; NaN.toLowerCase()=== "nan". Actual: '+NaN.toLowerCase()); +if (NaN.toLowerCase() !== "nan") { + $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; NaN.toLowerCase()=== "nan". Actual: ' + NaN.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js index 12d8e4982d38be3518cb984b4ff3894ae0f03e81..bf1daa0e11ad915053c1b8187be2cf9a223961ae 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T8.js @@ -9,6 +9,6 @@ description: Call toLowerCase() function of Infinity Number.prototype.toLowerCase = String.prototype.toLowerCase; -if (Infinity.toLowerCase()!== "infinity") { - $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; Infinity.toLowerCase()=== "infinity". Actual: '+Infinity.toLowerCase()); +if (Infinity.toLowerCase() !== "infinity") { + $ERROR('#1: Number.prototype.toLowerCase = String.prototype.toLowerCase; Infinity.toLowerCase()=== "infinity". Actual: ' + Infinity.toLowerCase()); } diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js index 713b5ced90819e0cc0b1c93744530dd90f3a4715..823e01128a1db00b79c355d3b69ea5ae85e6a8c7 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T9.js @@ -8,18 +8,18 @@ description: Call toLowerCase() function of string object ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; var __lowerCase = new String(__obj).toLowerCase(); -var __expected ="undefined"; +var __expected = "undefined"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,16 +35,16 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__lowerCase[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase['+index+']==='+__expected[index]+'. Actual: '+__lowerCase[index]); +for (var index = 0; index < __expected.length; index++) { + if (__lowerCase[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __lowerCase = new String(__obj).toLowerCase(); __expected ="undefined"; __lowerCase[' + index + ']===' + __expected[index] + '. Actual: ' + __lowerCase[index]); } } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js index 23824d463e95ed5f945c8eb03b1ac9dadbdbadc5..472f9a2439d103fc0b2df013355ab3793c906f61 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A2_T1.js @@ -10,7 +10,7 @@ description: Checking returned result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("Hello, WoRlD!".toLowerCase() !== "hello, world!") { - $ERROR('#1: "Hello, WoRlD!".toLowerCase() === "hello, world!". Actual: '+("Hello, WoRlD!".toLowerCase()) ); + $ERROR('#1: "Hello, WoRlD!".toLowerCase() === "hello, world!". Actual: ' + ("Hello, WoRlD!".toLowerCase())); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,14 +18,14 @@ if ("Hello, WoRlD!".toLowerCase() !== "hello, world!") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if ("Hello, WoRlD!".toLowerCase() !== String("hello, world!")) { - $ERROR('#2: "Hello, WoRlD!".toLowerCase() === String("hello, world!"). Actual: '+("Hello, WoRlD!".toLowerCase()) ); + $ERROR('#2: "Hello, WoRlD!".toLowerCase() === String("hello, world!"). Actual: ' + ("Hello, WoRlD!".toLowerCase())); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ("Hello, WoRlD!".toLowerCase() ===new String("hello, world!")) { +if ("Hello, WoRlD!".toLowerCase() === new String("hello, world!")) { $ERROR('#3: "Hello, WoRlD!".toLowerCase() !== new String("hello, world!")'); } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js index 4504be730f4d735fbc09bffe005eb0fb9a3bca55..056ad2ca19a1bd8e67f301d7f4e4dc3c360b9f12 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toLowerCase.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.toLowerCase.prototype !== undefined) { - $ERROR('#1: String.prototype.toLowerCase.prototype === undefined. Actual: '+String.prototype.toLowerCase.prototype ); + $ERROR('#1: String.prototype.toLowerCase.prototype === undefined. Actual: ' + String.prototype.toLowerCase.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js index 4d8c14efe8186eee2f84bf6d50bd60d6a530086d..4e800e64b72b5c3c954e47aa3bec01fa5ed13c37 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" throws a TypeError. Actual: ' + (e)); + $ERROR('#1.1: var __FACTORY = String.prototype.toLowerCase; "__instance = new __FACTORY" throws a TypeError. Actual: ' + (e)); } }; diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js index 779e3d2b069744aa0fd999382aa8bc98efa6e2c9..0681d09cfddae62904372c297a9800f1c831bb07 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.toLowerCase.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.toLowerCase){ - if (p==="length") count++; +for (var p in String.prototype.toLowerCase) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.toLowerCase){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.toLowerCase){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js index 2b680311f79bbab4462154ffe4b7d6e4af883039..4d3bc2aef9458c7d3818824dbe13d5d1221f9345 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.toLowerCase.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLowerCase.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.toLowerCase.length; String.prototype.toLowerCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.toLowerCase.length; String.prototype.toLowerCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js index b83c5b1832007897110bad832be7abec9e80e207..9b397fe4bd388465356f2f231ef5d93f5d51e369 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T1.js @@ -11,8 +11,8 @@ var __string__obj = new String(1); ////////////////////////////////////////////////////////////////////////////// //CHECK# -if (__string__obj.toString() !== ""+1) { - $ERROR('#1: __string__obj = new String(1); __string__obj.toString() === ""+1. Actual: __string__obj.toString() ==='+__string__obj.toString() ); +if (__string__obj.toString() !== "" + 1) { + $ERROR('#1: __string__obj = new String(1); __string__obj.toString() === ""+1. Actual: __string__obj.toString() ===' + __string__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js index 568f1a93fce59de4c04637ac963b0581af9eeeff..328e8c177d0d096b051283e08bc6612abb8c42c1 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T2.js @@ -11,8 +11,8 @@ var __string__obj = new String(true); ////////////////////////////////////////////////////////////////////////////// //CHECK# -if (__string__obj.toString() !== ""+true) { - $ERROR('#1: __string__obj = new String(true); __string__obj.toString() === ""+true. Actual: __string__obj.toString() ==='+__string__obj.toString() ); +if (__string__obj.toString() !== "" + true) { + $ERROR('#1: __string__obj = new String(true); __string__obj.toString() === ""+true. Actual: __string__obj.toString() ===' + __string__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js index 2720ba435f2ed5f48411341beb8ea8f53270cb48..ddeb249a60ad82df185a9870319209f5c9aad68c 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T3.js @@ -12,7 +12,7 @@ var __string__obj = new String("metal"); ////////////////////////////////////////////////////////////////////////////// //CHECK# if (__string__obj.toString() !== "metal") { - $ERROR('#1: __string__obj = new String("metal"); __string__obj.toString() === "metal". Actual: __string__obj.toString() ==='+__string__obj.toString() ); + $ERROR('#1: __string__obj = new String("metal"); __string__obj.toString() === "metal". Actual: __string__obj.toString() ===' + __string__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js index 933030ef575ca9ed33f09f3e595b6a40c593c172..73a7b7529599ef18842a10f499199fbffb667ee8 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A1_T4.js @@ -7,12 +7,12 @@ es5id: 15.5.4.2_A1_T4 description: Create new String(function(){}()) and check it`s method toString() ---*/ -var __string__obj = new String(function(){}()); +var __string__obj = new String(function() {}()); ////////////////////////////////////////////////////////////////////////////// //CHECK# if (__string__obj.toString() !== "undefined") { - $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.toString() === "undefined". Actual: __string__obj.toString() ==='+__string__obj.toString() ); + $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.toString() === "undefined". Actual: __string__obj.toString() ===' + __string__obj.toString()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js index 8f1721db55f5e14744cdd8fbc0b5d9b90fb5f8ee..ba121d02575cba247519e7de7e14c9b6d9b67de5 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T1.js @@ -15,7 +15,7 @@ var __toString = String.prototype.toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __toString !== "function") { - $ERROR('#1: __toString = String.prototype.toString; typeof __toString === "function". Actual: typeof __toString ==='+typeof __toString ); + $ERROR('#1: __toString = String.prototype.toString; typeof __toString === "function". Actual: typeof __toString ===' + typeof __toString); } // @@ -28,7 +28,7 @@ try { $ERROR('#2: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception. Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: "__toString = String.prototype.toString; var x = __toString();" lead to throwing exception. Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js index 56896801cd1a4a263c0966f496e652b2d7c9b27c..8862f4fe8ab46e54a99bcd9fb2bc28631afa6fa9 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js @@ -10,12 +10,14 @@ es5id: 15.5.4.2_A2_T2 description: Checking if creating the object String.prototype.toString fails ---*/ -var __obj={toString : String.prototype.toString}; +var __obj = { + toString: String.prototype.toString +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __obj["toString"] !== "function") { - $ERROR('#1: var __obj={toString : String.prototype.toString}; typeof __obj["toString"] === "function". Actual: typeof __obj["toString"] ==='+typeof __obj["toString"] ); + $ERROR('#1: var __obj={toString : String.prototype.toString}; typeof __obj["toString"] === "function". Actual: typeof __obj["toString"] ===' + typeof __obj["toString"]); } // @@ -28,7 +30,7 @@ try { $ERROR('#2: "var x = (__obj == 1)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js index 51b235fe11cf9c6b3ab9dd4b6b3902cbe5e76ea9..dfa848162597bf3f29698fe4663368cb1b078962 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js @@ -11,20 +11,20 @@ description: > //CHECK#1 var str = new String(); -if(!(str.valueOf() == str.toString())) +if (!(str.valueOf() == str.toString())) $ERROR('#1: str = new String(),str.valueOf() == str.toString()'); //CHECK#2 str = new String(true); -if(!(str.valueOf() == str.toString())) +if (!(str.valueOf() == str.toString())) $ERROR('#2: str = new String(true),str.valueOf() == str.toString()'); //CHECK#3 str = new String(false); -if(!(str.valueOf() == str.toString())) +if (!(str.valueOf() == str.toString())) $ERROR('#3: str = new String(false),str.valueOf() == str.toString()'); //CHECK#4 str = new String(Math.PI); -if(!(str.valueOf() == str.toString())) +if (!(str.valueOf() == str.toString())) $ERROR('#4: str = new String(Math.PI),str.valueOf() == str.toString()'); diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js index f4b51a90aff6970e0717c918cde6323fc06761d8..01356cb51ef3d1972b22640004b1a60e3f9fa3a1 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A4_T1.js @@ -8,11 +8,11 @@ description: Checking String.prototype.toString.length property ---*/ //CHECK#1 -if (String.prototype.toString.hasOwnProperty('length')!==true){ - $ERROR('#1: String.prototype.toString.hasOwnProperty(\'length\')===true. Actual: '+String.prototype.toString.hasOwnProperty('length')); +if (String.prototype.toString.hasOwnProperty('length') !== true) { + $ERROR('#1: String.prototype.toString.hasOwnProperty(\'length\')===true. Actual: ' + String.prototype.toString.hasOwnProperty('length')); } -else{ -//CHECK#2 -if (String.prototype.toString.length!==0) - $ERROR('#2: String.prototype.toString.length===0. Actual: String.prototype.toString.length==='+String.prototype.toString.length); +else { + //CHECK#2 + if (String.prototype.toString.length !== 0) + $ERROR('#2: String.prototype.toString.length===0. Actual: String.prototype.toString.length===' + String.prototype.toString.length); } diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js index b88e37c58fa1e57a0512ed5717dd02e4509ed671..b1b96a0d01d00276490c402a2d8af2b2d237e962 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toUpperCase.length; -verifyNotWritable(String.prototype.toUpperCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toUpperCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toUpperCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toUpperCase.length; String.prototype.toUpperCase.length = function(){return "shifted";}; String.prototype.toUpperCase.length === __obj. Actual: '+String.prototype.toUpperCase.length ); + $ERROR('#2: __obj = String.prototype.toUpperCase.length; String.prototype.toUpperCase.length = function(){return "shifted";}; String.prototype.toUpperCase.length === __obj. Actual: ' + String.prototype.toUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js index 3747a63f45ffdd9dbfeebfb379b995efddb3d124..fb9baed90f344957fd6e7b4bb2509dbbf026907e 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toUpperCase.length ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toUpperCase.hasOwnProperty("length"))) { - $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty("length") return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty("length")); + $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty("length") return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty("length")); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,7 +18,7 @@ if (!(String.prototype.toUpperCase.hasOwnProperty("length"))) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toUpperCase.length !== 0) { - $ERROR('#2: String.prototype.toUpperCase.length === 0. Actual: '+String.prototype.toUpperCase.length ); + $ERROR('#2: String.prototype.toUpperCase.length === 0. Actual: ' + String.prototype.toUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js index 951eafd2c56a79cf4a0e12ca597be4c90c694690..c5093c5a5fe0d226ee953263e1aca7c0d63b6937 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T1.js @@ -14,7 +14,7 @@ __instance.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toUpperCase() !== "TRUE") { - $ERROR('#1: __instance = new Object(true); __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "TRUE". Actual: '+__instance.toUpperCase() ); + $ERROR('#1: __instance = new Object(true); __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "TRUE". Actual: ' + __instance.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js index 0da16d896293950b8bc7277e2af01037c7217606..505d785b8a020946959a72c893b097f3fcdde408 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041b";}} +var __obj = { + toString: function() { + return "\u0041b"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toUpperCase() !=="AB") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="AB". Actual: '+__obj.toUpperCase() ); +if (__obj.toUpperCase() !== "AB") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="AB". Actual: ' + __obj.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js index 63a68975ae135d327075ab1dc9b74c7aa877a68b..4eccc3afca0a8174e790384cbf8ad26f1eccd236 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js @@ -9,16 +9,20 @@ description: > toUpperCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toUpperCase(); - $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js index 7ec6f11d7d710c8140e71a759411a1ac797d1eba..6695033cd7bd35007dec95b39d1df6810cbf0e40 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js @@ -9,16 +9,23 @@ description: > then call toUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toUpperCase(); - $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js index f3c9080f898721ec6e132864469c6c9f508eec6f..a4f0e26f383c5fca56d9dcefea0442e6363b837b 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js @@ -9,13 +9,20 @@ description: > function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toUpperCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="1". Actual: '+__obj.toUpperCase() ); +if (__obj.toUpperCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="1". Actual: ' + __obj.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toUpperCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toUpperCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase().length === 1. Actual: '+__obj.toUpperCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase().length === 1. Actual: ' + __obj.toUpperCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js index 38d64db468c31cbe0d050af447fdbf0ff07fd859..0c13deac22ceb32b9f8c62e2db8191c4849a3b7c 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js @@ -12,7 +12,7 @@ __reg.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__reg.toUpperCase() !== "/ABC/") { - $ERROR('#1: var __reg = new RegExp("abc"); __reg.toUpperCase = String.prototype.toUpperCase; __reg.toUpperCase() === "/ABC/". Actual: '+__reg.toUpperCase() ); + $ERROR('#1: var __reg = new RegExp("abc"); __reg.toUpperCase = String.prototype.toUpperCase; __reg.toUpperCase() === "/ABC/". Actual: ' + __reg.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js index e07861a9e8d4315b4e36098ff6b8d5b6ab6b1aa6..fda139b74d65d82a29a8eafa9c78593ec474ad47 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T2.js @@ -14,7 +14,7 @@ __instance.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.toUpperCase() !== "FALSE") { - $ERROR('#1: __instance = new Boolean; __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "FALSE". Actual: '+__instance.toUpperCase() ); + $ERROR('#1: __instance = new Boolean; __instance.toUpperCase = String.prototype.toUpperCase; __instance.toUpperCase() === "FALSE". Actual: ' + __instance.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js index 127023d0d5e5e72d5bc647f803184fa48782e8b3..c095aa9109db1983fa8ec5cab74aaa3005b4314b 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T3.js @@ -10,7 +10,7 @@ description: Checking by using eval ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (eval("\"bj\"").toUpperCase() !== "BJ") { - $ERROR('#1: eval("\\"bj\\"").toUpperCase() === "BJ". Actual: '+eval("\"bj\"").toUpperCase() ); + $ERROR('#1: eval("\\"bj\\"").toUpperCase() === "BJ". Actual: ' + eval("\"bj\"").toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js index a0f71334a62fda8f4e665688889df29144500be0..752d08837b32f7250fbd91694fc9ffda8e0d3431 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T4.js @@ -11,12 +11,12 @@ description: > var __lowerCase = "".toUpperCase(); -var __expected = ""; +var __expected = ""; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__lowerCase.length !== __expected.length) { - $ERROR('#1: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: '+__lowerCase.length ); + $ERROR('#1: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.length === __expected.length. Actual: ' + __lowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +24,7 @@ if (__lowerCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__lowerCase.index !== __expected.index) { - $ERROR('#2: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: '+__lowerCase.index ); + $ERROR('#2: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.index === __expected.index. Actual: ' + __lowerCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +32,15 @@ if (__lowerCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__lowerCase.input !== __expected.input) { - $ERROR('#3: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: '+__lowerCase.input ); + $ERROR('#3: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase.input === __expected.input. Actual: ' + __lowerCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -if (__lowerCase[0]!==__expected[0]) { - $ERROR('#4: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase[0]==='+__expected[0]+'. Actual: '+__lowerCase[0]); +if (__lowerCase[0] !== __expected[0]) { + $ERROR('#4: __lowerCase = "".toUpperCase(); __expected = ""; __lowerCase[0]===' + __expected[0] + '. Actual: ' + __lowerCase[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js index 1e179135b37c427d2f1ba1f5527778c5e5e05742..e9dbfcaf3b066c075f1fa2aa93e1a866fda5639e 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js @@ -10,8 +10,12 @@ description: Call toUpperCase() function of function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toUpperCase() !== "GNULLUNA") { - $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toUpperCase() ); +if (function() { + return "GnulLuNa" + }().toUpperCase() !== "GNULLUNA") { + $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: ' + function() { + return "GnulLuNa" + }().toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js index 85fc4f0e3f41a844c4cf77625b990f1ca2a5920c..43fb1fc122d3ba9f15e87c9ae376223487873be1 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js @@ -12,7 +12,7 @@ Number.prototype.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ((Number.NEGATIVE_INFINITY).toUpperCase() !== "-INFINITY") { - $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; (Number.NEGATIVE_INFINITY).toUpperCase() === "-INFINITY". Actual: '+(Number.NEGATIVE_INFINITY).toUpperCase() ); + $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; (Number.NEGATIVE_INFINITY).toUpperCase() === "-INFINITY". Actual: ' + (Number.NEGATIVE_INFINITY).toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js index d5ea871405badc29512f12894a445c8ac2bcd58a..2c94d95cceaaaa60357b740c7998a83f2c9654be 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T7.js @@ -11,8 +11,8 @@ Number.prototype.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (NaN.toUpperCase()!== "NAN") { - $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; NaN.toUpperCase()=== "NAN". Actual: '+NaN.toUpperCase()); +if (NaN.toUpperCase() !== "NAN") { + $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; NaN.toUpperCase()=== "NAN". Actual: ' + NaN.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js index 289d7d1d71eb5935f28f2afc2f2faa7c28f37ef4..d4297d85f47f58d7b4592ddeaec12f2f47e2bdcd 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T8.js @@ -9,6 +9,6 @@ description: Call toUpperCase() function of Infinity; Number.prototype.toUpperCase = String.prototype.toUpperCase; -if (Infinity.toUpperCase()!== "INFINITY") { - $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; Infinity.toUpperCase()=== "INFINITY". Actual: '+Infinity.toUpperCase()); +if (Infinity.toUpperCase() !== "INFINITY") { + $ERROR('#1: Number.prototype.toUpperCase = String.prototype.toUpperCase; Infinity.toUpperCase()=== "INFINITY". Actual: ' + Infinity.toUpperCase()); } diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js index 10a3f1b23bbefccff8f0cd53b9894cc29db058bd..4a532717478edb6b4710ecb04a2ac938194ba090 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T9.js @@ -8,18 +8,18 @@ description: Call toUpperCase() function of string object ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; var __upperCase = new String(__obj).toUpperCase(); -var __expected ="UNDEFINED"; +var __expected = "UNDEFINED"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__upperCase.length !== __expected.length) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.length === __expected.length. Actual: '+__upperCase.length ); + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.length === __expected.length. Actual: ' + __upperCase.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,7 +27,7 @@ if (__upperCase.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__upperCase.index !== __expected.index) { - $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.index === __expected.index. Actual: '+__upperCase.index ); + $ERROR('#2: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.index === __expected.index. Actual: ' + __upperCase.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -35,16 +35,16 @@ if (__upperCase.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__upperCase.input !== __expected.input) { - $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.input === __expected.input. Actual: '+__upperCase.input ); + $ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase.input === __expected.input. Actual: ' + __upperCase.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__upperCase[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase['+index+']==='+__expected[index]+'. Actual: '+__upperCase[index]); +for (var index = 0; index < __expected.length; index++) { + if (__upperCase[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {valueOf:function(){}, toString:void 0}; __upperCase = new String(__obj).toUpperCase(); __expected ="UNDEFINED"; __upperCase[' + index + ']===' + __expected[index] + '. Actual: ' + __upperCase[index]); } } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js index b6b76ea34d3937fe32c779f8f291de3f3ff832aa..7ed0d7de9833b20ad6f0bf1399950f42288b6535 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A2_T1.js @@ -10,7 +10,7 @@ description: Checking returned result ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if ("Hello, WoRlD!".toUpperCase() !== "HELLO, WORLD!") { - $ERROR('#1: "Hello, WoRlD!".toUpperCase() === "HELLO, WORLD!". Actual: '+("Hello, WoRlD!".toUpperCase()) ); + $ERROR('#1: "Hello, WoRlD!".toUpperCase() === "HELLO, WORLD!". Actual: ' + ("Hello, WoRlD!".toUpperCase())); } // ////////////////////////////////////////////////////////////////////////////// @@ -18,14 +18,14 @@ if ("Hello, WoRlD!".toUpperCase() !== "HELLO, WORLD!") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if ("Hello, WoRlD!".toUpperCase() !== String("HELLO, WORLD!")) { - $ERROR('#2: "Hello, WoRlD!".toUpperCase() === String("HELLO, WORLD!"). Actual: '+("Hello, WoRlD!".toUpperCase()) ); + $ERROR('#2: "Hello, WoRlD!".toUpperCase() === String("HELLO, WORLD!"). Actual: ' + ("Hello, WoRlD!".toUpperCase())); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if ("Hello, WoRlD!".toUpperCase() ===new String("HELLO, WORLD!")) { +if ("Hello, WoRlD!".toUpperCase() === new String("HELLO, WORLD!")) { $ERROR('#3: "Hello, WoRlD!".toUpperCase() !== new String("HELLO, WORLD!")'); } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js index e870a1a9befb2d101c397e3fc6f83d0dfafaf377..7d1512f5a17e9b5ba5034b71d29ddf7249ac67c5 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A6.js @@ -10,7 +10,7 @@ description: Checking String.prototype.toUpperCase.prototype ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (String.prototype.toUpperCase.prototype !== undefined) { - $ERROR('#1: String.prototype.toUpperCase.prototype === undefined. Actual: '+String.prototype.toUpperCase.prototype ); + $ERROR('#1: String.prototype.toUpperCase.prototype === undefined. Actual: ' + String.prototype.toUpperCase.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js index bd2d26e8ae1e432f5d86310a7a28261e07e8e75a..b11b3206329368d2c1f381618083c8184b1eb30e 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A7.js @@ -14,6 +14,6 @@ try { $ERROR('#1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" lead to throwing exception'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); + $ERROR('#1.1: var __FACTORY = String.prototype.toUpperCase; "__instance = new __FACTORY" throw a TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js index d5deefd6df9d05d59e78eacad2a75a64d4d628ff..b388e38a6a3fa28be87720a7ec394f6732d6917c 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A8.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,14 +30,14 @@ if (String.prototype.toUpperCase.propertyIsEnumerable('length')) { ////////////////////////////////////////////////////////////////////////////// // CHECK#2 -var count=0; +var count = 0; -for (var p in String.prototype.toUpperCase){ - if (p==="length") count++; +for (var p in String.prototype.toUpperCase) { + if (p === "length") count++; } if (count !== 0) { - $ERROR('#2: count=0; for (p in String.prototype.toUpperCase){if (p==="length") count++;}; count === 0. Actual: '+count ); + $ERROR('#2: count=0; for (p in String.prototype.toUpperCase){if (p==="length") count++;}; count === 0. Actual: ' + count); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js index 9e33d4b01e12300fb46897886135e9387f165030..5cf505e070b3abb1343be3e87cc1265ab9c0deff 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A9.js @@ -14,7 +14,7 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#0 if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) { - $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#0: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +30,7 @@ if (!delete String.prototype.toUpperCase.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toUpperCase.hasOwnProperty('length')) { - $ERROR('#2: delete String.prototype.toUpperCase.length; String.prototype.toUpperCase.hasOwnProperty(\'length\') return false. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#2: delete String.prototype.toUpperCase.length; String.prototype.toUpperCase.hasOwnProperty(\'length\') return false. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js index 429a17b072af5b83b6526474fe99052319cc090c..cd7a756f478966ae70bb8ca1b1b4d911c841de73 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-0-1.js @@ -6,6 +6,6 @@ es5id: 15.5.4.20-0-1 description: String.prototype.trim must exist as a function ---*/ - var f = String.prototype.trim; +var f = String.prototype.trim; assert.sameValue(typeof(f), "function", 'typeof(f)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js index bd0bcaa1f5030bdebbcd36acf744bdedb5e4b12c..d44536ab55e6dbe822b50cf9ebc433b40f0deada 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-1.js @@ -8,5 +8,5 @@ description: String.prototype.trim throws TypeError when string is undefined assert.throws(TypeError, function() { - String.prototype.trim.call(undefined); + String.prototype.trim.call(undefined); }); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js index d91241da246fe1756b0e08c25fc284438b8827da..728d40f5a5dfe9ce2af1f3cfce3dff3ec996b8c8 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-2.js @@ -8,5 +8,5 @@ description: String.prototype.trim throws TypeError when string is null assert.throws(TypeError, function() { - String.prototype.trim.call(null); + String.prototype.trim.call(null); }); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js index 3b93eb17370ee309b24a1d2c30e6c2ef6381b437..874f8110d0a3b1db15d78a5bbad0d5c3b5fc3ff8 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-8.js @@ -8,7 +8,7 @@ description: > abc') ---*/ - var strObj = String(" abc"); +var strObj = String(" abc"); assert.sameValue(strObj.trim(), "abc", 'strObj.trim()'); assert.sameValue(strObj.toString(), " abc", 'strObj.toString()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js b/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js index cd09927dd822af7f0aad7f3f276409b6807e40d3..69ada328170dcaab714381f2b384a0b5c5ecd32e 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-1-9.js @@ -8,6 +8,6 @@ description: > undefined ---*/ - var strObj = new String(undefined); +var strObj = new String(undefined); assert.sameValue(strObj.trim(), "undefined", 'strObj.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js index 163254129aa60308b0af78880d5b65b3a723fd10..925c82e1e24c236d951c79c01acb50918adb8e4f 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-38.js @@ -8,10 +8,10 @@ description: > toString method ---*/ - var obj = { - toString: function () { - return "abc"; - } - }; +var obj = { + toString: function() { + return "abc"; + } +}; assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js index 2536716dedbe46bc51047fd1640f4b5231ff2e1e..6d93265b09aff226b11a0d1eabbdc305433caedf 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-39.js @@ -8,10 +8,10 @@ description: > valueOf method ---*/ - var obj = { - valueOf: function () { - return "abc"; - } - }; +var obj = { + valueOf: function() { + return "abc"; + } +}; assert.sameValue(String.prototype.trim.call(obj), "[object Object]", 'String.prototype.trim.call(obj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js index 4edb83c72724a21ae03425cd742f79cb1e156d8f..d3e91e5f161e89b9c4545e0548f8264253e84f72 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-40.js @@ -9,18 +9,18 @@ description: > returns a primitive value ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; - var obj = { - toString: function () { - toStringAccessed = true; - return {}; - }, - valueOf: function () { - valueOfAccessed = true; - return "abc"; - } - }; +var toStringAccessed = false; +var valueOfAccessed = false; +var obj = { + toString: function() { + toStringAccessed = true; + return {}; + }, + valueOf: function() { + valueOfAccessed = true; + return "abc"; + } +}; assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js index a9233a47d1763d14060acaf134c047426db1b7be..260eb88cca940059ef6c391c16e6836a40ca6670 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-41.js @@ -8,18 +8,18 @@ description: > toString and valueOf method. ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; - var obj = { - toString: function () { - toStringAccessed = true; - return "abc"; - }, - valueOf: function () { - valueOfAccessed = true; - return "cef"; - } - }; +var toStringAccessed = false; +var valueOfAccessed = false; +var obj = { + toString: function() { + toStringAccessed = true; + return "abc"; + }, + valueOf: function() { + valueOfAccessed = true; + return "cef"; + } +}; assert.sameValue(String.prototype.trim.call(obj), "abc", 'String.prototype.trim.call(obj)'); assert.sameValue(valueOfAccessed, false, 'valueOfAccessed'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js index 393625ce0f7db40f1cab4a41f21c9c39bae64d2a..2c7faa8ecc0fed2abf60256ddb66e561ecf6be79 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-42.js @@ -9,20 +9,20 @@ description: > primitive value. ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; - var obj = { - toString: function () { - toStringAccessed = true; - return {}; - }, - valueOf: function () { - valueOfAccessed = true; - return {}; - } - }; +var toStringAccessed = false; +var valueOfAccessed = false; +var obj = { + toString: function() { + toStringAccessed = true; + return {}; + }, + valueOf: function() { + valueOfAccessed = true; + return {}; + } +}; assert.throws(TypeError, function() { - String.prototype.trim.call(obj); + String.prototype.trim.call(obj); }); assert(valueOfAccessed, 'valueOfAccessed !== true'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js index 1c9446bdc0b7d60b9c429eceb5b6439f1d65027e..0bad8928fce538c0d3d5ff7bc1b1737154073237 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-43.js @@ -9,24 +9,24 @@ description: > toString method will be called first ---*/ - var toStringAccessed = false; - var valueOfAccessed = false; +var toStringAccessed = false; +var valueOfAccessed = false; - var proto = { - toString: function () { - toStringAccessed = true; - return "abc"; - } - }; +var proto = { + toString: function() { + toStringAccessed = true; + return "abc"; + } +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.valueOf = function () { - valueOfAccessed = true; - return "efg"; - }; +var child = new Con(); +child.valueOf = function() { + valueOfAccessed = true; + return "efg"; +}; assert.sameValue(String.prototype.trim.call(child), "abc", 'String.prototype.trim.call(child)'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js index 3dbead7888d8df29f9a7e578077f785a0fb64030..9da700970ec26ebbf6043035dfef22be2819a4cf 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-44.js @@ -8,6 +8,6 @@ description: > Asian characters (value is 'SD咕噜') ---*/ - var str = "SD咕噜"; +var str = "SD咕噜"; assert.sameValue(str.trim(), str, 'str.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js index c8c99d70a5f14df5e2bcdfbfc39cc64f5dddc533..82d31dc3381efe0ef25a1e98d12162d523b40bbd 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-45.js @@ -8,7 +8,7 @@ description: > space, character, number, object and null characters ---*/ - var str = "abc" + " " + 123 + " " + {} + " " + "\u0000"; - var str1 = " " + str + " "; +var str = "abc" + " " + 123 + " " + {} + " " + "\u0000"; +var str1 = " " + str + " "; assert.sameValue(str1.trim(), str, 'str1.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js index f68088fa369485cc9db9cbb801c46a61d678d529..a01462f1389790026f0b2b9f366f858b883af840 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js @@ -8,6 +8,8 @@ description: > to a string ---*/ - var funObj = function () { return arguments; }; +var funObj = function() { + return arguments; +}; assert.sameValue(typeof(String.prototype.trim.call(funObj)), "string", 'typeof(String.prototype.trim.call(funObj))'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js index 7eb3a04b37017144c8eceaf6161052b5bcf7ee71..88e71dcb962b8ab0d60eb3f44ec7bca6d9feb465 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js @@ -8,6 +8,6 @@ description: > a string ---*/ - var regObj = new RegExp(/test/); +var regObj = new RegExp(/test/); assert.sameValue(String.prototype.trim.call(regObj), "/test/", 'String.prototype.trim.call(regObj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js index 7dff7b940f0e800797d16b30a09fed63098dfc40..a59a845ca4c9046d0e03f8c131b3b5c229adba63 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-50.js @@ -8,6 +8,6 @@ description: > a string ---*/ - var errObj = new Error("test"); +var errObj = new Error("test"); assert.sameValue(String.prototype.trim.call(errObj), "Error: test", 'String.prototype.trim.call(errObj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js index d47c31beb83f70ed1f8b3d6e85ac56fb75f0379f..525f8e8e8652d47bc0d656d8a88cc6eb0d6a9202 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js @@ -8,6 +8,8 @@ description: > to a string ---*/ - var argObj = function () { return arguments; } (1, 2, true); +var argObj = function() { + return arguments; +}(1, 2, true); assert.sameValue(String.prototype.trim.call(argObj), "[object Arguments]", 'String.prototype.trim.call(argObj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js index 0d7794575acb3701638c9d824c4316bbc7b93e07..b2fae943c6577cae6232974266bb3fab45324fe6 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js @@ -6,6 +6,6 @@ es5id: 15.5.4.20-3-1 description: String.prototype.trim - 'S' is a string with all LineTerminator ---*/ - var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; +var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; assert.sameValue(lineTerminatorsStr.trim(), "", 'lineTerminatorsStr.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js b/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js index c488c91eeb7806929c2c57be0a564b8d18e00dc9..1c2c946b63200e20e790dce809a177a08b94cff5 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-3-5.js @@ -10,6 +10,6 @@ description: > var lineTerminatorsStr = "\u000A\u000D\u2028\u2029"; var whiteSpacesStr = "\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"; -var str = "abc" + whiteSpacesStr + lineTerminatorsStr ; +var str = "abc" + whiteSpacesStr + lineTerminatorsStr; assert.sameValue(str.trim(), "abc", 'str.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js index 9abc0fdfadd5b90fd62d639f5695e4091dadd04e..33666c92473b147a58b928103d601524606b711e 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-4-1.js @@ -11,6 +11,6 @@ description: > var s = "\u0009a b\ c \u0009" - + assert.sameValue(s.trim(), "a bc", 's.trim()'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js b/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js index 13a98eb6c5e5cb9ece6d5406c62c81a0cb96af21..2096985617e3f0de9de68696e872870285f91228 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-4-59.js @@ -8,7 +8,7 @@ description: > (\u2029abc as a multiline string) ---*/ - var s = "\u2029\ +var s = "\u2029\ abc"; assert.sameValue(s.trim(), "abc", 's.trim()'); diff --git a/test/built-ins/String/prototype/trimEnd/this-value-number.js b/test/built-ins/String/prototype/trimEnd/this-value-number.js index 2affe226157cd2f050e96585aabe144ae38161a4..1f331ee47eaf242269f6e9c7ed3e37f32f5cf767 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-number.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-number.js @@ -45,4 +45,3 @@ assert.sameValue( '-1', 'String.prototype.trimEnd.call(-1)' ); - diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js index 3a85af554ee80305cd537db29aabe5037748c2ec..77170a1c7d42bbcefd64d91794b32134f793733f 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js @@ -53,5 +53,7 @@ var thisVal = { // nor valueOf defined, then a TypeError exception should be thrown. assert.throws( TypeError, - function() { String.prototype.trimEnd.call(thisVal); }, + function() { + String.prototype.trimEnd.call(thisVal); + }, ); diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js index f7bdb4e5e48b611ca507349bdba28ebcc599f401..127dc03f993aa0067106d9555de30a7292d67fe8 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js @@ -33,15 +33,21 @@ var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { toPrimitiveAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, get toString() { toStringAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js index 50e78cb60326904f1467f71a8a9bf70b3cf791eb..3c65454e046ae726330f1feaa4eed1026f07205b 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js @@ -48,16 +48,20 @@ var toStringAccessed = 0; var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { - toPrimitiveAccessed +=1; + toPrimitiveAccessed += 1; return undefined; }, get toString() { toStringAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js index fe327468efbc619b3f4d9a3c091a21a8733afb5b..b2a16798cc5a42b9ae8de19c729cd5906d5e0d8c 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js @@ -57,7 +57,9 @@ var thisVal = { }, get valueOf() { valueOfAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js b/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js index e53131a6a090aaee2cc8619a166f54ff78d0a3a3..d043708aac0084f0f4793e57563e165ff5f5910d 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js @@ -19,6 +19,8 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { trimEnd.call(symbol); }, + function() { + trimEnd.call(symbol); + }, 'String.prototype.trimEnd.call(Symbol())' ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-number.js b/test/built-ins/String/prototype/trimStart/this-value-number.js index 2a4a518eaa2df748b87a75c06286ef1272230bf7..c187cbad9b1fca253363acfda838ff92fe0aa29a 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-number.js +++ b/test/built-ins/String/prototype/trimStart/this-value-number.js @@ -45,4 +45,3 @@ assert.sameValue( '-1', 'String.prototype.trimStart.call(-1)' ); - diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js index 15de7e4159d41eca41bdeaa751e08d7ccb6ccb64..e74d0569b58211d5019cb80060434e62dd8d50c9 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js @@ -53,5 +53,7 @@ var thisVal = { // nor valueOf defined, then a TypeError exception should be thrown. assert.throws( TypeError, - function() { String.prototype.trimStart.call(thisVal); }, + function() { + String.prototype.trimStart.call(thisVal); + }, ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js index b6db9212113ffd5703dfb46368d6d5f9af1b76f4..f16a325f8dae9a845011686b32007535397a0a34 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js @@ -33,15 +33,21 @@ var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { toPrimitiveAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, get toString() { toStringAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js index af3d3487305926613bd954f994f23d41dd102e07..f4fb1f201205fc09a4607b4b636c7ba1765d6b4f 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js @@ -48,16 +48,20 @@ var toStringAccessed = 0; var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { - toPrimitiveAccessed +=1; + toPrimitiveAccessed += 1; return undefined; }, get toString() { toStringAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js index 6ebbda73651c01d3fb6bd5f2032cef1776b64384..1f4e67cea0b6292f01c833200c68afbd18fba830 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js @@ -57,7 +57,9 @@ var thisVal = { }, get valueOf() { valueOfAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js b/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js index e66f2e85d71e2505eb8a57d120fb23bf62522833..f49280759733509f41b3284e9d7a4f60f7996778 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js +++ b/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js @@ -19,6 +19,8 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { trimStart.call(symbol); }, + function() { + trimStart.call(symbol); + }, 'String.prototype.trimStart.call(Symbol())' ); diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js index a3080da71b319fb3c994cb9462f620502d41a1a0..6e42dcfbf37ceae0632f44cf1ec9c617c5d5c827 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js @@ -11,8 +11,8 @@ var __string__obj = new String(1); ////////////////////////////////////////////////////////////////////////////// //CHECK# -if (__string__obj.valueOf() !== ""+1) { - $ERROR('#1: __string__obj = new String(1); __string__obj.valueOf() === ""+1. Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() ); +if (__string__obj.valueOf() !== "" + 1) { + $ERROR('#1: __string__obj = new String(1); __string__obj.valueOf() === ""+1. Actual: __string__obj.valueOf() ===' + __string__obj.valueOf()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js index 553ccf768a1437591b5b8626cb274da67bd79944..88a5de7e4433018819a2a8886c0e62a8fa0572ce 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T2.js @@ -11,8 +11,8 @@ var __string__obj = new String(true); ////////////////////////////////////////////////////////////////////////////// //CHECK# -if (__string__obj.valueOf() !== ""+true) { - $ERROR('#1: __string__obj = new String(true); __string__obj.valueOf() === ""+true. Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() ); +if (__string__obj.valueOf() !== "" + true) { + $ERROR('#1: __string__obj = new String(true); __string__obj.valueOf() === ""+true. Actual: __string__obj.valueOf() ===' + __string__obj.valueOf()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js index cbeb4dd017153212266bd85de9f1245c0b4fbc27..20f48c09beeca31d76b30e58053aa93dc235e126 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T3.js @@ -12,7 +12,7 @@ var __string__obj = new String("metal"); ////////////////////////////////////////////////////////////////////////////// //CHECK# if (__string__obj.valueOf() !== "metal") { - $ERROR('#1: __string__obj = new String("metal"); __string__obj.valueOf() === "metal". Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() ); + $ERROR('#1: __string__obj = new String("metal"); __string__obj.valueOf() === "metal". Actual: __string__obj.valueOf() ===' + __string__obj.valueOf()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js index e7beb039a55a4cbe157777155787be72b677d6f2..495b720c5913da068b6689f5190bb7b378450192 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T4.js @@ -9,12 +9,12 @@ description: > valueOf() ---*/ -var __string__obj = new String(function(){}()); +var __string__obj = new String(function() {}()); ////////////////////////////////////////////////////////////////////////////// //CHECK# if (__string__obj.valueOf() !== "undefined") { - $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.valueOf() === "undefined". Actual: __string__obj.valueOf() ==='+__string__obj.valueOf() ); + $ERROR('#1: __string__obj = new String(function(){}()); __string__obj.valueOf() === "undefined". Actual: __string__obj.valueOf() ===' + __string__obj.valueOf()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js index 4e4613a5e3c6f2ee27a73fc47aca46a3eb88ba6e..4c8cf826958b9af160cc7fcd2db8616600765fd1 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T1.js @@ -14,7 +14,7 @@ var __valueOf = String.prototype.valueOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __valueOf !== "function") { - $ERROR('#1: __valueOf = String.prototype.valueOf; typeof __valueOf === "function". Actual: typeof __valueOf ==='+typeof __valueOf ); + $ERROR('#1: __valueOf = String.prototype.valueOf; typeof __valueOf === "function". Actual: typeof __valueOf ===' + typeof __valueOf); } // @@ -27,7 +27,7 @@ try { $ERROR('#2: "__valueOf = String.prototype.valueOf; var x = __valueOf()" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js index efaa7ef5de527d5c6ecc9a10db43eccc5c968cf0..ec48d9f96ace276df62ab2c7245a55429ac12ca3 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js @@ -9,12 +9,14 @@ es5id: 15.5.4.3_A2_T2 description: Checking if creating the object String.prototype.valueOf fails ---*/ -var __obj={valueOf : String.prototype.valueOf}; +var __obj = { + valueOf: String.prototype.valueOf +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __obj["valueOf"] !== "function") { - $ERROR('#1: var __obj={valueOf : String.prototype.valueOf}; typeof __obj["valueOf"] === "function". Actual: typeof __obj["valueOf"] ==='+typeof __obj["valueOf"] ); + $ERROR('#1: var __obj={valueOf : String.prototype.valueOf}; typeof __obj["valueOf"] === "function". Actual: typeof __obj["valueOf"] ===' + typeof __obj["valueOf"]); } // @@ -27,7 +29,7 @@ try { $ERROR('#2: "var __obj={valueOf : String.prototype.valueOf}; var x = (__obj == 1)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/raw/return-the-string-value-from-template.js b/test/built-ins/String/raw/return-the-string-value-from-template.js index 8c130ffe093c739bead10415b94d497add88c670..2c360832d844718da791d7aca88201281b13a748 100644 --- a/test/built-ins/String/raw/return-the-string-value-from-template.js +++ b/test/built-ins/String/raw/return-the-string-value-from-template.js @@ -23,4 +23,4 @@ info: | ... ---*/ -assert.sameValue(String.raw`123\u0065`, '123\\u0065'); +assert.sameValue(String.raw `123\u0065`, '123\\u0065'); diff --git a/test/built-ins/String/raw/special-characters.js b/test/built-ins/String/raw/special-characters.js index 1d1c5f27080cbd7b1874c2b7ee0018d5a2a48f27..09181e3b9f7b325537a147b5b2a7408cd75654c5 100644 --- a/test/built-ins/String/raw/special-characters.js +++ b/test/built-ins/String/raw/special-characters.js @@ -8,12 +8,13 @@ description: > ---*/ assert.sameValue( - String.raw`\u0065\`\r\r\n\n${'test'}check`, + String.raw `\u0065\`\r\r\n\n${'test'}check`, '\\u0065\\`\\r\\r\\n\\ntestcheck', 'Unicode escape sequences' ); assert.sameValue( - String.raw`\ \ + String.raw `\ +\ \ `, '\\\n\\\n\\\n', diff --git a/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js b/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js index 509bce29d6f26b89e1fafff381f5bdd80b744c32..343894724c8454ba14efce50bea7075b8fadcb15 100644 --- a/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js +++ b/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js @@ -29,4 +29,4 @@ info: | k. Let nextIndex be nextIndex + 1. ---*/ -assert.sameValue(String.raw`1${2}3${4}5`, '12345'); +assert.sameValue(String.raw `1${2}3${4}5`, '12345'); diff --git a/test/built-ins/String/raw/zero-literal-segments.js b/test/built-ins/String/raw/zero-literal-segments.js index 8ed98172b2a90ae7da4c2a3cf405843359e182f5..73fd41cb1de163e52d84eaeb7a4293848b794d3a 100644 --- a/test/built-ins/String/raw/zero-literal-segments.js +++ b/test/built-ins/String/raw/zero-literal-segments.js @@ -6,4 +6,4 @@ description: > If literalSegments ≤ 0, return the empty string. ---*/ -assert.sameValue(String.raw``, ''); +assert.sameValue(String.raw ``, ''); diff --git a/test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js b/test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js index 4e13ddd00ff723d8eb1a19ae1631761447079ceb..cfae793962ef1ceee326ebef92aa6e6cb80f71d1 100644 --- a/test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js +++ b/test/built-ins/StringIteratorPrototype/Symbol.toStringTag.js @@ -14,7 +14,7 @@ features: [Symbol.iterator, Symbol.toStringTag] includes: [propertyHelper.js] ---*/ -var StringIteratorProto = Object.getPrototypeOf(''[Symbol.iterator]()); +var StringIteratorProto = Object.getPrototypeOf('' [Symbol.iterator]()); assert.sameValue(StringIteratorProto[Symbol.toStringTag], 'String Iterator'); diff --git a/test/built-ins/StringIteratorPrototype/ancestry.js b/test/built-ins/StringIteratorPrototype/ancestry.js index aee00099560e8289c1b713544538ae58ed126a35..137486df6b85aa9a998c800392fa92486ab693c2 100644 --- a/test/built-ins/StringIteratorPrototype/ancestry.js +++ b/test/built-ins/StringIteratorPrototype/ancestry.js @@ -8,7 +8,7 @@ description: > features: [Symbol.iterator] ---*/ -var strItrProto = Object.getPrototypeOf(''[Symbol.iterator]()); +var strItrProto = Object.getPrototypeOf('' [Symbol.iterator]()); var itrProto = Object.getPrototypeOf( Object.getPrototypeOf([][Symbol.iterator]()) ); diff --git a/test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js b/test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js index 41c0703cf32c998a5def55be20f34668ba5defeb..d61f85227d9c969e02f8103dc936f2c63a49993c 100644 --- a/test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js +++ b/test/built-ins/StringIteratorPrototype/next/next-missing-internal-slots.js @@ -14,7 +14,7 @@ info: | features: [Symbol.iterator] ---*/ -var iterator = ''[Symbol.iterator](); +var iterator = '' [Symbol.iterator](); var object = Object.create(iterator); assert.throws(TypeError, function() { diff --git a/test/built-ins/Symbol/constructor.js b/test/built-ins/Symbol/constructor.js index e62f06c8fd8a71f366071202058dc616d317dae0..936f05416efad4c97fda91a5f0bb27b6164b7911 100644 --- a/test/built-ins/Symbol/constructor.js +++ b/test/built-ins/Symbol/constructor.js @@ -7,12 +7,12 @@ description: > features: [Symbol] ---*/ assert.sameValue( - Object.getPrototypeOf(Symbol('66')).constructor, - Symbol, - "The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`" + Object.getPrototypeOf(Symbol('66')).constructor, + Symbol, + "The value of `Object.getPrototypeOf(Symbol('66')).constructor` is `Symbol`" ); assert.sameValue( - Object.getPrototypeOf(Object(Symbol('66'))).constructor, - Symbol, - "The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`" + Object.getPrototypeOf(Object(Symbol('66'))).constructor, + Symbol, + "The value of `Object.getPrototypeOf(Object(Symbol('66'))).constructor` is `Symbol`" ); diff --git a/test/built-ins/Symbol/prototype/intrinsic.js b/test/built-ins/Symbol/prototype/intrinsic.js index 2059f7b84e4467627e8173fbdca53cd2ca2b5be3..e4493006cce4caf8b88f2d5d013c2c0c3fad4ee4 100644 --- a/test/built-ins/Symbol/prototype/intrinsic.js +++ b/test/built-ins/Symbol/prototype/intrinsic.js @@ -7,7 +7,7 @@ description: > features: [Symbol] ---*/ assert.sameValue( - Object.getPrototypeOf(Symbol('66')), - Symbol.prototype, - "`Object.getPrototypeOf(Symbol('66'))` returns `Symbol.prototype`" + Object.getPrototypeOf(Symbol('66')), + Symbol.prototype, + "`Object.getPrototypeOf(Symbol('66'))` returns `Symbol.prototype`" ); diff --git a/test/built-ins/Symbol/species/builtin-getter-name.js b/test/built-ins/Symbol/species/builtin-getter-name.js index b0e1dcb4cad2fb1873aa0452c66cc3eb1d5fc092..74512b6ba319424e137f52d8b2debccd70dfb9d4 100644 --- a/test/built-ins/Symbol/species/builtin-getter-name.js +++ b/test/built-ins/Symbol/species/builtin-getter-name.js @@ -11,8 +11,8 @@ features: [Symbol.species] ---*/ function getGetterName(obj, name) { - var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get; - return getter && getter.name; + var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get; + return getter && getter.name; } assert.sameValue(getGetterName(Array, Symbol.species), "get [Symbol.species]"); @@ -20,4 +20,3 @@ assert.sameValue(getGetterName(Map, Symbol.species), "get [Symbol.species]"); assert.sameValue(getGetterName(Promise, Symbol.species), "get [Symbol.species]"); assert.sameValue(getGetterName(RegExp, Symbol.species), "get [Symbol.species]"); assert.sameValue(getGetterName(Set, Symbol.species), "get [Symbol.species]"); - diff --git a/test/built-ins/Symbol/species/subclassing.js b/test/built-ins/Symbol/species/subclassing.js index d6a13d4983df42ab14bf2ac3ae250cd7205679a3..5264f2437ce9200a39f88590a82b6062e5cff2d8 100644 --- a/test/built-ins/Symbol/species/subclassing.js +++ b/test/built-ins/Symbol/species/subclassing.js @@ -9,8 +9,6 @@ description: Symbol.species is retained on subclassing features: [Symbol.species] ---*/ -class MyRegExp extends RegExp { -}; +class MyRegExp extends RegExp {}; assert.sameValue(MyRegExp[Symbol.species], MyRegExp); - diff --git a/test/built-ins/ThrowTypeError/distinct-cross-realm.js b/test/built-ins/ThrowTypeError/distinct-cross-realm.js index 3fb412296936f098152e24eb44b9fe34d519b92d..b25660179184a29352f4e5af5e01e8b3c0bcf842 100644 --- a/test/built-ins/ThrowTypeError/distinct-cross-realm.js +++ b/test/built-ins/ThrowTypeError/distinct-cross-realm.js @@ -13,7 +13,10 @@ features: [cross-realm] ---*/ var other = $262.createRealm().global; -var localArgs = function(){ "use strict"; return arguments; }(); +var localArgs = function() { + "use strict"; + return arguments; +}(); var otherArgs = (new other.Function('return arguments;'))(); var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get; var otherThrowTypeError = Object.getOwnPropertyDescriptor(otherArgs, "callee").get; diff --git a/test/built-ins/ThrowTypeError/extensible.js b/test/built-ins/ThrowTypeError/extensible.js index c6c93ae282d9a7ae77483eaa82f60bcbe15cba63..ac42dadf9738770e9c4f616fa0f8188a0bfd1356 100644 --- a/test/built-ins/ThrowTypeError/extensible.js +++ b/test/built-ins/ThrowTypeError/extensible.js @@ -12,6 +12,9 @@ info: | function is false. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.isExtensible(ThrowTypeError), false); diff --git a/test/built-ins/ThrowTypeError/forbidden-arguments.js b/test/built-ins/ThrowTypeError/forbidden-arguments.js index d4d8cbda97319573e17c3b01f4449459a7ed8ce8..7532de5056968a6c4361f5ab7fe2d7aa1dff0704 100644 --- a/test/built-ins/ThrowTypeError/forbidden-arguments.js +++ b/test/built-ins/ThrowTypeError/forbidden-arguments.js @@ -25,6 +25,9 @@ info: | properties. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "arguments"), false); diff --git a/test/built-ins/ThrowTypeError/forbidden-caller.js b/test/built-ins/ThrowTypeError/forbidden-caller.js index e2d7bece10365798c771e7395cc081892ae0f28f..6aa2fb62cbc07506c6f815c68e173a507a800f9b 100644 --- a/test/built-ins/ThrowTypeError/forbidden-caller.js +++ b/test/built-ins/ThrowTypeError/forbidden-caller.js @@ -25,6 +25,9 @@ info: | properties. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "caller"), false); diff --git a/test/built-ins/ThrowTypeError/frozen.js b/test/built-ins/ThrowTypeError/frozen.js index 011f62f8c1643b234be4fdd3c0f4fd5c3e822a29..76c9b6ec709c2e10df3763b0cfc4effd02f91a7f 100644 --- a/test/built-ins/ThrowTypeError/frozen.js +++ b/test/built-ins/ThrowTypeError/frozen.js @@ -14,6 +14,9 @@ info: | { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.isFrozen(ThrowTypeError), true); diff --git a/test/built-ins/ThrowTypeError/is-function.js b/test/built-ins/ThrowTypeError/is-function.js index 553a8fe41a9a10aa719f705a3de28a382360c8af..b3d15916d7999b97a1994c7c08a20ffea3330b38 100644 --- a/test/built-ins/ThrowTypeError/is-function.js +++ b/test/built-ins/ThrowTypeError/is-function.js @@ -12,6 +12,9 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(typeof ThrowTypeError, "function"); diff --git a/test/built-ins/ThrowTypeError/length.js b/test/built-ins/ThrowTypeError/length.js index 5e74e1745c74cd272b371301499acc512991dfad..5a14e231b891ba90afc8a85c138531b74f9d1191 100644 --- a/test/built-ins/ThrowTypeError/length.js +++ b/test/built-ins/ThrowTypeError/length.js @@ -13,7 +13,10 @@ info: | includes: [propertyHelper.js] ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(ThrowTypeError.length, 0); diff --git a/test/built-ins/ThrowTypeError/name.js b/test/built-ins/ThrowTypeError/name.js index d2cb287c33fb42c469d6dcf68f54c96ea1baf494..d894ee12f35df45476eb0eb7543d43baad0b6e97 100644 --- a/test/built-ins/ThrowTypeError/name.js +++ b/test/built-ins/ThrowTypeError/name.js @@ -12,6 +12,9 @@ info: | object that is defined once for each Realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "name"), false); diff --git a/test/built-ins/ThrowTypeError/prototype.js b/test/built-ins/ThrowTypeError/prototype.js index 4ad20323b5d5877ecb3edb5833d40dc28ef66ff0..fcb92f43117cedcbe586e25f69473fbf2aafe344 100644 --- a/test/built-ins/ThrowTypeError/prototype.js +++ b/test/built-ins/ThrowTypeError/prototype.js @@ -19,6 +19,9 @@ info: | ... ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.getPrototypeOf(ThrowTypeError), Function.prototype); diff --git a/test/built-ins/ThrowTypeError/throws-type-error.js b/test/built-ins/ThrowTypeError/throws-type-error.js index 577dc4560292ce97c39a505e6477f5adb919c1bf..b2df50ca116c7226ef5a53d7576355a87007edfb 100644 --- a/test/built-ins/ThrowTypeError/throws-type-error.js +++ b/test/built-ins/ThrowTypeError/throws-type-error.js @@ -13,7 +13,10 @@ info: | 1. Throw a TypeError exception. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.throws(TypeError, function() { ThrowTypeError(); diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js index a5235f1c3ceb340307cc485ef8ef1380e27c4a6c..47fdb00d1db00cd8731e9e6142b872fd993797cb 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with Function.prototype.arguments and Function.prototype.caller properties. var argumentsDesc = Object.getOwnPropertyDescriptor(Function.prototype, "arguments"); diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js index a69be6bf469f97b7f1ab8de205092408c80036d4..f30052e0bc28f0c56c1da2c611cfff889ee63b5d 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with unmapped arguments object from function with non-simple parameters list. function nonSimple(a = 0) { diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js index 66dee2bd40a6b3ca73e6f660ad74d3630da66131..0572252987f1d950d47eb455cf6c2dd15c958453 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with unmapped arguments object from strict-mode function. function strictFn() { diff --git a/test/built-ins/TypedArray/from/arylk-to-length-error.js b/test/built-ins/TypedArray/from/arylk-to-length-error.js index 1cc2bd7380182c5883e4af553937ec7fdad97054..87599eb3bd72448a475fc570879804bf4b61a8b2 100644 --- a/test/built-ins/TypedArray/from/arylk-to-length-error.js +++ b/test/built-ins/TypedArray/from/arylk-to-length-error.js @@ -13,7 +13,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var arrayLike = { length: {} }; +var arrayLike = { + length: {} +}; arrayLike.length = { valueOf: function() { diff --git a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js index 906ec4746d0e1e60cdb7affbb82bf55aa9e97236..f5831d833c7f3d79458b597cc359640ad915cee7 100644 --- a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js +++ b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js @@ -54,4 +54,4 @@ assert.throws(TypeError, function() { assert.sameValue( getIterator, 0, "IsCallable(mapfn) check occurs before getting source[@@iterator]" -); \ No newline at end of file +); diff --git a/test/built-ins/TypedArray/from/this-is-not-constructor.js b/test/built-ins/TypedArray/from/this-is-not-constructor.js index ac7d1cc9e081c5610e7e982a6cc950dcd0dda1b5..589665226373c93264c3fff0c20ce1724203aa7b 100644 --- a/test/built-ins/TypedArray/from/this-is-not-constructor.js +++ b/test/built-ins/TypedArray/from/this-is-not-constructor.js @@ -15,7 +15,9 @@ features: [TypedArray] ---*/ var from = TypedArray.from; -var m = { m() {} }.m; +var m = { + m() {} +}.m; assert.throws(TypeError, function() { from.call(m, []); diff --git a/test/built-ins/TypedArray/of/invoked-as-func.js b/test/built-ins/TypedArray/of/invoked-as-func.js index af8f8c8b690b12e08d2ed7140813ac18e82381d2..29ee64382bd37393c54949fa96d3887e3ffaa0eb 100644 --- a/test/built-ins/TypedArray/of/invoked-as-func.js +++ b/test/built-ins/TypedArray/of/invoked-as-func.js @@ -17,6 +17,5 @@ features: [TypedArray] var of = TypedArray.of; -assert.throws(TypeError, function() { - of(); +assert.throws(TypeError, function() { of (); }); diff --git a/test/built-ins/TypedArray/of/this-is-not-constructor.js b/test/built-ins/TypedArray/of/this-is-not-constructor.js index eb91d74a379ffc7fed6009cd961ad2360461e95c..264e2e5b1c9c54bc547b12aca0f0ac67b541ef30 100644 --- a/test/built-ins/TypedArray/of/this-is-not-constructor.js +++ b/test/built-ins/TypedArray/of/this-is-not-constructor.js @@ -15,7 +15,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var m = { m() {} }.m; +var m = { + m() {} +}.m; assert.throws(TypeError, function() { TypedArray.of.call(m, []); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js index 1cd62be5666d4dc5ce744785f1ce811755df59c7..7e8489831160cb2489f2607a91e95fe233074683 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js @@ -29,48 +29,42 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, null), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, null), [0, 1, 2, 3] ), 'null value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, NaN), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, NaN), [0, 1, 2, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, false), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, false), [0, 1, 2, 3] ), 'false value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, true), - [0, 0, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, true), [0, 0, 2, 3] ), 'true value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, '-2'), - [0, 0, 1, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, '-2'), [0, 0, 1, 3] ), 'string "-2" value coerced to integer -2' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, -2.5), - [0, 0, 1, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, -2.5), [0, 0, 1, 3] ), 'float -2.5 value coerced to integer -2' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js index 96819e39530c0ccf3e1b1343db8f83e5003a61db..c6f766c0818bf980afb57c8e08203e5b5cceaa91 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js @@ -28,64 +28,56 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, undefined), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, undefined), [0, 0, 1, 2] ), 'undefined value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, false), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, false), [0, 0, 1, 2] ), 'false value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, NaN), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, NaN), [0, 0, 1, 2] ), 'NaN value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, null), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, null), [0, 0, 1, 2] ), 'null value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, true), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, true), [1, 2, 3, 3] ), 'true value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, '1'), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, '1'), [1, 2, 3, 3] ), 'string "1" value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0.5), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, 0.5), [0, 0, 1, 2] ), '0.5 float value coerced to integer 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1.5), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1.5), [1, 2, 3, 3] ), '1.5 float value coerced to integer 1' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js index 8d0c2816d4ace0f1922a4bb044062cdd68ff48c8..44348b90fe2f53cf2d3e15f36eb4049ee84cea6b 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js @@ -28,64 +28,56 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(undefined, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(undefined, 1), [1, 2, 3, 3] ), 'undefined value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(false, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(false, 1), [1, 2, 3, 3] ), 'false value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(NaN, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(NaN, 1), [1, 2, 3, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(null, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(null, 1), [1, 2, 3, 3] ), 'null value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(true, 0), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(true, 0), [0, 0, 1, 2] ), 'true value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin('1', 0), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin('1', 0), [0, 0, 1, 2] ), 'string "1" value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0.5, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0.5, 1), [1, 2, 3, 3] ), '0.5 float value coerced to integer 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1.5, 0), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1.5, 0), [0, 0, 1, 2] ), '1.5 float value coerced to integer 1' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js index 96c9823f8a1ece0befa30ef6a89d0348beaa1279..5e90c95bc23a428110abc1b9a917893227ed273e 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js @@ -31,64 +31,56 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, -1), - [1, 2, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, -1), [1, 2, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -1) -> [1, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(2, 0, -1), - [0, 1, 0, 1, 2] + new TA([0, 1, 2, 3, 4]).copyWithin(2, 0, -1), [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4].copyWithin(2, 0, -1) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(1, 2, -2), - [0, 2, 2, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(1, 2, -2), [0, 2, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, 2, -2) -> [0, 2, 2, 3, 4]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -2, -1), - [2, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -2, -1), [2, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -1) -> [2, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(2, -2, -1), - [0, 1, 3, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(2, -2, -1), [0, 1, 3, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2, 1) -> [0, 1, 3, 3, 4]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-3, -2, -1), - [0, 2, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-3, -2, -1), [0, 2, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -1) -> [0, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3, -1), - [0, 1, 2, 2, 3] + new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3, -1), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3, -1) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2, -1), - [3, 1, 2, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2, -1), [3, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2, -1) -> [3, 1, 2, 3, 4]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js index 7c55118aa109e641acc854084db6d62c9661b673..cfd1c71b4f0e0b5c01cc433b7fdd6fc2616d9494 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js @@ -31,80 +31,70 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -2, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -2, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, -2, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, -2, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -9, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -9, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, -9, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, -9, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-3, -2, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-3, -2, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-3, -2, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-3, -2, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-7, -8, -9), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-7, -8, -9), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-7, -8, -9) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-7, -8, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-7, -8, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js index 4fdc4eb12a3d75952c3e53502d1130f46da1e367..ead2f737ed91b9cc550e500c00e9c27f7d2ab955 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js @@ -29,64 +29,56 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3]).copyWithin(0, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5]).copyWithin(0, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(2, -10), - [0, 1, 0, 1, 2] + new TA([0, 1, 2, 3, 4]).copyWithin(2, -10), [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4]).copyWithin(2, -2) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(2, -Infinity), - [1, 2, 1, 2, 3] + new TA([1, 2, 3, 4, 5]).copyWithin(2, -Infinity), [1, 2, 1, 2, 3] ), '[1, 2, 3, 4, 5]).copyWithin(2, -Infinity) -> [1, 2, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(10, -10), - [0, 1, 2, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(10, -10), [0, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4]).copyWithin(10, -10) -> [0, 1, 2, 3, 4]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(10, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(10, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5]).copyWithin(10, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-9, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-9, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-9, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-9, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-9, -Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js index dc46906d3d45e3689221109dce5adfa656860e50..32b4818adc94779bb9c0b1da5ff9d939ee289938 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js @@ -29,32 +29,28 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-10, 0), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-10, 0), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 0), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 0), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-Infinity, 0) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-10, 2), - [2, 3, 4, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(-10, 2), [2, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-10, 2) -> [2, 3, 4, 3, 4]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 2), - [3, 4, 5, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 2), [3, 4, 5, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-Infinity, 2) -> [3, 4, 5, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js index df73879d438336bf6209cc86a38d174052e4f765..4552cab64f3f5e3b160f445210b8ca57c626944b 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js @@ -29,48 +29,42 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -1), - [3, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -1), [3, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -1) -> [3, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(2, -2), - [0, 1, 3, 4, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(2, -2), [0, 1, 3, 4, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 3, 4, 4]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(1, -2), - [0, 3, 4, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(1, -2), [0, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, -2) -> [0, 3, 4, 3, 4]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-1, -2), - [0, 1, 2, 2] + new TA([0, 1, 2, 3]).copyWithin(-1, -2), [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, -2) -> [ 0, 1, 2, 2 ]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3), - [0, 1, 2, 2, 3] + new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2), - [3, 4, 2, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2), [3, 4, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2) -> [3, 4, 2, 3, 4]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js index dfc252b1e4a0fdbfde2504afcb5f92fd0b94d08b..ad290241d9205d7eb4149612b3401e02e4c8017f 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js @@ -29,24 +29,21 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-1, 0), - [0, 1, 2, 0] + new TA([0, 1, 2, 3]).copyWithin(-1, 0), [0, 1, 2, 0] ), '[0, 1, 2, 3].copyWithin(-1, 0) -> [0, 1, 2, 0]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-2, 2), - [0, 1, 2, 2, 3] + new TA([0, 1, 2, 3, 4]).copyWithin(-2, 2), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, 2) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-1, 2), - [0, 1, 2, 2] + new TA([0, 1, 2, 3]).copyWithin(-1, 2), [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, 2) -> [0, 1, 2, 2]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js index 9767106c0fa7409145c3fd44ebd2759497ddee42..9a71f2a7d80a4b8a00d220cbc423ed79b812e4fa 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js @@ -22,32 +22,28 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, 6), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, 6), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, 6) -> [1, 2, 3, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, Infinity), - [2, 3, 4, 5, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, Infinity), [2, 3, 4, 5, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, 1, Infinity) -> [2, 3, 4, 5, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 6), - [0, 3, 4, 5, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 6), [0, 3, 4, 5, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6) -> [0, 3, 4, 5, 4, 5]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(1, 3, Infinity), - [1, 4, 5, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(1, 3, Infinity), [1, 4, 5, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(1, 3, Infinity) -> [1, 4, 5, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js index f1cc0504a1fb3918676969f20a8e81ed31b66fa8..4dfbf4f4ddbc7a947de01c1b53b074fccec08e16 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js @@ -22,52 +22,45 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 0), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 0), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, 0), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, 0), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(Infinity, 0) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(0, 6), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(0, 6), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 6), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 6), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(10, 10), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(10, 10), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(Infinity, Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js index 4dec6eff807fa45ef33ee9accb311cc3288679b3..f237de5a42243c7ebaabfe81ea6ae1db7e9eb3a6 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js @@ -22,29 +22,25 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 0), - [1, 2, 3, 4, 5, 6] + new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 0), [1, 2, 3, 4, 5, 6] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 2), - [3, 4, 5, 6, 5, 6] + new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 2), [3, 4, 5, 6, 5, 6] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5, 6]).copyWithin(3, 0), - [1, 2, 3, 1, 2, 3] + new TA([1, 2, 3, 4, 5, 6]).copyWithin(3, 0), [1, 2, 3, 1, 2, 3] ) ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 4), - [0, 4, 5, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 4), [0, 4, 5, 3, 4, 5] ) ); }); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js index c8cd09f17a7258a4d4ce258ec30fc30c5485c929..21d0ec47649eadba759b94a4d0470e6453032dc0 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js @@ -22,24 +22,21 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 0, 0), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 0, 0), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 0, 0) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 0, 2), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 0, 2), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 0, 2) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, 2), - [1, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, 2), [1, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, 2) -> [1, 1, 2, 3]' ); @@ -57,16 +54,14 @@ testWithTypedArrayConstructors(function(TA) { */ assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, 2), - [0, 0, 1, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, 2), [0, 0, 1, 3] ), '[0, 1, 2, 3].copyWithin(1, 0, 2) -> [0, 0, 1, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 5), - [0, 3, 4, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 5), [0, 3, 4, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5) -> [0, 3, 4, 3, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js b/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js index bd011026fabecd4d022d83224e76aa99266c9a6d..fe03f433269f55c3b5b2c3a8d2fb1779cc131cb3 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js @@ -29,16 +29,14 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, undefined), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, undefined), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, undefined) -> [1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1) -> [1, 2, 3, 3]' ); diff --git a/test/built-ins/TypedArray/prototype/every/callbackfn-this.js b/test/built-ins/TypedArray/prototype/every/callbackfn-this.js index a3e62feb8576966861a5b8fd290178e1c51408ff..2e944bb49c18d2509c682e84a108b9718710ae10 100644 --- a/test/built-ins/TypedArray/prototype/every/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/every/callbackfn-this.js @@ -27,7 +27,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js b/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js index 63cbe4d6b1f8460535656bee3e1b777550efb0cc..e45dd0aacbd74943a52474bc0b619ee6c3ed8347 100644 --- a/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js +++ b/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js @@ -26,8 +26,7 @@ testWithTypedArrayConstructors(function(TA) { [ false, "", - 0, - -0, + 0, -0, NaN, undefined, null diff --git a/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js b/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js index 84bdfc8ce735659a1ace8bb0710adb5cb249e724..eaf69d7fb7fb96e19c830397c66ea5b2317e7698 100644 --- a/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js +++ b/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js @@ -28,12 +28,9 @@ testWithTypedArrayConstructors(function(TA) { "test262", Symbol("1"), {}, - [], - -1, - Infinity, - -Infinity, - 0.1, - -0.1 + [], -1, + Infinity, -Infinity, + 0.1, -0.1 ]; var sample = new TA(values.length); var result = sample.every(function() { diff --git a/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js index d9afa33bb702665d207766ddebf2c17e25fbccec..a4f6bf9c4287b84f1de35221427fc5ff004dbab5 100644 --- a/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js @@ -31,7 +31,7 @@ testWithTypedArrayConstructors(function(TA) { sample.every(function(v, i) { if (i < sample.length - 1) { - sample[i+1] = 42; + sample[i + 1] = 42; } assert.sameValue( diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js b/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js index f5e1bd6b7e9de3451cbef8d994506f3331f8fa6e..a681825e446744cfc94c7415869175794a10b1e9 100644 --- a/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js +++ b/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js @@ -18,10 +18,13 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA(2); var n = 1; - sample.fill({ valueOf() { return n++; } }); + sample.fill({ + valueOf() { + return n++; + } + }); assert.sameValue(n, 2, "additional unexpected ToNumber() calls"); assert.sameValue(sample[0], 1, "incorrect ToNumber result in index 0"); assert.sameValue(sample[1], 1, "incorrect ToNumber result in index 1"); }); - diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js b/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js index 1d8cd4b6a5ba6bbc8847f1d00afed1bac2c802ed..2bd3f171680e3473c2954ac6667c82e3aafd126c 100644 --- a/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js +++ b/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js @@ -62,7 +62,7 @@ testWithTypedArrayConstructors(function(TA) { return 1; }, valueOf: function() { - return 7; + return 7; } }); assert.sameValue(sample[0], 7, "object valueOf conversion before toString"); diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values.js b/test/built-ins/TypedArray/prototype/fill/fill-values.js index 70da31da6ad3fa759d925f84488f86bd2455d389..53774de8afa7a29d8a08089f3a560987441ac396 100644 --- a/test/built-ins/TypedArray/prototype/fill/fill-values.js +++ b/test/built-ins/TypedArray/prototype/fill/fill-values.js @@ -31,8 +31,7 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA().fill(8), - [] + new TA().fill(8), [] ), "does not fill an empty instance" ); diff --git a/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js b/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js index 1fc599c7c972ce5bc67fb120217d9bfaf2e06292..183bea070fb71d95c70e87d1348b0a29ff2772b4 100644 --- a/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js @@ -18,7 +18,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js b/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js index bbd292d14fd1d985a91a72cd26ccae9daf5e9e16..b716641ec2fd80d5f62271a62569997a3014e01b 100644 --- a/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js +++ b/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js @@ -19,9 +19,13 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([40, 41, 42]); var result; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.notSameValue(result.buffer, sample.buffer); - result = sample.filter(function() { return false; }); + result = sample.filter(function() { + return false; + }); assert.notSameValue(result.buffer, sample.buffer); }); diff --git a/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js b/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js index de558f97e770372c4308481ec381fcf846ae931d..c1b0ac9af553ee16255d2c6e2268703fe171d826 100644 --- a/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js +++ b/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js @@ -22,8 +22,7 @@ testWithTypedArrayConstructors(function(TA) { [ false, "", - 0, - -0, + 0, -0, NaN, undefined, null diff --git a/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js b/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js index f46bf483daeb6532ab77580fc9ec6c62e31c6bc1..6ae2811eb82b94e1d8c4549059e197d85fe3dec8 100644 --- a/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js +++ b/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js @@ -25,14 +25,13 @@ testWithTypedArrayConstructors(function(TA) { "test262", Symbol("1"), {}, - [], - -1, - Infinity, - -Infinity, - 0.1, - -0.1 + [], -1, + Infinity, -Infinity, + 0.1, -0.1 ].forEach(function(val) { - var result = sample.filter(function() { return val; }); + var result = sample.filter(function() { + return val; + }); assert(compareArray(result, sample), val); }); }); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js index a63bd2e5336e4334c9ee586511f85a7a2fc16e15..bb501ccf41d38d67bbd731b05b3a5ae6a17778bc 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js @@ -28,7 +28,9 @@ includes: [testTypedArray.js] features: [Symbol, TypedArray] ---*/ -var callbackfn = function() { return true; }; +var callbackfn = function() { + return true; +}; testWithTypedArrayConstructors(function(TA) { var sample = new TA([40, 41, 42, 43]); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js index 6308fe92ffd20a50594bec42d93242d785837025..565da51792406dc8fd0895b809fb6d55451cfd4d 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js @@ -37,7 +37,9 @@ testWithTypedArrayConstructors(function(TA) { } }); - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.sameValue(calls, 1, "called custom ctor get accessor once"); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js index 858dd0fa73d7ee5ed8ec543298da29eb07ecec09..8e2256efa9b49fbe9b2c8719f8b430c90754ddee 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js @@ -40,6 +40,8 @@ testWithTypedArrayConstructors(function(TA) { }); assert.throws(Test262Error, function() { - sample.filter(function() { return true; }); + sample.filter(function() { + return true; + }); }); }); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js index ad8313a26a3fce358579bf673d7afc52b8fd97af..2cfb9bcb8467788384e95f7f6c8c48ddc8ec1ae3 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js @@ -47,7 +47,9 @@ testWithTypedArrayConstructors(function(TA) { return new TA(count); }; - sample.filter(function(v) { return v === 42; }); + sample.filter(function(v) { + return v === 42; + }); assert.sameValue(result.length, 1, "called with 1 argument"); assert.sameValue(result[0], 2, "[0] is the new captured length"); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js index 35f48124c183375146a7fc34c27370f6d10df9ac..abf9ef13ebc44937dd27b464d534a8e53989062b 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js @@ -36,6 +36,8 @@ testWithTypedArrayConstructors(function(TA) { }; assert.throws(TypeError, function() { - sample.filter(function() { return true; }); + sample.filter(function() { + return true; + }); }); }); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js index 35228670dd3f7952851a5fdf043e95a5e44d9f08..fcf4bb693479c0095272c13d0ff4156e964b410a 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js @@ -37,10 +37,14 @@ testWithTypedArrayConstructors(function(TA) { }; customCount = 2; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.sameValue(result.length, customCount, "length == count"); customCount = 5; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.sameValue(result.length, customCount, "length > count"); }); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js index 28e12b135223f5faac757401e03fff3dfcc62d00..00836dd7572d79a8618d6174382f3a28f19ba1a4 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js @@ -48,7 +48,9 @@ testWithTypedArrayConstructors(function(TA) { return other; }; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.sameValue(calls, 1, "ctor called once"); assert.sameValue(result, other, "return is instance of custom constructor"); diff --git a/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js index 1b24d310e53a220aab2e50263a2458e311a49580..22b227163bbf8ac2d07ff17128ef053923115c1e 100644 --- a/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js @@ -21,7 +21,7 @@ testWithTypedArrayConstructors(function(TA) { sample.filter(function(v, i) { if (i < sample.length - 1) { - sample[i+1] = 42; + sample[i + 1] = 42; } assert.sameValue( diff --git a/test/built-ins/TypedArray/prototype/filter/values-are-set.js b/test/built-ins/TypedArray/prototype/filter/values-are-set.js index c9f16b8df1d6f544b945016be6bd058262234eca..7ef152f17d1255648946f4d61ad9b6e2da9a2619 100644 --- a/test/built-ins/TypedArray/prototype/filter/values-are-set.js +++ b/test/built-ins/TypedArray/prototype/filter/values-are-set.js @@ -20,7 +20,9 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([41, 1, 42, 7]); var result; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert(compareArray(result, [41, 1, 42, 7]), "values are set #1"); result = sample.filter(function(v) { diff --git a/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js index b62f9170fab4edc4a53a60064568667eedaae313..ee2332f31fac2e93e36a9a46e52629fed994fc28 100644 --- a/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js +++ b/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js @@ -49,7 +49,9 @@ testWithTypedArrayConstructors(function(TA) { }); assert.sameValue( - sample.find(function() { return true; }), + sample.find(function() { + return true; + }), 42 ); }); diff --git a/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js index 556fb9851c58d5767150717945ed46a1cdb31129..129eed84564b0f527cc9221e94254063a7cf2813 100644 --- a/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js +++ b/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js @@ -44,7 +44,7 @@ testWithTypedArrayConstructors(function(TA) { sample = new TA(arr); result = sample.find(function(val, i) { - if ( i === 0 ) { + if (i === 0) { sample[2] = 7; } return val === 7; @@ -53,7 +53,7 @@ testWithTypedArrayConstructors(function(TA) { sample = new TA(arr); result = sample.find(function(val, i) { - if ( i === 0 ) { + if (i === 0) { sample[2] = 7; } return val === 3; @@ -62,7 +62,7 @@ testWithTypedArrayConstructors(function(TA) { sample = new TA(arr); result = sample.find(function(val, i) { - if ( i > 0 ) { + if (i > 0) { sample[0] = 7; } return val === 7; diff --git a/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js index a2d0302c618f532876d6806e3bdb389f98fdb743..1feb9da2fbf62dcfdca944ae7bd82d03832b1fb0 100644 --- a/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js @@ -49,18 +49,28 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, 62, "returned true on sample[3]"); - result = sample.find(function() { return "string"; }); + result = sample.find(function() { + return "string"; + }); assert.sameValue(result, 39, "ToBoolean(string)"); - result = sample.find(function() { return {}; }); + result = sample.find(function() { + return {}; + }); assert.sameValue(result, 39, "ToBoolean(object)"); - result = sample.find(function() { return Symbol(""); }); + result = sample.find(function() { + return Symbol(""); + }); assert.sameValue(result, 39, "ToBoolean(symbol)"); - result = sample.find(function() { return 1; }); + result = sample.find(function() { + return 1; + }); assert.sameValue(result, 39, "ToBoolean(number)"); - result = sample.find(function() { return -1; }); + result = sample.find(function() { + return -1; + }); assert.sameValue(result, 39, "ToBoolean(negative number)"); }); diff --git a/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js index 0133a69484b2ec3867469d6e04aa61006a32a092..2206d72aa66da96df9db872a074f93ca425d0237 100644 --- a/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js @@ -41,21 +41,33 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, undefined); - result = sample.find(function() { return ""; }); + result = sample.find(function() { + return ""; + }); assert.sameValue(result, undefined, "ToBoolean(empty string)"); - result = sample.find(function() { return undefined; }); + result = sample.find(function() { + return undefined; + }); assert.sameValue(result, undefined, "ToBoolean(undefined)"); - result = sample.find(function() { return null; }); + result = sample.find(function() { + return null; + }); assert.sameValue(result, undefined, "ToBoolean(null)"); - result = sample.find(function() { return 0; }); + result = sample.find(function() { + return 0; + }); assert.sameValue(result, undefined, "ToBoolean(0)"); - result = sample.find(function() { return -0; }); + result = sample.find(function() { + return -0; + }); assert.sameValue(result, undefined, "ToBoolean(-0)"); - result = sample.find(function() { return NaN; }); + result = sample.find(function() { + return NaN; + }); assert.sameValue(result, undefined, "ToBoolean(NaN)"); }); diff --git a/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js index 99566c3d56fbee2e949c67cefa3e0fcd6e9042e7..98d22f449a7ca5f91caf7d9fb2a955161669471f 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js +++ b/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js @@ -47,7 +47,9 @@ testWithTypedArrayConstructors(function(TA) { }); assert.sameValue( - sample.findIndex(function() { return true; }), + sample.findIndex(function() { + return true; + }), 0 ); }); diff --git a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js index 84efabc2649bf0ed36c590f7b97a6b8b999c9846..97652222ce0533413dc854abf6c2c851d57b5853 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js +++ b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js @@ -40,7 +40,7 @@ testWithTypedArrayConstructors(function(TA) { sample = new TA(arr); result = sample.findIndex(function(val, i) { - if ( i === 0 ) { + if (i === 0) { sample[2] = 7; } return val === 7; @@ -49,7 +49,7 @@ testWithTypedArrayConstructors(function(TA) { sample = new TA(arr); result = sample.findIndex(function(val, i) { - if ( i === 0 ) { + if (i === 0) { sample[2] = 7; } return val === 30; @@ -58,10 +58,10 @@ testWithTypedArrayConstructors(function(TA) { sample = new TA(arr); result = sample.findIndex(function(val, i) { - if ( i > 0 ) { + if (i > 0) { sample[0] = 7; } return val === 7; }); assert.sameValue(result, -1, "value not found - changed after call"); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js index 68175c78169732dcd80c30fafc5c1741c62de420..31c43d21f55a5d65fb76b89a908c6694f3107fd4 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js +++ b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-this-non-strict.js @@ -41,7 +41,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result, T, "without thisArg, predicate this is the global"); - result = null; + result = null; sample.findIndex(function() { result = this; }, undefined); diff --git a/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js b/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js index 5b97bf74a1dcc98fd466e57c7d80ff71e8c9e8aa..18fdf425fd59118d494304844bf60ef89bcb05a5 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js +++ b/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js @@ -62,4 +62,3 @@ testWithTypedArrayConstructors(function(TA) { sample.findIndex(/./); }, "/./"); }); - diff --git a/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js index 9e4880f22521ecdd0557856c2a6dc683237d7681..c1e0ce751bdf3f4d44e503bb6d4d621387947309 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js @@ -49,18 +49,28 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, 2, "returned true on sample[3]"); - result = sample.findIndex(function() { return "string"; }); + result = sample.findIndex(function() { + return "string"; + }); assert.sameValue(result, 0, "ToBoolean(string)"); - result = sample.findIndex(function() { return {}; }); + result = sample.findIndex(function() { + return {}; + }); assert.sameValue(result, 0, "ToBoolean(object)"); - result = sample.findIndex(function() { return Symbol(""); }); + result = sample.findIndex(function() { + return Symbol(""); + }); assert.sameValue(result, 0, "ToBoolean(symbol)"); - result = sample.findIndex(function() { return 1; }); + result = sample.findIndex(function() { + return 1; + }); assert.sameValue(result, 0, "ToBoolean(number)"); - result = sample.findIndex(function() { return -1; }); + result = sample.findIndex(function() { + return -1; + }); assert.sameValue(result, 0, "ToBoolean(negative number)"); }); diff --git a/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js index f3367fbfafc4551d3e8485b6c4781e5b8947e07d..69f20471728d2dc25b569d4c1330fbcfb4d9248e 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js @@ -39,21 +39,33 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, -1, "result is -1 when predicate returns are false"); - result = sample.findIndex(function() { return ""; }); + result = sample.findIndex(function() { + return ""; + }); assert.sameValue(result, -1, "ToBoolean(string)"); - result = sample.findIndex(function() { return undefined; }); + result = sample.findIndex(function() { + return undefined; + }); assert.sameValue(result, -1, "ToBoolean(undefined)"); - result = sample.findIndex(function() { return null; }); + result = sample.findIndex(function() { + return null; + }); assert.sameValue(result, -1, "ToBoolean(null)"); - result = sample.findIndex(function() { return 0; }); + result = sample.findIndex(function() { + return 0; + }); assert.sameValue(result, -1, "ToBoolean(0)"); - result = sample.findIndex(function() { return -0; }); + result = sample.findIndex(function() { + return -0; + }); assert.sameValue(result, -1, "ToBoolean(-0)"); - result = sample.findIndex(function() { return NaN; }); + result = sample.findIndex(function() { + return NaN; + }); assert.sameValue(result, -1, "ToBoolean(NaN)"); }); diff --git a/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js b/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js index d387ae038dc023ea350a1c4c0ade41bd32702985..97b5ec91e115d6c39c25ddcce54a9f2434cbf8dc 100644 --- a/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js +++ b/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js @@ -19,7 +19,9 @@ testWithTypedArrayConstructors(function(TA) { var sample1 = new TA(42); var loop = 0; - Object.defineProperty(sample1, "length", {value: 1}); + Object.defineProperty(sample1, "length", { + value: 1 + }); sample1.forEach(function() { loop++; @@ -44,4 +46,3 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(loop, 7, "accessor descriptor"); }); - diff --git a/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js b/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js index 926a219bcd255cffcf23ad5945fc2c56a0e21220..e3595b5384c625bc76fd988250c817927341867c 100644 --- a/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js @@ -27,7 +27,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js index 10b31135622f4580e9505af1d4d06f1d537afc61..125923bb5085b6490cb38f0933750fc160208ebb 100644 --- a/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js @@ -21,7 +21,7 @@ testWithTypedArrayConstructors(function(TA) { sample.forEach(function(v, i) { if (i < sample.length - 1) { - sample[i+1] = 42; + sample[i + 1] = 42; } assert.sameValue( diff --git a/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js index eb10a80bd07fcb102739bceb241d864f145ee976..8f317131ae74bb27e1b5d94dbc53e113cbb405e1 100644 --- a/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js +++ b/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js @@ -21,13 +21,19 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -Object.defineProperty(TypedArray.prototype, "length", {value: 0}); +Object.defineProperty(TypedArray.prototype, "length", { + value: 0 +}); testWithTypedArrayConstructors(function(TA) { var sample = new TA([7]); - Object.defineProperty(TA.prototype, "length", {value: 0}); - Object.defineProperty(sample, "length", {value: 0}); + Object.defineProperty(TA.prototype, "length", { + value: 0 + }); + Object.defineProperty(sample, "length", { + value: 0 + }); assert.sameValue(sample.includes(7), true); }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js index 2703a0519b6c31b808d97c1486d133c819e4f01b..9fd29926653f60a0326a5788a0bcbcefee9146f5 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js +++ b/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js @@ -20,13 +20,19 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -Object.defineProperty(TypedArray.prototype, "length", {value: 0}); +Object.defineProperty(TypedArray.prototype, "length", { + value: 0 +}); testWithTypedArrayConstructors(function(TA) { var sample = new TA([7]); - Object.defineProperty(TA.prototype, "length", {value: 0}); - Object.defineProperty(sample, "length", {value: 0}); + Object.defineProperty(TA.prototype, "length", { + value: 0 + }); + Object.defineProperty(sample, "length", { + value: 0 + }); assert.sameValue(sample.indexOf(7), 0); }); diff --git a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js index 694f81db088e034d6f0ee49223fa06f4a64a3600..edb4b0e8f1ccdcdae16a103cb685ec58982f7928 100644 --- a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js +++ b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js @@ -61,10 +61,19 @@ testWithTypedArrayConstructors(function(TA) { result = sample.join(true); assert.sameValue(result, "1true0true2true3true42true127"); - result = sample.join({ toString: function() { return "foo"; }}); + result = sample.join({ + toString: function() { + return "foo"; + } + }); assert.sameValue(result, "1foo0foo2foo3foo42foo127"); - result = sample.join({ toString: undefined, valueOf: function() { return "bar"; }}); + result = sample.join({ + toString: undefined, + valueOf: function() { + return "bar"; + } + }); assert.sameValue(result, "1bar0bar2bar3bar42bar127"); result = sample.join(false); diff --git a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js index 94caedf65a437ce780138be251f0becdfd75a29f..7cdbdddd223db8ad98fcaa8f22f31b554d7b2c0a 100644 --- a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js +++ b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js @@ -91,14 +91,23 @@ testWithTypedArrayConstructors(function(TA) { result = sample.join(separator); assert.sameValue(result, expected, "using: " + separator); - separator = { toString: function() { return "foo"; }}; + separator = { + toString: function() { + return "foo"; + } + }; expected = arr.map(function(_, i) { return sample[i].toString(); }).join(separator); result = sample.join(separator); assert.sameValue(result, expected, "using: " + separator); - separator = { toString: undefined, valueOf: function() { return "bar"; }}; + separator = { + toString: undefined, + valueOf: function() { + return "bar"; + } + }; expected = arr.map(function(_, i) { return sample[i].toString(); }).join(separator); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js index 076d0b8d8fc2e7ecf44b687a81d8f469662b1302..6b51c26e4028f04b84e4507c8af4180c251b6681 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js @@ -20,13 +20,19 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -Object.defineProperty(TypedArray.prototype, "length", {value: 0}); +Object.defineProperty(TypedArray.prototype, "length", { + value: 0 +}); testWithTypedArrayConstructors(function(TA) { var sample = new TA([7]); - Object.defineProperty(TA.prototype, "length", {value: 0}); - Object.defineProperty(sample, "length", {value: 0}); + Object.defineProperty(TA.prototype, "length", { + value: 0 + }); + Object.defineProperty(sample, "length", { + value: 0 + }); assert.sameValue(sample.lastIndexOf(7), 0); }); diff --git a/test/built-ins/TypedArray/prototype/map/arraylength-internal.js b/test/built-ins/TypedArray/prototype/map/arraylength-internal.js index 0f9ec0807831b558baeb801b92594386d51bf4f1..7d23a4e1ac4a5360f9d635c35647f2a69bf6bd49 100644 --- a/test/built-ins/TypedArray/prototype/map/arraylength-internal.js +++ b/test/built-ins/TypedArray/prototype/map/arraylength-internal.js @@ -18,7 +18,9 @@ testWithTypedArrayConstructors(function(TA) { var sample1 = new TA(42); var loop = 0; - Object.defineProperty(sample1, "length", {value: 1}); + Object.defineProperty(sample1, "length", { + value: 1 + }); sample1.map(function() { loop++; @@ -40,4 +42,3 @@ testWithTypedArrayConstructors(function(TA) { }); assert.sameValue(loop, 4, "accessor descriptor"); }); - diff --git a/test/built-ins/TypedArray/prototype/map/callbackfn-this.js b/test/built-ins/TypedArray/prototype/map/callbackfn-this.js index 43d3159bc4b842d5f983dee2f53a9c79762018fe..525de88e3673f8dabce55ccadc95ec05a6c34086 100644 --- a/test/built-ins/TypedArray/prototype/map/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/map/callbackfn-this.js @@ -18,7 +18,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js index d2345b13c0ef193271f8f975a54341037a51c9ba..329faaffe0160260d8de4ccbb0b3c68c5816593f 100644 --- a/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js @@ -16,7 +16,7 @@ testWithTypedArrayConstructors(function(TA) { sample.map(function(v, i) { if (i < sample.length - 1) { - sample[i+1] = 42; + sample[i + 1] = 42; } assert.sameValue( diff --git a/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js b/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js index 8c56605bca9717d8641417dc828ed9984f2a5447..356e949438e106d7de12aeebb31f2f0731eefea0 100644 --- a/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js @@ -26,7 +26,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); testWithTypedArrayConstructors(function(TA) { var sample = new TA(3); diff --git a/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js index e091df1f9da26bc204b61b006cb8fb6d75a481d1..af963b379945c291198fd9f4efee9fcf29a6509b 100644 --- a/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js @@ -31,7 +31,7 @@ testWithTypedArrayConstructors(function(TA) { sample.reduce(function(a, v, i) { if (i < sample.length - 1) { - sample[i+1] = 42; + sample[i + 1] = 42; } assert.sameValue( diff --git a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js index acddf6dd340e76e75cc1db148126919c89c0933d..56752442a3a96905b47dc838a9e900c73848c801 100644 --- a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js @@ -27,7 +27,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); testWithTypedArrayConstructors(function(TA) { var sample = new TA(3); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js index fb93d3e208c9be71f99684e9f7e39bea160c4f37..b4e720ca774fa960b095b91ba84e00c326980073 100644 --- a/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js @@ -32,7 +32,7 @@ testWithTypedArrayConstructors(function(TA) { sample.reduceRight(function(a, v, i) { if (i > 0) { - sample[i-1] = 42; + sample[i - 1] = 42; } assert.sameValue( diff --git a/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js b/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js index a5ab527732527d2f87db3d70f79b1f9506ceb5e5..529006e219c3e8c56bb8662dd018c5b6e0494043 100644 --- a/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js +++ b/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js @@ -86,10 +86,18 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample, [1, 42]), "[1]"); sample = new TA([1, 2]); - sample.set([42], { valueOf: function() {return 1;} }); + sample.set([42], { + valueOf: function() { + return 1; + } + }); assert(compareArray(sample, [1, 42]), "valueOf"); sample = new TA([1, 2]); - sample.set([42], { toString: function() {return 1;} }); + sample.set([42], { + toString: function() { + return 1; + } + }); assert(compareArray(sample, [1, 42]), "toString"); }); diff --git a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js index d5e346f11de237c48a7729ddc7255a59f6d81c04..5cd1fe72ea49f8c9834dd8a2a9e67e32382b81ee 100644 --- a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js +++ b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js @@ -26,5 +26,5 @@ testTypedArrayConversions(byteConversionValues, function(TA, value, expected, in sample.set([value]); - assert.sameValue(sample[0], expected, "["+value+"] => ["+expected +"]"); + assert.sameValue(sample[0], expected, "[" + value + "] => [" + expected + "]"); }); diff --git a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js index 0256df84e2560f047cfa58b16c78bab12317861e..c7e54c720e709265340c148ad6c6eb0fdfe84584 100644 --- a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js +++ b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js @@ -35,7 +35,9 @@ var obj2 = { }; // undefined and NaN covered on typedArrayConversions -var arr = ["1", "", false, true, null, obj1, obj2, [], [1]]; +var arr = ["1", "", false, true, null, obj1, obj2, [], + [1] +]; testWithTypedArrayConstructors(function(TA) { var sample = new TA(arr.length); diff --git a/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js b/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js index 7f63cb9960727b9e292d39f458eff88d768a2d81..a32337c7294e0637f24df4cecf5d5cfcb7e0a59d 100644 --- a/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js +++ b/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js @@ -84,10 +84,18 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample, [1, 42]), "[1]"); sample = new TA([1, 2]); - sample.set(src, { valueOf: function() {return 1;} }); + sample.set(src, { + valueOf: function() { + return 1; + } + }); assert(compareArray(sample, [1, 42]), "valueOf"); sample = new TA([1, 2]); - sample.set(src, { toString: function() {return 1;} }); + sample.set(src, { + toString: function() { + return 1; + } + }); assert(compareArray(sample, [1, 42]), "toString"); }); diff --git a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js index 8d572f230a9a83401c71431201d58c1eca667f81..7ff46d746d2b7822ec9f30852034dd945adcd71f 100644 --- a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js +++ b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js @@ -38,4 +38,4 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { sample.slice(); }); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js index 537b423a22adb2e3f7b56000a765d94acd8f4479..a4d33b2a9c8a9a4db80f886fdabdea511652aa27 100644 --- a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js +++ b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length.js @@ -43,4 +43,4 @@ testWithTypedArrayConstructors(function(TA) { customCount = 5; result = sample.slice(); assert.sameValue(result.length, customCount, "length > count"); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArray/prototype/slice/tointeger-end.js b/test/built-ins/TypedArray/prototype/slice/tointeger-end.js index 2a9be9406805edc31cf72a24504513cbe3e57e07..13d68874d4b394fdd18944a3da46fa7afc1dfff8 100644 --- a/test/built-ins/TypedArray/prototype/slice/tointeger-end.js +++ b/test/built-ins/TypedArray/prototype/slice/tointeger-end.js @@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample.slice(0, "3"), [40, 41, 42]), "string"); assert( compareArray( - sample.slice(0, obj), - [40, 41] + sample.slice(0, obj), [40, 41] ), "object" ); diff --git a/test/built-ins/TypedArray/prototype/slice/tointeger-start.js b/test/built-ins/TypedArray/prototype/slice/tointeger-start.js index f67ee090c083e320e8638fce8fd4aa0c708e8ae0..2f6c2d7cb16d2b0a59d51429e9fbda5803ceae6b 100644 --- a/test/built-ins/TypedArray/prototype/slice/tointeger-start.js +++ b/test/built-ins/TypedArray/prototype/slice/tointeger-start.js @@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample.slice("3"), [43]), "string"); assert( compareArray( - sample.slice(obj), - [42, 43] + sample.slice(obj), [42, 43] ), "object" ); diff --git a/test/built-ins/TypedArray/prototype/some/callbackfn-this.js b/test/built-ins/TypedArray/prototype/some/callbackfn-this.js index d15699b80a5bec1cf9b3d9754dedc54c612e10d5..92cc10ad4af20adddb232997b461ffee4f8038db 100644 --- a/test/built-ins/TypedArray/prototype/some/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/some/callbackfn-this.js @@ -27,7 +27,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js b/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js index 00741adbed91309f79c771bf53fa1e623972831d..bf61d170e33f8490389786277860e7f18fd35080 100644 --- a/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js +++ b/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js @@ -26,8 +26,7 @@ testWithTypedArrayConstructors(function(TA) { [ false, "", - 0, - -0, + 0, -0, NaN, undefined, null diff --git a/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js b/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js index c11fdae903ea15287a0eaef810bcefcd81e0b031..113f53f832d05f396b78463d21a605a9866a9a74 100644 --- a/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js +++ b/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js @@ -36,12 +36,9 @@ testWithTypedArrayConstructors(function(TA) { "test262", s, {}, - [], - -1, - Infinity, - -Infinity, - 0.1, - -0.1 + [], -1, + Infinity, -Infinity, + 0.1, -0.1 ].forEach(function(val) { var called = 0; var result = sample.some(function() { diff --git a/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js index acfbe6dbbfe10c3c62020098a022b316c11834e1..c31d93fc5dfda4ca8b875aa8afe66c6c2a5e38a1 100644 --- a/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js +++ b/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js @@ -22,7 +22,7 @@ features: [TypedArray] ---*/ var some = TypedArray.prototype.some; -var callbackfn = function () {}; +var callbackfn = function() {}; assert.throws(TypeError, function() { some.call({}, callbackfn); diff --git a/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js index c8a3c2cdeae6ad49a9378b74e8cfcb3a8f89902b..2c2afb573aeb8b99746327109597e0a61837a16b 100644 --- a/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/some/values-are-not-cached.js @@ -30,7 +30,7 @@ testWithTypedArrayConstructors(function(TA) { sample.some(function(v, i) { if (i < sample.length - 1) { - sample[i+1] = 42; + sample[i + 1] = 42; } assert.sameValue( diff --git a/test/built-ins/TypedArray/prototype/sort/return-same-instance.js b/test/built-ins/TypedArray/prototype/sort/return-same-instance.js index f9588508025644748e9d38e72779f0c953399b3b..23a4312d7a9386c8fbfe373f36a413d6c1afedc8 100644 --- a/test/built-ins/TypedArray/prototype/sort/return-same-instance.js +++ b/test/built-ins/TypedArray/prototype/sort/return-same-instance.js @@ -20,6 +20,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(sample, result, "without comparefn"); - result = sample.sort(function() { return 0; }); + result = sample.sort(function() { + return 0; + }); assert.sameValue(sample, result, "with comparefn"); }); diff --git a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js index 6da5dd1ba2f1895d9138da5c52df73e4f72199c4..8b9f5a50ea756bef0b73d7bd0ccf8747941c3d66 100644 --- a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js +++ b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js @@ -17,7 +17,7 @@ var s = Symbol("1"); testWithTypedArrayConstructors(function(TA) { var sample = new TA(); - + assert.throws(TypeError, function() { sample.subarray(s); }); diff --git a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js index 6e1ac2f6439ecfdfb6ccc887b55661814c6fe976..a3343cd4681e6adea481f62615fddcddc4ba25fe 100644 --- a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js +++ b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin.js @@ -27,11 +27,11 @@ var o2 = { testWithTypedArrayConstructors(function(TA) { var sample = new TA(); - + assert.throws(Test262Error, function() { sample.subarray(o1); }); - + assert.throws(Test262Error, function() { sample.subarray(o2); }); diff --git a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js index eaa4e9dddb541b6fb2fc443571a2a26d2e707453..4ef1daf2ae7d9357a0210367478b70d5f3d6a607 100644 --- a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js +++ b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-end.js @@ -28,11 +28,11 @@ var o2 = { testWithTypedArrayConstructors(function(TA) { var sample = new TA(); - + assert.throws(Test262Error, function() { sample.subarray(0, o1); }); - + assert.throws(Test262Error, function() { sample.subarray(0, o2); }); diff --git a/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js b/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js index abf503cb8f7bb91fc97fdd9785dbea9b973b3e08..3d38c208062478aa228741005dfa6201228bfac3 100644 --- a/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js +++ b/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js @@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample.subarray("3"), [43]), "string"); assert( compareArray( - sample.subarray(obj), - [42, 43] + sample.subarray(obj), [42, 43] ), "object" ); diff --git a/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js b/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js index 4797bf5b22ab3123ce75cc284ca66edbf83c886e..b59ee07d3247d3df7f3a29c0ef23a74371b6dd40 100644 --- a/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js +++ b/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js @@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample.subarray(0, "3"), [40, 41, 42]), "string"); assert( compareArray( - sample.subarray(0, obj), - [40, 41] + sample.subarray(0, obj), [40, 41] ), "object" ); diff --git a/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js index 0e3269c48f932732dd0f5e7b245b8b2f189ac88a..334f9a3630e00e58f905797a5948d37a7f146caa 100644 --- a/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js +++ b/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js @@ -13,6 +13,6 @@ info: | features: [BigInt] ---*/ -assert.throws(TypeError, function () { +assert.throws(TypeError, function() { BigInt64Array.prototype.buffer; }); diff --git a/test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js b/test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js index b16c2d2054d4a3768f0630e06aa69b89a12dba89..edb4ffc9eca58dca1ff0a8b421f6320ea4e3a4e3 100644 --- a/test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js +++ b/test/built-ins/TypedArrays/BigInt64Array/prototype/proto.js @@ -14,4 +14,4 @@ features: [BigInt, TypedArray] ---*/ assert.sameValue(Object.getPrototypeOf(BigInt64Array.prototype), - TypedArray.prototype); + TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js index aabe797e72e05d5df3540b93b0ecca97294b10a0..b1d03269076560fcf83fa703e4068a2fd9e98d17 100644 --- a/test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js +++ b/test/built-ins/TypedArrays/BigUint64Array/prototype/not-typedarray-object.js @@ -13,6 +13,6 @@ info: | features: [BigInt] ---*/ -assert.throws(TypeError, function () { +assert.throws(TypeError, function() { BigUint64Array.prototype.buffer; }); diff --git a/test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js b/test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js index 4ff4f19f58fe4ae981545d413127cb7bd7b2a897..b686975560f3a79e9f17916946a23950aee93d5d 100644 --- a/test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js +++ b/test/built-ins/TypedArrays/BigUint64Array/prototype/proto.js @@ -14,4 +14,4 @@ features: [BigInt, TypedArray] ---*/ assert.sameValue(Object.getPrototypeOf(BigUint64Array.prototype), - TypedArray.prototype); + TypedArray.prototype); diff --git a/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js b/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js index b8936e8cdfb6c448e5011739b16d7d0738c580d5..73331d12571b8da1eac38355c8ba62c09e0872d0 100644 --- a/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js +++ b/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js @@ -16,6 +16,11 @@ features: [TypedArray] testWithTypedArrayConstructors(function(TA) { var offset = TA.BYTES_PER_ELEMENT; var buffer = new ArrayBuffer(3 * offset); - var byteOffset = { valueOf() { $DETACHBUFFER(buffer); return offset; } }; + var byteOffset = { + valueOf() { + $DETACHBUFFER(buffer); + return offset; + } + }; assert.throws(TypeError, () => new TA(buffer, byteOffset)); }); diff --git a/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js b/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js index c8c3eb34ba1a6a32a1feadca314b155fa7a62f1d..570ef171fb55fb52d9d08ebd0f918fd0ccddeff7 100644 --- a/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js +++ b/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js @@ -16,6 +16,11 @@ features: [TypedArray] testWithTypedArrayConstructors(function(TA) { var offset = TA.BYTES_PER_ELEMENT; var buffer = new ArrayBuffer(3 * offset); - var length = { valueOf() { $DETACHBUFFER(buffer); return 1; } }; + var length = { + valueOf() { + $DETACHBUFFER(buffer); + return 1; + } + }; assert.throws(TypeError, () => new TA(buffer, 0, length)); }); diff --git a/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js b/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js index 739d1cdd21e210bb8f85f58f18701d8914ac3761..f01ec911b6fde4bd1650860a132a4292cc0bf829 100644 --- a/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js +++ b/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js @@ -18,6 +18,6 @@ testWithTypedArrayConstructors(function(View1) { testWithTypedArrayConstructors(function(View2) { var ta2 = new View2(ta1); assert.sameValue(ta2.buffer.constructor, ArrayBuffer, - "TypedArray of SharedArrayBuffer-backed TypedArray is ArrayBuffer-backed"); + "TypedArray of SharedArrayBuffer-backed TypedArray is ArrayBuffer-backed"); }, int_views); }, int_views); diff --git a/test/built-ins/TypedArrays/from/arylk-to-length-error.js b/test/built-ins/TypedArrays/from/arylk-to-length-error.js index 269bc2de0dea38ef01a87ab742acd243b29b7d60..20c363748f444474dc29d7c18fc945334fa42708 100644 --- a/test/built-ins/TypedArrays/from/arylk-to-length-error.js +++ b/test/built-ins/TypedArrays/from/arylk-to-length-error.js @@ -13,7 +13,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var arrayLike = { length: {} }; +var arrayLike = { + length: {} +}; arrayLike.length = { valueOf: function() { diff --git a/test/built-ins/TypedArrays/from/nan-conversion.js b/test/built-ins/TypedArrays/from/nan-conversion.js index df90a868aefa3b814bc1c29a96688785b422e2c6..ec2cfb112bbcd467cf6c62f9688d375960c29b72 100644 --- a/test/built-ins/TypedArrays/from/nan-conversion.js +++ b/test/built-ins/TypedArrays/from/nan-conversion.js @@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -37,8 +36,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int8Array, Int32Array, Int16Array, @@ -47,4 +45,4 @@ testWithTypedArrayConstructors(function(TA) { Uint16Array, Uint8Array, Uint8ClampedArray -]); \ No newline at end of file +]); diff --git a/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js b/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js index b29d4de6ff9bdfbc0569968700ba1c7dae2d8ec0..100d0049d36ec027c3ad43ba4a1be55f2ebf2309 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js @@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[3], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -40,8 +39,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[3], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int8Array, Int32Array, Int16Array, diff --git a/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js b/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js index 2eef7a2a84ada8b7110b364f8955579b567f5dc6..8b8bc9d27ec8e3dde1db446c9d01c2bd95c588a1 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js @@ -8,7 +8,7 @@ includes: [testTypedArray.js] features: [Array.prototype.values, TypedArray] ---*/ -var source = [,,42,,44,,]; +var source = [, , 42, , 44, , ]; testWithTypedArrayConstructors(function(TA) { var result = TA.from(source); @@ -22,8 +22,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[5], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -40,8 +39,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[5], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int8Array, Int32Array, Int16Array, diff --git a/test/built-ins/TypedArrays/from/new-instance-from-zero.js b/test/built-ins/TypedArrays/from/new-instance-from-zero.js index ef06c4b93b0382045a423694737b01319d89954c..a8bb4a85077178a0b9b8533d0ece5f5800aee638 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-zero.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-zero.js @@ -15,8 +15,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -28,8 +27,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int16Array, Int32Array, Int8Array, @@ -37,4 +35,4 @@ testWithTypedArrayConstructors(function(TA) { Uint32Array, Uint8Array, Uint8ClampedArray -]); \ No newline at end of file +]); diff --git a/test/built-ins/TypedArrays/from/this-is-not-constructor.js b/test/built-ins/TypedArrays/from/this-is-not-constructor.js index 1dab9023556275bbc3ddfd4f17b226a3c46c7daf..83ecbaa3be50151bf17a9e86e0dd4f9a088e46f4 100644 --- a/test/built-ins/TypedArrays/from/this-is-not-constructor.js +++ b/test/built-ins/TypedArrays/from/this-is-not-constructor.js @@ -14,7 +14,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var m = { m() {} }.m; +var m = { + m() {} +}.m; testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js index 19323c66dd1e63b2b18cc12a8b2435800b5d80e5..39a11f109f44eab9051ec7ef37825e7e89a9c245 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js @@ -55,7 +55,9 @@ function body(FloatArray) { someNaN = distinctNaNs[idx]; control = new FloatArray([someNaN]); - Object.defineProperty(sample, '0', { value: someNaN }); + Object.defineProperty(sample, '0', { + value: someNaN + }); sampleBytes = new Uint8Array(sample.buffer); controlBytes = new Uint8Array(control.buffer); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js index f78228c5b051fa0a90f466a6c695a8b7f2aef5b9..26cb90caa996f22b527a709125f7e1d73eb89cc7 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js @@ -47,7 +47,9 @@ includes: [byteConversionValues.js, testTypedArray.js] testTypedArrayConversions(byteConversionValues, function(TA, value, expected, initial) { var sample = new TA([initial]); - Object.defineProperty(sample, "0", {value: value}); + Object.defineProperty(sample, "0", { + value: value + }); assert.sameValue(sample[0], expected, value + " converts to " + expected); }); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js index 6572c1f94620325a2bedf9bf703b7e0ef46759ae..c6c8dd156952d80cf4ca5d0e9f1fc4728254d3cb 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js @@ -35,6 +35,8 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([42]); assert.throws(Test262Error, function() { - Object.defineProperty(sample, "0", {value: obj}); + Object.defineProperty(sample, "0", { + value: obj + }); }); }); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js index a1039636f7c19107384f0bf9f3de1d3e05d84a51..e413ab78d5fe2249cf4ec21a3274e980c238d515 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js @@ -129,6 +129,8 @@ testWithTypedArrayConstructors(function(TA) { ); assert.throws(Test262Error, function() { - Reflect.defineProperty(sample, "7", {value: obj}); + Reflect.defineProperty(sample, "7", { + value: obj + }); }, "Return Abrupt before Detached Buffer check from ToNumber(desc.value)"); }); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js index 193d9166566f7b52d0793dcc48f1bde2ecfb56bb..b51c1b602194e64a1dab1176c5fe10acbad314a6 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js @@ -72,7 +72,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(desc.set, fnset, "accessor's set [" + key + "]"); verifyNotConfigurable(sample2, key); - assert.sameValue(sample2[0], undefined,"no value is set on sample2[0]"); + assert.sameValue(sample2[0], undefined, "no value is set on sample2[0]"); assert.sameValue(sample2.length, 0, "length is still 0"); var sample3 = new TA(); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js index 845a9afbe29718a1b4cf17900fd6fcdd909da0e4..4d498e45ff8fa036273ea69a9162217c3abf9038 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js @@ -21,7 +21,9 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43]); assert.sameValue( - Reflect.defineProperty(sample, "foo", {value:42}), + Reflect.defineProperty(sample, "foo", { + value: 42 + }), true, "return true after defining property" ); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js index e74c95f12f51da36443de158147cea75f3a83269..20bfb67ca796ab3fb98ae39a71900f3a268deef0 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js @@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) { Object.preventExtensions(sample); assert.sameValue( - Reflect.defineProperty(sample, "foo", {value:42}), + Reflect.defineProperty(sample, "foo", { + value: 42 + }), false, "return false on a non-extensible object - data descriptor" ); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js index a0baaf57e54eedf837ded056148c087e00478051..5b3005e86333f634dc75ef09da167cd6c4fa4bc4 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js @@ -25,7 +25,9 @@ testWithTypedArrayConstructors(function(TA) { Object.preventExtensions(sample); assert.sameValue( - Reflect.defineProperty(sample, "foo", {value:42}), + Reflect.defineProperty(sample, "foo", { + value: 42 + }), true, "data descriptor" ); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js index ff71bee907fabbd6fc26ff418bce54a59c187607..8768f035a9ff8c8201165b5fa26e103299a9fc78 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js @@ -29,13 +29,17 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([0, 0]); assert.sameValue( - Reflect.defineProperty(sample, "0", {value: 1}), + Reflect.defineProperty(sample, "0", { + value: 1 + }), true, "set value for sample[0] returns true" ); assert.sameValue( - Reflect.defineProperty(sample, "1", {value: 2}), + Reflect.defineProperty(sample, "1", { + value: 2 + }), true, "set value for sample[1] returns true" ); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js index 5e586c7759dadd01955720b7eebb50d36ce648a1..63ff80219aa468c49360e57d5bba797615e7a790 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js @@ -22,10 +22,14 @@ testWithTypedArrayConstructors(function(TA) { Object.preventExtensions(sample); - assert.sameValue(Reflect.defineProperty(sample, "foo", {value:42}), false); + assert.sameValue(Reflect.defineProperty(sample, "foo", { + value: 42 + }), false); assert.sameValue(Reflect.getOwnPropertyDescriptor(sample, "foo"), undefined); var s = Symbol("1"); - assert.sameValue(Reflect.defineProperty(sample, s, {value:42}), false); + assert.sameValue(Reflect.defineProperty(sample, s, { + value: 42 + }), false); assert.sameValue(Reflect.getOwnPropertyDescriptor(sample, s), undefined); }); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js index d1975ee639d44baafd363f2b262f688d75dd5b5c..af6468946a951c2b812a4c6794cc73f6c2926fc5 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js @@ -32,24 +32,22 @@ features: [Reflect, TypedArray] testWithTypedArrayConstructors(function(TA) { var ta = new TA([17]); - var desc = - { - value: { - valueOf: function() { - $262.detachArrayBuffer(ta.buffer); - return 42; - } + var desc = { + value: { + valueOf: function() { + $262.detachArrayBuffer(ta.buffer); + return 42; } - }; + } + }; assert.throws(TypeError, function() { - Reflect.defineProperty(ta, 0, desc); - }, - "detaching a ArrayBuffer during defining an element of a typed array " + - "viewing it should throw"); + Reflect.defineProperty(ta, 0, desc); + }, + "detaching a ArrayBuffer during defining an element of a typed array " + + "viewing it should throw"); assert.throws(TypeError, function() { ta[0]; }); }); - diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js index 21293026c0b4659376e3c9745a07de8da2038b8c..24d118ed63c39043118f0970d8cc5deca48f0fd2 100644 --- a/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js +++ b/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js @@ -48,7 +48,9 @@ testWithTypedArrayConstructors(function(TA) { ); Object.defineProperty(sample, key, { - get: function() { return "baz"; } + get: function() { + return "baz"; + } }); assert.sameValue( diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js index 53824ad34abdfb4a4f4edcd1e09b33a15748985d..271716483bbe51ffd1512946a4d5e5bbd8035894 100644 --- a/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js @@ -31,7 +31,9 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(sample.foo, "bar", "return value"); Object.defineProperty(sample, "bar", { - get: function() { return "baz"; } + get: function() { + return "baz"; + } }); assert.sameValue(sample.bar, "baz", "return value from get accessor"); diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js b/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js index 1d05d06bc0bc87b4ef7a9ef8927e2c26997eb414..0a585a99a4f2e22b85c7211979d06e202a179f10 100644 --- a/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js @@ -32,7 +32,9 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(sample[s1], "foo", "return value"); Object.defineProperty(sample, s1, { - get: function() { return "bar"; } + get: function() { + return "bar"; + } }); assert.sameValue(sample[s1], "bar", "return value from get accessor"); diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js index 81b274361f49e72e7ff1f8399c778dc489646c75..3683a6f5574f0f7a13be808f2dc6fb1999ac0f17 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js @@ -29,7 +29,9 @@ testWithTypedArrayConstructors(function(TA) { // Tests for the property descriptor are defined on the tests for // [[DefineOwnProperty]] calls - Object.defineProperty(sample, "foo", { value: "bar" }); + Object.defineProperty(sample, "foo", { + value: "bar" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, "foo").value, "bar", diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js index 308a2973f1431c58c5084e3fa4013203dcf93a3e..5605b8d5b1fb4e2980201f297f78d90a91b257db 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js @@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) { $DETACHBUFFER(sample.buffer); var s = Symbol("foo"); - Object.defineProperty(sample, s, { value: "baz" }); + Object.defineProperty(sample, s, { + value: "baz" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, s).value, "baz", diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js index 35b6fa01c5ec92d9c14e711932ae0f5e17ece0ac..8344b203f75975bc4e18e9771d26d402643807d9 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js @@ -38,7 +38,9 @@ testWithTypedArrayConstructors(function(TA) { // Tests for the property descriptor are defined on the tests for // [[DefineOwnProperty]] calls - Object.defineProperty(sample, key, {value: "bar"}); + Object.defineProperty(sample, key, { + value: "bar" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, key).value, "bar", diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js index 57fd606ae598febd780e57871bf3d8c5465895e4..1d008d21f76189da6fea24813dd221e9f34bc092 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js @@ -29,7 +29,9 @@ testWithTypedArrayConstructors(function(TA) { // Tests for the property descriptor are defined on the tests for // [[DefineOwnProperty]] calls - Object.defineProperty(sample, "foo", { value: "bar" }); + Object.defineProperty(sample, "foo", { + value: "bar" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, "foo").value, "bar", diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js index 6b440e1194c063e76301e28d4088f1ffc5a6b012..d0e3b1f0d2ebd05c642246c1f464c4c0b7552ab7 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js @@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43]); var s = Symbol("foo"); - Object.defineProperty(sample, s, { value: "baz" }); + Object.defineProperty(sample, s, { + value: "baz" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, s).value, "baz", diff --git a/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js b/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js index 1c235fa815a08d9249ab871e8bac4a754721ac85..3eddf77c7e2a5ba6c2b289aad1fefe163c319790 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js @@ -53,7 +53,9 @@ testWithTypedArrayConstructors(function(TA) { Reflect.has(sample, "foo"); }, "Return abrupt from parent's [[HasProperty]] 'foo'"); - Object.defineProperty(sample, "foo", { value: 42 }); + Object.defineProperty(sample, "foo", { + value: 42 + }); assert.sameValue( Reflect.has(sample, "foo"), diff --git a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js index 011e80c0b61429e0a6d643bc20c27c920c999345..d7662252de1fcb1f500c1dcfc6654765e010bec4 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js @@ -20,7 +20,9 @@ features: [Reflect, TypedArray] testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43]); - Object.defineProperty(sample, "bar", { value: 42 }); + Object.defineProperty(sample, "bar", { + value: 42 + }); $DETACHBUFFER(sample.buffer); diff --git a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js index 2c34c3caa0fd1f0e0c6e61955b413a417a1466c2..10f0c84d9a792d9ed62f1f503419fba12ffcf9c0 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js @@ -22,7 +22,9 @@ var s2 = Symbol("bar"); testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43]); - Object.defineProperty(sample, s1, { value: "baz" }); + Object.defineProperty(sample, s1, { + value: "baz" + }); $DETACHBUFFER(sample.buffer); diff --git a/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js b/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js index 7a79bec7b9443a52599d4e0883aef7c4956d345c..9e79d90cc508fe7ab07b743493c8e5aa30d4d0e3 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js @@ -31,6 +31,6 @@ testWithTypedArrayConstructors(function(TA) { $DETACHBUFFER(sample.buffer); assert.throws(TypeError, function() { - with (sample) Infinity; + with(sample) Infinity; }); }); diff --git a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js index 7e20c5b24fb951ffca70565f64ce4eb7e6279db1..673aec6d873a78f9269d876b89a71820a84b8cb5 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js @@ -43,7 +43,9 @@ testWithTypedArrayConstructors(function(TA) { delete TypedArray.prototype[key]; - Object.defineProperty(sample, key, {value: 42}); + Object.defineProperty(sample, key, { + value: 42 + }); assert.sameValue( Reflect.has(sample, key), true, diff --git a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js index 53cfc57681558d5dd24e26b4266788abe4aac3e6..e6e187a56fc6c49c901dcd3fef7347e2904ed186 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js @@ -23,7 +23,9 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(Reflect.has(sample, "foo"), false); - Object.defineProperty(sample, "foo", { value: 42 }); + Object.defineProperty(sample, "foo", { + value: 42 + }); assert.sameValue(Reflect.has(sample, "foo"), true); }); diff --git a/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js b/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js index f3b6e6758b02da4fc4c1a52521c0d7da2edb8130..f6d1a1bfba6f53db52189868cffadfdfc275cf15 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js @@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(Reflect.has(sample, s), false); - Object.defineProperty(sample, s, { value: 42 }); + Object.defineProperty(sample, s, { + value: 42 + }); assert.sameValue(Reflect.has(sample, s), true); }); diff --git a/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js b/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js index 86a4b867b8f2b0c7972c56195b22fcf771376c69..45e9c76afb11e5c54120c4ca8587241c53bca391 100644 --- a/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js +++ b/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js @@ -30,15 +30,15 @@ testWithTypedArrayConstructors(function(TA) { var ta = new TA([17]); assert.throws(TypeError, function() { - Reflect.set(ta, 0, { - valueOf: function() { - $262.detachArrayBuffer(ta.buffer); - return 42; - } - }); - }, - "detaching a ArrayBuffer during setting an element of a typed array " + - "viewing it should throw"); + Reflect.set(ta, 0, { + valueOf: function() { + $262.detachArrayBuffer(ta.buffer); + return 42; + } + }); + }, + "detaching a ArrayBuffer during setting an element of a typed array " + + "viewing it should throw"); assert.throws(TypeError, function() { ta[0]; diff --git a/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js b/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js index f9af0defe76e01525dd59de0c4338564411af782..ecc1b08e805b1f04e6c6dab7e752209efbba3f70 100644 --- a/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js +++ b/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js @@ -17,8 +17,9 @@ features: [TypedArray] ---*/ testWithTypedArrayConstructors(function(TA) { - var obj = (function *() { - yield 7; yield 42; + var obj = (function*() { + yield 7; + yield 42; })(); var typedArray = new TA(obj); diff --git a/test/built-ins/TypedArrays/object-arg-iterating-throws.js b/test/built-ins/TypedArrays/object-arg-iterating-throws.js index 41fc555098bf52ffd4b67ce642f01501a413587e..764447eabde4aec68757536a2e005a8920420140 100644 --- a/test/built-ins/TypedArrays/object-arg-iterating-throws.js +++ b/test/built-ins/TypedArrays/object-arg-iterating-throws.js @@ -20,7 +20,7 @@ features: [TypedArray] ---*/ testWithTypedArrayConstructors(function(TA) { - var obj = (function *() { + var obj = (function*() { yield 0; throw new Test262Error(); })(); diff --git a/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js b/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js index ad6db0877ac63069e1e69e61347e103c1a275453..e9b54823015c65149a228533e6f7dbd90a72db37 100644 --- a/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js +++ b/test/built-ins/TypedArrays/object-arg-iterator-not-callable-throws.js @@ -19,7 +19,7 @@ includes: [testTypedArray.js] features: [Symbol.iterator, TypedArray] ---*/ -var obj = function () {}; +var obj = function() {}; testWithTypedArrayConstructors(function(TA) { obj[Symbol.iterator] = {}; diff --git a/test/built-ins/TypedArrays/object-arg-iterator-throws.js b/test/built-ins/TypedArrays/object-arg-iterator-throws.js index 571ad77ad84c99361986d7e794055f2e28b9ab16..63122f682b472b9e277a57820a2e0c6cd7c0319c 100644 --- a/test/built-ins/TypedArrays/object-arg-iterator-throws.js +++ b/test/built-ins/TypedArrays/object-arg-iterator-throws.js @@ -19,7 +19,7 @@ includes: [testTypedArray.js] features: [Symbol.iterator, TypedArray] ---*/ -var obj = function () {}; +var obj = function() {}; Object.defineProperty(obj, Symbol.iterator, { get() { diff --git a/test/built-ins/TypedArrays/of/argument-number-value-throws.js b/test/built-ins/TypedArrays/of/argument-number-value-throws.js index bda57f8cd45f5724fb90b913dc56ec5ec8682e88..019cbb79c6cc1293aa33dc18be88d9c00e070855 100644 --- a/test/built-ins/TypedArrays/of/argument-number-value-throws.js +++ b/test/built-ins/TypedArrays/of/argument-number-value-throws.js @@ -40,4 +40,3 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(lastValue, "obj2"); }); - diff --git a/test/built-ins/TypedArrays/of/inherited.js b/test/built-ins/TypedArrays/of/inherited.js index 4f040e4e972a501bfe434ff9b1249de83f1288bc..6a7ee304b3df304355a2a6a3266ad9f0e1e983b1 100644 --- a/test/built-ins/TypedArrays/of/inherited.js +++ b/test/built-ins/TypedArrays/of/inherited.js @@ -22,4 +22,4 @@ testWithTypedArrayConstructors(function(TA) { TA.hasOwnProperty("of"), false, "constructor does not define an own property named 'of'" ); -}); \ No newline at end of file +}); diff --git a/test/built-ins/TypedArrays/of/invoked-as-func.js b/test/built-ins/TypedArrays/of/invoked-as-func.js index 382bf1cd9d0e0ab8bb8e5e7694ab5e571d1a3fd4..e16dfe286d080a6dfcb6ae184529ba0ce5e0d575 100644 --- a/test/built-ins/TypedArrays/of/invoked-as-func.js +++ b/test/built-ins/TypedArrays/of/invoked-as-func.js @@ -19,7 +19,6 @@ features: [TypedArray] testWithTypedArrayConstructors(function(TA) { var of = TA.of; - assert.throws(TypeError, function() { - of(); + assert.throws(TypeError, function() { of (); }); }); diff --git a/test/built-ins/TypedArrays/of/nan-conversion.js b/test/built-ins/TypedArrays/of/nan-conversion.js index 4444f128604b44a55842af11fa5a05a8c276e850..8e3ca40aee7fb0fa6d74a263c3da1950abc7a952 100644 --- a/test/built-ins/TypedArrays/of/nan-conversion.js +++ b/test/built-ins/TypedArrays/of/nan-conversion.js @@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -37,8 +36,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int8Array, Int32Array, Int16Array, diff --git a/test/built-ins/TypedArrays/of/new-instance-from-zero.js b/test/built-ins/TypedArrays/of/new-instance-from-zero.js index ecffd9c36f2a7205131f991d51bbce6e3969b6f8..783e5b3b251af2185b69d87048d0a22d9b4c8f7a 100644 --- a/test/built-ins/TypedArrays/of/new-instance-from-zero.js +++ b/test/built-ins/TypedArrays/of/new-instance-from-zero.js @@ -15,8 +15,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -28,8 +27,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int16Array, Int32Array, Int8Array, diff --git a/test/built-ins/TypedArrays/of/this-is-not-constructor.js b/test/built-ins/TypedArrays/of/this-is-not-constructor.js index be5b3b65af7ccaa4fac0a2a374c013d28d884861..dedf72bced82c4fa80cc8530a255c06da5086762 100644 --- a/test/built-ins/TypedArrays/of/this-is-not-constructor.js +++ b/test/built-ins/TypedArrays/of/this-is-not-constructor.js @@ -15,7 +15,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var m = { m() {} }.m; +var m = { + m() {} +}.m; testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { diff --git a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js index 8ee2fba54bc195dcafe393b24bc22652e86493ce..b2716b24244e6400b52c6c7b0b90b9dcda5ba340 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js +++ b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js @@ -31,31 +31,31 @@ features: [TypedArray, Symbol.species] ---*/ testWithTypedArrayConstructors(function(TA) { - var speciesCallCount = 0; - var bufferConstructor = Object.defineProperty({}, Symbol.species, { - get: function() { - speciesCallCount += 1; - $DETACHBUFFER(ta.buffer); - return speciesConstructor; - } - }); - - var prototypeCallCount = 0; - var speciesConstructor = Object.defineProperty(function(){}.bind(), "prototype", { - get: function() { - prototypeCallCount += 1; - return null; - } - }); - - var ta = new TA(0); - ta.buffer.constructor = bufferConstructor; - - assert.throws(TypeError, function() { - var targetType = TA !== Int32Array ? Int32Array : Uint32Array; - new targetType(ta); - }, "TypeError thrown for detached source buffer"); - - assert.sameValue(speciesCallCount, 1, "@@species getter called once"); - assert.sameValue(prototypeCallCount, 1, "prototype getter called once"); + var speciesCallCount = 0; + var bufferConstructor = Object.defineProperty({}, Symbol.species, { + get: function() { + speciesCallCount += 1; + $DETACHBUFFER(ta.buffer); + return speciesConstructor; + } + }); + + var prototypeCallCount = 0; + var speciesConstructor = Object.defineProperty(function() {}.bind(), "prototype", { + get: function() { + prototypeCallCount += 1; + return null; + } + }); + + var ta = new TA(0); + ta.buffer.constructor = bufferConstructor; + + assert.throws(TypeError, function() { + var targetType = TA !== Int32Array ? Int32Array : Uint32Array; + new targetType(ta); + }, "TypeError thrown for detached source buffer"); + + assert.sameValue(speciesCallCount, 1, "@@species getter called once"); + assert.sameValue(prototypeCallCount, 1, "prototype getter called once"); }); diff --git a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js index 978f42af64be0e5e280840bfa0670894f2af8ac3..37484659b239a7153cf05e5084de944d9f96bc85 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js +++ b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-same-type.js @@ -35,30 +35,30 @@ features: [TypedArray, Symbol.species] ---*/ testWithTypedArrayConstructors(function(TA) { - var speciesCallCount = 0; - var bufferConstructor = Object.defineProperty({}, Symbol.species, { - get: function() { - speciesCallCount += 1; - $DETACHBUFFER(ta.buffer); - return speciesConstructor; - } - }); + var speciesCallCount = 0; + var bufferConstructor = Object.defineProperty({}, Symbol.species, { + get: function() { + speciesCallCount += 1; + $DETACHBUFFER(ta.buffer); + return speciesConstructor; + } + }); - var prototypeCallCount = 0; - var speciesConstructor = Object.defineProperty(function(){}.bind(), "prototype", { - get: function() { - prototypeCallCount += 1; - return null; - } - }); + var prototypeCallCount = 0; + var speciesConstructor = Object.defineProperty(function() {}.bind(), "prototype", { + get: function() { + prototypeCallCount += 1; + return null; + } + }); - var ta = new TA(0); - ta.buffer.constructor = bufferConstructor; + var ta = new TA(0); + ta.buffer.constructor = bufferConstructor; - assert.throws(TypeError, function() { - new TA(ta); - }, "TypeError thrown for detached source buffer"); + assert.throws(TypeError, function() { + new TA(ta); + }, "TypeError thrown for detached source buffer"); - assert.sameValue(speciesCallCount, 1, "@@species getter called once"); - assert.sameValue(prototypeCallCount, 1, "prototype getter called once"); + assert.sameValue(speciesCallCount, 1, "@@species getter called once"); + assert.sameValue(prototypeCallCount, 1, "prototype getter called once"); }); diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js index c485cae138f684c86bd68ad1b41c6ba92b7b794c..8a656718f84711895d0da01c9bf9dafd61359255 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js +++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js @@ -33,7 +33,9 @@ var sample2 = new Int16Array(); var ctor = function() { throw new Test262Error(); }; -var m = { m() {} }.m; +var m = { + m() {} +}.m; ctor[Symbol.species] = m; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js index 135634646b491497da941db744062d5879665e88..ad7dfa659d7f62f8673e6cbf94cfcc643eda298c 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js +++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js @@ -45,7 +45,9 @@ testWithTypedArrayConstructors(function(TA) { sample.buffer.constructor = ctor; - ctor[Symbol.species] = function() {called++;}.bind(null); + ctor[Symbol.species] = function() { + called++; + }.bind(null); Object.defineProperty(ctor[Symbol.species], "prototype", { get: function() { throw new Test262Error(); diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js index 2072aa96dd1a48530c622f0ebf8e5ab5cb8337fd..6c0d590d20803278efc2346df49639679c6649b8 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js +++ b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js @@ -37,7 +37,9 @@ features: [Symbol.species, TypedArray] testWithTypedArrayConstructors(function(TA) { var sample = new TA(); var ctor = {}; - var m = { m() {} }; + var m = { + m() {} + }; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js index b171826cfb1747d0c959669c36edc17026a72aa8..cd0cc0c25915c8f8a5437a33fc0b4d534d1ccd42 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js +++ b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js @@ -49,7 +49,7 @@ testWithTypedArrayConstructors(function(TA) { sample.buffer.constructor = ctor; - ctor[Symbol.species] = function(){}.bind(null); + ctor[Symbol.species] = function() {}.bind(null); Object.defineProperty(ctor[Symbol.species], "prototype", { get() { throw new Test262Error(); diff --git a/test/built-ins/WeakMap/iterable.js b/test/built-ins/WeakMap/iterable.js index e7bbc1d10d00ecd93a773f3256f252dff4c662f4..4125eee93e7a4babfa4f45da24c0393650a901ec 100644 --- a/test/built-ins/WeakMap/iterable.js +++ b/test/built-ins/WeakMap/iterable.js @@ -27,7 +27,10 @@ WeakMap.prototype.set = function(key, value) { }); return set.call(this, key, value); }; -var map = new WeakMap([[first, 42], [second, 43]]); +var map = new WeakMap([ + [first, 42], + [second, 43] +]); assert.sameValue(results.length, 2, 'Called WeakMap#set for each object'); assert.sameValue(results[0].key, first, 'Adds object in order - first key'); diff --git a/test/built-ins/WeakMap/iterator-close-after-set-failure.js b/test/built-ins/WeakMap/iterator-close-after-set-failure.js index e2abc94795672d8438657e9b7be7b90a6f836719..57a0d05d5ead2b30afed6b9122c8dfaa2d3cc818 100644 --- a/test/built-ins/WeakMap/iterator-close-after-set-failure.js +++ b/test/built-ins/WeakMap/iterator-close-after-set-failure.js @@ -20,14 +20,19 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: [], done: false }; + return { + value: [], + done: false + }; }, return: function() { count += 1; } }; }; -WeakMap.prototype.set = function() { throw new Test262Error(); }; +WeakMap.prototype.set = function() { + throw new Test262Error(); +}; assert.throws(Test262Error, function() { new WeakMap(iterable); diff --git a/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js b/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js index ebec4f91b3070f22a040418a131f0f87f09af1fe..bc8c4d05909385ff0c07e962c20a568b7b01102d 100644 --- a/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js +++ b/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js @@ -28,7 +28,10 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: nextItem, done: false }; + return { + value: nextItem, + done: false + }; }, return: function() { count += 1; diff --git a/test/built-ins/WeakMap/iterator-items-are-not-object.js b/test/built-ins/WeakMap/iterator-items-are-not-object.js index 1af89557011ba1805040ec3244e0064125bd69c0..5cb3959d59d0e7d9ee002c52b3e79bd12f0f9a6f 100644 --- a/test/built-ins/WeakMap/iterator-items-are-not-object.js +++ b/test/built-ins/WeakMap/iterator-items-are-not-object.js @@ -45,5 +45,7 @@ assert.throws(TypeError, function() { }); assert.throws(TypeError, function() { - new WeakMap([['a', 1], 2]); + new WeakMap([ + ['a', 1], 2 + ]); }); diff --git a/test/built-ins/WeakMap/name.js b/test/built-ins/WeakMap/name.js index 7aafce494c13910c85606e5c6540f44191e7b3ab..baa4d1014a65c5c531b0ce50e06f820e577b2add 100644 --- a/test/built-ins/WeakMap/name.js +++ b/test/built-ins/WeakMap/name.js @@ -12,8 +12,8 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - WeakMap.name, 'WeakMap', - 'The value of `WeakMap.name` is "WeakMap"' + WeakMap.name, 'WeakMap', + 'The value of `WeakMap.name` is "WeakMap"' ); verifyNotEnumerable(WeakMap, 'name'); diff --git a/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js b/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js index 6768aba521128194f1c467a9af25887f409bd8c5..1927f697b8a3945b258c0c13ab10c336f8c9748b 100644 --- a/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js +++ b/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js @@ -22,7 +22,9 @@ info: | ---*/ var foo = {}; -var map = new WeakMap([[foo, 42]]); +var map = new WeakMap([ + [foo, 42] +]); var result = map.delete(foo); diff --git a/test/built-ins/WeakMap/prototype/get/returns-undefined.js b/test/built-ins/WeakMap/prototype/get/returns-undefined.js index 77eddd8ba9a99592aeb0c8994fd222189f57cfa9..76d7ef16df4e502a56669064c53cce05962e27cf 100644 --- a/test/built-ins/WeakMap/prototype/get/returns-undefined.js +++ b/test/built-ins/WeakMap/prototype/get/returns-undefined.js @@ -24,7 +24,7 @@ var key = {}; assert.sameValue( map.get(key), undefined, - 'returns undefined if key is not on the weakmap' + 'returns undefined if key is not on the weakmap' ); map.set(key, 1); diff --git a/test/built-ins/WeakMap/prototype/get/returns-value.js b/test/built-ins/WeakMap/prototype/get/returns-value.js index 2afc923dc1969b558ebd36c3f13aaec514f43840..47990a97dbac5ca0d03af79ef81d9101412b4d17 100644 --- a/test/built-ins/WeakMap/prototype/get/returns-value.js +++ b/test/built-ins/WeakMap/prototype/get/returns-value.js @@ -21,7 +21,9 @@ info: | var foo = {}; var bar = {}; var baz = []; -var map = new WeakMap([[foo,0]]); +var map = new WeakMap([ + [foo, 0] +]); assert.sameValue(map.get(foo), 0); diff --git a/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js b/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js index 81e8f36ae695cec9741591e307e7c405490d3b03..e4eea01298807aeb8d7c3cee0cb3b4d0d3c36c3c 100644 --- a/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js +++ b/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js @@ -18,6 +18,8 @@ info: | ---*/ var foo = {}; -var map = new WeakMap([[foo, 1]]); +var map = new WeakMap([ + [foo, 1] +]); assert.sameValue(map.set(foo, 1), map, '`map.set(foo, 1)` returns `map`'); diff --git a/test/built-ins/WeakSet/iterator-close-after-add-failure.js b/test/built-ins/WeakSet/iterator-close-after-add-failure.js index dcd971380b466581934c561d07cfcc8c488436c3..fed192c8ce52cbbe48debdac92a401ae88116a3e 100644 --- a/test/built-ins/WeakSet/iterator-close-after-add-failure.js +++ b/test/built-ins/WeakSet/iterator-close-after-add-failure.js @@ -20,14 +20,19 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: null, done: false }; + return { + value: null, + done: false + }; }, return: function() { count += 1; } }; }; -WeakSet.prototype.add = function() { throw new Test262Error(); }; +WeakSet.prototype.add = function() { + throw new Test262Error(); +}; assert.throws(Test262Error, function() { new WeakSet(iterable); diff --git a/test/built-ins/WeakSet/name.js b/test/built-ins/WeakSet/name.js index 9febed30852f64c21d87ae7ab0d4fa674e221c30..1fbaa84092593a8fd9a00651a41668f815ae907d 100644 --- a/test/built-ins/WeakSet/name.js +++ b/test/built-ins/WeakSet/name.js @@ -12,8 +12,8 @@ includes: [propertyHelper.js] ---*/ assert.sameValue( - WeakSet.name, 'WeakSet', - 'The value of `WeakSet.name` is "WeakSet"' + WeakSet.name, 'WeakSet', + 'The value of `WeakSet.name` is "WeakSet"' ); verifyNotEnumerable(WeakSet, 'name'); diff --git a/test/built-ins/WeakSet/undefined-newtarget.js b/test/built-ins/WeakSet/undefined-newtarget.js index 0a3363e2dac4ce341fa85a5598653199680beba5..eacb101f77e44343e5e9f4919ec67d70f1512d96 100644 --- a/test/built-ins/WeakSet/undefined-newtarget.js +++ b/test/built-ins/WeakSet/undefined-newtarget.js @@ -13,9 +13,9 @@ info: | ---*/ assert.throws(TypeError, function() { - WeakSet(); + WeakSet(); }); assert.throws(TypeError, function() { - WeakSet([]); + WeakSet([]); }); diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js index fcd724045855ebd3ff08d25c0cfe5f15046b7d7d..60e1a4bd8adb876e82b84772d24d14768811f32f 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js index 33fa65d214d8975281d9c40a2b46c01989cb00cd..fe8b1522cb6aa4eb94cdc6006e97e0f81ee7f590 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js @@ -16,7 +16,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js index 9752e4298684bafe8202b9ab38f8807dc03ed85b..20ed6651ebb1ab175a815a2e38158917078ab5c1 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js @@ -16,7 +16,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js index 8c8e4e8249ce00488a0bc6558c26aac32e0a94fd..ef1bd2624235554c67d3fc71d430dbf468f35b79 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js index acb718faf69a078145b3762753aad0837c2e71b5..ffc0a98142df6b034bae835209df738e745a06ae 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js index 226bdb47673e420d7cafa512340de34beb30f171..f7f0f8d51cd027dbfa1f45df8e93a4e72d5c5bd5 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js index 2ee47854c0bd2c3cc3b5967b73f87afa749f306f..6905a3853254d58b80d1c2689b952e15871f55fd 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js @@ -15,7 +15,7 @@ var result = true; try { decodeURI("%"); result = false; -} catch(e) { +} catch (e) { if ((e instanceof URIError) !== true) { result = false; } @@ -25,7 +25,7 @@ try { try { decodeURI("%A"); result = false; -} catch(e) { +} catch (e) { if ((e instanceof URIError) !== true) { result = false; } @@ -35,7 +35,7 @@ try { try { decodeURI("%1"); result = false; -} catch(e) { +} catch (e) { if ((e instanceof URIError) !== true) { result = false; } @@ -45,7 +45,7 @@ try { try { decodeURI("% "); result = false; -} catch(e) { +} catch (e) { if ((e instanceof URIError) !== true) { result = false; } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js index 5a30805bb7feae64b7678cfee19395f7d342e006..5f6354bf6451f90b236ce7104eee6d6866b0047f 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js index 5944e67bf288e4f07ae4250fd6bb5c57f0bb00b3..234066125d70e9fc38af1429cd7c1147f92640aa 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js index 477ef8460c59551c991ccda6df588a1cb9d2c73e..6423131402962c2584be820ecf2d07fc738bf850 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js @@ -22,7 +22,7 @@ for (var indexI = 0; indexI <= 65535; indexI++) { $ERROR('#' + hex + ' '); errorCount++; } - } catch (e){ + } catch (e) { $ERROR('#' + hex + ' '); errorCount++; } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js index 71e8c31d4473bb0436a3ee12796cc53e63a04500..a609d01146a73fb8bd8793f6f2df151dcd06be85 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js @@ -16,36 +16,36 @@ var indexP; var indexO = 0; var uriReserved = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","]; l: -for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) { - count++; - var hexB1 = decimalToPercentHexString(indexB1); - var index = indexB1; - var hex = String.fromCharCode(index); - for (var indexC = 0; indexC < uriReserved.length; indexC++) { - if (hex === uriReserved[indexC]) continue l; - } - if (hex === "#") continue; - if (decodeURI(hexB1) === hex) continue; + for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) { + count++; + var hexB1 = decimalToPercentHexString(indexB1); + var index = indexB1; + var hex = String.fromCharCode(index); + for (var indexC = 0; indexC < uriReserved.length; indexC++) { + if (hex === uriReserved[indexC]) continue l; + } + if (hex === "#") continue; + if (decodeURI(hexB1) === hex) continue; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.1.js b/test/built-ins/decodeURI/S15.1.3.1_A5.1.js index a5517ed7ec0d5ae6b37578344b66b74fcb7bd245..ccc2da700233822b87478d21505eb5db510833a9 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.1.js @@ -16,7 +16,7 @@ if (decodeURI.propertyIsEnumerable('length') !== false) { //CHECK#2 var result = true; -for (var p in decodeURI){ +for (var p in decodeURI) { if (p === "length") { result = false; } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.5.js b/test/built-ins/decodeURI/S15.1.3.1_A5.5.js index c088525b2c939f2d8fb3ea4644c6ff50923683d9..3d64f22d1b4afbc84d2347013574dc4b4208636f 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A5.5.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A5.5.js @@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('decodeURI') !== false) { //CHECK#2 var result = true; -for (var p in this){ +for (var p in this) { if (p === "decodeURI") { result = false; } diff --git a/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js index e3789fbdfdd1eb7060850382547bbded755801ff..216de13497f04389bfb01adf65a06436c02c15fd 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "%5E"}}; +var object = { + valueOf: function() { + return "%5E" + } +}; if (decodeURI(object) !== "[object Object]") { $ERROR('#1: var object = {valueOf: function() {return "%5E"}}; decodeURI(object) === [object Object]. Actual: ' + (decodeURI(object))); } //CHECK#2 -var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; +var object = { + valueOf: function() { + return "" + }, + toString: function() { + return "%5E" + } +}; if (decodeURI(object) !== "^") { $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#3 -var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "%5E" + }, + toString: function() { + return {} + } +}; if (decodeURI(object) !== "^") { $ERROR('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "%5E" + } + }; if (decodeURI(object) !== "^") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "%5E"}}; +var object = { + toString: function() { + return "%5E" + } +}; if (decodeURI(object) !== "^") { $ERROR('#5: var object = {toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "%5E" + } +} if (decodeURI(object) !== "^") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "%5E" + }, + toString: function() { + throw "error" + } + }; decodeURI(object); $ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (decodeURI(object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; decodeURI(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (decodeURI(object))); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js index a46be4f62b271b2b1d79570de42cd42e33aa2376..18a31ed6c78b89e9aa9b2aec91c5810086b176aa 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js index da331c91193a80efa0b4cd8b97d98a60f9884d81..523333d22dba6d5ed71f7354b975ee72b00653e2 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js @@ -16,7 +16,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js index 1a0c176a45a889a1f0fbac788ca8a6a9b1fc49b9..a28d0d88fb7fb1c950b9e6cc10ce9d5688cfde72 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js @@ -16,7 +16,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js index 4fabab2a7f42f0a62256d2dfa1d1cd38f5169241..6cebbac3efab8fc43eb9954999e873b947046db6 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js index dfe26fb48f5a80bc14b90e0f5bb9c04571aceb64..d0584a7c184fc610a6aae2c0f8d6ab11a4f1d033 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js index 91c59946a21c3b5080472d90c945f6e2cb129e21..524b484c0de54d196bca9a54b39d7b166e3318be 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js index 6a072c6ba82b331d03fdb511089dcbbbe5847460..8f7812a523d4652061854f9b0732b956d6558859 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js @@ -15,7 +15,7 @@ var result = true; try { decodeURIComponent("%"); result = false; -} catch(e) { +} catch (e) { if ((e instanceof URIError) !== true) { result = false; } @@ -25,7 +25,7 @@ try { try { decodeURIComponent("%A"); result = false; -} catch(e) { +} catch (e) { if ((e instanceof URIError) !== true) { result = false; } @@ -35,7 +35,7 @@ try { try { decodeURIComponent("%1"); result = false; -} catch(e) { +} catch (e) { if ((e instanceof URIError) !== true) { result = false; } @@ -45,7 +45,7 @@ try { try { decodeURIComponent("% "); result = false; -} catch(e) { +} catch (e) { if ((e instanceof URIError) !== true) { result = false; } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js index 32d2f4564f64cf6e79bbc48ba0d2c7c50a5558ce..9f02d80e728b326f8ce64cabc4cdf0bcfcd71b39 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js index f12e15c84e5bf07e7d49e35db9881f1a1cc72d80..a8710a8c8f756968ccfa4013c64827d33ad31bad 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js index 5ffde47cff995e68fa5e5def31f66008e777d6bf..a84fa9b913ab88220c81172e0437d9b908b1eabd 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js @@ -22,7 +22,7 @@ for (var indexI = 0; indexI <= 65535; indexI++) { $ERROR('#' + hex + ' '); errorCount++; } - } catch (e){ + } catch (e) { $ERROR('#' + hex + ' '); errorCount++; } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js index e8d46165b746627aa8e60cc1a9b2b3913fbff8a0..e2412648c876fd403ef8252597fb2db9e8f14beb 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.1.js @@ -16,7 +16,7 @@ if (decodeURIComponent.propertyIsEnumerable('length') !== false) { //CHECK#2 var result = true; -for (var p in decodeURIComponent){ +for (var p in decodeURIComponent) { if (p === "length") { result = false; } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js index e01cd5502fcb8b5aa7ff80d88b2e2ffda8a77fb5..376bff510ef6fef08ff4bc90ff0b2f1a41c0720a 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A5.5.js @@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('decodeURIComponent') !== false) { //CHECK#2 var result = true; -for (var p in this){ +for (var p in this) { if (p === "decodeURIComponent") { result = false; } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js index cb27193eb26fccb673a97d74476889785e0a1291..5717f3f82bd313daae77f3f45ff31c48c58626b5 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "%5E"}}; +var object = { + valueOf: function() { + return "%5E" + } +}; if (decodeURIComponent(object) !== "[object Object]") { $ERROR('#1: var object = {valueOf: function() {return "%5E"}}; decodeURIComponent(object) === [object Object]. Actual: ' + (decodeURIComponent(object))); } //CHECK#2 -var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; +var object = { + valueOf: function() { + return "" + }, + toString: function() { + return "%5E" + } +}; if (decodeURIComponent(object) !== "^") { $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#3 -var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "%5E" + }, + toString: function() { + return {} + } +}; if (decodeURIComponent(object) !== "^") { $ERROR('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "%5E" + } + }; if (decodeURIComponent(object) !== "^") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "%5E"}}; +var object = { + toString: function() { + return "%5E" + } +}; if (decodeURIComponent(object) !== "^") { $ERROR('#5: var object = {toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "%5E" + } +} if (decodeURIComponent(object) !== "^") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "%5E" + }, + toString: function() { + throw "error" + } + }; decodeURIComponent(object); $ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURIComponent(object) throw "error". Actual: ' + (decodeURIComponent(object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; decodeURIComponent(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURIComponent(object) throw TypeError. Actual: ' + (decodeURIComponent(object))); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js index 4b8dbcca16458a942bcc6ce2615e87820d4815a5..adc67858148f05b029907a9b8bc5c799fb16e101 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js @@ -19,38 +19,38 @@ var count = 0; var indexP; var indexO = 0; -l : -for (var index = 0x0000; index <= 0x007F; index++) { - count++; - var str = String.fromCharCode(index); - for (var indexC = 0; indexC < uriReserved.length; indexC++) { - if (uriReserved[indexC] === str) continue l; - } - for (indexC = 0; indexC < uriUnescaped.length; indexC++) { - if (uriUnescaped[indexC] === str) continue l; - } - if ("#" === str) continue l; - if (encodeURI(str).toUpperCase() === decimalToPercentHexString(index)) continue l; +l: + for (var index = 0x0000; index <= 0x007F; index++) { + count++; + var str = String.fromCharCode(index); + for (var indexC = 0; indexC < uriReserved.length; indexC++) { + if (uriReserved[indexC] === str) continue l; + } + for (indexC = 0; indexC < uriUnescaped.length; indexC++) { + if (uriUnescaped[indexC] === str) continue l; + } + if ("#" === str) continue l; + if (encodeURI(str).toUpperCase() === decimalToPercentHexString(index)) continue l; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js index 95460bf1346495620634eae2bd1369918bbcedbe..7dfba5982553e7deb9cb582c9090c9b1db784aea 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js @@ -17,32 +17,32 @@ var count = 0; var indexP; var indexO = 0; l: -for (var index = 0x0080; index <= 0x07FF; index++) { - count++; - var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F)); - var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040); - var str = String.fromCharCode(index); - if (encodeURI(str).toUpperCase() === hex2 + hex1) continue; + for (var index = 0x0080; index <= 0x07FF; index++) { + count++; + var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F)); + var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040); + var str = String.fromCharCode(index); + if (encodeURI(str).toUpperCase() === hex2 + hex1) continue; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.1.js b/test/built-ins/encodeURI/S15.1.3.3_A5.1.js index 5dad9e2d76153cf65e54aa46fb9e4e7622e2cbca..57fdbecfa7edd08378c3fd736cb3d52392fe75c3 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.1.js @@ -16,7 +16,7 @@ if (encodeURI.propertyIsEnumerable('length') !== false) { //CHECK#2 var result = true; -for (var p in encodeURI){ +for (var p in encodeURI) { if (p === "length") { result = false; } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.5.js b/test/built-ins/encodeURI/S15.1.3.3_A5.5.js index 6a99e8337489d1dc94c4fe9b40a77aff185d3229..196f9bab04cbf860e95c5fa3934d8e65087a6d2f 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A5.5.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A5.5.js @@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('encodeURI') !== false) { //CHECK#2 var result = true; -for (var p in this){ +for (var p in this) { if (p === "encodeURI") { result = false; } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js index 955a4038bd4c7f11d83b32db74fbf4517b9cd90a..bc7c7fc8e478d050b69d15b13012aac16ba1911b 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "^"}}; +var object = { + valueOf: function() { + return "^" + } +}; if (encodeURI(object) !== "%5Bobject%20Object%5D") { $ERROR('#1: var object = {valueOf: function() {return "^"}}; encodeURI(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURI(object))); } //CHECK#2 -var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; +var object = { + valueOf: function() { + return "" + }, + toString: function() { + return "^" + } +}; if (encodeURI(object) !== "%5E") { $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#3 -var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "^" + }, + toString: function() { + return {} + } +}; if (encodeURI(object) !== "%5E") { $ERROR('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "^" + } + }; if (encodeURI(object) !== "%5E") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "^"}}; +var object = { + toString: function() { + return "^" + } +}; if (encodeURI(object) !== "%5E") { $ERROR('#5: var object = {toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "^"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "^" + } +} if (encodeURI(object) !== "%5E") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "^" + }, + toString: function() { + throw "error" + } + }; encodeURI(object); $ERROR('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURI(object) throw "error". Actual: ' + (encodeURI(object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; encodeURI(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURI(object) throw TypeError. Actual: ' + (encodeURI(object))); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js index 49b3f0d915fa72a38e965970160c7b008129a26a..1920d60ae316f38b69747349990756537e6a2efc 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js @@ -18,34 +18,34 @@ var count = 0; var indexP; var indexO = 0; -l : -for (var index = 0x0000; index <= 0x007F; index++) { - count++; - var str = String.fromCharCode(index); +l: + for (var index = 0x0000; index <= 0x007F; index++) { + count++; + var str = String.fromCharCode(index); for (var indexC = 0; indexC < uriUnescaped.length; indexC++) { - if (uriUnescaped[indexC] === str) continue l; - } - if (encodeURIComponent(str).toUpperCase() === decimalToPercentHexString(index)) continue l; + if (uriUnescaped[indexC] === str) continue l; + } + if (encodeURIComponent(str).toUpperCase() === decimalToPercentHexString(index)) continue l; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js index fa95eb034d17d44c7dd89a5267eba5dc02dbef0a..beb7a06df21e5dfb6a40883cb7e8fb3475926f65 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js @@ -17,32 +17,32 @@ var count = 0; var indexP; var indexO = 0; l: -for (var index = 0x0080; index <= 0x07FF; index++) { - count++; - var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F)); - var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040); - var str = String.fromCharCode(index); - if (encodeURIComponent(str).toUpperCase() === hex2 + hex1) continue; + for (var index = 0x0080; index <= 0x07FF; index++) { + count++; + var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F)); + var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040); + var str = String.fromCharCode(index); + if (encodeURIComponent(str).toUpperCase() === hex2 + hex1) continue; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js index 505232e05829b0f9208cd2e2bd7c8c787dad4bac..04fa7a5f2bec1e1651f37711ffb021e8152003c6 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js @@ -16,7 +16,7 @@ if (encodeURIComponent.propertyIsEnumerable('length') !== false) { //CHECK#2 var result = true; -for (var p in encodeURIComponent){ +for (var p in encodeURIComponent) { if (p === "length") { result = false; } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js index 94c2dc87a34f7e4c39080da69e8ba5893fe6e494..c00a36b94e7ac4b5f6496c5f393de0c491ec3983 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.5.js @@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('encodeURIComponent') !== false) { //CHECK#2 var result = true; -for (var p in this){ +for (var p in this) { if (p === "encodeURIComponent") { result = false; } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js index 2011de0a0ab2b7b92b23d84dffa01d7167965a68..3dca74696c63f8d09e67270806b22f6e6a850a37 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "^"}}; +var object = { + valueOf: function() { + return "^" + } +}; if (encodeURIComponent(object) !== "%5Bobject%20Object%5D") { $ERROR('#1: var object = {valueOf: function() {return "^"}}; encodeURIComponent(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURIComponent(object))); } //CHECK#2 -var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; +var object = { + valueOf: function() { + return "" + }, + toString: function() { + return "^" + } +}; if (encodeURIComponent(object) !== "%5E") { $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#3 -var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "^" + }, + toString: function() { + return {} + } +}; if (encodeURIComponent(object) !== "%5E") { $ERROR('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "^" + } + }; if (encodeURIComponent(object) !== "%5E") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "^"}}; +var object = { + toString: function() { + return "^" + } +}; if (encodeURIComponent(object) !== "%5E") { $ERROR('#5: var object = {toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "^"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "^" + } +} if (encodeURIComponent(object) !== "%5E") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "^" + }, + toString: function() { + throw "error" + } + }; encodeURIComponent(object); $ERROR('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURIComponent(object) throw "error". Actual: ' + (encodeURIComponent(object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; encodeURIComponent(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURIComponent(object) throw TypeError. Actual: ' + (encodeURIComponent(object))); } diff --git a/test/built-ins/eval/length-enumerable.js b/test/built-ins/eval/length-enumerable.js index 4cc4fb6a8fabbf9ef394c4f5aa8afd6d60e54729..97ac7252c47f1810349ec8fb5615cb1fe769bae1 100644 --- a/test/built-ins/eval/length-enumerable.js +++ b/test/built-ins/eval/length-enumerable.js @@ -16,7 +16,7 @@ if (eval.propertyIsEnumerable('length') !== false) { //CHECK#2 var result = true; -for (p in eval){ +for (p in eval) { if (p === "length") { result = false; } diff --git a/test/built-ins/eval/prop-desc-enumerable.js b/test/built-ins/eval/prop-desc-enumerable.js index 6e93567b37a0b799df4e61ca13b529b155f3781d..c1748605b02e2a3f3aa679d2581facb8f4f0b5bd 100644 --- a/test/built-ins/eval/prop-desc-enumerable.js +++ b/test/built-ins/eval/prop-desc-enumerable.js @@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('eval') !== false) { //CHECK#2 var result = true; -for (var p in this){ +for (var p in this) { if (p === "eval") { result = false; } diff --git a/test/built-ins/global/10.2.1.1.3-4-16-s.js b/test/built-ins/global/10.2.1.1.3-4-16-s.js index b5cf69ff5f391c5c5da3ec7f8b5902b537822ba3..0ef1eb17f68143441e8fee0714bf003426a70cf9 100644 --- a/test/built-ins/global/10.2.1.1.3-4-16-s.js +++ b/test/built-ins/global/10.2.1.1.3-4-16-s.js @@ -11,5 +11,5 @@ flags: [onlyStrict] assert.throws(TypeError, function() { - NaN = 12; + NaN = 12; }); diff --git a/test/built-ins/global/10.2.1.1.3-4-18-s.js b/test/built-ins/global/10.2.1.1.3-4-18-s.js index 6a3e87eaa0cb41631c504a11be1a7c53c548ed66..507e07e5febbdea8f2ae2989bbb27396a5d97cfd 100644 --- a/test/built-ins/global/10.2.1.1.3-4-18-s.js +++ b/test/built-ins/global/10.2.1.1.3-4-18-s.js @@ -11,5 +11,5 @@ flags: [onlyStrict] assert.throws(TypeError, function() { - undefined = 12; + undefined = 12; }); diff --git a/test/built-ins/global/10.2.1.1.3-4-22-s.js b/test/built-ins/global/10.2.1.1.3-4-22-s.js index bda9016fd3aac08451e0fe6dfafc902675e809ea..6bcae2396363c90f75a7c8b3ad01ab788d96773c 100644 --- a/test/built-ins/global/10.2.1.1.3-4-22-s.js +++ b/test/built-ins/global/10.2.1.1.3-4-22-s.js @@ -10,10 +10,10 @@ description: > flags: [onlyStrict] ---*/ - var objBak = Object; +var objBak = Object; - try { - Object = 12; - } finally { - Object = objBak; - } +try { + Object = 12; +} finally { + Object = objBak; +} diff --git a/test/built-ins/global/10.2.1.1.3-4-27-s.js b/test/built-ins/global/10.2.1.1.3-4-27-s.js index ec1bc94e7c12e2a92a6b57834be0c7db226c51c5..cb8f60ae480b3a63af6cab359054e4d4a0643392 100644 --- a/test/built-ins/global/10.2.1.1.3-4-27-s.js +++ b/test/built-ins/global/10.2.1.1.3-4-27-s.js @@ -10,9 +10,9 @@ description: > flags: [onlyStrict] ---*/ - var numBak = Number; - try { - Number = 12; - } finally { - Number = numBak; - } +var numBak = Number; +try { + Number = 12; +} finally { + Number = numBak; +} diff --git a/test/built-ins/global/S10.2.3_A1.1_T1.js b/test/built-ins/global/S10.2.3_A1.1_T1.js index 51359c334553076ff7feca3a6b78a8ace83e9bf4..44d2fc16ccff909297f7c48330e2c5cb2224b8fa 100644 --- a/test/built-ins/global/S10.2.3_A1.1_T1.js +++ b/test/built-ins/global/S10.2.3_A1.1_T1.js @@ -10,16 +10,16 @@ description: Global execution context - Value Properties ---*/ //CHECK#1 -if ( NaN === null ) { +if (NaN === null) { $ERROR("#1: NaN === null"); } //CHECK#2 -if ( Infinity === null ) { +if (Infinity === null) { $ERROR("#2: Infinity === null"); } //CHECK#3 -if ( undefined === null ) { +if (undefined === null) { $ERROR("#3: undefined === null"); } diff --git a/test/built-ins/global/S10.2.3_A1.1_T2.js b/test/built-ins/global/S10.2.3_A1.1_T2.js index 4e24b9d4667e84b7f429cdddf68e854f286614c8..2717f918eaeb0da5d29b1e2f8e88c1b6567bd41b 100644 --- a/test/built-ins/global/S10.2.3_A1.1_T2.js +++ b/test/built-ins/global/S10.2.3_A1.1_T2.js @@ -10,46 +10,46 @@ description: Global execution context - Function Properties ---*/ //CHECK#4 -if ( eval === null ) { +if (eval === null) { $ERROR("#4: eval === null"); } //CHECK#5 -if ( parseInt === null ) { +if (parseInt === null) { $ERROR("#5: parseInt === null"); } //CHECK#6 -if ( parseFloat === null ) { +if (parseFloat === null) { $ERROR("#6: parseFloat === null"); } //CHECK#7 -if ( isNaN === null ) { +if (isNaN === null) { $ERROR("#7: isNaN === null"); } //CHECK#8 -if ( isFinite === null ) { +if (isFinite === null) { $ERROR("#8: isFinite === null"); } //CHECK#9 -if ( decodeURI === null ) { +if (decodeURI === null) { $ERROR("#9: decodeURI === null"); } //CHECK#10 -if ( decodeURIComponent === null ) { +if (decodeURIComponent === null) { $ERROR("#10: decodeURIComponent === null"); } //CHECK#11 -if ( encodeURI === null ) { +if (encodeURI === null) { $ERROR("#11: encodeURI === null"); } //CHECK#12 -if ( encodeURIComponent === null ) { +if (encodeURIComponent === null) { $ERROR("#12: encodeURIComponent === null"); } diff --git a/test/built-ins/global/S10.2.3_A1.1_T3.js b/test/built-ins/global/S10.2.3_A1.1_T3.js index 0497a078cba2a6393772acfcfd63778ddbe6d957..16de4c0eb434937f3e583f2558c401421e2b94f4 100644 --- a/test/built-ins/global/S10.2.3_A1.1_T3.js +++ b/test/built-ins/global/S10.2.3_A1.1_T3.js @@ -10,76 +10,76 @@ description: Global execution context - Constructor Properties ---*/ //CHECK#13 -if ( Object === null ) { +if (Object === null) { $ERROR("#13: Object === null"); } //CHECK#14 -if ( Function === null ) { +if (Function === null) { $ERROR("#14: Function === null"); } //CHECK#15 -if ( String === null ) { +if (String === null) { $ERROR("#15: String === null"); } //CHECK#16 -if ( Number === null ) { +if (Number === null) { $ERROR("#16: Number === null"); } //CHECK#17 -if ( Array === null ) { +if (Array === null) { $ERROR("#17: Array === null"); } //CHECK#18 -if ( Boolean === null ) { +if (Boolean === null) { $ERROR("#20: Boolean === null"); } //CHECK#18 -if ( Date === null ) { +if (Date === null) { $ERROR("#18: Date === null"); } //CHECK#19 -if ( RegExp === null ) { +if (RegExp === null) { $ERROR("#19: RegExp === null"); } //CHECK#20 -if ( Error === null ) { +if (Error === null) { $ERROR("#20: Error === null"); } //CHECK#21 -if ( EvalError === null ) { +if (EvalError === null) { $ERROR("#21: EvalError === null"); } //CHECK#22 -if ( RangeError === null ) { +if (RangeError === null) { $ERROR("#22: RangeError === null"); } //CHECK#23 -if ( ReferenceError === null ) { +if (ReferenceError === null) { $ERROR("#23: ReferenceError === null"); } //CHECK#24 -if ( SyntaxError === null ) { +if (SyntaxError === null) { $ERROR("#24: SyntaxError === null"); } //CHECK#25 -if ( TypeError === null ) { +if (TypeError === null) { $ERROR("#25: TypeError === null"); } //CHECK#26 -if ( URIError === null ) { +if (URIError === null) { $ERROR("#26: URIError === null"); } diff --git a/test/built-ins/global/S10.2.3_A1.1_T4.js b/test/built-ins/global/S10.2.3_A1.1_T4.js index 5f8940512a7429968c593cf16ed2021c0ae62141..92f8258e1001c840f1a994cbcf2b7027907e4172 100644 --- a/test/built-ins/global/S10.2.3_A1.1_T4.js +++ b/test/built-ins/global/S10.2.3_A1.1_T4.js @@ -10,6 +10,6 @@ description: Global execution context - Other Properties ---*/ //CHECK#27 -if ( Math === null ) { +if (Math === null) { $ERROR("#27: Math === null"); } diff --git a/test/built-ins/global/S10.2.3_A1.2_T1.js b/test/built-ins/global/S10.2.3_A1.2_T1.js index 5652ac2d01401807187c3a3f8239f92587ed6528..6eac1483dae0abdea3352b00c04f789500335a16 100644 --- a/test/built-ins/global/S10.2.3_A1.2_T1.js +++ b/test/built-ins/global/S10.2.3_A1.2_T1.js @@ -11,17 +11,17 @@ description: Function execution context - Value Properties function test() { //CHECK#1 - if ( NaN === null ) { + if (NaN === null) { $ERROR("#1: NaN === null"); } //CHECK#2 - if ( Infinity === null ) { + if (Infinity === null) { $ERROR("#2: Infinity === null"); } //CHECK#3 - if ( undefined === null ) { + if (undefined === null) { $ERROR("#3: undefined === null"); } } diff --git a/test/built-ins/global/S10.2.3_A1.2_T2.js b/test/built-ins/global/S10.2.3_A1.2_T2.js index 690f44913307306078921c3442ebc32cb281faf9..758529a9244335d8d24a121e46db7539f532deee 100644 --- a/test/built-ins/global/S10.2.3_A1.2_T2.js +++ b/test/built-ins/global/S10.2.3_A1.2_T2.js @@ -11,47 +11,47 @@ description: Function execution context - Function Properties function test() { //CHECK#4 - if ( eval === null ) { + if (eval === null) { $ERROR("#4: eval === null"); } //CHECK#5 - if ( parseInt === null ) { + if (parseInt === null) { $ERROR("#5: parseInt === null"); } //CHECK#6 - if ( parseFloat === null ) { + if (parseFloat === null) { $ERROR("#6: parseFloat === null"); } //CHECK#7 - if ( isNaN === null ) { + if (isNaN === null) { $ERROR("#7: isNaN === null"); } //CHECK#8 - if ( isFinite === null ) { + if (isFinite === null) { $ERROR("#8: isFinite === null"); } //CHECK#9 - if ( decodeURI === null ) { + if (decodeURI === null) { $ERROR("#9: decodeURI === null"); } //CHECK#10 - if ( decodeURIComponent === null ) { + if (decodeURIComponent === null) { $ERROR("#10: decodeURIComponent === null"); } //CHECK#11 - if ( encodeURI === null ) { + if (encodeURI === null) { $ERROR("#11: encodeURI === null"); } //CHECK#12 - if ( encodeURIComponent === null ) { + if (encodeURIComponent === null) { $ERROR("#12: encodeURIComponent === null"); } } diff --git a/test/built-ins/global/S10.2.3_A1.2_T3.js b/test/built-ins/global/S10.2.3_A1.2_T3.js index 2d0c18861d495d968dcdb2b4dd9051f4dde9601e..4dce306c299a3fd2411d5f2e1bfe5dfcf82b416c 100644 --- a/test/built-ins/global/S10.2.3_A1.2_T3.js +++ b/test/built-ins/global/S10.2.3_A1.2_T3.js @@ -11,77 +11,77 @@ description: Function execution context - Constructor Properties function test() { //CHECK#13 - if ( Object === null ) { + if (Object === null) { $ERROR("#13: Object === null"); } //CHECK#14 - if ( Function === null ) { + if (Function === null) { $ERROR("#14: Function === null"); } //CHECK#15 - if ( String === null ) { + if (String === null) { $ERROR("#15: String === null"); } //CHECK#16 - if ( Number === null ) { + if (Number === null) { $ERROR("#16: Function === null"); } //CHECK#17 - if ( Array === null ) { + if (Array === null) { $ERROR("#17: Array === null"); } //CHECK#18 - if ( Boolean === null ) { + if (Boolean === null) { $ERROR("#20: Boolean === null"); } //CHECK#18 - if ( Date === null ) { + if (Date === null) { $ERROR("#18: Date === null"); } //CHECK#19 - if ( RegExp === null ) { + if (RegExp === null) { $ERROR("#19: RegExp === null"); } //CHECK#20 - if ( Error === null ) { + if (Error === null) { $ERROR("#20: Error === null"); } //CHECK#21 - if ( EvalError === null ) { + if (EvalError === null) { $ERROR("#21: EvalError === null"); } //CHECK#22 - if ( RangeError === null ) { + if (RangeError === null) { $ERROR("#22: RangeError === null"); } //CHECK#23 - if ( ReferenceError === null ) { + if (ReferenceError === null) { $ERROR("#23: ReferenceError === null"); } //CHECK#24 - if ( SyntaxError === null ) { + if (SyntaxError === null) { $ERROR("#24: SyntaxError === null"); } //CHECK#25 - if ( TypeError === null ) { + if (TypeError === null) { $ERROR("#25: TypeError === null"); } //CHECK#26 - if ( URIError === null ) { + if (URIError === null) { $ERROR("#26: URIError === null"); } } diff --git a/test/built-ins/global/S10.2.3_A1.2_T4.js b/test/built-ins/global/S10.2.3_A1.2_T4.js index 6ee2522bfa1ad773297b610e9d7cd2bafbcc9b6a..3abffff7cc2d392325b5eb856923d178bfad6a64 100644 --- a/test/built-ins/global/S10.2.3_A1.2_T4.js +++ b/test/built-ins/global/S10.2.3_A1.2_T4.js @@ -11,7 +11,7 @@ description: Function execution context - Other Properties function test() { //CHECK#27 - if ( Math === null ) { + if (Math === null) { $ERROR("#27: Math === null"); } } diff --git a/test/built-ins/global/S10.2.3_A1.3_T1.js b/test/built-ins/global/S10.2.3_A1.3_T1.js index 27c8da5ccf393890decb866148331a3682677e7a..366759ceb2cf58a8cb68a58af2688fd3a954e2d3 100644 --- a/test/built-ins/global/S10.2.3_A1.3_T1.js +++ b/test/built-ins/global/S10.2.3_A1.3_T1.js @@ -9,21 +9,21 @@ es5id: 10.2.3_A1.3_T1 description: Eval execution context - Value Properties ---*/ -var evalStr = -'//CHECK#1\n'+ -'if ( NaN === null ) {\n'+ -' $ERROR("#1: NaN === null");\n'+ -'}\n'+ +var evalStr = + '//CHECK#1\n' + + 'if ( NaN === null ) {\n' + + ' $ERROR("#1: NaN === null");\n' + + '}\n' + -'//CHECK#2\n'+ -'if ( Infinity === null ) {\n'+ -' $ERROR("#2: Infinity === null");\n'+ -'}\n'+ + '//CHECK#2\n' + + 'if ( Infinity === null ) {\n' + + ' $ERROR("#2: Infinity === null");\n' + + '}\n' + -'//CHECK#3\n'+ -'if ( undefined === null ) {\n'+ -' $ERROR("#3: undefined === null");\n'+ -'}\n'+ -';\n'; + '//CHECK#3\n' + + 'if ( undefined === null ) {\n' + + ' $ERROR("#3: undefined === null");\n' + + '}\n' + + ';\n'; eval(evalStr); diff --git a/test/built-ins/global/S10.2.3_A1.3_T2.js b/test/built-ins/global/S10.2.3_A1.3_T2.js index 80f2386ebaacbe12a6efbf00ae514d2a18f8d52a..2fbeaf9c0d938a58b2e325eba986cad615b593fd 100644 --- a/test/built-ins/global/S10.2.3_A1.3_T2.js +++ b/test/built-ins/global/S10.2.3_A1.3_T2.js @@ -9,51 +9,51 @@ es5id: 10.2.3_A1.3_T2 description: Eval execution context - Function Properties ---*/ -var evalStr = -'//CHECK#4\n'+ -'if ( eval === null ) {\n'+ -' $ERROR("#4: eval === null");\n'+ -'}\n'+ - -'//CHECK#5\n'+ -'if ( parseInt === null ) {\n'+ -' $ERROR("#5: parseInt === null");\n'+ -'}\n'+ - -'//CHECK#6\n'+ -'if ( parseFloat === null ) {\n'+ -' $ERROR("#6: parseFloat === null");\n'+ -'}\n'+ - -'//CHECK#7\n'+ -'if ( isNaN === null ) {\n'+ -' $ERROR("#7: isNaN === null");\n'+ -'}\n'+ - -'//CHECK#8\n'+ -'if ( isFinite === null ) {\n'+ -' $ERROR("#8: isFinite === null");\n'+ -'}\n'+ - -'//CHECK#9\n'+ -'if ( decodeURI === null ) {\n'+ -' $ERROR("#9: decodeURI === null");\n'+ -'}\n'+ - -'//CHECK#10\n'+ -'if ( decodeURIComponent === null ) {\n'+ -' $ERROR("#10: decodeURIComponent === null");\n'+ -'}\n'+ - -'//CHECK#11\n'+ -'if ( encodeURI === null ) {\n'+ -' $ERROR("#11: encodeURI === null");\n'+ -'}\n'+ - -'//CHECK#12\n'+ -'if ( encodeURIComponent === null ) {\n'+ -' $ERROR("#12: encodeURIComponent === null");\n'+ -'}\n'+ -';\n'; +var evalStr = + '//CHECK#4\n' + + 'if ( eval === null ) {\n' + + ' $ERROR("#4: eval === null");\n' + + '}\n' + + + '//CHECK#5\n' + + 'if ( parseInt === null ) {\n' + + ' $ERROR("#5: parseInt === null");\n' + + '}\n' + + + '//CHECK#6\n' + + 'if ( parseFloat === null ) {\n' + + ' $ERROR("#6: parseFloat === null");\n' + + '}\n' + + + '//CHECK#7\n' + + 'if ( isNaN === null ) {\n' + + ' $ERROR("#7: isNaN === null");\n' + + '}\n' + + + '//CHECK#8\n' + + 'if ( isFinite === null ) {\n' + + ' $ERROR("#8: isFinite === null");\n' + + '}\n' + + + '//CHECK#9\n' + + 'if ( decodeURI === null ) {\n' + + ' $ERROR("#9: decodeURI === null");\n' + + '}\n' + + + '//CHECK#10\n' + + 'if ( decodeURIComponent === null ) {\n' + + ' $ERROR("#10: decodeURIComponent === null");\n' + + '}\n' + + + '//CHECK#11\n' + + 'if ( encodeURI === null ) {\n' + + ' $ERROR("#11: encodeURI === null");\n' + + '}\n' + + + '//CHECK#12\n' + + 'if ( encodeURIComponent === null ) {\n' + + ' $ERROR("#12: encodeURIComponent === null");\n' + + '}\n' + + ';\n'; eval(evalStr); diff --git a/test/built-ins/global/S10.2.3_A1.3_T3.js b/test/built-ins/global/S10.2.3_A1.3_T3.js index f52c65f62fbf4242f172f9206f9832265d7cb7d9..b5fdc2cb232658b96e45a7d7ee8282648eeae795 100644 --- a/test/built-ins/global/S10.2.3_A1.3_T3.js +++ b/test/built-ins/global/S10.2.3_A1.3_T3.js @@ -9,81 +9,81 @@ es5id: 10.2.3_A1.3_T3 description: Eval execution context - Constructor Properties ---*/ -var evalStr = -'//CHECK#13\n'+ -'if ( Object === null ) {\n'+ -' $ERROR("#13: Object === null");\n'+ -'}\n'+ - -'//CHECK#14\n'+ -'if ( Function === null ) {\n'+ -' $ERROR("#14: Function === null");\n'+ -'}\n'+ - -'//CHECK#15\n'+ -'if ( String === null ) {\n'+ -' $ERROR("#15: String === null");\n'+ -'}\n'+ - -'//CHECK#16\n'+ -'if ( Number === null ) {\n'+ -' $ERROR("#16: Function === null");\n'+ -'}\n'+ - -'//CHECK#17\n'+ -'if ( Array === null ) {\n'+ -' $ERROR("#17: Array === null");\n'+ -'}\n'+ - -'//CHECK#18\n'+ -'if ( Boolean === null ) {\n'+ -' $ERROR("#20: Boolean === null");\n'+ -'}\n'+ - -'//CHECK#18\n'+ -'if ( Date === null ) {\n'+ -' $ERROR("#18: Date === null");\n'+ -'}\n'+ - -'//CHECK#19\n'+ -'if ( RegExp === null ) {\n'+ -' $ERROR("#19: RegExp === null");\n'+ -'}\n'+ - -'//CHECK#20\n'+ -'if ( Error === null ) {\n'+ -' $ERROR("#20: Error === null");\n'+ -'}\n'+ - -'//CHECK#21\n'+ -'if ( EvalError === null ) {\n'+ -' $ERROR("#21: EvalError === null");\n'+ -'}\n'+ - -'//CHECK#22\n'+ -'if ( RangeError === null ) {\n'+ -' $ERROR("#22: RangeError === null");\n'+ -'}\n'+ - -'//CHECK#23\n'+ -'if ( ReferenceError === null ) {\n'+ -' $ERROR("#23: ReferenceError === null");\n'+ -'}\n'+ - -'//CHECK#24\n'+ -'if ( SyntaxError === null ) {\n'+ -' $ERROR("#24: SyntaxError === null");\n'+ -'}\n'+ - -'//CHECK#25\n'+ -'if ( TypeError === null ) {\n'+ -' $ERROR("#25: TypeError === null");\n'+ -'}\n'+ - -'//CHECK#26\n'+ -'if ( URIError === null ) {\n'+ -' $ERROR("#26: URIError === null");\n'+ -'}\n'+ -';\n'; +var evalStr = + '//CHECK#13\n' + + 'if ( Object === null ) {\n' + + ' $ERROR("#13: Object === null");\n' + + '}\n' + + + '//CHECK#14\n' + + 'if ( Function === null ) {\n' + + ' $ERROR("#14: Function === null");\n' + + '}\n' + + + '//CHECK#15\n' + + 'if ( String === null ) {\n' + + ' $ERROR("#15: String === null");\n' + + '}\n' + + + '//CHECK#16\n' + + 'if ( Number === null ) {\n' + + ' $ERROR("#16: Function === null");\n' + + '}\n' + + + '//CHECK#17\n' + + 'if ( Array === null ) {\n' + + ' $ERROR("#17: Array === null");\n' + + '}\n' + + + '//CHECK#18\n' + + 'if ( Boolean === null ) {\n' + + ' $ERROR("#20: Boolean === null");\n' + + '}\n' + + + '//CHECK#18\n' + + 'if ( Date === null ) {\n' + + ' $ERROR("#18: Date === null");\n' + + '}\n' + + + '//CHECK#19\n' + + 'if ( RegExp === null ) {\n' + + ' $ERROR("#19: RegExp === null");\n' + + '}\n' + + + '//CHECK#20\n' + + 'if ( Error === null ) {\n' + + ' $ERROR("#20: Error === null");\n' + + '}\n' + + + '//CHECK#21\n' + + 'if ( EvalError === null ) {\n' + + ' $ERROR("#21: EvalError === null");\n' + + '}\n' + + + '//CHECK#22\n' + + 'if ( RangeError === null ) {\n' + + ' $ERROR("#22: RangeError === null");\n' + + '}\n' + + + '//CHECK#23\n' + + 'if ( ReferenceError === null ) {\n' + + ' $ERROR("#23: ReferenceError === null");\n' + + '}\n' + + + '//CHECK#24\n' + + 'if ( SyntaxError === null ) {\n' + + ' $ERROR("#24: SyntaxError === null");\n' + + '}\n' + + + '//CHECK#25\n' + + 'if ( TypeError === null ) {\n' + + ' $ERROR("#25: TypeError === null");\n' + + '}\n' + + + '//CHECK#26\n' + + 'if ( URIError === null ) {\n' + + ' $ERROR("#26: URIError === null");\n' + + '}\n' + + ';\n'; eval(evalStr); diff --git a/test/built-ins/global/S10.2.3_A1.3_T4.js b/test/built-ins/global/S10.2.3_A1.3_T4.js index bdfb2dcfdf5422093323f7a85ce7e1267a3558ea..9dc8843d550d61e36a815219b3836a7991b6c0d7 100644 --- a/test/built-ins/global/S10.2.3_A1.3_T4.js +++ b/test/built-ins/global/S10.2.3_A1.3_T4.js @@ -9,11 +9,11 @@ es5id: 10.2.3_A1.3_T4 description: Eval execution context - Other Properties ---*/ -var evalStr = -'//CHECK#27\n'+ -'if ( Math === null ) {\n'+ -' $ERROR("#27: Math === null");\n'+ -'}\n'+ -';\n'; +var evalStr = + '//CHECK#27\n' + + 'if ( Math === null ) {\n' + + ' $ERROR("#27: Math === null");\n' + + '}\n' + + ';\n'; eval(evalStr); diff --git a/test/built-ins/global/S10.2.3_A2.1_T1.js b/test/built-ins/global/S10.2.3_A2.1_T1.js index 195ca44b732f0a3e1186c1596146159afc87e7ee..ccde02b7f536161f9d06d669d83393605d92dc44 100644 --- a/test/built-ins/global/S10.2.3_A2.1_T1.js +++ b/test/built-ins/global/S10.2.3_A2.1_T1.js @@ -9,11 +9,11 @@ description: Global execution context - Value Properties //CHECK#1 for (var x in this) { - if ( x === 'NaN' ) { + if (x === 'NaN') { $ERROR("#1: 'NaN' have attribute DontEnum"); - } else if ( x === 'Infinity' ) { + } else if (x === 'Infinity') { $ERROR("#1: 'Infinity' have attribute DontEnum"); - } else if ( x === 'undefined' ) { + } else if (x === 'undefined') { $ERROR("#1: 'undefined' have attribute DontEnum"); - } + } } diff --git a/test/built-ins/global/S10.2.3_A2.1_T2.js b/test/built-ins/global/S10.2.3_A2.1_T2.js index c2d4f98a479cfafb6448013cb4f7d9ade81d13ba..07c20cb746991117c0e9c6667eecb2c18fc709d5 100644 --- a/test/built-ins/global/S10.2.3_A2.1_T2.js +++ b/test/built-ins/global/S10.2.3_A2.1_T2.js @@ -9,23 +9,23 @@ description: Global execution context - Function Properties //CHECK#1 for (var x in this) { - if ( x === 'eval' ) { + if (x === 'eval') { $ERROR("#1: 'eval' have attribute DontEnum"); - } else if ( x === 'parseInt' ) { + } else if (x === 'parseInt') { $ERROR("#1: 'parseInt' have attribute DontEnum"); - } else if ( x === 'parseFloat' ) { + } else if (x === 'parseFloat') { $ERROR("#1: 'parseFloat' have attribute DontEnum"); - } else if ( x === 'isNaN' ) { + } else if (x === 'isNaN') { $ERROR("#1: 'isNaN' have attribute DontEnum"); - } else if ( x === 'isFinite' ) { + } else if (x === 'isFinite') { $ERROR("#1: 'isFinite' have attribute DontEnum"); - } else if ( x === 'decodeURI' ) { + } else if (x === 'decodeURI') { $ERROR("#1: 'decodeURI' have attribute DontEnum"); - } else if ( x === 'decodeURIComponent' ) { + } else if (x === 'decodeURIComponent') { $ERROR("#1: 'decodeURIComponent' have attribute DontEnum"); - } else if ( x === 'encodeURI' ) { + } else if (x === 'encodeURI') { $ERROR("#1: 'encodeURI' have attribute DontEnum"); - } else if ( x === 'encodeURIComponent' ) { + } else if (x === 'encodeURIComponent') { $ERROR("#1: 'encodeURIComponent' have attribute DontEnum"); - } + } } diff --git a/test/built-ins/global/S10.2.3_A2.1_T3.js b/test/built-ins/global/S10.2.3_A2.1_T3.js index d011b2a39e411c259816af70b2382bca9bf1fa73..9cc1fa88f0970459ce2cedfafbffa2a34990cef4 100644 --- a/test/built-ins/global/S10.2.3_A2.1_T3.js +++ b/test/built-ins/global/S10.2.3_A2.1_T3.js @@ -9,35 +9,35 @@ description: Global execution context - Constructor Properties //CHECK#1 for (var x in this) { - if ( x === 'Object' ) { + if (x === 'Object') { $ERROR("#1: 'property 'Object' have attribute DontEnum"); - } else if ( x === 'Function') { + } else if (x === 'Function') { $ERROR("#1: 'Function' have attribute DontEnum"); - } else if ( x === 'String' ) { + } else if (x === 'String') { $ERROR("#1: 'String' have attribute DontEnum"); - } else if ( x === 'Number' ) { + } else if (x === 'Number') { $ERROR("#1: 'Number' have attribute DontEnum"); - } else if ( x === 'Array' ) { + } else if (x === 'Array') { $ERROR("#1: 'Array' have attribute DontEnum"); - } else if ( x === 'Boolean' ) { + } else if (x === 'Boolean') { $ERROR("#1: 'Boolean' have attribute DontEnum"); - } else if ( x === 'Date' ) { + } else if (x === 'Date') { $ERROR("#1: 'Date' have attribute DontEnum"); - } else if ( x === 'RegExp' ) { + } else if (x === 'RegExp') { $ERROR("#1: 'RegExp' have attribute DontEnum"); - } else if ( x === 'Error' ) { + } else if (x === 'Error') { $ERROR("#1: 'Error' have attribute DontEnum"); - } else if ( x === 'EvalError' ) { + } else if (x === 'EvalError') { $ERROR("#1: 'EvalError' have attribute DontEnum"); - } else if ( x === 'RangeError' ) { + } else if (x === 'RangeError') { $ERROR("#1: 'RangeError' have attribute DontEnum"); - } else if ( x === 'ReferenceError' ) { + } else if (x === 'ReferenceError') { $ERROR("#1: 'ReferenceError' have attribute DontEnum"); - } else if ( x === 'SyntaxError' ) { + } else if (x === 'SyntaxError') { $ERROR("#1: 'SyntaxError' have attribute DontEnum"); - } else if ( x === 'TypeError' ) { + } else if (x === 'TypeError') { $ERROR("#1: 'TypeError' have attribute DontEnum"); - } else if ( x === 'URIError' ) { + } else if (x === 'URIError') { $ERROR("#1: 'URIError' have attribute DontEnum"); } } diff --git a/test/built-ins/global/S10.2.3_A2.1_T4.js b/test/built-ins/global/S10.2.3_A2.1_T4.js index 9dbb49b355e7be33354dc379a0f41a1aa12cdc15..e14c7b11104a49417d57f267dd0f3024e840e7d9 100644 --- a/test/built-ins/global/S10.2.3_A2.1_T4.js +++ b/test/built-ins/global/S10.2.3_A2.1_T4.js @@ -9,7 +9,7 @@ description: Global execution context - Other Properties //CHECK#1 for (var x in this) { - if ( x === 'Math' ) { + if (x === 'Math') { $ERROR("#1: 'Math' have attribute DontEnum"); } } diff --git a/test/built-ins/global/S10.2.3_A2.2_T1.js b/test/built-ins/global/S10.2.3_A2.2_T1.js index 7de8a86ae74840df791ba3f32a979f8e52da2c9f..427a4bcf5f5f22b305bcad12bd610af5d85205a8 100644 --- a/test/built-ins/global/S10.2.3_A2.2_T1.js +++ b/test/built-ins/global/S10.2.3_A2.2_T1.js @@ -11,13 +11,13 @@ flags: [noStrict] function test() { //CHECK#1 for (var x in this) { - if ( x === 'NaN' ) { + if (x === 'NaN') { $ERROR("#1: 'NaN' have attribute DontEnum"); - } else if ( x === 'Infinity' ) { + } else if (x === 'Infinity') { $ERROR("#1: 'Infinity' have attribute DontEnum"); - } else if ( x === 'undefined' ) { + } else if (x === 'undefined') { $ERROR("#1: 'undefined' have attribute DontEnum"); - } + } } } diff --git a/test/built-ins/global/S10.2.3_A2.2_T2.js b/test/built-ins/global/S10.2.3_A2.2_T2.js index ee07c73597304d85455aef8014e3b0eb04472c95..1a7ca586288703d5fdc21bbfbb65c27f99a91aa2 100644 --- a/test/built-ins/global/S10.2.3_A2.2_T2.js +++ b/test/built-ins/global/S10.2.3_A2.2_T2.js @@ -11,25 +11,25 @@ flags: [noStrict] function test() { //CHECK#1 for (var x in this) { - if ( x === 'eval' ) { + if (x === 'eval') { $ERROR("#1: 'eval' have attribute DontEnum"); - } else if ( x === 'parseInt' ) { + } else if (x === 'parseInt') { $ERROR("#1: 'parseInt' have attribute DontEnum"); - } else if ( x === 'parseFloat' ) { + } else if (x === 'parseFloat') { $ERROR("#1: 'parseFloat' have attribute DontEnum"); - } else if ( x === 'isNaN' ) { + } else if (x === 'isNaN') { $ERROR("#1: 'isNaN' have attribute DontEnum"); - } else if ( x === 'isFinite' ) { + } else if (x === 'isFinite') { $ERROR("#1: 'isFinite' have attribute DontEnum"); - } else if ( x === 'decodeURI' ) { + } else if (x === 'decodeURI') { $ERROR("#1: 'decodeURI' have attribute DontEnum"); - } else if ( x === 'decodeURIComponent' ) { + } else if (x === 'decodeURIComponent') { $ERROR("#1: 'decodeURIComponent' have attribute DontEnum"); - } else if ( x === 'encodeURI' ) { + } else if (x === 'encodeURI') { $ERROR("#1: 'encodeURI' have attribute DontEnum"); - } else if ( x === 'encodeURIComponent' ) { + } else if (x === 'encodeURIComponent') { $ERROR("#1: 'encodeURIComponent' have attribute DontEnum"); - } + } } } diff --git a/test/built-ins/global/S10.2.3_A2.2_T3.js b/test/built-ins/global/S10.2.3_A2.2_T3.js index ec0482d2ac5dcad59bf69ec775cffb83e06cc784..ee17f77c4dc4707236fc5b3bd8734f3d2289ce06 100644 --- a/test/built-ins/global/S10.2.3_A2.2_T3.js +++ b/test/built-ins/global/S10.2.3_A2.2_T3.js @@ -11,37 +11,37 @@ flags: [noStrict] function test() { //CHECK#1 for (var x in this) { - if ( x === 'Object' ) { + if (x === 'Object') { $ERROR("#1: 'property 'Object' have attribute DontEnum"); - } else if ( x === 'Function') { + } else if (x === 'Function') { $ERROR("#1: 'Function' have attribute DontEnum"); - } else if ( x === 'String' ) { + } else if (x === 'String') { $ERROR("#1: 'String' have attribute DontEnum"); - } else if ( x === 'Number' ) { + } else if (x === 'Number') { $ERROR("#1: 'Number' have attribute DontEnum"); - } else if ( x === 'Array' ) { + } else if (x === 'Array') { $ERROR("#1: 'Array' have attribute DontEnum"); - } else if ( x === 'Boolean' ) { + } else if (x === 'Boolean') { $ERROR("#1: 'Boolean' have attribute DontEnum"); - } else if ( x === 'Date' ) { + } else if (x === 'Date') { $ERROR("#1: 'Date' have attribute DontEnum"); - } else if ( x === 'RegExp' ) { + } else if (x === 'RegExp') { $ERROR("#1: 'RegExp' have attribute DontEnum"); - } else if ( x === 'Error' ) { + } else if (x === 'Error') { $ERROR("#1: 'Error' have attribute DontEnum"); - } else if ( x === 'EvalError' ) { + } else if (x === 'EvalError') { $ERROR("#1: 'EvalError' have attribute DontEnum"); - } else if ( x === 'RangeError' ) { + } else if (x === 'RangeError') { $ERROR("#1: 'RangeError' have attribute DontEnum"); - } else if ( x === 'ReferenceError' ) { + } else if (x === 'ReferenceError') { $ERROR("#1: 'ReferenceError' have attribute DontEnum"); - } else if ( x === 'SyntaxError' ) { + } else if (x === 'SyntaxError') { $ERROR("#1: 'SyntaxError' have attribute DontEnum"); - } else if ( x === 'TypeError' ) { + } else if (x === 'TypeError') { $ERROR("#1: 'TypeError' have attribute DontEnum"); - } else if ( x === 'URIError' ) { + } else if (x === 'URIError') { $ERROR("#1: 'URIError' have attribute DontEnum"); - } + } } } diff --git a/test/built-ins/global/S10.2.3_A2.2_T4.js b/test/built-ins/global/S10.2.3_A2.2_T4.js index 4a3c5517f603c85228630ceae732ef271581f8c9..4c61acec8c11d33eb23ae44f42fc3cf39a1f5456 100644 --- a/test/built-ins/global/S10.2.3_A2.2_T4.js +++ b/test/built-ins/global/S10.2.3_A2.2_T4.js @@ -11,7 +11,7 @@ flags: [noStrict] function test() { //CHECK#1 for (var x in this) { - if ( x === 'Math' ) { + if (x === 'Math') { $ERROR("#1: 'Math' have attribute DontEnum"); } } diff --git a/test/built-ins/global/S10.2.3_A2.3_T1.js b/test/built-ins/global/S10.2.3_A2.3_T1.js index 1bdf921796c6b46001f08ef7a87b99adae8bcae3..aa5078240366f4a9f2483e4a4726d54d5b026025 100644 --- a/test/built-ins/global/S10.2.3_A2.3_T1.js +++ b/test/built-ins/global/S10.2.3_A2.3_T1.js @@ -7,16 +7,16 @@ es5id: 10.2.3_A2.3_T1 description: Global execution context - Value Properties ---*/ -var evalStr = -'//CHECK#1\n'+ -'for (var x in this) {\n'+ -' if ( x === \'NaN\' ) {\n'+ -' $ERROR("#1: \'NaN\' have attribute DontEnum");\n'+ -' } else if ( x === \'Infinity\' ) {\n'+ -' $ERROR("#1: \'Infinity\' have attribute DontEnum");\n'+ -' } else if ( x === \'undefined\' ) {\n'+ -' $ERROR("#1: \'undefined\' have attribute DontEnum");\n'+ -' }\n'+ -'}\n'; +var evalStr = + '//CHECK#1\n' + + 'for (var x in this) {\n' + + ' if ( x === \'NaN\' ) {\n' + + ' $ERROR("#1: \'NaN\' have attribute DontEnum");\n' + + ' } else if ( x === \'Infinity\' ) {\n' + + ' $ERROR("#1: \'Infinity\' have attribute DontEnum");\n' + + ' } else if ( x === \'undefined\' ) {\n' + + ' $ERROR("#1: \'undefined\' have attribute DontEnum");\n' + + ' }\n' + + '}\n'; eval(evalStr); diff --git a/test/built-ins/global/S10.2.3_A2.3_T2.js b/test/built-ins/global/S10.2.3_A2.3_T2.js index 27681889732e79dda02fd0282e838fbe9d3ca51f..dd52eb829857c593f3d25015bbad3d9e6c8b29a1 100644 --- a/test/built-ins/global/S10.2.3_A2.3_T2.js +++ b/test/built-ins/global/S10.2.3_A2.3_T2.js @@ -7,28 +7,28 @@ es5id: 10.2.3_A2.3_T2 description: Global execution context - Function Properties ---*/ -var evalStr = -'//CHECK#1\n'+ -'for (var x in this) {\n'+ -' if ( x === \'eval\' ) {\n'+ -' $ERROR("#1: \'eval\' have attribute DontEnum");\n'+ -' } else if ( x === \'parseInt\' ) {\n'+ -' $ERROR("#1: \'parseInt\' have attribute DontEnum");\n'+ -' } else if ( x === \'parseFloat\' ) {\n'+ -' $ERROR("#1: \'parseFloat\' have attribute DontEnum");\n'+ -' } else if ( x === \'isNaN\' ) {\n'+ -' $ERROR("#1: \'isNaN\' have attribute DontEnum");\n'+ -' } else if ( x === \'isFinite\' ) {\n'+ -' $ERROR("#1: \'isFinite\' have attribute DontEnum");\n'+ -' } else if ( x === \'decodeURI\' ) {\n'+ -' $ERROR("#1: \'decodeURI\' have attribute DontEnum");\n'+ -' } else if ( x === \'decodeURIComponent\' ) {\n'+ -' $ERROR("#1: \'decodeURIComponent\' have attribute DontEnum");\n'+ -' } else if ( x === \'encodeURI\' ) {\n'+ -' $ERROR("#1: \'encodeURI\' have attribute DontEnum");\n'+ -' } else if ( x === \'encodeURIComponent\' ) {\n'+ -' $ERROR("#1: \'encodeURIComponent\' have attribute DontEnum");\n'+ -' }\n'+ -'}\n'; +var evalStr = + '//CHECK#1\n' + + 'for (var x in this) {\n' + + ' if ( x === \'eval\' ) {\n' + + ' $ERROR("#1: \'eval\' have attribute DontEnum");\n' + + ' } else if ( x === \'parseInt\' ) {\n' + + ' $ERROR("#1: \'parseInt\' have attribute DontEnum");\n' + + ' } else if ( x === \'parseFloat\' ) {\n' + + ' $ERROR("#1: \'parseFloat\' have attribute DontEnum");\n' + + ' } else if ( x === \'isNaN\' ) {\n' + + ' $ERROR("#1: \'isNaN\' have attribute DontEnum");\n' + + ' } else if ( x === \'isFinite\' ) {\n' + + ' $ERROR("#1: \'isFinite\' have attribute DontEnum");\n' + + ' } else if ( x === \'decodeURI\' ) {\n' + + ' $ERROR("#1: \'decodeURI\' have attribute DontEnum");\n' + + ' } else if ( x === \'decodeURIComponent\' ) {\n' + + ' $ERROR("#1: \'decodeURIComponent\' have attribute DontEnum");\n' + + ' } else if ( x === \'encodeURI\' ) {\n' + + ' $ERROR("#1: \'encodeURI\' have attribute DontEnum");\n' + + ' } else if ( x === \'encodeURIComponent\' ) {\n' + + ' $ERROR("#1: \'encodeURIComponent\' have attribute DontEnum");\n' + + ' }\n' + + '}\n'; eval(evalStr); diff --git a/test/built-ins/global/S10.2.3_A2.3_T3.js b/test/built-ins/global/S10.2.3_A2.3_T3.js index ecbbd49c570bd3750d872ead3a8dc9cb42eb8b92..4aa1326a2fb5e32df8ccc631f0f570cd0633b3e3 100644 --- a/test/built-ins/global/S10.2.3_A2.3_T3.js +++ b/test/built-ins/global/S10.2.3_A2.3_T3.js @@ -7,40 +7,40 @@ es5id: 10.2.3_A2.3_T3 description: Global execution context - Constructor Properties ---*/ -var evalStr = -'//CHECK#1\n'+ -'for (var x in this) {\n'+ -' if ( x === \'Object\' ) {\n'+ -' $ERROR("#1: \'Object\' have attribute DontEnum");\n'+ -' } else if ( x === \'Function\') {\n'+ -' $ERROR("#1: \'Function\' have attribute DontEnum");\n'+ -' } else if ( x === \'String\' ) {\n'+ -' $ERROR("#1: \'String\' have attribute DontEnum");\n'+ -' } else if ( x === \'Number\' ) {\n'+ -' $ERROR("#1: \'Number\' have attribute DontEnum");\n'+ -' } else if ( x === \'Array\' ) {\n'+ -' $ERROR("#1: \'Array\' have attribute DontEnum");\n'+ -' } else if ( x === \'Boolean\' ) {\n'+ -' $ERROR("#1: \'Boolean\' have attribute DontEnum");\n'+ -' } else if ( x === \'Date\' ) {\n'+ -' $ERROR("#1: \'Date\' have attribute DontEnum");\n'+ -' } else if ( x === \'RegExp\' ) {\n'+ -' $ERROR("#1: \'RegExp\' have attribute DontEnum");\n'+ -' } else if ( x === \'Error\' ) {\n'+ -' $ERROR("#1: \'Error\' have attribute DontEnum");\n'+ -' } else if ( x === \'EvalError\' ) {\n'+ -' $ERROR("#1: \'EvalError\' have attribute DontEnum");\n'+ -' } else if ( x === \'RangeError\' ) {\n'+ -' $ERROR("#1: \'RangeError\' have attribute DontEnum");\n'+ -' } else if ( x === \'ReferenceError\' ) {\n'+ -' $ERROR("#1: \'ReferenceError\' have attribute DontEnum");\n'+ -' } else if ( x === \'SyntaxError\' ) {\n'+ -' $ERROR("#1: \'SyntaxError\' have attribute DontEnum");\n'+ -' } else if ( x === \'TypeError\' ) {\n'+ -' $ERROR("#1: \'TypeError\' have attribute DontEnum");\n'+ -' } else if ( x === \'URIError\' ) {\n'+ -' $ERROR("#1: \'URIError\' have attribute DontEnum");\n'+ -' }\n'+ -'}\n'; +var evalStr = + '//CHECK#1\n' + + 'for (var x in this) {\n' + + ' if ( x === \'Object\' ) {\n' + + ' $ERROR("#1: \'Object\' have attribute DontEnum");\n' + + ' } else if ( x === \'Function\') {\n' + + ' $ERROR("#1: \'Function\' have attribute DontEnum");\n' + + ' } else if ( x === \'String\' ) {\n' + + ' $ERROR("#1: \'String\' have attribute DontEnum");\n' + + ' } else if ( x === \'Number\' ) {\n' + + ' $ERROR("#1: \'Number\' have attribute DontEnum");\n' + + ' } else if ( x === \'Array\' ) {\n' + + ' $ERROR("#1: \'Array\' have attribute DontEnum");\n' + + ' } else if ( x === \'Boolean\' ) {\n' + + ' $ERROR("#1: \'Boolean\' have attribute DontEnum");\n' + + ' } else if ( x === \'Date\' ) {\n' + + ' $ERROR("#1: \'Date\' have attribute DontEnum");\n' + + ' } else if ( x === \'RegExp\' ) {\n' + + ' $ERROR("#1: \'RegExp\' have attribute DontEnum");\n' + + ' } else if ( x === \'Error\' ) {\n' + + ' $ERROR("#1: \'Error\' have attribute DontEnum");\n' + + ' } else if ( x === \'EvalError\' ) {\n' + + ' $ERROR("#1: \'EvalError\' have attribute DontEnum");\n' + + ' } else if ( x === \'RangeError\' ) {\n' + + ' $ERROR("#1: \'RangeError\' have attribute DontEnum");\n' + + ' } else if ( x === \'ReferenceError\' ) {\n' + + ' $ERROR("#1: \'ReferenceError\' have attribute DontEnum");\n' + + ' } else if ( x === \'SyntaxError\' ) {\n' + + ' $ERROR("#1: \'SyntaxError\' have attribute DontEnum");\n' + + ' } else if ( x === \'TypeError\' ) {\n' + + ' $ERROR("#1: \'TypeError\' have attribute DontEnum");\n' + + ' } else if ( x === \'URIError\' ) {\n' + + ' $ERROR("#1: \'URIError\' have attribute DontEnum");\n' + + ' }\n' + + '}\n'; eval(evalStr); diff --git a/test/built-ins/global/S10.2.3_A2.3_T4.js b/test/built-ins/global/S10.2.3_A2.3_T4.js index 6bb61a7ef9145e61d1b32bb1863c3a18d57f99d4..68a3dfbf96363b4ee120243c22b7490aed0af51f 100644 --- a/test/built-ins/global/S10.2.3_A2.3_T4.js +++ b/test/built-ins/global/S10.2.3_A2.3_T4.js @@ -7,12 +7,12 @@ es5id: 10.2.3_A2.3_T4 description: Global execution context - Other Properties ---*/ -var evalStr = -'//CHECK#1\n'+ -'for (var x in this) {\n'+ -' if ( x === \'Math\' ) {\n'+ -' $ERROR("#1: \'Math\' have attribute DontEnum");\n'+ -' }\n'+ -'}\n'; +var evalStr = + '//CHECK#1\n' + + 'for (var x in this) {\n' + + ' if ( x === \'Math\' ) {\n' + + ' $ERROR("#1: \'Math\' have attribute DontEnum");\n' + + ' }\n' + + '}\n'; eval(evalStr); diff --git a/test/built-ins/global/S15.1_A1_T1.js b/test/built-ins/global/S15.1_A1_T1.js index 18d89f5b49b6f19f0314ab58f262ce4030fe7810..83f2868f050aaab6f204121295898d9c58e5288a 100644 --- a/test/built-ins/global/S15.1_A1_T1.js +++ b/test/built-ins/global/S15.1_A1_T1.js @@ -12,5 +12,5 @@ description: > var global = this; assert.throws(TypeError, function() { - new global; + new global; }); diff --git a/test/built-ins/global/S15.1_A1_T2.js b/test/built-ins/global/S15.1_A1_T2.js index 796612aca00ef51377853608168471211896c1f0..aed814768e9c73c923a7ede825c07691c8ee3901 100644 --- a/test/built-ins/global/S15.1_A1_T2.js +++ b/test/built-ins/global/S15.1_A1_T2.js @@ -12,5 +12,5 @@ description: > var global = this; assert.throws(TypeError, function() { - new global(); + new global(); }); diff --git a/test/built-ins/global/S15.1_A2_T1.js b/test/built-ins/global/S15.1_A2_T1.js index e2a730aaaf0c43ca52675b543be856762e6431aa..3fbdfd1aedd36d44f7363f4d1cd2ede4d9cdacf4 100644 --- a/test/built-ins/global/S15.1_A2_T1.js +++ b/test/built-ins/global/S15.1_A2_T1.js @@ -10,5 +10,5 @@ description: It is not possible to invoke the global object as a function var global = this; assert.throws(TypeError, function() { - global(); + global(); }); diff --git a/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js b/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js index fd3ab6b6658690436126bd54dbde04f2e1fee839..d135fcde607de359b2fbe88e4e07578d596b9718 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js @@ -10,24 +10,49 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; assert.sameValue(parseFloat(object), NaN, "{valueOf: function() {return 1}}"); //CHECK#2 -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; if (parseFloat(object) !== 0) { $ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; parseFloat(object) === 0. Actual: ' + (parseFloat(object))); } //CHECK#3 -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; if (parseFloat(object) !== 1) { $ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; if (parseFloat(object) !== 1) { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object))); } @@ -41,20 +66,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; if (parseFloat(object) !== 1) { $ERROR('#5: var object = {toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (parseFloat(object) !== 1) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object))); } //CHECK#7 try { - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; parseFloat(object); $ERROR('#7.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseFloat(object) throw "error". Actual: ' + (parseFloat(object))); } @@ -66,7 +109,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; parseFloat(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseFloat(object) throw TypeError. Actual: ' + (parseFloat(object))); } diff --git a/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js b/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js index d17cbca4b3a2ec6a551363efcf30fb69df698a7f..5e38fc4fa2754051c413a1f7e33f1926a8570972 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js @@ -19,20 +19,20 @@ for (var index = 0; index < uspU.length; index++) { var result = true; n = false; if (parseFloat(uspU[index] + "1.1") !== parseFloat("1.1")) { - $ERROR('#1.' + uspS[index] + ' '); + $ERROR('#1.' + uspS[index] + ' '); result = false; } - if (parseFloat(uspU[index] + uspU[index] + uspU[index] + "1.1") !== parseFloat("1.1")) { - $ERROR('#2.' + uspS[index] + ' '); + if (parseFloat(uspU[index] + uspU[index] + uspU[index] + "1.1") !== parseFloat("1.1")) { + $ERROR('#2.' + uspS[index] + ' '); result = false; } n = parseFloat(uspU[index]); if (!(n !== n)) { - $ERROR('#3.' + uspS[index] + ' '); + $ERROR('#3.' + uspS[index] + ' '); result = false; } if (result !== true) { - errorCount++; + errorCount++; } count++; } diff --git a/test/built-ins/parseFloat/S15.1.2.3_A7.1.js b/test/built-ins/parseFloat/S15.1.2.3_A7.1.js index 5013eea27fc0d33c8ea950a054b43247cf7ac662..4d39ca400a3a2255f1f4a8ea53610a1f3f2937d2 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A7.1.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A7.1.js @@ -16,7 +16,7 @@ if (parseFloat.propertyIsEnumerable('length') !== false) { //CHECK#2 var result = true; -for (var p in parseFloat){ +for (var p in parseFloat) { if (p === "length") { result = false; } diff --git a/test/built-ins/parseFloat/S15.1.2.3_A7.5.js b/test/built-ins/parseFloat/S15.1.2.3_A7.5.js index 19984b429b73a54b4cb2a5728d3c5498b6a0b58a..66902d7fa931b86b825d8f39ea18d5b02e7525ce 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A7.5.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A7.5.js @@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('parseFloat') !== false) { //CHECK#2 var result = true; -for (var p in this){ +for (var p in this) { if (p === "parseFloat") { result = false; } diff --git a/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js b/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js index bc2d2a590ed55347dbc946c105a997c16ddab028..6665d34be8d36c6b06407284884e411f2af225fc 100644 --- a/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js +++ b/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js @@ -19,4 +19,3 @@ features: [numeric-separator-literal] ---*/ assert.sameValue(parseFloat("1.0e+10_0"), 1.0e+10); - diff --git a/test/built-ins/parseInt/S15.1.2.2_A1_T7.js b/test/built-ins/parseInt/S15.1.2.2_A1_T7.js index f5655726dfe74662698967925c4b113830350307..617db6cd9fd73f59667acc1a5e1fae52a27148da 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A1_T7.js +++ b/test/built-ins/parseInt/S15.1.2.2_A1_T7.js @@ -10,24 +10,49 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; assert.sameValue(parseInt(object), NaN, "{valueOf: function() {return 1}}"); //CHECK#2 -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; if (parseInt(object) !== 0) { $ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; parseInt(object) === 0. Actual: ' + (parseInt(object))); } //CHECK#3 -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; if (parseInt(object) !== 1) { $ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; parseInt(object) === 1. Actual: ' + (parseInt(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; if (parseInt(object) !== 1) { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object))); } @@ -41,20 +66,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; if (parseInt(object) !== 1) { $ERROR('#5: var object = {toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (parseInt(object) !== 1) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object))); } //CHECK#7 try { - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; parseInt(object); $ERROR('#7.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseInt(object) throw "error". Actual: ' + (parseInt(object))); } @@ -66,7 +109,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; parseInt(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseInt(object) throw TypeError. Actual: ' + (parseInt(object))); } diff --git a/test/built-ins/parseInt/S15.1.2.2_A2_T10.js b/test/built-ins/parseInt/S15.1.2.2_A2_T10.js index 7d4c6c7aa7d271ff300d592f74d508797dbe439a..359035302db598b9d5809462ac4fff05391e281e 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A2_T10.js +++ b/test/built-ins/parseInt/S15.1.2.2_A2_T10.js @@ -20,20 +20,20 @@ for (var index = 0; index < uspU.length; index++) { var result = true; n = false; if (parseInt(uspU[index] + "1") !== parseInt("1")) { - $ERROR('#1.' + uspS[index] + ' '); + $ERROR('#1.' + uspS[index] + ' '); result = false; } - if (parseInt(uspU[index] + uspU[index] + uspU[index] + "1") !== parseInt("1")) { - $ERROR('#2.' + uspS[index] + ' '); + if (parseInt(uspU[index] + uspU[index] + uspU[index] + "1") !== parseInt("1")) { + $ERROR('#2.' + uspS[index] + ' '); result = false; } n = parseInt(uspU[index]); if (!(n !== n)) { - $ERROR('#3.' + uspS[index] + ' '); + $ERROR('#3.' + uspS[index] + ' '); result = false; } if (result !== true) { - errorCount++; + errorCount++; } count++; } diff --git a/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js b/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js index 0dc23b6fa076b8d58b7021ef8691ba55ed8b8cbd..1eeaec01fe77e07403e8d481bce389dfa489dd5a 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js +++ b/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, Number) ---*/ //CHECK#1 -var object = {valueOf: function() {return 2}}; +var object = { + valueOf: function() { + return 2 + } +}; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#1: var object = {valueOf: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#2 -var object = {valueOf: function() {return 2}, toString: function() {return 1}}; +var object = { + valueOf: function() { + return 2 + }, + toString: function() { + return 1 + } +}; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#2: var object = {valueOf: function() {return 2}, toString: function() {return 1}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#3 -var object = {valueOf: function() {return 2}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 2 + }, + toString: function() { + return {} + } +}; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#3: var object = {valueOf: function() {return 2}, toString: function() {return {}}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#4 try { - var object = {valueOf: function() {return 2}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 2 + }, + toString: function() { + throw "error" + } + }; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#4.1: var object = {valueOf: function() {return 2}, toString: function() {throw "error"}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 2}}; +var object = { + toString: function() { + return 2 + } +}; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#5: var object = {toString: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 2}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 2 + } +} if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#7 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 2}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 2 + } + }; parseInt("11", object); $ERROR('#7.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 2}}; parseInt("11", object) throw "error". Actual: ' + (parseInt("11", object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; parseInt("11", object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseInt("11", object) throw TypeError. Actual: ' + (parseInt("11", object))); } diff --git a/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js b/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js index a4b58e9f918fee946b4be2bc0b02512299fc5947..cbb1b7733a925b58098c8df9708fe1774f769322 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js +++ b/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js @@ -12,91 +12,91 @@ description: ": 0x" ---*/ //CHECK#0 -if (parseInt("0x0", 0) !== parseInt("0", 16)) { +if (parseInt("0x0", 0) !== parseInt("0", 16)) { $ERROR('#0: parseInt("0x0", 0) === parseInt("0", 16). Actual: ' + (parseInt("0x0", 0))); } //CHECK#1 -if (parseInt("0x1", 0) !== parseInt("1", 16)) { +if (parseInt("0x1", 0) !== parseInt("1", 16)) { $ERROR('#1: parseInt("0x1", 0) === parseInt("1", 16). Actual: ' + (parseInt("0x1", 0))); } //CHECK#2 -if (parseInt("0x2", 0) !== parseInt("2", 16)) { +if (parseInt("0x2", 0) !== parseInt("2", 16)) { $ERROR('#2: parseInt("0x2", 0) === parseInt("2", 16). Actual: ' + (parseInt("0x2", 0))); } //CHECK#3 -if (parseInt("0x3", 0) !== parseInt("3", 16)) { +if (parseInt("0x3", 0) !== parseInt("3", 16)) { $ERROR('#3: parseInt("0x3", 0) === parseInt("3", 16). Actual: ' + (parseInt("0x3", 0))); } //CHECK#4 -if (parseInt("0x4", 0) !== parseInt("4", 16)) { +if (parseInt("0x4", 0) !== parseInt("4", 16)) { $ERROR('#4: parseInt("0x4", 0) === parseInt("4", 16). Actual: ' + (parseInt("0x4", 0))); } //CHECK#5 -if (parseInt("0x5", 0) !== parseInt("5", 16)) { +if (parseInt("0x5", 0) !== parseInt("5", 16)) { $ERROR('#5: parseInt("0x5", 0) === parseInt("5", 16). Actual: ' + (parseInt("0x5", 0))); } //CHECK#6 -if (parseInt("0x6", 0) !== parseInt("6", 16)) { +if (parseInt("0x6", 0) !== parseInt("6", 16)) { $ERROR('#6: parseInt("0x6", 0) === parseInt("6", 16). Actual: ' + (parseInt("0x6", 0))); } //CHECK#7 -if (parseInt("0x7", 0) !== parseInt("7", 16)) { +if (parseInt("0x7", 0) !== parseInt("7", 16)) { $ERROR('#7: parseInt("0x7", 0) === parseInt("7", 16). Actual: ' + (parseInt("0x7", 0))); } //CHECK#8 -if (parseInt("0x8", 0) !== parseInt("8", 16)) { +if (parseInt("0x8", 0) !== parseInt("8", 16)) { $ERROR('#8: parseInt("0x8", 0) === parseInt("8", 16). Actual: ' + (parseInt("0x8", 0))); } //CHECK#9 -if (parseInt("0x9", 0) !== parseInt("9", 16)) { +if (parseInt("0x9", 0) !== parseInt("9", 16)) { $ERROR('#9: parseInt("0x9", 0) === parseInt("9", 16). Actual: ' + (parseInt("0x9", 0))); } //CHECK#A -if (parseInt("0xA", 0) !== parseInt("A", 16)) { +if (parseInt("0xA", 0) !== parseInt("A", 16)) { $ERROR('#A: parseInt("0xA", 0) === parseInt("A", 16). Actual: ' + (parseInt("0xA", 0))); } //CHECK#B -if (parseInt("0xB", 0) !== parseInt("B", 16)) { +if (parseInt("0xB", 0) !== parseInt("B", 16)) { $ERROR('#B: parseInt("0xB", 0) === parseInt("B", 16). Actual: ' + (parseInt("0xB", 0))); } //CHECK#C -if (parseInt("0xC", 0) !== parseInt("C", 16)) { +if (parseInt("0xC", 0) !== parseInt("C", 16)) { $ERROR('#C: parseInt("0xC", 0) === parseInt("C", 16). Actual: ' + (parseInt("0xC", 0))); } //CHECK#D -if (parseInt("0xD", 0) !== parseInt("D", 16)) { +if (parseInt("0xD", 0) !== parseInt("D", 16)) { $ERROR('#D: parseInt("0xD", 0) === parseInt("D", 16). Actual: ' + (parseInt("0xD", 0))); } //CHECK#E -if (parseInt("0xE", 0) !== parseInt("E", 16)) { +if (parseInt("0xE", 0) !== parseInt("E", 16)) { $ERROR('#E: parseInt("0xE", 0) === parseInt("E", 16). Actual: ' + (parseInt("0xE", 0))); } //CHECK#F -if (parseInt("0xF", 0) !== parseInt("F", 16)) { +if (parseInt("0xF", 0) !== parseInt("F", 16)) { $ERROR('#F: parseInt("0xF", 0) === parseInt("F", 16). Actual: ' + (parseInt("0xF", 0))); } //CHECK#E -if (parseInt("0xE", 0) !== parseInt("E", 16)) { +if (parseInt("0xE", 0) !== parseInt("E", 16)) { $ERROR('#E: parseInt("0xE", 0) === parseInt("E", 16). Actual: ' + (parseInt("0xE", 0))); } //CHECK#ABCDEF -if (parseInt("0xABCDEF", 0) !== parseInt("ABCDEF", 16)) { +if (parseInt("0xABCDEF", 0) !== parseInt("ABCDEF", 16)) { $ERROR('#ABCDEF: parseInt("0xABCDEF", 0) === parseInt("ABCDEF", 16). Actual: ' + (parseInt("0xABCDEF", 0))); } diff --git a/test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js b/test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js index 7be4f90d5f5a4ccbd040aca5758098eef7181f68..d644f36048bb3818187ce5392c889f88352be5d1 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js +++ b/test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js @@ -12,91 +12,91 @@ description: ": 0X" ---*/ //CHECK#0 -if (parseInt("0X0", 0) !== parseInt("0", 16)) { +if (parseInt("0X0", 0) !== parseInt("0", 16)) { $ERROR('#0: parseInt("0X0", 0) === parseInt("0", 16). Actual: ' + (parseInt("0X0", 0))); } //CHECK#1 -if (parseInt("0X1") !== parseInt("1", 16)) { +if (parseInt("0X1") !== parseInt("1", 16)) { $ERROR('#1: parseInt("0X1") === parseInt("1", 16). Actual: ' + (parseInt("0X1"))); } //CHECK#2 -if (parseInt("0X2") !== parseInt("2", 16)) { +if (parseInt("0X2") !== parseInt("2", 16)) { $ERROR('#2: parseInt("0X2") === parseInt("2", 16). Actual: ' + (parseInt("0X2"))); } //CHECK#3 -if (parseInt("0X3") !== parseInt("3", 16)) { +if (parseInt("0X3") !== parseInt("3", 16)) { $ERROR('#3: parseInt("0X3") === parseInt("3", 16). Actual: ' + (parseInt("0X3"))); } //CHECK#4 -if (parseInt("0X4") !== parseInt("4", 16)) { +if (parseInt("0X4") !== parseInt("4", 16)) { $ERROR('#4: parseInt("0X4") === parseInt("4", 16). Actual: ' + (parseInt("0X4"))); } //CHECK#5 -if (parseInt("0X5") !== parseInt("5", 16)) { +if (parseInt("0X5") !== parseInt("5", 16)) { $ERROR('#5: parseInt("0X5") === parseInt("5", 16). Actual: ' + (parseInt("0X5"))); } //CHECK#6 -if (parseInt("0X6") !== parseInt("6", 16)) { +if (parseInt("0X6") !== parseInt("6", 16)) { $ERROR('#6: parseInt("0X6") === parseInt("6", 16). Actual: ' + (parseInt("0X6"))); } //CHECK#7 -if (parseInt("0X7") !== parseInt("7", 16)) { +if (parseInt("0X7") !== parseInt("7", 16)) { $ERROR('#7: parseInt("0X7") === parseInt("7", 16). Actual: ' + (parseInt("0X7"))); } //CHECK#8 -if (parseInt("0X8") !== parseInt("8", 16)) { +if (parseInt("0X8") !== parseInt("8", 16)) { $ERROR('#8: parseInt("0X8") === parseInt("8", 16). Actual: ' + (parseInt("0X8"))); } //CHECK#9 -if (parseInt("0X9") !== parseInt("9", 16)) { +if (parseInt("0X9") !== parseInt("9", 16)) { $ERROR('#9: parseInt("0X9") === parseInt("9", 16). Actual: ' + (parseInt("0X9"))); } //CHECK#A -if (parseInt("0XA") !== parseInt("A", 16)) { +if (parseInt("0XA") !== parseInt("A", 16)) { $ERROR('#A: parseInt("0XA") === parseInt("A", 16). Actual: ' + (parseInt("0XA"))); } //CHECK#B -if (parseInt("0XB") !== parseInt("B", 16)) { +if (parseInt("0XB") !== parseInt("B", 16)) { $ERROR('#B: parseInt("0XB") === parseInt("B", 16). Actual: ' + (parseInt("0XB"))); } //CHECK#C -if (parseInt("0XC") !== parseInt("C", 16)) { +if (parseInt("0XC") !== parseInt("C", 16)) { $ERROR('#C: parseInt("0XC") === parseInt("C", 16). Actual: ' + (parseInt("0XC"))); } //CHECK#D -if (parseInt("0XD") !== parseInt("D", 16)) { +if (parseInt("0XD") !== parseInt("D", 16)) { $ERROR('#D: parseInt("0XD") === parseInt("D", 16). Actual: ' + (parseInt("0XD"))); } //CHECK#E -if (parseInt("0XE") !== parseInt("E", 16)) { +if (parseInt("0XE") !== parseInt("E", 16)) { $ERROR('#E: parseInt("0XE") === parseInt("E", 16). Actual: ' + (parseInt("0XE"))); } //CHECK#F -if (parseInt("0XF") !== parseInt("F", 16)) { +if (parseInt("0XF") !== parseInt("F", 16)) { $ERROR('#F: parseInt("0XF") === parseInt("F", 16). Actual: ' + (parseInt("0XF"))); } //CHECK#E -if (parseInt("0XE") !== parseInt("E", 16)) { +if (parseInt("0XE") !== parseInt("E", 16)) { $ERROR('#E: parseInt("0XE") === parseInt("E", 16). Actual: ' + (parseInt("0XE"))); } //CHECK#ABCDEF -if (parseInt("0XABCDEF") !== parseInt("ABCDEF", 16)) { +if (parseInt("0XABCDEF") !== parseInt("ABCDEF", 16)) { $ERROR('#ABCDEF: parseInt("0XABCDEF") === parseInt("ABCDEF", 16). Actual: ' + (parseInt("0XABCDEF"))); } diff --git a/test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js b/test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js index 9f01486699385a23d7e7b7bbdeadfe9395aa086b..980f9dc9a2c888c2cc5748e350d2b4af337aadd5 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js +++ b/test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js @@ -15,6 +15,6 @@ description: Complex test. R in [2, 36] //CHECK# for (var i = 2; i <= 36; i++) { if (parseInt("10$1", i) !== i) { - $ERROR('#' + i +': i = ' + i + 'parseInt("10$1", i) === i. Actual: ' + (parseInt("10$1", i))); + $ERROR('#' + i + ': i = ' + i + 'parseInt("10$1", i) === i. Actual: ' + (parseInt("10$1", i))); } } diff --git a/test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js b/test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js index 90c7ddbe4c683fddf8d2e9317d6a777f853057c4..81b667e8cd8c3b030327f4a9dc8d7bc1870c49d4 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js +++ b/test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js @@ -14,101 +14,101 @@ description: Checking algorithm for R = 2 ---*/ //CHECK#1 -if (parseInt("1", 2) !== 1) { +if (parseInt("1", 2) !== 1) { $ERROR('#1: parseInt("1", 2) === 1. Actual: ' + (parseInt("1", 2))); } //CHECK#2 -if (parseInt("11", 2) !== 3) { +if (parseInt("11", 2) !== 3) { $ERROR('#2: parseInt("11", 2) === 3. Actual: ' + (parseInt("11", 2))); } //CHECK#3 -if (parseInt("111", 2) !== 7) { +if (parseInt("111", 2) !== 7) { $ERROR('#3: parseInt("111", 2) === 7. Actual: ' + (parseInt("111", 2))); } //CHECK#4 -if (parseInt("1111", 2) !== 15) { +if (parseInt("1111", 2) !== 15) { $ERROR('#4: parseInt("1111", 2) === 15. Actual: ' + (parseInt("1111", 2))); } //CHECK#5 -if (parseInt("11111", 2) !== 31) { +if (parseInt("11111", 2) !== 31) { $ERROR('#5: parseInt("11111", 2) === 31. Actual: ' + (parseInt("11111", 2))); } //CHECK#6 -if (parseInt("111111", 2) !== 63) { +if (parseInt("111111", 2) !== 63) { $ERROR('#6: parseInt("111111", 2) === 63. Actual: ' + (parseInt("111111", 2))); } //CHECK#7 -if (parseInt("1111111", 2) !== 127) { +if (parseInt("1111111", 2) !== 127) { $ERROR('#7: parseInt("1111111", 2) === 127. Actual: ' + (parseInt("1111111", 2))); } //CHECK#8 -if (parseInt("11111111", 2) !== 255) { +if (parseInt("11111111", 2) !== 255) { $ERROR('#8: parseInt("11111111", 2) === 255. Actual: ' + (parseInt("11111111", 2))); } //CHECK#9 -if (parseInt("111111111", 2) !== 511) { +if (parseInt("111111111", 2) !== 511) { $ERROR('#9: parseInt("111111111", 2) === 511. Actual: ' + (parseInt("111111111", 2))); } //CHECK#10 -if (parseInt("1111111111", 2) !== 1023) { +if (parseInt("1111111111", 2) !== 1023) { $ERROR('#10: parseInt("1111111111", 2) === 1023. Actual: ' + (parseInt("1111111111", 2))); } //CHECK#11 -if (parseInt("11111111111", 2) !== 2047) { +if (parseInt("11111111111", 2) !== 2047) { $ERROR('#11: parseInt("11111111111", 2) === 2047. Actual: ' + (parseInt("11111111111", 2))); } //CHECK#12 -if (parseInt("111111111111", 2) !== 4095) { +if (parseInt("111111111111", 2) !== 4095) { $ERROR('#12: parseInt("111111111111", 2) === 4095. Actual: ' + (parseInt("111111111111", 2))); } //CHECK#13 -if (parseInt("1111111111111", 2) !== 8191) { +if (parseInt("1111111111111", 2) !== 8191) { $ERROR('#13: parseInt("1111111111111", 2) === 8191. Actual: ' + (parseInt("1111111111111", 2))); } //CHECK#14 -if (parseInt("11111111111111", 2) !== 16383) { +if (parseInt("11111111111111", 2) !== 16383) { $ERROR('#14: parseInt("11111111111111", 2) === 16383. Actual: ' + (parseInt("11111111111111", 2))); } //CHECK#15 -if (parseInt("111111111111111", 2) !== 32767) { +if (parseInt("111111111111111", 2) !== 32767) { $ERROR('#15: parseInt("111111111111111", 2) === 32767. Actual: ' + (parseInt("111111111111111", 2))); } //CHECK#16 -if (parseInt("1111111111111111", 2) !== 65535) { +if (parseInt("1111111111111111", 2) !== 65535) { $ERROR('#16: parseInt("1111111111111111", 2) === 65535. Actual: ' + (parseInt("1111111111111111", 2))); } //CHECK#17 -if (parseInt("11111111111111111", 2) !== 131071) { +if (parseInt("11111111111111111", 2) !== 131071) { $ERROR('#17: parseInt("11111111111111111", 2) === 131071. Actual: ' + (parseInt("11111111111111111", 2))); } //CHECK#18 -if (parseInt("111111111111111111", 2) !== 262143) { +if (parseInt("111111111111111111", 2) !== 262143) { $ERROR('#18: parseInt("111111111111111111", 2) === 262143. Actual: ' + (parseInt("111111111111111111", 2))); } //CHECK#19 -if (parseInt("1111111111111111111", 2) !== 524287) { +if (parseInt("1111111111111111111", 2) !== 524287) { $ERROR('#19: parseInt("1111111111111111111", 2) === 524287. Actual: ' + (parseInt("1111111111111111111", 2))); } //CHECK#20 -if (parseInt("11111111111111111111", 2) !== 1048575) { +if (parseInt("11111111111111111111", 2) !== 1048575) { $ERROR('#20: parseInt("11111111111111111111", 2) === 1048575. Actual: ' + (parseInt("11111111111111111111", 2))); } diff --git a/test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js b/test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js index bf5ed529451eec0d3aa803257908feeb1abd08e3..5b8fdfcbf232601a663710ceb90a18082abe8012 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js +++ b/test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js @@ -17,8 +17,8 @@ for (var i = 2; i <= 36; i++) { var str = "+"; var sign = 1; if (j % 2 !== 0) { - str = "-"; - sign= -1; + str = "-"; + sign = -1; } var num = 0; var pow = 1; diff --git a/test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js b/test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js index 070ffbc4db6b555399fca34ca28f3c4ab37731e7..d6becd0262568fb236f77c55c57cfa4e6b0f5cf2 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js +++ b/test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js @@ -10,101 +10,101 @@ description: Checking algorithm for R = 2 ---*/ //CHECK#1 -if (parseInt("-1", 2) !== -1) { +if (parseInt("-1", 2) !== -1) { $ERROR('#1: parseInt("-1", 2) === -1. Actual: ' + (parseInt("-1", 2))); } //CHECK#2 -if (parseInt("-11", 2) !== -3) { +if (parseInt("-11", 2) !== -3) { $ERROR('#2: parseInt("-11", 2) === -3. Actual: ' + (parseInt("-11", 2))); } //CHECK#3 -if (parseInt("-111", 2) !== -7) { +if (parseInt("-111", 2) !== -7) { $ERROR('#3: parseInt("-111", 2) === -7. Actual: ' + (parseInt("-111", 2))); } //CHECK#4 -if (parseInt("-1111", 2) !== -15) { +if (parseInt("-1111", 2) !== -15) { $ERROR('#4: parseInt("-1111", 2) === -15. Actual: ' + (parseInt("-1111", 2))); } //CHECK#5 -if (parseInt("-11111", 2) !== -31) { +if (parseInt("-11111", 2) !== -31) { $ERROR('#5: parseInt("-11111", 2) === -31. Actual: ' + (parseInt("-11111", 2))); } //CHECK#6 -if (parseInt("-111111", 2) !== -63) { +if (parseInt("-111111", 2) !== -63) { $ERROR('#6: parseInt("-111111", 2) === -63. Actual: ' + (parseInt("-111111", 2))); } //CHECK#7 -if (parseInt("-1111111", 2) !== -127) { +if (parseInt("-1111111", 2) !== -127) { $ERROR('#7: parseInt("-1111111", 2) === -127. Actual: ' + (parseInt("-1111111", 2))); } //CHECK#8 -if (parseInt("-11111111", 2) !== -255) { +if (parseInt("-11111111", 2) !== -255) { $ERROR('#8: parseInt("-11111111", 2) === -255. Actual: ' + (parseInt("-11111111", 2))); } //CHECK#9 -if (parseInt("-111111111", 2) !== -511) { +if (parseInt("-111111111", 2) !== -511) { $ERROR('#9: parseInt("-111111111", 2) === -511. Actual: ' + (parseInt("-111111111", 2))); } //CHECK#10 -if (parseInt("-1111111111", 2) !== -1023) { +if (parseInt("-1111111111", 2) !== -1023) { $ERROR('#10: parseInt("-1111111111", 2) === -1023. Actual: ' + (parseInt("-1111111111", 2))); } //CHECK#11 -if (parseInt("-11111111111", 2) !== -2047) { +if (parseInt("-11111111111", 2) !== -2047) { $ERROR('#11: parseInt("-11111111111", 2) === -2047. Actual: ' + (parseInt("-11111111111", 2))); } //CHECK#12 -if (parseInt("-111111111111", 2) !== -4095) { +if (parseInt("-111111111111", 2) !== -4095) { $ERROR('#12: parseInt("-111111111111", 2) === -4095. Actual: ' + (parseInt("-111111111111", 2))); } //CHECK#13 -if (parseInt("-1111111111111", 2) !== -8191) { +if (parseInt("-1111111111111", 2) !== -8191) { $ERROR('#13: parseInt("-1111111111111", 2) === -8191. Actual: ' + (parseInt("-1111111111111", 2))); } //CHECK#14 -if (parseInt("-11111111111111", 2) !== -16383) { +if (parseInt("-11111111111111", 2) !== -16383) { $ERROR('#14: parseInt("-11111111111111", 2) === -16383. Actual: ' + (parseInt("-11111111111111", 2))); } //CHECK#15 -if (parseInt("-111111111111111", 2) !== -32767) { +if (parseInt("-111111111111111", 2) !== -32767) { $ERROR('#15: parseInt("-111111111111111", 2) === -32767. Actual: ' + (parseInt("-111111111111111", 2))); } //CHECK#16 -if (parseInt("-1111111111111111", 2) !== -65535) { +if (parseInt("-1111111111111111", 2) !== -65535) { $ERROR('#16: parseInt("-1111111111111111", 2) === -65535. Actual: ' + (parseInt("-1111111111111111", 2))); } //CHECK#17 -if (parseInt("-11111111111111111", 2) !== -131071) { +if (parseInt("-11111111111111111", 2) !== -131071) { $ERROR('#17: parseInt("-11111111111111111", 2) === -131071. Actual: ' + (parseInt("-11111111111111111", 2))); } //CHECK#18 -if (parseInt("-111111111111111111", 2) !== -262143) { +if (parseInt("-111111111111111111", 2) !== -262143) { $ERROR('#18: parseInt("-111111111111111111", 2) === -262143. Actual: ' + (parseInt("-111111111111111111", 2))); } //CHECK#19 -if (parseInt("-1111111111111111111", 2) !== -524287) { +if (parseInt("-1111111111111111111", 2) !== -524287) { $ERROR('#19: parseInt("-1111111111111111111", 2) === -524287. Actual: ' + (parseInt("-1111111111111111111", 2))); } //CHECK#20 -if (parseInt("-11111111111111111111", 2) !== -1048575) { +if (parseInt("-11111111111111111111", 2) !== -1048575) { $ERROR('#20: parseInt("-11111111111111111111", 2) === -1048575. Actual: ' + (parseInt("-11111111111111111111", 2))); } diff --git a/test/built-ins/parseInt/S15.1.2.2_A8.js b/test/built-ins/parseInt/S15.1.2.2_A8.js index 960783ecc92b1f2763310ca076a501fef6caea22..8a0ee29740803c9e37c5dc4df82044d583a62cd8 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A8.js +++ b/test/built-ins/parseInt/S15.1.2.2_A8.js @@ -21,8 +21,8 @@ var indexP; var indexO = 0; for (var index = 0; index <= 65535; index++) { if ((index < 0x0030) || (index > 0x0039) && - (index < 0x0041) || (index > 0x005A) && - (index < 0x0061) || (index > 0x007A)) { + (index < 0x0041) || (index > 0x005A) && + (index < 0x0061) || (index > 0x007A)) { var hex = decimalToHexString(index); if (parseInt("1Z" + String.fromCharCode(index), 36) !== 71) { if (indexO === 0) { diff --git a/test/built-ins/parseInt/S15.1.2.2_A9.1.js b/test/built-ins/parseInt/S15.1.2.2_A9.1.js index 4140b20360ba5b99eef5bc53adad28b73e531b0a..b29cc4267473c7b44e0d7eb56324595879cf0267 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A9.1.js +++ b/test/built-ins/parseInt/S15.1.2.2_A9.1.js @@ -16,7 +16,7 @@ if (parseInt.propertyIsEnumerable('length') !== false) { //CHECK#2 var result = true; -for (var p in parseInt){ +for (var p in parseInt) { if (p === "length") { result = false; } diff --git a/test/built-ins/parseInt/S15.1.2.2_A9.5.js b/test/built-ins/parseInt/S15.1.2.2_A9.5.js index e03da48ec2cdf48110d13590e3f0746e7ac64c45..61510e57afe141a4f7aa6173e1ab64994ca22a5c 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A9.5.js +++ b/test/built-ins/parseInt/S15.1.2.2_A9.5.js @@ -16,7 +16,7 @@ if (this.propertyIsEnumerable('parseInt') !== false) { //CHECK#2 var result = true; -for (var p in this){ +for (var p in this) { if (p === "parseInt") { result = false; } diff --git a/test/built-ins/undefined/15.1.1.3-2.js b/test/built-ins/undefined/15.1.1.3-2.js index 2c3a243086c371e3dcc065e06da919e01803ca71..78ab60a7656e7f680ac65ff7217edb5184ca77d8 100644 --- a/test/built-ins/undefined/15.1.1.3-2.js +++ b/test/built-ins/undefined/15.1.1.3-2.js @@ -12,7 +12,7 @@ flags: [onlyStrict] var global = this; assert.throws(TypeError, function() { - global["undefined"] = 5; // Should throw a TypeError as per 8.12.5 + global["undefined"] = 5; // Should throw a TypeError as per 8.12.5 }); assert.sameValue(global["undefined"], void 0); assert.sameValue(undefined, void 0); diff --git a/test/built-ins/undefined/S15.1.1.3_A1.js b/test/built-ins/undefined/S15.1.1.3_A1.js index 5f13f195f25d406bd405004a42c411293dba2ec9..c5159d7e1362559d45bf56b74696736f2e97d8af 100644 --- a/test/built-ins/undefined/S15.1.1.3_A1.js +++ b/test/built-ins/undefined/S15.1.1.3_A1.js @@ -11,15 +11,15 @@ description: Use typeof, isNaN, isFinite // CHECK#1 if (typeof(undefined) !== "undefined") { - $ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined))); + $ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined))); } // CHECK#2 if (undefined !== void 0) { - $ERROR('#2: undefined === void 0. Actual: ' + (undefined)); + $ERROR('#2: undefined === void 0. Actual: ' + (undefined)); } // CHECK#3 if (undefined !== eval("var x")) { - $ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined)); + $ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined)); } diff --git a/test/built-ins/undefined/S15.1.1.3_A3_T2.js b/test/built-ins/undefined/S15.1.1.3_A3_T2.js index d5774708806b0b2272b5f17eb1891786f5a25336..12282235e4c88ea67f0c5a74a64e94bc4629a6f0 100644 --- a/test/built-ins/undefined/S15.1.1.3_A3_T2.js +++ b/test/built-ins/undefined/S15.1.1.3_A3_T2.js @@ -12,5 +12,5 @@ flags: [noStrict] // CHECK#1 if (delete undefined !== false) { - $ERROR('#1: delete undefined === false. Actual: ' + (delete undefined)); + $ERROR('#1: delete undefined === false. Actual: ' + (delete undefined)); } diff --git a/test/built-ins/undefined/S15.1.1.3_A4.js b/test/built-ins/undefined/S15.1.1.3_A4.js index f49d5ca8c79e8634de34e7191a1765167415a343..49918799e9bec7795f2577d46984aa5a3d7a2a69 100644 --- a/test/built-ins/undefined/S15.1.1.3_A4.js +++ b/test/built-ins/undefined/S15.1.1.3_A4.js @@ -12,6 +12,6 @@ description: Use for-in statement // CHECK#1 for (var prop in this) { if (prop === "undefined") { - $ERROR('#1: The undefined is DontEnum'); + $ERROR('#1: The undefined is DontEnum'); } }